From 526bcf9d09aedffbc92f2d652988dbc710c56cf1 Mon Sep 17 00:00:00 2001 From: lbeder Date: Wed, 22 May 2024 21:16:17 +0100 Subject: [PATCH] Document Polygon Amoy Deployment --- .env.template | 2 +- .gitignore | 2 +- README.md | 10 +++++----- data/NamedAccounts.ts | 2 +- deployments/polygon-amoy/.chainId | 1 + .../{polygon-mumbai => polygon-amoy}/.migrations.json | 0 deployments/{polygon-mumbai => polygon-amoy}/EAS.json | 0 .../{polygon-mumbai => polygon-amoy}/EIP712Proxy.json | 0 .../SchemaRegistry.json | 0 .../types/contracts/EAS.ts | 0 .../types/contracts/SchemaRegistry.ts | 0 .../types/contracts/eip712/proxy/EIP712Proxy.ts | 0 .../types/factories/contracts/EAS__factory.ts | 0 .../factories/contracts/SchemaRegistry__factory.ts | 0 .../contracts/eip712/proxy/EIP712Proxy__factory.ts | 0 deployments/polygon-mumbai/.chainId | 1 - hardhat.config.ts | 10 +++++----- package.json | 6 +++--- utils/Constants.ts | 2 +- utils/Deploy.ts | 4 ++-- 20 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 deployments/polygon-amoy/.chainId rename deployments/{polygon-mumbai => polygon-amoy}/.migrations.json (100%) rename deployments/{polygon-mumbai => polygon-amoy}/EAS.json (100%) rename deployments/{polygon-mumbai => polygon-amoy}/EIP712Proxy.json (100%) rename deployments/{polygon-mumbai => polygon-amoy}/SchemaRegistry.json (100%) rename deployments/{polygon-mumbai => polygon-amoy}/types/contracts/EAS.ts (100%) rename deployments/{polygon-mumbai => polygon-amoy}/types/contracts/SchemaRegistry.ts (100%) rename deployments/{polygon-mumbai => polygon-amoy}/types/contracts/eip712/proxy/EIP712Proxy.ts (100%) rename deployments/{polygon-mumbai => polygon-amoy}/types/factories/contracts/EAS__factory.ts (100%) rename deployments/{polygon-mumbai => polygon-amoy}/types/factories/contracts/SchemaRegistry__factory.ts (100%) rename deployments/{polygon-mumbai => polygon-amoy}/types/factories/contracts/eip712/proxy/EIP712Proxy__factory.ts (100%) delete mode 100644 deployments/polygon-mumbai/.chainId diff --git a/.env.template b/.env.template index ab0c7f20..2ced055b 100644 --- a/.env.template +++ b/.env.template @@ -23,7 +23,7 @@ OPTIMISM_GOERLI_PROVIDER_URL= BASE_SEPOLIA_PROVIDER_URL= BASE_GOERLI_PROVIDER_URL= ARBITRUM_GOERLI_PROVIDER_URL= -POLYGON_MUMBAI_PROVIDER_URL= +POLYGON_AMOY_PROVIDER_URL= LINEA_GOERLI_PROVIDER_URL= SCROLL_SEPOLIA_PROVIDER_URL= MAX_FEE= diff --git a/.gitignore b/.gitignore index 2fd3855a..586e7d69 100755 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,7 @@ deployments/optimism-goerli/solcInputs/* deployments/base-sepolia/solcInputs/* deployments/base-goerli/solcInputs/* deployments/arbitrum-goerli/solcInputs/* -deployments/polygon-mumbai/solcInputs/* +deployments/polygon-amoy/solcInputs/* deployments/scroll-sepolia/solcInputs/* deployments/linea-goerli/solcInputs/* deployments/hardhat/* diff --git a/README.md b/README.md index f3766c66..fa3fe390 100755 --- a/README.md +++ b/README.md @@ -322,16 +322,16 @@ Version 1.1.0: * Contract: [0x55D26f9ae0203EF95494AE4C170eD35f4Cf77797](https:/goerli.arbiscan.io/address/0x55D26f9ae0203EF95494AE4C170eD35f4Cf77797) * Deployment and ABI: [SchemaRegistry.json](./deployments/arbitrum-goerli/SchemaRegistry.json) -#### Polygon Mumbai +#### Polygon Amoy Version 1.2.0: * **EAS**: - * Contract: [0xaEF4103A04090071165F78D45D83A0C0782c2B2a](https://mumbai.polygonscan.com/address/0xaEF4103A04090071165F78D45D83A0C0782c2B2a) - * Deployment and ABI: [EAS.json](./deployments/polygon-mumbai/EAS.json) + * Contract: [0xaEF4103A04090071165F78D45D83A0C0782c2B2a](https://amoy.polygonscan.com/address/0xaEF4103A04090071165F78D45D83A0C0782c2B2a) + * Deployment and ABI: [EAS.json](./deployments/polygon-amoy/EAS.json) * **SchemaRegistry**: - * Contract: [0x55D26f9ae0203EF95494AE4C170eD35f4Cf77797](https://mumbai.polygonscan.com/address/0x55D26f9ae0203EF95494AE4C170eD35f4Cf77797) - * Deployment and ABI: [SchemaRegistry.json](./deployments/polygon-mumbai/SchemaRegistry.json) + * Contract: [0x55D26f9ae0203EF95494AE4C170eD35f4Cf77797](https://amoy.polygonscan.com/address/0x55D26f9ae0203EF95494AE4C170eD35f4Cf77797) + * Deployment and ABI: [SchemaRegistry.json](./deployments/polygon-amoy/SchemaRegistry.json) #### Scroll Sepolia diff --git a/data/NamedAccounts.ts b/data/NamedAccounts.ts index 2dc5de1d..a5a3de56 100644 --- a/data/NamedAccounts.ts +++ b/data/NamedAccounts.ts @@ -26,7 +26,7 @@ export const NamedAccounts = { [DeploymentNetwork.BaseSepolia]: deployer, [DeploymentNetwork.BaseGoerli]: deployer, [DeploymentNetwork.ArbitrumGoerli]: deployer, - [DeploymentNetwork.PolygonMumbai]: deployer, + [DeploymentNetwork.PolygonAmoy]: deployer, [DeploymentNetwork.ScrollSepolia]: deployer, [DeploymentNetwork.LineaGoerli]: deployer, [DeploymentNetwork.Hardhat]: 0 diff --git a/deployments/polygon-amoy/.chainId b/deployments/polygon-amoy/.chainId new file mode 100644 index 00000000..3ba548ea --- /dev/null +++ b/deployments/polygon-amoy/.chainId @@ -0,0 +1 @@ +80002 diff --git a/deployments/polygon-mumbai/.migrations.json b/deployments/polygon-amoy/.migrations.json similarity index 100% rename from deployments/polygon-mumbai/.migrations.json rename to deployments/polygon-amoy/.migrations.json diff --git a/deployments/polygon-mumbai/EAS.json b/deployments/polygon-amoy/EAS.json similarity index 100% rename from deployments/polygon-mumbai/EAS.json rename to deployments/polygon-amoy/EAS.json diff --git a/deployments/polygon-mumbai/EIP712Proxy.json b/deployments/polygon-amoy/EIP712Proxy.json similarity index 100% rename from deployments/polygon-mumbai/EIP712Proxy.json rename to deployments/polygon-amoy/EIP712Proxy.json diff --git a/deployments/polygon-mumbai/SchemaRegistry.json b/deployments/polygon-amoy/SchemaRegistry.json similarity index 100% rename from deployments/polygon-mumbai/SchemaRegistry.json rename to deployments/polygon-amoy/SchemaRegistry.json diff --git a/deployments/polygon-mumbai/types/contracts/EAS.ts b/deployments/polygon-amoy/types/contracts/EAS.ts similarity index 100% rename from deployments/polygon-mumbai/types/contracts/EAS.ts rename to deployments/polygon-amoy/types/contracts/EAS.ts diff --git a/deployments/polygon-mumbai/types/contracts/SchemaRegistry.ts b/deployments/polygon-amoy/types/contracts/SchemaRegistry.ts similarity index 100% rename from deployments/polygon-mumbai/types/contracts/SchemaRegistry.ts rename to deployments/polygon-amoy/types/contracts/SchemaRegistry.ts diff --git a/deployments/polygon-mumbai/types/contracts/eip712/proxy/EIP712Proxy.ts b/deployments/polygon-amoy/types/contracts/eip712/proxy/EIP712Proxy.ts similarity index 100% rename from deployments/polygon-mumbai/types/contracts/eip712/proxy/EIP712Proxy.ts rename to deployments/polygon-amoy/types/contracts/eip712/proxy/EIP712Proxy.ts diff --git a/deployments/polygon-mumbai/types/factories/contracts/EAS__factory.ts b/deployments/polygon-amoy/types/factories/contracts/EAS__factory.ts similarity index 100% rename from deployments/polygon-mumbai/types/factories/contracts/EAS__factory.ts rename to deployments/polygon-amoy/types/factories/contracts/EAS__factory.ts diff --git a/deployments/polygon-mumbai/types/factories/contracts/SchemaRegistry__factory.ts b/deployments/polygon-amoy/types/factories/contracts/SchemaRegistry__factory.ts similarity index 100% rename from deployments/polygon-mumbai/types/factories/contracts/SchemaRegistry__factory.ts rename to deployments/polygon-amoy/types/factories/contracts/SchemaRegistry__factory.ts diff --git a/deployments/polygon-mumbai/types/factories/contracts/eip712/proxy/EIP712Proxy__factory.ts b/deployments/polygon-amoy/types/factories/contracts/eip712/proxy/EIP712Proxy__factory.ts similarity index 100% rename from deployments/polygon-mumbai/types/factories/contracts/eip712/proxy/EIP712Proxy__factory.ts rename to deployments/polygon-amoy/types/factories/contracts/eip712/proxy/EIP712Proxy__factory.ts diff --git a/deployments/polygon-mumbai/.chainId b/deployments/polygon-mumbai/.chainId deleted file mode 100644 index abb5c655..00000000 --- a/deployments/polygon-mumbai/.chainId +++ /dev/null @@ -1 +0,0 @@ -80001 diff --git a/hardhat.config.ts b/hardhat.config.ts index 27576f4c..03334340 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -39,7 +39,7 @@ interface EnvOptions { BASE_SEPOLIA_PROVIDER_URL?: string; BASE_GOERLI_PROVIDER_URL?: string; ARBITRUM_GOERLI_PROVIDER_URL?: string; - POLYGON_MUMBAI_PROVIDER_URL?: string; + POLYGON_AMOY_PROVIDER_URL?: string; SCROLL_SEPOLIA_PROVIDER_URL?: string; LINEA_GOERLI_PROVIDER_URL?: string; PROFILE?: boolean; @@ -70,7 +70,7 @@ const { BASE_SEPOLIA_PROVIDER_URL = '', BASE_GOERLI_PROVIDER_URL = '', ARBITRUM_GOERLI_PROVIDER_URL = '', - POLYGON_MUMBAI_PROVIDER_URL = '', + POLYGON_AMOY_PROVIDER_URL = '', POLYGON_ETHERSCAN_API_KEY = '', SCROLL_SEPOLIA_PROVIDER_URL = '', LINEA_GOERLI_PROVIDER_URL = '', @@ -251,9 +251,9 @@ const config: HardhatUserConfig = { etherscan: { apiKey: ARBITRUM_ONE_ETHERSCAN_API_KEY } } }, - [DeploymentNetwork.PolygonMumbai]: { - chainId: 80001, - url: POLYGON_MUMBAI_PROVIDER_URL, + [DeploymentNetwork.PolygonAmoy]: { + chainId: 80002, + url: POLYGON_AMOY_PROVIDER_URL, saveDeployments: true, live: true, verify: { diff --git a/package.json b/package.json index 841950db..8fe8a3c6 100755 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "/deployments/base-sepolia/**/*", "/deployments/base-goerli/**/*", "/deployments/arbitrum-goerli/**/*", - "/deployments/polygon-mumbai/**/*", + "/deployments/polygon-amoy/**/*", "/deployments/scroll-sepolia/**/*", "/deployments/linea-goerli/**/*" ], @@ -63,7 +63,7 @@ "deploy:base-sepolia": "HARDHAT_NETWORK=base-sepolia hardhat deploy", "deploy:base-goerli": "HARDHAT_NETWORK=base-goerli hardhat deploy", "deploy:arbitrum-goerli": "HARDHAT_NETWORK=arbitrum-goerli hardhat deploy", - "deploy:polygon-mumbai": "HARDHAT_NETWORK=polygon-mumbai hardhat deploy", + "deploy:polygon-amoy": "HARDHAT_NETWORK=polygon-amoy hardhat deploy", "deploy:scroll-sepolia": "HARDHAT_NETWORK=scroll-sepolia hardhat deploy", "deploy:linea-goerli": "HARDHAT_NETWORK=linea-goerli hardhat deploy", "verify:mainnet": "HARDHAT_NETWORK=mainnet hardhat etherscan-verify --license MIT", @@ -82,7 +82,7 @@ "verify:base-sepolia": "HARDHAT_NETWORK=base-sepolia hardhat etherscan-verify --license MIT --api-url https://api-sepolia.basescan.org", "verify:base-goerli": "HARDHAT_NETWORK=base-goerli hardhat etherscan-verify --license MIT --api-url https://api-goerli.basescan.org", "verify:arbitrum-goerli": "HARDHAT_NETWORK=arbitrum-goerli hardhat etherscan-verify --license MIT", - "verify:polygon-mumbai": "HARDHAT_NETWORK=polygon-mumbai hardhat etherscan-verify --license MIT --api-url https://api-mumbai.polygonscan.com/", + "verify:polygon-amoy": "HARDHAT_NETWORK=polygon-amoy hardhat etherscan-verify --license MIT --api-url https://api-amoy.polygonscan.com/", "verify:scroll-sepolia": "HARDHAT_NETWORK=scroll-sepolia hardhat etherscan-verify --license MIT --api-url https://api-sepolia.scrollscan.com", "verify:linea-goerli": "HARDHAT_NETWORK=linea-goerli hardhat etherscan-verify --license MIT --api-url https://api-goerli.lineascan.build", "lint": "pnpm lint:sol && pnpm lint:ts", diff --git a/utils/Constants.ts b/utils/Constants.ts index b016735c..b1ab71af 100644 --- a/utils/Constants.ts +++ b/utils/Constants.ts @@ -17,7 +17,7 @@ export enum DeploymentNetwork { BaseSepolia = 'base-sepolia', BaseGoerli = 'base-goerli', ArbitrumGoerli = 'arbitrum-goerli', - PolygonMumbai = 'polygon-mumbai', + PolygonAmoy = 'polygon-amoy', ScrollSepolia = 'scroll-sepolia', LineaGoerli = 'linea-goerli', Hardhat = 'hardhat' diff --git a/utils/Deploy.ts b/utils/Deploy.ts index e8ab5dae..d264ff0d 100644 --- a/utils/Deploy.ts +++ b/utils/Deploy.ts @@ -76,7 +76,7 @@ export const isOptimismGoerli = () => getNetworkName() === DeploymentNetwork.Opt export const isBaseSepolia = () => getNetworkName() === DeploymentNetwork.BaseSepolia; export const isBaseGoerli = () => getNetworkName() === DeploymentNetwork.BaseGoerli; export const isArbitrumGoerli = () => getNetworkName() === DeploymentNetwork.ArbitrumGoerli; -export const isPolygonMumbai = () => getNetworkName() === DeploymentNetwork.PolygonMumbai; +export const isPolygonAmoy = () => getNetworkName() === DeploymentNetwork.PolygonAmoy; export const isScrollSepolia = () => getNetworkName() === DeploymentNetwork.ScrollSepolia; export const isLineaGoerli = () => getNetworkName() === DeploymentNetwork.LineaGoerli; export const isHardhat = () => getNetworkName() === DeploymentNetwork.Hardhat; @@ -87,7 +87,7 @@ export const isTestnet = () => isBaseSepolia() || isBaseGoerli() || isArbitrumGoerli() || - isPolygonMumbai() || + isPolygonAmoy() || isLineaGoerli() || isScrollSepolia(); export const isLive = () => !isHardhat();