Skip to content

Commit 5d7153f

Browse files
authored
feat: add depolyment information for Polygon Amoy (#505)
* 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]>
1 parent 7e22c4b commit 5d7153f

11 files changed

+5095
-10
lines changed

deploy/consts.ts

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ export const L1_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
114114
modeCrossDomainMessenger: "0xc19a60d9E8C27B9A43527c3283B4dd8eDC8bE15C",
115115
modeStandardBridge: "0xbC5C679879B2965296756CD959C3C739769995E2",
116116

117-
// More information is needed to verify these addresses:
118-
polygonRootChainManager: "0xA0c68C638235ee32657e8f720a23ceC1bFc77C77",
119-
polygonFxRoot: "0xfe5e5D361b2ad62c541bAb87C45a0B9B018389a2",
120-
polygonERC20Predicate: "0x40ec5B33f54e0E8A33A975908C5BA1c14e5BbbDf",
121-
polygonRegistry: "0x33a02E6cC863D393d6Bf231B697b82F6e499cA71",
122-
polygonDepositManager: "0x401F6c983eA34274ec46f84D70b31C151321188b",
117+
// https://github.com/maticnetwork/static/blob/master/network/testnet/amoy/index.json
118+
polygonRootChainManager: "0x34F5A25B627f50Bb3f5cAb72807c4D4F405a9232",
119+
polygonFxRoot: "0x0E13EBEdDb8cf9f5987512d5E081FdC2F5b0991e",
120+
polygonERC20Predicate: "0x4258C75b752c812B7Fa586bdeb259f2d4bd17f4F",
121+
polygonRegistry: "0xfE92F7c3a701e43d8479738c8844bCc555b9e5CD",
122+
polygonDepositManager: "0x44Ad17990F9128C6d823Ee10dB7F0A5d40a731A4",
123123
matic: "0x3fd0A53F4Bf853985a95F4Eb3F9C9FDE1F8e2b53",
124-
l2WrappedMatic: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",
124+
l2WrappedMatic: "0x360ad4f9a9A8EFe9A8DCB5f461c4Cc1047E1Dcf9",
125125
},
126126
};
127127

@@ -169,6 +169,13 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
169169
cctpTokenMessenger: "0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",
170170
cctpMessageTransmitter: "0xe09A679F56207EF33F5b9d8fb4499Ec00792eA73",
171171
},
172+
80002: {
173+
wMatic: "0x360ad4f9a9A8EFe9A8DCB5f461c4Cc1047E1Dcf9",
174+
fxChild: "0xE5930336866d0388f0f745A2d9207C7781047C0f",
175+
l2Usdc: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",
176+
cctpTokenMessenger: "0x9f3B8679c73C2Fef8b59B4f3444d4e156fb70AA5",
177+
cctpMessageTransmitter: "0x7865fAfC2db2093669d92c0F33AeEF291086BEFD",
178+
},
172179
280: {
173180
l2Weth: "0x20b28B1e4665FFf290650586ad76E977EAb90c5D",
174181
zkErc20Bridge: "0x00ff932A6d70E2B8f1Eb4919e1e09C1923E7e57b",
@@ -251,6 +258,7 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string }
251258
export const POLYGON_CHAIN_IDS: { [l1ChainId: number]: number } = {
252259
1: 137,
253260
5: 80001,
261+
11155111: 80002,
254262
};
255263

256264
/**
@@ -271,5 +279,6 @@ export const CIRCLE_DOMAIN_IDs: { [chainId: number]: number } = {
271279
420: 2, // Optimism Goerli
272280
421613: 3, // Arbitrum Goerli
273281
84531: 6, // Base Goerli
274-
80001: 7, // Polygon Mumbai
282+
80001: 7, // Polygon Goerli
283+
80002: 7, // Polygon Amoy
275284
};

deployments/deployments.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,19 @@
111111
"PolygonTokenBridger": { "address": "0x97f102f2f73717e203f964Ad9940e4C2e79b8597", "blockNumber": 26276246 },
112112
"SpokePool": { "address": "0x4589fbf26c6a456f075b5628178af68abe03c5ff", "blockNumber": 40549484 }
113113
},
114+
"80002": {
115+
"PolygonTokenBridger": { "address": "0x4e3737679081c4D3029D88cA560918094f2e0284", "blockNumber": 7529773 },
116+
"SpokePool": { "address": "0xd08baaE74D6d2eAb1F3320B2E1a53eeb391ce8e5", "blockNumber": 7529960 }
117+
},
114118
"421611": { "SpokePool": { "address": "0x3BED21dAe767e4Df894B31b14aD32369cE4bad8b", "blockNumber": 10523275 } },
115119
"421613": { "SpokePool": { "address": "0xd08baaE74D6d2eAb1F3320B2E1a53eeb391ce8e5", "blockNumber": 30397192 } },
116120
"421614": { "SpokePool": { "address": "0x7E63A5f1a8F0B4d0934B2f2327DAED3F6bb2ee75", "blockNumber": 12411026 } },
117121
"11155111": {
118122
"AcrossConfigStore": { "address": "0xB3De1e212B49e68f4a68b5993f31f63946FCA2a6", "blockNumber": 4968255 },
119123
"LPTokenFactory": { "address": "0xFB87Ac52Bac7ccF497b6053610A9c59B87a0cE7D", "blockNumber": 4911834 },
120124
"HubPool": { "address": "0x14224e63716aface30c9a417e0542281869f7d9e", "blockNumber": 4911835 },
121-
"SpokePool": { "address": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", "blockNumber": 5288470 }
125+
"SpokePool": { "address": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", "blockNumber": 5288470 },
126+
"PolygonTokenBridger": { "address": "0x4e3737679081c4D3029D88cA560918094f2e0284", "blockNumber": 5984560 },
127+
"Polygon_Adapter": { "address": "0x540029039E493b1B843653f93C3064A956931747", "blockNumber": 5984591 }
122128
}
123129
}

deployments/polygon-amoy/.chainId

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
80002

deployments/polygon-amoy/PolygonTokenBridger.json

Lines changed: 296 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)