Skip to content

Commit

Permalink
deploy to sepolia network
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPereira committed Jan 12, 2025
1 parent c989a42 commit eda5171
Show file tree
Hide file tree
Showing 8 changed files with 2,884 additions and 7,348 deletions.
1 change: 0 additions & 1 deletion packages/foundry/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ MAINNET_RPC_URL=
# Optional
SEPOLIA_RPC_URL=
GNOSIS_RPC_URL=

DEPLOYER_PRIVATE_KEY=
648 changes: 0 additions & 648 deletions packages/foundry/broadcast/Deploy.s.sol/1/run-1734391549.json

This file was deleted.

648 changes: 0 additions & 648 deletions packages/foundry/broadcast/Deploy.s.sol/1/run-1734391821.json

This file was deleted.

648 changes: 0 additions & 648 deletions packages/foundry/broadcast/Deploy.s.sol/1/run-latest.json

This file was deleted.

Large diffs are not rendered by default.

1,580 changes: 1,419 additions & 161 deletions packages/foundry/broadcast/Deploy.s.sol/11155111/run-latest.json

Large diffs are not rendered by default.

41 changes: 28 additions & 13 deletions packages/foundry/script/PoolHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,40 @@ import { console } from "forge-std/Script.sol";
/**
* @title Pool Helpers
* @notice Helpful addresses,functions, and types for deploying pools on Balancer v3
* @dev Since the block.chainid will always be 31337 when deploying to local anvil fork,
* if you wish to fork another network, uncomment the relevant addresses below
*/
contract PoolHelpers {
// Same address on all chains
IPermit2 internal permit2 = IPermit2(0x000000000022D473030F116dDEE9F6B43aC78BA3);
IVault internal vault = IVault(0xbA1333333333a1BA1108E8412f11850A5C319bA9);
IRouter internal router;
IBatchRouter internal batchRouter;

// Mainnet
IRouter internal router = IRouter(0x5C6fb490BDFD3246EB0bB062c168DeCAF4bD9FDd);
IBatchRouter internal batchRouter = IBatchRouter(0x136f1EFcC3f8f88516B9E94110D56FDBfB1778d1);

// Gnosis
// IRouter internal router = IRouter(0x84813aA3e079A665C0B80F944427eE83cBA63617);
// IBatchRouter internal batchRouter = IBatchRouter(0xe2fa4e1d17725e72dcdAfe943Ecf45dF4B9E285b);

// Sepolia
// IRouter internal router = IRouter(0x0BF61f706105EA44694f2e92986bD01C39930280);
// IBatchRouter internal batchRouter IBatchRouter(0xC85b652685567C1B074e8c0D4389f83a2E458b1C);
/**
* This controls which addresses are used for v3 contracts
* @notice Local anvil network uses mainnet addresses
* @dev To fork another network, change the addreseses for Local Anvil Network
*/
constructor() {
if (block.chainid == 31337) {
// Local Anvil Network
router = IRouter(0x5C6fb490BDFD3246EB0bB062c168DeCAF4bD9FDd);
batchRouter = IBatchRouter(0x136f1EFcC3f8f88516B9E94110D56FDBfB1778d1);
} else if (block.chainid == 1) {
// Mainnet
router = IRouter(0x5C6fb490BDFD3246EB0bB062c168DeCAF4bD9FDd);
batchRouter = IBatchRouter(0x136f1EFcC3f8f88516B9E94110D56FDBfB1778d1);
} else if (block.chainid == 100) {
// Gnosis
router = IRouter(0x84813aA3e079A665C0B80F944427eE83cBA63617);
batchRouter = IBatchRouter(0xe2fa4e1d17725e72dcdAfe943Ecf45dF4B9E285b);
} else if (block.chainid == 11155111) {
// Sepolia
router = IRouter(0x0BF61f706105EA44694f2e92986bD01C39930280);
batchRouter = IBatchRouter(0xC85b652685567C1B074e8c0D4389f83a2E458b1C);
} else {
revert("PoolHelpers: Unsupported network");
}
}

/**
* Sorts the tokenConfig array into alphanumeric order
Expand Down
Loading

0 comments on commit eda5171

Please sign in to comment.