From 68d4504e76bed527a38c8d82bbf96f0810910ef7 Mon Sep 17 00:00:00 2001 From: amiecorso Date: Mon, 15 Apr 2024 16:48:18 -0700 Subject: [PATCH] add amoy USDC contract and chain id --- constants/addresses.ts | 4 ++-- deploy/deploy-bridged-polygon-nori.ts | 7 +++++-- deployments/amoy/.chainId | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 deployments/amoy/.chainId diff --git a/constants/addresses.ts b/constants/addresses.ts index 99caa30c..0798538b 100644 --- a/constants/addresses.ts +++ b/constants/addresses.ts @@ -2,7 +2,7 @@ export const PROD_DEPLOYMENT_ADDRESS = '0x582a885C03A0104Dc3053FAA8486c178e51E48Db'; export const STAGING_DEPLOYMENT_ADDRESS = '0x677c15A51fbeA299679e6D824eb5c3dA0923b4ae'; -export const AMOY_CHILD_CHAIN_MANAGER_PROXY = +export const MUMBAI_CHILD_CHAIN_MANAGER_PROXY = '0xb5505a6d998549090530911180f38aC5130101c6'; export const POLYGON_CHILD_CHAIN_MANAGER_PROXY = '0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa'; @@ -15,4 +15,4 @@ export const PROD_USDC_TOKEN_ADDRESS = '0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359'; // https://developers.circle.com/developer/docs/usdc-on-testnet#bridged-usdc-on-polygon-testnet export const STAGING_USDC_TOKEN_ADDRESS = - '0x9999f7Fea5938fD3b1E26A12c3f2fb024e194f97'; + '0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582'; diff --git a/deploy/deploy-bridged-polygon-nori.ts b/deploy/deploy-bridged-polygon-nori.ts index 7b5f5f6c..b28abd9f 100644 --- a/deploy/deploy-bridged-polygon-nori.ts +++ b/deploy/deploy-bridged-polygon-nori.ts @@ -7,9 +7,12 @@ import { } from '@/utils/deploy'; import { POLYGON_CHILD_CHAIN_MANAGER_PROXY, - AMOY_CHILD_CHAIN_MANAGER_PROXY, + MUMBAI_CHILD_CHAIN_MANAGER_PROXY, } from '@/constants/addresses'; +// TODO: we should remove this functionality, otherwise we have to set up +// another bridge contract for the new amoy network via the polygon team, which +// is wasted work until/unless the NORI token is back on the roadmap. export const deploy: DeployFunction = async (environment) => { const hre = environment as unknown as CustomHardHatRuntimeEnvironment; Logger.setLogLevel(Logger.levels.DEBUG); @@ -17,7 +20,7 @@ export const deploy: DeployFunction = async (environment) => { const childChainManagerProxyAddress = hre.network.name === 'polygon' ? POLYGON_CHILD_CHAIN_MANAGER_PROXY - : AMOY_CHILD_CHAIN_MANAGER_PROXY; + : MUMBAI_CHILD_CHAIN_MANAGER_PROXY; const contract = await deployBridgedPolygonNORIContract({ hre, childChainManagerProxyAddress, diff --git a/deployments/amoy/.chainId b/deployments/amoy/.chainId new file mode 100644 index 00000000..b8ca3095 --- /dev/null +++ b/deployments/amoy/.chainId @@ -0,0 +1 @@ +80002 \ No newline at end of file