From ad4638501d01f6dbd5e8880eaaa61c91ebd31b9d Mon Sep 17 00:00:00 2001 From: Sachu Shaji Abraham Date: Thu, 2 May 2024 18:37:41 +0530 Subject: [PATCH] chore: deploy v4 contracts for polygon and bsc this pr adds changes to deploy v4 contracts for bsc and polygon testnets Ticket: WP-1803 --- hardhat.config.ts | 4 ++-- scripts/deploy.ts | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index 6f5e6a8..34e5392 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -79,7 +79,7 @@ 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/`, @@ -87,7 +87,7 @@ const config: HardhatUserConfig = { }, 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}`, diff --git a/scripts/deploy.ts b/scripts/deploy.ts index bbadd1d..9677e07 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -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: