Skip to content

Commit

Permalink
added mainnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
RuslanProgrammer committed Jan 10, 2024
1 parent cb9e5a4 commit 5ac3db9
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
20 changes: 18 additions & 2 deletions deploy/data/config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"cap": "1000000000000000000000000",
"chainsConfig": {
"senderChainId": 10121,
"receiverChainId": 10143
"senderChainId": 101,
"receiverChainId": 110
},
"pools": [
{
Expand Down Expand Up @@ -31,8 +31,24 @@
"amounts": ["1", "1"]
}
],
"L1": {
"stEth": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"wStEth": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
},
"L2": {
"swapRouter": "0xE592427A0AEce92De3Edee1F18E0157C05861564",
"nonfungiblePositionManager": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
"wStEth": "0x5979D7b546E38E414F7E9822514be443A4800529"
},
"swapParams": {
"fee": 10000,
"sqrtPriceLimitX96": 0
},
"arbitrumConfig": {
"arbitrumBridgeGatewayRouter": "0x72Ce9c846789fdB6fC1f34aC4AD25Dd9ef7031ef"
},
"lzConfig": {
"lzEndpointL1": "0x66A71Dcef29A0fFBDBE3c6a460a3B5BC225Cd675",
"lzEndpointL2": "0x3c2269811836af69497E5F486A85D7316753cf62"
}
}
38 changes: 38 additions & 0 deletions deploy/data/config_localhost.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"cap": "1000000000000000000000000",
"chainsConfig": {
"senderChainId": 10121,
"receiverChainId": 10143
},
"pools": [
{
"payoutStart": 1765790236,
"decreaseInterval": 86400,
"withdrawLockPeriod": 120,
"claimLockPeriod": 60,
"initialReward": "14400000000000000000000",
"rewardDecrease": "2468994701000000000",
"minimalStake": "1000000000000000",
"isPublic": true
},
{
"payoutStart": 1765790236,
"decreaseInterval": 60,
"withdrawLockPeriod": 1,
"claimLockPeriod": 1,
"initialReward": "100000000000000000000",
"rewardDecrease": "100000000000000000000",
"minimalStake": "1000000000000000",
"isPublic": false,
"whitelistedUsers": [
"0x901F2d23823730fb7F2356920e0E273EFdCdFe17",
"0x19ec1E4b714990620edf41fE28e9a1552953a7F4"
],
"amounts": ["1", "1"]
}
],
"swapParams": {
"fee": 10000,
"sqrtPriceLimitX96": 0
}
}
2 changes: 2 additions & 0 deletions deploy/helpers/config-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export function parseConfig(chainId: bigint): Config {
let configPath: string;

if (chainId === 31337n) {
configPath = `deploy/data/config_localhost.json`;
} else if (chainId === 1n || chainId === 42161n) {
configPath = `deploy/data/config.json`;
} else if (chainId === 5n || chainId === 421613n) {
configPath = `deploy/data/config_goerli.json`;
Expand Down

0 comments on commit 5ac3db9

Please sign in to comment.