Skip to content

Commit

Permalink
feat: add depolyment information for Polygon Amoy (#505)
Browse files Browse the repository at this point in the history
* feat: add depolyment information for Polygon Amoy

Signed-off-by: bennett <[email protected]>

* fix chain id and variable name

Signed-off-by: bennett <[email protected]>

* bump package version

Signed-off-by: bennett <[email protected]>

* fix ordering of addresses and add back mumbai CCTP domain

Signed-off-by: bennett <[email protected]>

---------

Signed-off-by: bennett <[email protected]>
  • Loading branch information
bmzig authored May 29, 2024
1 parent 7e22c4b commit 5d7153f
Show file tree
Hide file tree
Showing 11 changed files with 5,095 additions and 10 deletions.
25 changes: 17 additions & 8 deletions deploy/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ export const L1_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
modeCrossDomainMessenger: "0xc19a60d9E8C27B9A43527c3283B4dd8eDC8bE15C",
modeStandardBridge: "0xbC5C679879B2965296756CD959C3C739769995E2",

// More information is needed to verify these addresses:
polygonRootChainManager: "0xA0c68C638235ee32657e8f720a23ceC1bFc77C77",
polygonFxRoot: "0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2",
polygonERC20Predicate: "0x40ec5B33f54e0E8A33A975908C5BA1c14e5BbbDf",
polygonRegistry: "0x33a02E6cC863D393d6Bf231B697b82F6e499cA71",
polygonDepositManager: "0x401F6c983eA34274ec46f84D70b31C151321188b",
// https://github.com/maticnetwork/static/blob/master/network/testnet/amoy/index.json
polygonRootChainManager: "0x34F5A25B627f50Bb3f5cAb72807c4D4F405a9232",
polygonFxRoot: "0x0E13EBEdDb8cf9f5987512d5E081FdC2F5b0991e",
polygonERC20Predicate: "0x4258C75b752c812B7Fa586bdeb259f2d4bd17f4F",
polygonRegistry: "0xfE92F7c3a701e43d8479738c8844bCc555b9e5CD",
polygonDepositManager: "0x44Ad17990F9128C6d823Ee10dB7F0A5d40a731A4",
matic: "0x3fd0A53F4Bf853985a95F4Eb3F9C9FDE1F8e2b53",
l2WrappedMatic: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
l2WrappedMatic: "0x360ad4f9a9A8EFe9A8DCB5f461c4Cc1047E1Dcf9",
},
};

Expand Down Expand Up @@ -169,6 +169,13 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
cctpTokenMessenger: "0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",
cctpMessageTransmitter: "0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",
},
80002: {
wMatic: "0x360ad4f9a9A8EFe9A8DCB5f461c4Cc1047E1Dcf9",
fxChild: "0xE5930336866d0388f0f745A2d9207C7781047C0f",
l2Usdc: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",
cctpTokenMessenger: "0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",
cctpMessageTransmitter: "0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",
},
280: {
l2Weth: "0x20b28B1e4665FFf290650586ad76E977EAb90c5D",
zkErc20Bridge: "0x00ff932A6d70E2B8f1Eb4919e1e09C1923E7e57b",
Expand Down Expand Up @@ -251,6 +258,7 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
export const POLYGON_CHAIN_IDS: { [l1ChainId: number]: number } = {
1: 137,
5: 80001,
11155111: 80002,
};

/**
Expand All @@ -271,5 +279,6 @@ export const CIRCLE_DOMAIN_IDs: { [chainId: number]: number } = {
420: 2, // Optimism Goerli
421613: 3, // Arbitrum Goerli
84531: 6, // Base Goerli
80001: 7, // Polygon Mumbai
80001: 7, // Polygon Goerli
80002: 7, // Polygon Amoy
};
8 changes: 7 additions & 1 deletion deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,19 @@
"PolygonTokenBridger": { "address": "0x97f102f2f73717e203f964Ad9940e4C2e79b8597", "blockNumber": 26276246 },
"SpokePool": { "address": "0x4589fbf26c6a456f075b5628178af68abe03c5ff", "blockNumber": 40549484 }
},
"80002": {
"PolygonTokenBridger": { "address": "0x4e3737679081c4D3029D88cA560918094f2e0284", "blockNumber": 7529773 },
"SpokePool": { "address": "0xd08baaE74D6d2eAb1F3320B2E1a53eeb391ce8e5", "blockNumber": 7529960 }
},
"421611": { "SpokePool": { "address": "0x3BED21dAe767e4Df894B31b14aD32369cE4bad8b", "blockNumber": 10523275 } },
"421613": { "SpokePool": { "address": "0xd08baaE74D6d2eAb1F3320B2E1a53eeb391ce8e5", "blockNumber": 30397192 } },
"421614": { "SpokePool": { "address": "0x7E63A5f1a8F0B4d0934B2f2327DAED3F6bb2ee75", "blockNumber": 12411026 } },
"11155111": {
"AcrossConfigStore": { "address": "0xB3De1e212B49e68f4a68b5993f31f63946FCA2a6", "blockNumber": 4968255 },
"LPTokenFactory": { "address": "0xFB87Ac52Bac7ccF497b6053610A9c59B87a0cE7D", "blockNumber": 4911834 },
"HubPool": { "address": "0x14224e63716aface30c9a417e0542281869f7d9e", "blockNumber": 4911835 },
"SpokePool": { "address": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", "blockNumber": 5288470 }
"SpokePool": { "address": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", "blockNumber": 5288470 },
"PolygonTokenBridger": { "address": "0x4e3737679081c4D3029D88cA560918094f2e0284", "blockNumber": 5984560 },
"Polygon_Adapter": { "address": "0x540029039E493b1B843653f93C3064A956931747", "blockNumber": 5984591 }
}
}
1 change: 1 addition & 0 deletions deployments/polygon-amoy/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
80002
296 changes: 296 additions & 0 deletions deployments/polygon-amoy/PolygonTokenBridger.json

Large diffs are not rendered by default.

Loading

0 comments on commit 5d7153f

Please sign in to comment.