chore: update infra service images (key funder, kathy) (#3843)

### Description

- Updates key funder and kathy images on testnet4 and mainnet3
- Sorts desired balances and is more explicit about requirements for
kathy chains
(https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/3732 will
expand on this to make sure we keep this up to date)
- I found it surprising that if the kathy balance wasn't specified in
the config, then key funder would default to funding the full relayer
amount. Made this not be the case

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->

---------

Co-authored-by: Paul Balaji <paul@hyperlane.xyz>
cli-patches
Trevor Porter 6 months ago committed by GitHub
parent f2dc925cb3
commit 704675c7e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 24
      typescript/infra/config/environments/mainnet3/funding.ts
  2. 4
      typescript/infra/config/environments/mainnet3/helloworld.ts
  3. 10
      typescript/infra/config/environments/testnet4/funding.ts
  4. 4
      typescript/infra/config/environments/testnet4/helloworld.ts
  5. 16
      typescript/infra/scripts/funding/fund-keys-from-deployer.ts

@ -9,7 +9,7 @@ import { environment } from './chains.js';
export const keyFunderConfig: KeyFunderConfig = {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: '375ec39-20240520-160456',
tag: 'b22a0f4-20240523-140812',
},
// We're currently using the same deployer/key funder key as mainnet2.
// To minimize nonce clobbering we offset the key funder cron
@ -26,41 +26,47 @@ export const keyFunderConfig: KeyFunderConfig = {
connectionType: RpcConsensusType.Fallback,
// desired balance config
desiredBalancePerChain: {
arbitrum: '0.5',
ancient8: '0.5',
avalanche: '5',
bsc: '5',
base: '0.5',
blast: '0.2',
bsc: '5',
celo: '3',
ethereum: '0.5',
gnosis: '5',
inevm: '3',
mantapacific: '0.2',
mode: '0.2',
moonbeam: '5',
polygon: '20',
viction: '3',
// Funder boosts itself upto 5x balance on L2 before dispersing funds
arbitrum: '0.5',
base: '0.5',
optimism: '0.5',
polygon: '20',
polygonzkevm: '0.5',
scroll: '0.5',
ancient8: '0.5',
redstone: '0.2',
scroll: '0.5',
viction: '3',
zetachain: '20',
},
desiredKathyBalancePerChain: {
arbitrum: '0.1',
ancient8: '0',
avalanche: '6',
base: '0.05',
blast: '0',
bsc: '0.35',
celo: '150',
ethereum: '0.4',
gnosis: '100',
inevm: '0.05',
mantapacific: '0',
mode: '0',
moonbeam: '250',
optimism: '0.1',
polygon: '85',
polygonzkevm: '0.05',
redstone: '0',
scroll: '0.05',
viction: '0.05',
zetachain: '0',
},
};

@ -15,7 +15,7 @@ export const hyperlane: HelloWorldConfig = {
kathy: {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: '86b7f98-20231207-153806',
tag: 'b22a0f4-20240523-140812',
},
chainsToSkip: [],
runEnv: environment,
@ -36,7 +36,7 @@ export const releaseCandidate: HelloWorldConfig = {
kathy: {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: '0e3f73f-20240206-160718',
tag: 'b22a0f4-20240523-140812',
},
chainsToSkip: [],
runEnv: environment,

@ -9,7 +9,7 @@ import { environment } from './chains.js';
export const keyFunderConfig: KeyFunderConfig = {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: 'b0811ba-20240411-151216',
tag: 'b22a0f4-20240523-140812',
},
// We're currently using the same deployer key as testnet2.
// To minimize nonce clobbering we offset the key funder cron
@ -30,11 +30,15 @@ export const keyFunderConfig: KeyFunderConfig = {
bsctestnet: '5',
fuji: '5',
plumetestnet: '0.2',
sepolia: '5',
// Funder boosts itself upto 5x balance on L2 before dispersing funds
scrollsepolia: '1',
sepolia: '5',
},
desiredKathyBalancePerChain: {
alfajores: '1',
bsctestnet: '1',
fuji: '1',
plumetestnet: '0.05',
scrollsepolia: '1',
sepolia: '1',
},
};

@ -15,7 +15,7 @@ export const hyperlaneHelloworld: HelloWorldConfig = {
kathy: {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: '17ac515-20240402-171932',
tag: 'b22a0f4-20240523-140812',
},
chainsToSkip: [],
runEnv: environment,
@ -35,7 +35,7 @@ export const releaseCandidateHelloworld: HelloWorldConfig = {
kathy: {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: '17ac515-20240402-171932',
tag: 'b22a0f4-20240523-140812',
},
chainsToSkip: [],
runEnv: environment,

@ -575,10 +575,18 @@ class ContextFunder {
}
private getDesiredBalanceForRole(chain: ChainName, role: Role): BigNumber {
const desiredBalanceEther =
role === Role.Kathy && this.desiredKathyBalancePerChain[chain]
? this.desiredKathyBalancePerChain[chain]
: this.desiredBalancePerChain[chain];
let desiredBalanceEther: string | undefined;
if (role === Role.Kathy) {
const desiredKathyBalance = this.desiredKathyBalancePerChain[chain];
if (desiredKathyBalance === undefined) {
logger.warn({ chain }, 'No desired balance for Kathy, not funding');
desiredBalanceEther = '0';
} else {
desiredBalanceEther = this.desiredKathyBalancePerChain[chain];
}
} else {
desiredBalanceEther = this.desiredBalancePerChain[chain];
}
let desiredBalance = ethers.utils.parseEther(desiredBalanceEther ?? '0');
if (this.context === Contexts.ReleaseCandidate) {
desiredBalance = desiredBalance

Loading…
Cancel
Save