Skip to content

Commit b805816

Browse files
authored
chore(target_chains/ethereum): add new networks (#2138)
1 parent f68b5d5 commit b805816

File tree

8 files changed

+64
-8
lines changed

8 files changed

+64
-8
lines changed

contract_manager/store/chains/EvmChains.yaml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@
757757
type: EvmChain
758758
- id: kraken_ink_testnet
759759
mainnet: false
760-
rpcUrl: https://patient-cool-emerald.ink-sepolia.quiknode.pro/{KRAKEN_INK_API_KEY}
760+
rpcUrl: https://patient-cool-emerald.ink-sepolia.quiknode.pro/$ENV_KRAKEN_INK_API_KEY
761761
networkId: 763373
762762
type: EvmChain
763763
- id: ethena_testnet
@@ -767,16 +767,36 @@
767767
type: EvmChain
768768
- id: superseed_mainnet
769769
mainnet: true
770-
rpcUrl: https://rpc-superseed-mainnet-0.t.conduit.xyz/{SUPERSEED_API_KEY}
770+
rpcUrl: https://rpc-superseed-mainnet-0.t.conduit.xyz/$ENV_SUPERSEED_API_KEY
771771
networkId: 5330
772772
type: EvmChain
773773
- id: superseed_testnet
774774
mainnet: false
775-
rpcUrl: https://rpc-sepolia-superseed-826s35710w.t.conduit.xyz/{SUPERSEED_API_KEY}
775+
rpcUrl: https://rpc-sepolia-superseed-826s35710w.t.conduit.xyz/$ENV_SUPERSEED_API_KEY
776776
networkId: 53302
777777
type: EvmChain
778778
- id: hemi_mainnet
779779
mainnet: true
780780
rpcUrl: https://7e57304f.rpc.hemi.network/rpc
781781
networkId: 43111
782782
type: EvmChain
783+
- id: hyperevm_testnet
784+
mainnet: false
785+
rpcUrl: https://api.hyperliquid-testnet.xyz/evm
786+
networkId: 998
787+
type: EvmChain
788+
- id: happy_bird_song_ends_with_tio
789+
mainnet: false
790+
rpcUrl: https://happy_bird_song_ends_with_tio.com
791+
networkId: 80000
792+
type: EvmChain
793+
- id: horse_dream
794+
mainnet: true
795+
rpcUrl: https://redacted.quiknode.pro/$ENV_UNICHAIN_API_KEY
796+
networkId: 130
797+
type: EvmChain
798+
- id: mathematician_in_heart
799+
mainnet: true
800+
rpcUrl: https://redacted.master.dev/
801+
networkId: 2741
802+
type: EvmChain

contract_manager/store/contracts/EvmEntropyContracts.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@
115115
- chain: abstract_testnet
116116
address: "0x858687fD592112f7046E394A3Bf10D0C11fF9e63"
117117
type: EvmEntropyContract
118+
- chain: horse_dream
119+
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
120+
type: EvmEntropyContract
121+
- chain: mathematician_in_heart
122+
address: "0x5a4a369F4db5df2054994AF031b7b23949b98c0e"
123+
type: EvmEntropyContract

contract_manager/store/contracts/EvmPriceFeedContracts.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,3 +430,12 @@
430430
- chain: tabi_testnet
431431
address: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb"
432432
type: EvmPriceFeedContract
433+
- chain: hyperevm_testnet
434+
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
435+
type: EvmPriceFeedContract
436+
- chain: horse_dream
437+
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
438+
type: EvmPriceFeedContract
439+
- chain: mathematician_in_heart
440+
address: "0x8739d5024B5143278E2b15Bd9e7C26f6CEc658F1"
441+
type: EvmPriceFeedContract

contract_manager/store/contracts/EvmWormholeContracts.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,3 +424,12 @@
424424
- chain: tabi_testnet
425425
address: "0x35a58BeeE77a2Ad547FcDed7e8CB1c6e19746b13"
426426
type: EvmWormholeContract
427+
- chain: hyperevm_testnet
428+
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
429+
type: EvmWormholeContract
430+
- chain: horse_dream
431+
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
432+
type: EvmWormholeContract
433+
- chain: mathematician_in_heart
434+
address: "0x056f829183Ec806A78c26C98961678c24faB71af"
435+
type: EvmWormholeContract

governance/xc_admin/packages/xc_admin_common/src/chains.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ export const RECEIVER_CHAINS = {
9696
fuel_mainnet: 60067, // Note: Currently deployed at 50084 (fuel_testnet) but we should use 60067 for future deployments
9797
hemi_mainnet: 60068,
9898
ton_mainnet: 60069,
99+
horse_dream: 60070,
100+
mathematician_in_heart: 60071,
101+
99102
// Testnets as a separate chain ids (to use stable data sources and governance for them)
100103
injective_testnet: 60013,
101104
osmosis_testnet_4: 60015,
@@ -209,6 +212,8 @@ export const RECEIVER_CHAINS = {
209212
kraken_ink_testnet: 50105,
210213
ethena_testnet: 50106,
211214
superseed_testnet: 50107,
215+
happy_bird_song_ends_with_tio: 50108,
216+
hyperevm_testnet: 50109,
212217
};
213218

214219
// If there is any overlapping value the receiver chain will replace the wormhole

target_chains/ethereum/contracts/deploy/zkSyncDeployEntropy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export default async function (hre: HardhatRuntimeEnvironment) {
4343
wormholeInitialSigners,
4444
governanceEmitter,
4545
governanceChainId,
46-
chainName,
4746
} = getDefaultConfig(envOrErr("MIGRATIONS_NETWORK"));
47+
const chainName = envOrErr("MIGRATIONS_NETWORK");
4848

4949
const wormholeReceiverChainId = CHAINS[chainName];
5050
assert(wormholeReceiverChainId !== undefined);
@@ -90,7 +90,8 @@ export default async function (hre: HardhatRuntimeEnvironment) {
9090
console.log("Entropy contract address:", entropyContractAddress);
9191

9292
console.log("Saving the contract in the store...");
93-
const contract = new EvmEntropyContract(chainName, entropyContractAddress);
93+
const chain = DefaultStore.chains[chainName];
94+
const contract = new EvmEntropyContract(chain, entropyContractAddress);
9495
DefaultStore.entropy_contracts[contract.getId()] = contract;
9596
DefaultStore.saveAllContracts();
9697
}

target_chains/ethereum/contracts/deploy/zkSyncDeployPriceFeed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export default async function (hre: HardhatRuntimeEnvironment) {
6464
wormholeReceiverContractAddress = await deployWormholeContract(
6565
deployer,
6666
chainName,
67-
wormholeReceiverChainId,
6867
wormholeGovernanceChainId,
6968
wormholeGovernanceContract,
70-
wormholeInitialSigners
69+
wormholeInitialSigners,
70+
wormholeReceiverChainId
7171
);
7272
}
7373

target_chains/ethereum/contracts/hardhat.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
},
1616
},
1717
},
18-
defaultNetwork: "abstractTestnet",
18+
defaultNetwork: "mathMainnet",
1919
networks: {
2020
// [process.env.MIGRATIONS_NETWORK!]: {
2121
// url: process.env.RPC_URL,
@@ -60,6 +60,12 @@ module.exports = {
6060
verifyURL:
6161
"https://api-explorer-verify.testnet.abs.xyz/contract_verification",
6262
},
63+
mathMainnet: {
64+
url: "https://redacted.master.dev/",
65+
ethNetwork: "mainnet",
66+
zksync: true,
67+
verifyURL: "https://redacted.master.dev/contract_verification",
68+
},
6369
},
6470
etherscan: {
6571
apiKey: {

0 commit comments

Comments
 (0)