diff --git a/contract_manager/src/core/chains.ts b/contract_manager/src/core/chains.ts index 8b2f91b6ea..870c8f0c9f 100644 --- a/contract_manager/src/core/chains.ts +++ b/contract_manager/src/core/chains.ts @@ -563,7 +563,9 @@ export class EvmChain extends Chain { web3.eth.accounts.wallet.add(signer); const contract = new web3.eth.Contract(abi); const deployTx = contract.deploy({ data: bytecode, arguments: deployArgs }); - const gas = Math.trunc((await deployTx.estimateGas()) * gasMultiplier); + const gas = Math.trunc( + (await deployTx.estimateGas({ from: signer.address })) * gasMultiplier, + ); const gasPrice = Math.trunc( Number(await this.getGasPrice()) * gasPriceMultiplier, ); diff --git a/contract_manager/store/chains/EvmChains.json b/contract_manager/store/chains/EvmChains.json index f3b32c2c16..cd3c17d372 100644 --- a/contract_manager/store/chains/EvmChains.json +++ b/contract_manager/store/chains/EvmChains.json @@ -1335,5 +1335,19 @@ "rpcUrl": "https://rpc.plasma.to/", "networkId": 9745, "type": "EvmChain" + }, + { + "id": "injective_evm", + "mainnet": true, + "rpcUrl": "https://sentry.evm-rpc.injective.network/", + "networkId": 1776, + "type": "EvmChain" + }, + { + "id": "sonic_evm_testnet", + "mainnet": false, + "rpcUrl": "https://rpc.testnet.soniclabs.com", + "networkId": 14601, + "type": "EvmChain" } ] diff --git a/contract_manager/store/contracts/EvmEntropyContracts.json b/contract_manager/store/contracts/EvmEntropyContracts.json index dc320edc46..ff3e378f76 100644 --- a/contract_manager/store/contracts/EvmEntropyContracts.json +++ b/contract_manager/store/contracts/EvmEntropyContracts.json @@ -198,5 +198,10 @@ "chain": "giwa_testnet", "address": "0x0708325268dF9F66270F1401206434524814508b", "type": "EvmEntropyContract" + }, + { + "chain": "sonic_evm_testnet", + "address": "0x8D254a21b3C86D32F7179855531CE99164721933", + "type": "EvmEntropyContract" } ] \ No newline at end of file diff --git a/contract_manager/store/contracts/EvmExecutorContracts.json b/contract_manager/store/contracts/EvmExecutorContracts.json index ad5e9e2dfc..38f0156e33 100644 --- a/contract_manager/store/contracts/EvmExecutorContracts.json +++ b/contract_manager/store/contracts/EvmExecutorContracts.json @@ -233,5 +233,10 @@ "chain": "itsnotreal2", "address": "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb", "type": "EvmExecutorContract" + }, + { + "chain": "sonic_evm_testnet", + "address": "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320", + "type": "EvmExecutorContract" } -] +] \ No newline at end of file diff --git a/contract_manager/store/contracts/EvmPriceFeedContracts.json b/contract_manager/store/contracts/EvmPriceFeedContracts.json index 3d6fe5527b..86c7ae072e 100644 --- a/contract_manager/store/contracts/EvmPriceFeedContracts.json +++ b/contract_manager/store/contracts/EvmPriceFeedContracts.json @@ -878,5 +878,15 @@ "chain": "plasma", "address": "0x2880aB155794e7179c9eE2e38200202908C17B43", "type": "EvmPriceFeedContract" + }, + { + "chain": "sonic_evm_testnet", + "address": "0x2880aB155794e7179c9eE2e38200202908C17B43", + "type": "EvmPriceFeedContract" + }, + { + "chain": "injective_evm", + "address": "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320", + "type": "EvmPriceFeedContract" } ] \ No newline at end of file diff --git a/contract_manager/store/contracts/EvmWormholeContracts.json b/contract_manager/store/contracts/EvmWormholeContracts.json index 799470f937..b7ef9df184 100644 --- a/contract_manager/store/contracts/EvmWormholeContracts.json +++ b/contract_manager/store/contracts/EvmWormholeContracts.json @@ -888,5 +888,15 @@ "chain": "plasma", "address": "0xb27e5ca259702f209a29225d0eDdC131039C9933", "type": "EvmWormholeContract" + }, + { + "chain": "sonic_evm_testnet", + "address": "0xb27e5ca259702f209a29225d0eDdC131039C9933", + "type": "EvmWormholeContract" + }, + { + "chain": "injective_evm", + "address": "0x2880aB155794e7179c9eE2e38200202908C17B43", + "type": "EvmWormholeContract" } -] +] \ No newline at end of file diff --git a/governance/xc_admin/packages/xc_admin_common/src/chains.ts b/governance/xc_admin/packages/xc_admin_common/src/chains.ts index 0ca0906787..d7fc76a1d7 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -120,6 +120,7 @@ export const RECEIVER_CHAINS = { itsnotreal: 60089, // Deprecated plasma: 60090, itsnotreal2: 60091, + injective_evm: 60092, // Testnets as a separate chain ids (to use stable data sources and governance for them) injective_testnet: 60013, @@ -258,6 +259,7 @@ export const RECEIVER_CHAINS = { ethereal_testnet_v2: 50129, fluent_testnet: 50130, giwa_testnet: 50131, + sonic_evm_testnet: 50132, // sonic_testnet already exist, so had to use sonic_evm_testnet }; // If there is any overlapping value the receiver chain will replace the wormhole