dev deploy and etherscan verify

This commit is contained in:
Moon Man 2023-08-20 10:57:57 -04:00
parent 1b8ecb5c37
commit 68af3cb3f0
2 changed files with 39 additions and 1 deletions

View File

@ -36,8 +36,30 @@ const config: HardhatUserConfig = {
}, },
gasPrice: 1000000000, gasPrice: 1000000000,
}, },
"eth-goerli": {
url: `https://goerli.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: {
mnemonic: process.env.MNEMONIC as string
},
gasPrice: 1000000000,
},
},
defaultNetwork: "base-local",
etherscan: {
apiKey: {
"base-goerli": "PLACEHOLDER_STRING"
},
customChains: [
{
network: "base-goerli",
chainId: 84531,
urls: {
apiURL: "https://api-goerli.basescan.org/api",
browserURL: "https://goerli.basescan.org"
}
}
]
}, },
defaultNetwork: "hardhat",
}; };
export default config; export default config;

16
scripts/deploy-dev.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
NODE_ENV=dev
export NODE_ENV
npx hardhat compile
npx hardhat --network eth-goerli run scripts/deploy-l1.ts
if [ "$?" -eq 0 ]
then
npx hardhat --network base-goerli run scripts/deploy-l2.ts
else
echo "deploy to L1 failed so aborting L2" >&2
exit 1
fi