Skip to content

Commit 7aebe7a

Browse files
authored
chore(contract manager): Remove old chains and contracts (#2690)
* remove dead chains * more dead chains
1 parent f394787 commit 7aebe7a

File tree

5 files changed

+4
-67
lines changed

5 files changed

+4
-67
lines changed

contract_manager/src/chains.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,10 @@ export class EvmChain extends Chain {
563563
web3.eth.accounts.wallet.add(signer);
564564
const contract = new web3.eth.Contract(abi);
565565
const deployTx = contract.deploy({ data: bytecode, arguments: deployArgs });
566-
const gas = (await deployTx.estimateGas()) * gasMultiplier;
567-
const gasPrice = Number(await this.getGasPrice()) * gasPriceMultiplier;
566+
const gas = Math.trunc((await deployTx.estimateGas()) * gasMultiplier);
567+
const gasPrice = Math.trunc(
568+
Number(await this.getGasPrice()) * gasPriceMultiplier,
569+
);
568570
const deployerBalance = await web3.eth.getBalance(signer.address);
569571
const gasDiff = BigInt(gas) * BigInt(gasPrice) - BigInt(deployerBalance);
570572
if (gasDiff > 0n) {

contract_manager/store/chains/EvmChains.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -491,11 +491,6 @@
491491
rpcUrl: https://evm-rpc-testnet.sei-apis.com
492492
networkId: 1328
493493
type: EvmChain
494-
- id: fantom_sonic_testnet
495-
mainnet: false
496-
rpcUrl: https://rpc.testnet.soniclabs.com
497-
networkId: 64165
498-
type: EvmChain
499494
- id: dela_deperp_testnet
500495
mainnet: false
501496
rpcUrl: https://sepolia-dela.deperp.com
@@ -598,11 +593,6 @@
598593
rpcUrl: https://rpc-kakarot-sepolia.karnot.xyz/
599594
networkId: 920637907288165
600595
type: EvmChain
601-
- id: berachain_testnet_v2
602-
mainnet: false
603-
rpcUrl: https://evm-rpc-bera.rhino-apis.com/
604-
networkId: 80084
605-
type: EvmChain
606596
- id: opbnb
607597
mainnet: true
608598
rpcUrl: https://opbnb-mainnet-rpc.bnbchain.org
@@ -784,11 +774,6 @@
784774
rpcUrl: https://api.hyperliquid-testnet.xyz/evm
785775
networkId: 998
786776
type: EvmChain
787-
- id: happy_bird_song_ends_with_tio
788-
mainnet: false
789-
rpcUrl: https://happy_bird_song_ends_with_tio.com
790-
networkId: 80000
791-
type: EvmChain
792777
- id: unichain
793778
mainnet: true
794779
rpcUrl: https://redacted.quiknode.pro/$ENV_UNICHAIN_API_KEY
@@ -839,11 +824,6 @@
839824
rpcUrl: $KRAKEN_INK_RPC_URL
840825
networkId: 57073
841826
type: EvmChain
842-
- id: monad_devnet
843-
mainnet: false
844-
rpcUrl: https://rpc-devnet.monadinfra.com/rpc/dT2y6zgpggQ20WuJZ3corhJwfh9NwJPM
845-
networkId: 20143
846-
type: EvmChain
847827
- id: coredao_testnet_v2
848828
mainnet: false
849829
rpcUrl: https://rpc.test2.btcs.network

contract_manager/store/contracts/EvmEntropyContracts.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
- chain: chiliz_spicy
55
address: "0xD458261E832415CFd3BAE5E416FdF3230ce6F134"
66
type: EvmEntropyContract
7-
- chain: conflux_espace_testnet
8-
address: "0xdF21D137Aadc95588205586636710ca2890538d5"
9-
type: EvmEntropyContract
107
- chain: mode_testnet
118
address: "0x98046Bd286715D3B0BC227Dd7a956b83D8978603"
129
type: EvmEntropyContract
@@ -70,9 +67,6 @@
7067
- chain: merlin_testnet
7168
address: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb"
7269
type: EvmEntropyContract
73-
- chain: berachain_testnet_v2
74-
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
75-
type: EvmEntropyContract
7670
- chain: etherlink_testnet
7771
address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
7872
type: EvmEntropyContract
@@ -103,9 +97,6 @@
10397
- chain: apechain_mainnet
10498
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
10599
type: EvmEntropyContract
106-
- chain: fantom_sonic_testnet
107-
address: "0x5124FAE0890dE83B3bb2cc30Bb3EDAfFc07Da744"
108-
type: EvmEntropyContract
109100
- chain: sanko
110101
address: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb"
111102
type: EvmEntropyContract
@@ -121,9 +112,6 @@
121112
- chain: abstract
122113
address: "0x5a4a369F4db5df2054994AF031b7b23949b98c0e"
123114
type: EvmEntropyContract
124-
- chain: happy_bird_song_ends_with_tio
125-
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
126-
type: EvmEntropyContract
127115
- chain: sonic_blaze_testnet
128116
address: "0xEbe57e8045F2F230872523bbff7374986E45C486"
129117
type: EvmEntropyContract
@@ -136,9 +124,6 @@
136124
- chain: tabi_testnet
137125
address: "0xEbe57e8045F2F230872523bbff7374986E45C486"
138126
type: EvmEntropyContract
139-
- chain: monad_devnet
140-
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
141-
type: EvmEntropyContract
142127
- chain: monad_testnet
143128
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
144129
type: EvmEntropyContract

contract_manager/store/contracts/EvmPriceFeedContracts.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,6 @@
325325
- chain: dela_mithreum_deperp_testnet
326326
address: "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc"
327327
type: EvmPriceFeedContract
328-
- chain: berachain_testnet_v2
329-
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
330-
type: EvmPriceFeedContract
331328
- chain: opbnb
332329
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
333330
type: EvmPriceFeedContract
@@ -391,9 +388,6 @@
391388
- chain: flow_mainnet
392389
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
393390
type: EvmPriceFeedContract
394-
- chain: fantom_sonic_testnet
395-
address: "0x96124d1F6E44FfDf1fb5D6d74BB2DE1B7Fbe7376"
396-
type: EvmPriceFeedContract
397391
- chain: abstract_testnet
398392
address: "0x47F2A9BDAd52d65b66287253cf5ca0D2b763b486"
399393
type: EvmPriceFeedContract
@@ -439,18 +433,12 @@
439433
- chain: abstract
440434
address: "0x8739d5024B5143278E2b15Bd9e7C26f6CEc658F1"
441435
type: EvmPriceFeedContract
442-
- chain: happy_bird_song_ends_with_tio
443-
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
444-
type: EvmPriceFeedContract
445436
- chain: eventum_testnet
446437
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
447438
type: EvmPriceFeedContract
448439
- chain: sonic_blaze_testnet
449440
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
450441
type: EvmPriceFeedContract
451-
- chain: happy_bird_song_ends_with_tio
452-
address: "0xDd24F84d36BF92C65F92307595335bdFab5Bbd21"
453-
type: EvmPriceFeedContract
454442
- chain: fantom_sonic_mainnet
455443
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
456444
type: EvmPriceFeedContract
@@ -466,9 +454,6 @@
466454
- chain: coredao_testnet_v2
467455
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
468456
type: EvmPriceFeedContract
469-
- chain: monad_devnet
470-
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
471-
type: EvmPriceFeedContract
472457
- chain: monad_testnet
473458
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
474459
type: EvmPriceFeedContract

contract_manager/store/contracts/EvmWormholeContracts.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,6 @@
307307
- chain: dela_mithreum_deperp_testnet
308308
address: "0x66E9cBa5529824a03B5Bc9931d9c63637101D0F7"
309309
type: EvmWormholeContract
310-
- chain: berachain_testnet_v2
311-
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
312-
type: EvmWormholeContract
313310
- chain: opbnb
314311
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
315312
type: EvmWormholeContract
@@ -379,9 +376,6 @@
379376
- chain: flow_mainnet
380377
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
381378
type: EvmWormholeContract
382-
- chain: fantom_sonic_testnet
383-
address: "0xb700C2f6D14e2cfbD0845Bb102701dBDFf5d1bC4"
384-
type: EvmWormholeContract
385379
- chain: abstract_testnet
386380
address: "0xB1DB1498902F08E16E11F1a423ec9CCB9537E1D6"
387381
type: EvmWormholeContract
@@ -433,18 +427,12 @@
433427
- chain: abstract
434428
address: "0x056f829183Ec806A78c26C98961678c24faB71af"
435429
type: EvmWormholeContract
436-
- chain: happy_bird_song_ends_with_tio
437-
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
438-
type: EvmWormholeContract
439430
- chain: eventum_testnet
440431
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
441432
type: EvmWormholeContract
442433
- chain: sonic_blaze_testnet
443434
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
444435
type: EvmWormholeContract
445-
- chain: happy_bird_song_ends_with_tio
446-
address: "0x0708325268dF9F66270F1401206434524814508b"
447-
type: EvmWormholeContract
448436
- chain: fantom_sonic_mainnet
449437
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
450438
type: EvmWormholeContract
@@ -460,9 +448,6 @@
460448
- chain: coredao_testnet_v2
461449
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
462450
type: EvmWormholeContract
463-
- chain: monad_devnet
464-
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
465-
type: EvmWormholeContract
466451
- chain: monad_testnet
467452
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
468453
type: EvmWormholeContract

0 commit comments

Comments
 (0)