Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ancient8 deploy #3075

Merged
merged 21 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 64 additions & 17 deletions rust/config/testnet4_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,37 +101,85 @@
"from": 20566929
}
},
"arbitrumgoerli": {
"chainId": 421613,
"domainId": 421613,
"name": "arbitrumgoerli",
"protocol": "ethereum",
"displayName": "Arbitrum Goerli",
"displayNameShort": "Arb. Goerli",
"ancient8testnet": {
"blockExplorers": [
{
"apiUrl": "https://testnet.a8scan.io/api",
"family": "blockscout",
"name": "a8scan",
"url": "https://testnet.a8scan.io"
}
],
"chainId": 2863311531,
"blocks": {
"confirmations": 1,
"estimateBlockTime": 2,
"reorgPeriod": 0
},
"displayName": "Ancient 8 Testnet",
"domainId": 2863311531,
"isTestnet": true,
"name": "ancient8testnet",
"nativeToken": {
"decimals": 18,
"name": "Ether",
"symbol": "ETH",
"decimals": 18
"symbol": "ETH"
},
"protocol": "ethereum",
"rpcUrls": [
{
"http": "https://goerli-rollup.arbitrum.io/rpc"
"http": "https://rpc-testnet.ancient8.gg"
}
],
"merkleRootMultisigIsmFactory": "0x6E7b29CB2A7617405B4d30C6f84bBD51b4Bb4be8",
"messageIdMultisigIsmFactory": "0xfc6e546510dC9d76057F1f76633FCFfC188CB213",
"aggregationIsmFactory": "0x275aCcCa81cAD931dC6fB6E49ED233Bc99Bed4A7",
"aggregationHookFactory": "0xeb6f11189197223c656807a83B0DD374f9A6dF44",
"routingIsmFactory": "0x16B710b86CAd07E6F1C531861a16F5feC29dba37",
"mailbox": "0x6966b0E55883d49BFB24539356a2f8A673E02039",
"proxyAdmin": "0x44b764045BfDC68517e10e783E69B376cef196B2",
"validatorAnnounce": "0xD0680F80F4f947968206806C2598Cbc5b6FE5b03",
"interchainSecurityModule": "0x4ac19e0bafc2aF6B98094F0a1B817dF196551219",
"merkleTreeHook": "0x3707bc8C7342aA6f693bCe1Bd7671Fca146F7F0A",
"fallbackRoutingHook": "0x863E8c26621c52ACa1849C53500606e73BA272F0",
"storageGasOracle": "0x6b1bb4ce664Bb4164AEB4d3D2E7DE7450DD8084C",
"interchainGasPaymaster": "0x86fb9F1c124fB20ff130C41a79a432F770f67AFD",
"protocolFee": "0x267B6B6eAf6790faE5D5E9070F28a9cE64CbF279",
"index": {
"from": 6511770
}
},
"arbitrumgoerli": {
"blockExplorers": [
{
"name": "Arbiscan",
"url": "https://goerli.arbiscan.io",
"apiUrl": "https://api-goerli.arbiscan.io/api",
"family": "etherscan"
"family": "etherscan",
"name": "Arbiscan",
"url": "https://goerli.arbiscan.io"
}
],
"blocks": {
"confirmations": 1,
"reorgPeriod": 1,
"estimateBlockTime": 3
"estimateBlockTime": 3,
"reorgPeriod": 1
},
"chainId": 421613,
"displayName": "Arbitrum Goerli",
"displayNameShort": "Arb. Goerli",
"domainId": 421613,
"isTestnet": true,
"name": "arbitrumgoerli",
"nativeToken": {
"decimals": 18,
"name": "Ether",
"symbol": "ETH"
},
"protocol": "ethereum",
"rpcUrls": [
{
"http": "https://goerli-rollup.arbitrum.io/rpc"
}
],
"merkleRootMultisigIsmFactory": "0x17D58eBb5Ea0E2d360c877E119FAef4C4052e6B9",
"messageIdMultisigIsmFactory": "0x922CeEe9e8832a047e6aD68Df4F079F271b73Ac3",
"aggregationIsmFactory": "0xC5Bb8CDD44B6c56695df45c7AA8012a97dD6ED13",
Expand All @@ -140,13 +188,12 @@
"proxyAdmin": "0x00DFB81Bfc45fa03060b605273147F274ea807E5",
"mailbox": "0x13dABc0351407d5aAa0A50003a166A73b4febfDc",
"validatorAnnounce": "0x4a01EEBa1CC20F47A2e60aE4ec932051601FcB9e",
"defaultIsm": "0x8C841784947dEa42f78263D54bec15c0cF65fA22",
"merkleTreeHook": "0xf0A38e1eEA49dAc7968F470c3aA0BDE2565A5d80",
"storageGasOracle": "0xFc8229ADB46D96056A6e451Fb3c55d60FFeD056f",
"interchainGasPaymaster": "0x76189acFA212298d7022624a4633411eE0d2f26F",
"aggregationHook": "0xf852EB6b98d84A4296754043a56759a0Ae0E06df",
"protocolFee": "0x0358ba0D90ED2d90fB8cBb610F27C274D8077a0B",
"fallbackRoutingHook": "0x3Ce607F6FcE5Dfb9821f33504d86E04A4CD0C75f",
"fallbackRoutingHook": "0xEdA6f85f4761A1f9e42FD40CA5a4E8Ce1C764015",
"index": {
"from": 50669378
}
Expand Down
65 changes: 28 additions & 37 deletions typescript/infra/config/environments/testnet4/chains.ts
Original file line number Diff line number Diff line change
@@ -1,55 +1,46 @@
import { ChainMap, ChainMetadata, chainMetadata } from '@hyperlane-xyz/sdk';
import {
ChainMap,
ChainMetadata,
Chains,
chainMetadata,
} from '@hyperlane-xyz/sdk';

import { AgentChainNames, Role } from '../../../src/roles';

// Blessed
export const ethereumTestnetConfigs: ChainMap<ChainMetadata> = {
alfajores: chainMetadata.alfajores,
basegoerli: chainMetadata.basegoerli,
fuji: chainMetadata.fuji,
const selectedChains = [
Chains.alfajores,
Chains.ancient8testnet,
Chains.arbitrumgoerli,
Chains.basegoerli,
Chains.bsctestnet,
Chains.fuji,
Chains.goerli,
Chains.moonbasealpha,
Chains.optimismgoerli,
Chains.polygonzkevmtestnet,
Chains.scrollsepolia,
Chains.sepolia,
];

export const testnetConfigs: ChainMap<ChainMetadata> = {
...Object.fromEntries(
selectedChains.map((chain) => [chain, chainMetadata[chain]]),
),
mumbai: {
...chainMetadata.mumbai,
transactionOverrides: {
maxFeePerGas: 150 * 10 ** 9, // 70 gwei
maxPriorityFeePerGas: 40 * 10 ** 9, // 40 gwei
},
},
bsctestnet: chainMetadata.bsctestnet,
goerli: chainMetadata.goerli,
scrollsepolia: chainMetadata.scrollsepolia,
sepolia: chainMetadata.sepolia,
moonbasealpha: chainMetadata.moonbasealpha,
optimismgoerli: chainMetadata.optimismgoerli,
arbitrumgoerli: chainMetadata.arbitrumgoerli,
polygonzkevmtestnet: chainMetadata.polygonzkevmtestnet,
};

// Blessed non-Ethereum chains.
export const nonEthereumTestnetConfigs: ChainMap<ChainMetadata> = {
// solanadevnet: chainMetadata.solanadevnet,
// neutrontestnet: chainMetadata.neutrontestnet,
};

export const testnetConfigs: ChainMap<ChainMetadata> = {
...ethereumTestnetConfigs,
...nonEthereumTestnetConfigs,
};

export type TestnetChains = keyof typeof testnetConfigs;
export const supportedChainNames = Object.keys(
testnetConfigs,
) as TestnetChains[];
export const supportedChainNames = Object.keys(testnetConfigs);
export const environment = 'testnet4';

export const ethereumChainNames = Object.keys(
ethereumTestnetConfigs,
) as TestnetChains[];

// Hyperlane & RC context agent chain names.
export const agentChainNames: AgentChainNames = {
// Run validators for all chains.
[Role.Validator]: supportedChainNames,
// Only run relayers for Ethereum chains at the moment.
[Role.Relayer]: ethereumChainNames,
[Role.Scraper]: ethereumChainNames,
[Role.Relayer]: supportedChainNames,
[Role.Scraper]: supportedChainNames,
};
Loading
Loading