From 6d9c31228ab96ffcbbcc9423ef538ba4ce7f8fea Mon Sep 17 00:00:00 2001 From: Trevor Porter Date: Thu, 9 Nov 2023 17:11:06 +0000 Subject: [PATCH] I lied, now typescript builds --- .../environments/mainnet2/validators.ts | 177 ------------------ .../environments/mainnet3/validators.ts | 12 ++ 2 files changed, 12 insertions(+), 177 deletions(-) delete mode 100644 typescript/infra/config/environments/mainnet2/validators.ts diff --git a/typescript/infra/config/environments/mainnet2/validators.ts b/typescript/infra/config/environments/mainnet2/validators.ts deleted file mode 100644 index 945b71ed75..0000000000 --- a/typescript/infra/config/environments/mainnet2/validators.ts +++ /dev/null @@ -1,177 +0,0 @@ -import { chainMetadata } from '@hyperlane-xyz/sdk'; - -import { ValidatorBaseChainConfigMap } from '../../../src/config/agent'; -import { Contexts } from '../../contexts'; -import { validatorBaseConfigsFn } from '../utils'; - -import { environment } from './chains'; - -export const validatorChainConfig = ( - context: Contexts, -): ValidatorBaseChainConfigMap => { - const validatorsConfig = validatorBaseConfigsFn(environment, context); - return { - celo: { - interval: 5, - reorgPeriod: 0, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0x1f20274b1210046769d48174c2f0e7c25ca7d5c5'], - [Contexts.ReleaseCandidate]: [ - '0xe7a82e210f512f8e9900d6bc2acbf7981c63e66e', - ], - [Contexts.Neutron]: [], - }, - 'celo', - ), - }, - ethereum: { - interval: 5, - reorgPeriod: 20, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0x4c327ccb881a7542be77500b2833dc84c839e7b7'], - [Contexts.ReleaseCandidate]: [ - '0xaea1adb1c687b061e5b60b9da84cb69e7b5fab44', - ], - [Contexts.Neutron]: [], - }, - 'ethereum', - ), - }, - avalanche: { - interval: 5, - reorgPeriod: 3, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0xa7aa52623fe3d78c343008c95894be669e218b8d'], - [Contexts.ReleaseCandidate]: [ - '0x706976391e23dea28152e0207936bd942aba01ce', - ], - [Contexts.Neutron]: [], - }, - 'avalanche', - ), - }, - polygon: { - interval: 5, - reorgPeriod: 256, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0x59a001c3451e7f9f3b4759ea215382c1e9aa5fc1'], - [Contexts.ReleaseCandidate]: [ - '0xef372f6ff7775989b3ac884506ee31c79638c989', - ], - [Contexts.Neutron]: [], - }, - 'polygon', - ), - }, - bsc: { - interval: 5, - reorgPeriod: 15, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0xcc84b1eb711e5076b2755cf4ad1d2b42c458a45e'], - [Contexts.ReleaseCandidate]: [ - '0x0823081031a4a6f97c6083775c191d17ca96d0ab', - ], - [Contexts.Neutron]: [], - }, - 'bsc', - ), - }, - arbitrum: { - interval: 5, - reorgPeriod: 0, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0xbcb815f38d481a5eba4d7ac4c9e74d9d0fc2a7e7'], - [Contexts.ReleaseCandidate]: [ - '0x1a95b35fb809d57faf1117c1cc29a6c5df289df1', - ], - [Contexts.Neutron]: [], - }, - 'arbitrum', - ), - }, - optimism: { - interval: 5, - reorgPeriod: 0, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0x9f2296d5cfc6b5176adc7716c7596898ded13d35'], - [Contexts.ReleaseCandidate]: [ - '0x60e938bf280bbc21bacfd8bf435459d9003a8f98', - ], - [Contexts.Neutron]: [], - }, - 'optimism', - ), - }, - moonbeam: { - interval: 5, - reorgPeriod: 2, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0x237243d32d10e3bdbbf8dbcccc98ad44c1c172ea'], - [Contexts.ReleaseCandidate]: [ - '0x0df7140811e309dc69638352545151ebb9d5e0fd', - ], - [Contexts.Neutron]: [], - }, - 'moonbeam', - ), - }, - gnosis: { - interval: 5, - reorgPeriod: 14, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: ['0xd0529ec8df08d0d63c0f023786bfa81e4bb51fd6'], - [Contexts.ReleaseCandidate]: [ - '0x15f48e78092a4f79febface509cfd76467c6cdbb', - ], - [Contexts.Neutron]: [], - }, - 'gnosis', - ), - }, - solana: { - interval: 5, - reorgPeriod: chainMetadata.solana.blocks!.reorgPeriod!, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: [ - '0x3cd1a081f38874bbb075bf10b62adcb858db864c', - '0x28aa072634dd41d19471640237852e807bd9901f', - '0x8a93ba04f4e30064660670cb581d9aa10df78929', - ], - [Contexts.ReleaseCandidate]: [ - '0x8cc7dbfb5de339e4133f3af059c927ec383ace38', - ], - [Contexts.Neutron]: [], - }, - 'solana', - ), - }, - nautilus: { - interval: 5, - reorgPeriod: chainMetadata.nautilus.blocks!.reorgPeriod!, - validators: validatorsConfig( - { - [Contexts.Hyperlane]: [ - '0x9c920af9467595a23cb3433adefc3854d498a437', - '0x12b583ce1623b7de3fc727ccccda24dcab1fe022', - '0xc8b996a421ff1e203070c709c1af93944c049cc0', - ], - [Contexts.ReleaseCandidate]: [ - '0xdaf2e5ddaf2532753dc78bb6fbb0a10204c888c1', - ], - [Contexts.Neutron]: [], - }, - 'nautilus', - ), - }, - }; -}; diff --git a/typescript/infra/config/environments/mainnet3/validators.ts b/typescript/infra/config/environments/mainnet3/validators.ts index fbbc255f64..61cf6f3f1b 100644 --- a/typescript/infra/config/environments/mainnet3/validators.ts +++ b/typescript/infra/config/environments/mainnet3/validators.ts @@ -22,6 +22,7 @@ export const validatorChainConfig = ( '0x7bf30afcb6a7d92146d5a910ea4c154fba38d25e', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'celo', ), @@ -37,6 +38,7 @@ export const validatorChainConfig = ( '0x749d6e7ad949e522c92181dc77f7bbc1c5d71506', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'ethereum', ), @@ -54,6 +56,7 @@ export const validatorChainConfig = ( [Contexts.ReleaseCandidate]: [ '0x706976391e23dea28152e0207936bd942aba01ce', ], + [Contexts.Neutron]: [], }, 'avalanche', ), @@ -69,6 +72,7 @@ export const validatorChainConfig = ( '0xdbf3666de031bea43ec35822e8c33b9a9c610322', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'polygon', ), @@ -84,6 +88,7 @@ export const validatorChainConfig = ( '0x03047213365800f065356b4a2fe97c3c3a52296a', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'bsc', ), @@ -99,6 +104,7 @@ export const validatorChainConfig = ( '0x3369e12edd52570806f126eb50be269ba5e65843', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'arbitrum', ), @@ -116,6 +122,7 @@ export const validatorChainConfig = ( [Contexts.ReleaseCandidate]: [ '0x60e938bf280bbc21bacfd8bf435459d9003a8f98', ], + [Contexts.Neutron]: [], }, 'optimism', ), @@ -131,6 +138,7 @@ export const validatorChainConfig = ( '0xcc4a78aa162482bea43313cd836ba7b560b44fc4', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'moonbeam', ), @@ -146,6 +154,7 @@ export const validatorChainConfig = ( '0xb93a72cee19402553c9dd7fed2461aebd04e2454', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'gnosis', ), @@ -161,6 +170,7 @@ export const validatorChainConfig = ( '0xb144bb2f599a5af095bc30367856f27ea8a8adc7', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'base', ), @@ -176,6 +186,7 @@ export const validatorChainConfig = ( '0x7210fa0a6be39a75cb14d682ebfb37e2b53ecbe5', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'scroll', ), @@ -191,6 +202,7 @@ export const validatorChainConfig = ( '0x6a1da2e0b7ae26aaece1377c0a4dbe25b85fa3ca', ], [Contexts.ReleaseCandidate]: [], + [Contexts.Neutron]: [], }, 'polygonzkevm', ),