Skip to content

Commit

Permalink
Merge pull request #144 from BitGo/deploy-polygon-bsc
Browse files Browse the repository at this point in the history
chore: deploy v4 contracts for polygon and bsc
  • Loading branch information
sachushaji authored May 3, 2024
2 parents 6aff0a5 + ad46385 commit 5c72d31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ const config: HardhatUserConfig = {
tmatic: {
// https://polygon-amoy.g.alchemy.com
url: `https://polygon-amoy-bor-rpc.publicnode.com`,
accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
},
bsc: {
url: `https://bsc-dataseed1.binance.org/`,
accounts: [`${MAINNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
},
tbsc: {
url: `https://data-seed-prebsc-1-s1.binance.org:8545/`,
accounts: [`${TESTNET_PRIVATE_KEY_FOR_CONTRACT_DEPLOYMENT}`]
accounts: [`${PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT}`]
},
tarbeth: {
url: `${QUICKNODE_ARBITRUM_SEPOLIA_API_KEY}`,
Expand Down
10 changes: 6 additions & 4 deletions scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,18 @@ async function main() {
//tmatic
case 80002:
walletImplementationContractName = 'PolygonWalletSimple';
forwarderContractName = 'Forwarder';
forwarderFactoryContractName = 'ForwarderFactory';
forwarderContractName = 'ForwarderV4';
forwarderFactoryContractName = 'ForwarderFactoryV4';
contractPath = `contracts/coins/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
break;
// bsc
case 56:
// tbsc
case 97:
walletImplementationContractName = 'RecoveryWalletSimple';
walletFactoryContractName = 'RecoveryWalletFactory';
walletImplementationContractName = 'WalletSimple';
forwarderContractName = 'ForwarderV4';
forwarderFactoryContractName = 'ForwarderFactoryV4';
contractPath = `contracts/${walletImplementationContractName}.sol:${walletImplementationContractName}`;
break;
// arbeth
case 42161:
Expand Down

0 comments on commit 5c72d31

Please sign in to comment.