Skip to content

Commit

Permalink
chore(target_chains/ethereum): add new networks
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-bahjati committed Nov 20, 2024
1 parent f68b5d5 commit e082f76
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 8 deletions.
26 changes: 23 additions & 3 deletions contract_manager/store/chains/EvmChains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@
type: EvmChain
- id: kraken_ink_testnet
mainnet: false
rpcUrl: https://patient-cool-emerald.ink-sepolia.quiknode.pro/{KRAKEN_INK_API_KEY}
rpcUrl: https://patient-cool-emerald.ink-sepolia.quiknode.pro/$ENV_KRAKEN_INK_API_KEY
networkId: 763373
type: EvmChain
- id: ethena_testnet
Expand All @@ -767,16 +767,36 @@
type: EvmChain
- id: superseed_mainnet
mainnet: true
rpcUrl: https://rpc-superseed-mainnet-0.t.conduit.xyz/{SUPERSEED_API_KEY}
rpcUrl: https://rpc-superseed-mainnet-0.t.conduit.xyz/$ENV_SUPERSEED_API_KEY
networkId: 5330
type: EvmChain
- id: superseed_testnet
mainnet: false
rpcUrl: https://rpc-sepolia-superseed-826s35710w.t.conduit.xyz/{SUPERSEED_API_KEY}
rpcUrl: https://rpc-sepolia-superseed-826s35710w.t.conduit.xyz/$ENV_SUPERSEED_API_KEY
networkId: 53302
type: EvmChain
- id: hemi_mainnet
mainnet: true
rpcUrl: https://7e57304f.rpc.hemi.network/rpc
networkId: 43111
type: EvmChain
- id: hyperevm_testnet
mainnet: false
rpcUrl: https://api.hyperliquid-testnet.xyz/evm
networkId: 998
type: EvmChain
- id: happy_bird_song_ends_with_tio
mainnet: false
rpcUrl: https://happy_bird_song_ends_with_tio.com
networkId: 80000
type: EvmChain
- id: horse_dream
mainnet: true
rpcUrl: https://redacted.quiknode.pro/$ENV_UNICHAIN_API_KEY
networkId: 130
type: EvmChain
- id: mathematician_in_heart
mainnet: true
rpcUrl: https://redacted.master.dev/
networkId: 2741
type: EvmChain
6 changes: 6 additions & 0 deletions contract_manager/store/contracts/EvmEntropyContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,9 @@
- chain: abstract_testnet
address: "0x858687fD592112f7046E394A3Bf10D0C11fF9e63"
type: EvmEntropyContract
- chain: horse_dream
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
type: EvmEntropyContract
- chain: mathematician_in_heart
address: "0x5a4a369F4db5df2054994AF031b7b23949b98c0e"
type: EvmEntropyContract
9 changes: 9 additions & 0 deletions contract_manager/store/contracts/EvmPriceFeedContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -430,3 +430,12 @@
- chain: tabi_testnet
address: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb"
type: EvmPriceFeedContract
- chain: hyperevm_testnet
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
- chain: horse_dream
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
- chain: mathematician_in_heart
address: "0x8739d5024B5143278E2b15Bd9e7C26f6CEc658F1"
type: EvmPriceFeedContract
9 changes: 9 additions & 0 deletions contract_manager/store/contracts/EvmWormholeContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,12 @@
- chain: tabi_testnet
address: "0x35a58BeeE77a2Ad547FcDed7e8CB1c6e19746b13"
type: EvmWormholeContract
- chain: hyperevm_testnet
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
- chain: horse_dream
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
- chain: mathematician_in_heart
address: "0x056f829183Ec806A78c26C98961678c24faB71af"
type: EvmWormholeContract
5 changes: 5 additions & 0 deletions governance/xc_admin/packages/xc_admin_common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ export const RECEIVER_CHAINS = {
fuel_mainnet: 60067, // Note: Currently deployed at 50084 (fuel_testnet) but we should use 60067 for future deployments
hemi_mainnet: 60068,
ton_mainnet: 60069,
horse_dream: 60070,
mathematician_in_heart: 60071,

// Testnets as a separate chain ids (to use stable data sources and governance for them)
injective_testnet: 60013,
osmosis_testnet_4: 60015,
Expand Down Expand Up @@ -209,6 +212,8 @@ export const RECEIVER_CHAINS = {
kraken_ink_testnet: 50105,
ethena_testnet: 50106,
superseed_testnet: 50107,
happy_bird_song_ends_with_tio: 50108,
hyperevm_testnet: 50109,
};

// If there is any overlapping value the receiver chain will replace the wormhole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default async function (hre: HardhatRuntimeEnvironment) {
wormholeInitialSigners,
governanceEmitter,
governanceChainId,
chainName,
} = getDefaultConfig(envOrErr("MIGRATIONS_NETWORK"));
const chainName = envOrErr("MIGRATIONS_NETWORK");

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

console.log("Saving the contract in the store...");
const contract = new EvmEntropyContract(chainName, entropyContractAddress);
const chain = DefaultStore.chains[chainName];
const contract = new EvmEntropyContract(chain, entropyContractAddress);
DefaultStore.entropy_contracts[contract.getId()] = contract;
DefaultStore.saveAllContracts();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export default async function (hre: HardhatRuntimeEnvironment) {
wormholeReceiverContractAddress = await deployWormholeContract(
deployer,
chainName,
wormholeReceiverChainId,
wormholeGovernanceChainId,
wormholeGovernanceContract,
wormholeInitialSigners
wormholeInitialSigners,
wormholeReceiverChainId
);
}

Expand Down
8 changes: 7 additions & 1 deletion target_chains/ethereum/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
},
},
},
defaultNetwork: "abstractTestnet",
defaultNetwork: "mathMainnet",
networks: {
// [process.env.MIGRATIONS_NETWORK!]: {
// url: process.env.RPC_URL,
Expand Down Expand Up @@ -60,6 +60,12 @@ module.exports = {
verifyURL:
"https://api-explorer-verify.testnet.abs.xyz/contract_verification",
},
mathMainnet: {
url: "https://redacted.master.dev/",
ethNetwork: "mainnet",
zksync: true,
verifyURL: "https://redacted.master.dev/contract_verification",
},
},
etherscan: {
apiKey: {
Expand Down

0 comments on commit e082f76

Please sign in to comment.