Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Sepolia Network #431

Merged
merged 2 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions balancer-js/src/lib/constants/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,40 @@ export const BALANCER_NETWORK_CONFIG: Record<Network, BalancerNetworkConfig> = {
},
],
},
[Network.SEPOLIA]: {
chainId: Network.SEPOLIA, //11155111
addresses: {
contracts: {
aaveLinearPoolFactory: '0xdf9b5b00ef9bca66e9902bd813db14e4343be025',
balancerHelpers: '0xdae7e32adc5d490a43ccba1f0c736033f2b4efca',
balancerMinterAddress: '0x1783cd84b3d01854a96b4ed5843753c2ccbd574a',
composableStablePoolFactory:
'0xa3fd20e29358c056b727657e83dfd139abbc9924',
erc4626LinearPoolFactory: '0x59562f93c447656f6e4799fc1fc7c3d977c3324f',
feeDistributor: '0xa6971317fb06c76ef731601c64433a4846fca707',
gaugeController: '0x577e5993b9cc480f07f98b5ebd055604bd9071c4',
gearboxLinearPoolFactory: '0x8df317a729fcaa260306d7de28888932cb579b88',
multicall: '0x25eef291876194aefad0d60dff89e268b90754bb',
protocolFeePercentagesProvider:
'0xf7d5dce55e6d47852f054697bab6a1b48a00ddbd',
relayer: '0x6d5342d716c13d9a3f072a2b11498624ade27f90',
vault: '0xba12222222228d8ba445958a75a0704d566bf2c8',
weightedPoolFactory: '0x7920bfa1b2041911b354747ca7a6cdd2dfc50cfd',
yearnLinearPoolFactory: '0xacf05be5134d64d150d153818f8c67ee36996650',
},
tokens: {
bal: '0xb19382073c7a0addbb56ac6af1808fa49e377b75',
wrappedNativeAsset: '0x7b79995e5f793a07bc00c21412e50ecae098e7f9',
},
},
urls: {
subgraph:
'https://api.studio.thegraph.com/proxy/24660/balancer-sepolia-v2/v0.0.1',
},
pools: {},
poolsToIgnore: [],
sorConnectingTokens: [],
},
};

export const networkAddresses = (
Expand Down
1 change: 1 addition & 0 deletions balancer-js/src/lib/constants/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ export enum Network {
POLYGON = 137,
ARBITRUM = 42161,
FANTOM = 250,
SEPOLIA = 11155111,
}
13 changes: 13 additions & 0 deletions balancer-js/src/test/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const PROVIDER_URLS = {
[Network.KOVAN]: `https://kovan.infura.io/v3/${process.env.INFURA}`,
[Network.POLYGON]: `https://polygon-mainnet.infura.io/v3/${process.env.INFURA}`,
[Network.ARBITRUM]: `https://arbitrum-mainnet.infura.io/v3/${process.env.INFURA}`,
[Network.SEPOLIA]: `https://sepolia.infura.io/v3/${process.env.INFURA}`,
};

export const ADDRESSES = {
Expand Down Expand Up @@ -884,4 +885,16 @@ export const ADDRESSES = {
slot: 0,
},
},
[Network.SEPOLIA]: {
WETH: {
address: '0x7b79995e5f793a07bc00c21412e50ecae098e7f9',
decimals: 18,
symbol: 'WETH',
},
BAL: {
address: '0xb19382073c7a0addbb56ac6af1808fa49e377b75',
decimals: 18,
symbol: 'BAL',
},
},
};