Skip to content

Commit

Permalink
Merge pull request #143 from ethereum-attestation-service/polygon-amoy
Browse files Browse the repository at this point in the history
Document Polygon Amoy Deployment
  • Loading branch information
lbeder authored May 22, 2024
2 parents 8faf0d9 + 526bcf9 commit 1f0dd1b
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion data/NamedAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions deployments/polygon-amoy/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
80002
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion deployments/polygon-mumbai/.chainId

This file was deleted.

10 changes: 5 additions & 5 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 = '',
Expand Down Expand Up @@ -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: {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/**/*"
],
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions utils/Deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -87,7 +87,7 @@ export const isTestnet = () =>
isBaseSepolia() ||
isBaseGoerli() ||
isArbitrumGoerli() ||
isPolygonMumbai() ||
isPolygonAmoy() ||
isLineaGoerli() ||
isScrollSepolia();
export const isLive = () => !isHardhat();
Expand Down

0 comments on commit 1f0dd1b

Please sign in to comment.