Skip to content

Commit

Permalink
Note on ancient8
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Jan 4, 2024
1 parent 6138ab7 commit 695d5de
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
4 changes: 2 additions & 2 deletions typescript/infra/config/environments/mainnet3/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const hyperlane: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '34611f0-20231218-204504',
tag: '5423057-20240103-221936',
},
gasPaymentEnforcement,
},
Expand All @@ -59,7 +59,7 @@ const hyperlane: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '34611f0-20231218-204504',
tag: '5423057-20240103-221936',
},
},
};
Expand Down
14 changes: 10 additions & 4 deletions typescript/infra/config/environments/mainnet3/chains.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
ChainMap,
ChainMetadata,
Chains,
Mainnets,
chainMetadata,
} from '@hyperlane-xyz/sdk';
Expand Down Expand Up @@ -69,16 +70,21 @@ export const ethereumChainNames = Object.keys(
) as MainnetChains[];

// Remove mantapacific, as it's not considered a "blessed"
// chain. It's not included in the scraper domains table,
// and we don't relay to mantapacific on the Hyperlane or RC contexts.
// chain - we don't relay to mantapacific on the Hyperlane or RC contexts.
const hyperlaneContextRelayChains = ethereumChainNames.filter(
(chainName) => chainName !== chainMetadata.mantapacific.name,
(chainName) => chainName !== Chains.mantapacific,
);

// Skip viction, as it returns incorrect block hashes for eth_getLogs RPCs,
// which breaks the scraper.
const scraperChains = ethereumChainNames.filter(
(chainName) => chainName !== Chains.viction,
);

// Hyperlane & RC context agent chain names.
export const agentChainNames: AgentChainNames = {
// Run validators for all chains.
[Role.Validator]: supportedChainNames,
[Role.Relayer]: hyperlaneContextRelayChains,
[Role.Scraper]: hyperlaneContextRelayChains,
[Role.Scraper]: scraperChains,
};
4 changes: 2 additions & 2 deletions typescript/infra/config/environments/testnet4/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const hyperlane: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '34611f0-20231218-204504',
tag: '5423057-20240103-221936',
},
blacklist: [
...releaseCandidateHelloworldMatchingList,
Expand All @@ -74,7 +74,7 @@ const hyperlane: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '86b7f98-20231207-153805',
tag: '5423057-20240103-221936',
},
},
};
Expand Down
8 changes: 7 additions & 1 deletion typescript/infra/config/environments/testnet4/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,15 @@ export const testnetConfigs: ChainMap<ChainMetadata> = {
export const supportedChainNames = Object.keys(testnetConfigs);
export const environment = 'testnet4';

// Ancient8's domain ID is too high for the current schema used by
// the scraper. See https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/3121
const scraperChains = supportedChainNames.filter(
(chain) => chain !== Chains.ancient8testnet,
);

// Hyperlane & RC context agent chain names.
export const agentChainNames: AgentChainNames = {
[Role.Validator]: supportedChainNames,
[Role.Relayer]: supportedChainNames,
[Role.Scraper]: supportedChainNames,
[Role.Scraper]: scraperChains,
};

0 comments on commit 695d5de

Please sign in to comment.