chore: polygon zkevm testnet deployment
This commit is contained in:
parent
9c9943df9b
commit
8106f45bba
|
@ -1,3 +1,4 @@
|
||||||
ETHERSCAN_API_KEY=<YOUR_ETHERSCAN_KEY>
|
ETHERSCAN_API_KEY=<YOUR_ETHERSCAN_KEY>
|
||||||
SEPOLIA_URL=https://eth-sepolia.alchemyapi.io/v2/<YOUR ALCHEMY 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>
|
PRIVATE_KEY=<YOUR_PRIVATE_KEY>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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
|
@ -12,10 +12,20 @@ import "hardhat-gas-reporter";
|
||||||
import "solidity-docgen";
|
import "solidity-docgen";
|
||||||
|
|
||||||
dotenv.config();
|
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 => {
|
const getNetworkConfig = (): NetworksUserConfig | undefined => {
|
||||||
if (SEPOLIA_URL && PRIVATE_KEY) {
|
if (
|
||||||
|
SEPOLIA_URL &&
|
||||||
|
PRIVATE_KEY &&
|
||||||
|
ETHERSCAN_API_KEY &&
|
||||||
|
POLYGON_ZKEVM_TESTNET_URL
|
||||||
|
) {
|
||||||
return {
|
return {
|
||||||
sepolia: {
|
sepolia: {
|
||||||
url: SEPOLIA_URL,
|
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: {
|
localhost_integration: {
|
||||||
url: "http://localhost:8545",
|
url: "http://localhost:8545",
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
"test:foundry": "forge test",
|
"test:foundry": "forge test",
|
||||||
"deploy": "hardhat deploy --export-all deployments/allDeployments.json --network",
|
"deploy": "hardhat deploy --export-all deployments/allDeployments.json --network",
|
||||||
"deploy:sepolia": "yarn deploy sepolia",
|
"deploy:sepolia": "yarn deploy sepolia",
|
||||||
|
"deploy:polygon_zkevm_testnet": "yarn deploy polygonZkevmTestnet",
|
||||||
"deploy:localhost": "yarn deploy localhost",
|
"deploy:localhost": "yarn deploy localhost",
|
||||||
"verify:sepolia": "hardhat --network sepolia etherscan-verify",
|
"verify:sepolia": "hardhat --network sepolia etherscan-verify",
|
||||||
"coverage": "forge coverage --report lcov",
|
"coverage": "forge coverage --report lcov",
|
||||||
|
|
Loading…
Reference in New Issue