chore: polygon zkevm testnet deployment

This commit is contained in:
rymnc 2023-11-30 22:52:34 +05:30
parent 9c9943df9b
commit 8106f45bba
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34
12 changed files with 2657 additions and 8 deletions

View File

@ -1,3 +1,4 @@
ETHERSCAN_API_KEY=<YOUR_ETHERSCAN_KEY>
SEPOLIA_URL=https://eth-sepolia.alchemyapi.io/v2/<YOUR ALCHEMY KEY>
POLYGON_ZKEVM_TESTNET_URL=https://rpc.public.zkevm-test.net
PRIVATE_KEY=<YOUR_PRIVATE_KEY>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
1442

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -12,10 +12,20 @@ import "hardhat-gas-reporter";
import "solidity-docgen";
dotenv.config();
const { SEPOLIA_URL, PRIVATE_KEY, ETHERSCAN_API_KEY } = process.env;
const {
SEPOLIA_URL,
PRIVATE_KEY,
ETHERSCAN_API_KEY,
POLYGON_ZKEVM_TESTNET_URL,
} = process.env;
const getNetworkConfig = (): NetworksUserConfig | undefined => {
if (SEPOLIA_URL && PRIVATE_KEY) {
if (
SEPOLIA_URL &&
PRIVATE_KEY &&
ETHERSCAN_API_KEY &&
POLYGON_ZKEVM_TESTNET_URL
) {
return {
sepolia: {
url: SEPOLIA_URL,
@ -30,6 +40,13 @@ const getNetworkConfig = (): NetworksUserConfig | undefined => {
},
},
},
polygonZkevmTestnet: {
url: POLYGON_ZKEVM_TESTNET_URL,
accounts: [PRIVATE_KEY],
forking: {
url: POLYGON_ZKEVM_TESTNET_URL,
},
},
localhost_integration: {
url: "http://localhost:8545",
},

View File

@ -12,6 +12,7 @@
"test:foundry": "forge test",
"deploy": "hardhat deploy --export-all deployments/allDeployments.json --network",
"deploy:sepolia": "yarn deploy sepolia",
"deploy:polygon_zkevm_testnet": "yarn deploy polygonZkevmTestnet",
"deploy:localhost": "yarn deploy localhost",
"verify:sepolia": "hardhat --network sepolia etherscan-verify",
"coverage": "forge coverage --report lcov",