Skip to content

Commit

Permalink
Merge pull request #3 from zekraken-bot/dev
Browse files Browse the repository at this point in the history
alpha version
  • Loading branch information
zekraken-bot authored Apr 24, 2023
2 parents 8e9a940 + b35b45c commit c7648b7
Show file tree
Hide file tree
Showing 11 changed files with 2,256 additions and 63 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "pool-creator"
}
}
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOL_CREATOR }}'
channelId: live
projectId: pool-creator
17 changes: 17 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
'on': pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_POOL_CREATOR }}'
projectId: pool-creator
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
.env.test.local
.env.production.local


npm-debug.log*
yarn-debug.log*
yarn-error.log*
35 changes: 35 additions & 0 deletions .scratchpad
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
token addresses
0xdfcea9088c8a88a76ff74892c1457c17dfeef9c1
0xfa8449189744799ad2ace7e0ebac8bb7575eff47
0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb -- usdc

amounts
800000000000000000
200000000000000000

swap fee
10000000000000000

owner
0xaffc70b81d54f229a5f50ec07e2c76d2aaad07ae

rate provider
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000

poolid
0xd503dd8ae0e4669106167ad1a7df0569a9c1340500020000000000000000073a

($2.5)
weth amt ($2)
1000000000000000
0.001

bal amt ($0.50)
70000000000000000
0.07

userdata
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000f8b0a10e470000

{ "assets": ["0xdfcea9088c8a88a76ff74892c1457c17dfeef9c1", "0xfa8449189744799ad2ace7e0ebac8bb7575eff47"], "maxAmountsIn": [ "1000000000000000", "70000000000000000" ], "userData": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000f8b0a10e470000", "fromInternalBalance": false }
41 changes: 28 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
token addresses
0xdfcea9088c8a88a76ff74892c1457c17dfeef9c1
0xfa8449189744799ad2ace7e0ebac8bb7575eff47
Usage Notes:

amounts
800000000000000000
200000000000000000
1. if a rate provider is not supplied, the 0x0000 address will be used
2. swap fee can be entered as 0.01 for 1%
3. token weights can be entered as 80/20, 50/50, etc. the appropriate values will be applied in the background
4. token amounts can be entered as the amount you want to supply, 0.001 ETH for example, the correct digits will be applied in the background
5. the main Balancer chains are supported
6. contract addresses for pool factories are manually maintained, so check that the latest contracts are being used

swap fee
10000000000000000
## Available Scripts

owner
0xaffc70b81d54f229a5f50ec07e2c76d2aaad07ae
In the project directory run the following:

rate provider
0x0000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000
### `npm install`

Installs project depedencies, you will need `npm` installed as well as `Node.js`

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
Loading

0 comments on commit c7648b7

Please sign in to comment.