Skip to content

Commit

Permalink
begin register pool script
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Mar 18, 2024
1 parent ee5ddc0 commit 408cd8c
Show file tree
Hide file tree
Showing 64 changed files with 71 additions and 62 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ yarn deploy --network sepolia

1. Deploy a contract that inherits from `IBasePool` and `BalancerPoolToken` and impliments the three required functions: `onSwap`, `computeInvariant`, and `computeBalance`
- [See docs on creating custom pool](https://docs-v3.balancer.fi/concepts/guides/create-custom-amm-with-novel-invariant.html#build-your-custom-amm)
2. Register the pool with the `Vault` by calling `VaultExtension.registerPool` with the necessary arguments
2. Register the pool with the `Vault` by calling `VaultExtension.registerPool`
- [See docs on `registerPool`](https://docs-v3.balancer.fi/concepts/vault/onchain-api.html#registerpool)
- This is the step where the pool declares what tokens it will manage
- TODO: Decide on registering pools via script or frontend
3. Initialize the pool with the `Vault` by calling `Router.initialize` with the necessary arguments
- [See docs on`Router.initialize`](https://docs-v3.balancer.fi/concepts/router/overview.html#initialize)

Expand Down
4 changes: 4 additions & 0 deletions packages/hardhat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ temp
cache
artifacts

#Foundry files
cache_forge
out

#zkSync files
artifacts-zk
cache-zk
Expand Down
1 change: 0 additions & 1 deletion packages/hardhat/cache_forge/solidity-files-cache.json

This file was deleted.

6 changes: 5 additions & 1 deletion packages/hardhat/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ src = 'contracts'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test'
cache_path = 'cache_forge'
cache_path = 'cache_forge'


[rpc_endpoints]
sepolia = "https://eth-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}"

This file was deleted.

1 change: 0 additions & 1 deletion packages/hardhat/out/Base.sol/CommonBase.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/hardhat/out/Base.sol/ScriptBase.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/hardhat/out/Base.sol/TestBase.json

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion packages/hardhat/out/ECDSA.sol/ECDSA.json

This file was deleted.

Loading

0 comments on commit 408cd8c

Please sign in to comment.