Skip to content

Commit

Permalink
Merge pull request #141 from BitGo/WIN-2821-deploy-polygoncontracts-o…
Browse files Browse the repository at this point in the history
…n-amoy-testnet

feat(eth-multisig-v4): deploy polygon amoy test contracts
  • Loading branch information
gianchandania authored Apr 17, 2024
2 parents 6b6625f + 7165ee4 commit 6c1223f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
14 changes: 11 additions & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ const config: HardhatUserConfig = {
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
},
tmatic: {
//https://polygon-mumbai.g.alchemy.com/
url: `https://polygon-mumbai.g.alchemyapi.io/v2/${ALCHEMY_POLYGON_API_KEY}`,
// https://polygon-amoy.g.alchemy.com
url: `https://polygon-amoy-bor-rpc.publicnode.com`,
accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
},
bsc: {
Expand Down Expand Up @@ -122,7 +122,7 @@ const config: HardhatUserConfig = {
holesky: `${ETHERSCAN_API_KEY}`,
//polygon
polygon: `${POLYGONSCAN_API_KEY}`,
polygonMumbai: `${POLYGONSCAN_API_KEY}`,
polygonAmoy: `${POLYGONSCAN_API_KEY}`,
bscTestnet: `${BSCSCAN_API_KEY}`,
bsc: `${BSCSCAN_API_KEY}`,
// arbitrum
Expand Down Expand Up @@ -175,6 +175,14 @@ const config: HardhatUserConfig = {
apiURL: 'https://block-explorer-api.sepolia.zksync.dev/api',
browserURL: 'https://sepolia.explorer.zksync.io'
}
},
{
network: 'polygonAmoy',
chainId: 80002,
urls: {
apiURL: 'https://api-amoy.polygonscan.com/api',
browserURL: 'https://amoy.polygonscan.com'
}
}
]
},
Expand Down
6 changes: 4 additions & 2 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ async function main() {
//matic
case 137:
//tmatic
case 80001:
case 80002:
walletImplementationContractName = 'PolygonWalletSimple';
forwarderContractName = 'Forwarder';
forwarderFactoryContractName = 'ForwarderFactory';
break;
// bsc
case 56:
Expand Down Expand Up @@ -128,7 +130,7 @@ async function main() {
walletImplementationContractName,
walletSimple.address,
[],
`contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`
`contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`
);
await verifyContract('WalletFactory', walletFactory.address, [
walletSimple.address
Expand Down

0 comments on commit 6c1223f

Please sign in to comment.