Deploy kathy and key funder (#1271)

* Deploy kathy and key funder

* Fix
pull/1273/head
Trevor Porter 2 years ago committed by GitHub
parent 937fd14a5a
commit 2130cf348a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      typescript/infra/config/environments/mainnet/funding.ts
  2. 6
      typescript/infra/config/environments/mainnet/helloworld.ts
  3. 2
      typescript/infra/config/environments/testnet2/funding.ts
  4. 4
      typescript/infra/config/environments/testnet2/helloworld.ts
  5. 4
      typescript/infra/helm/helloworld-kathy/templates/_helpers.tpl
  6. 4
      typescript/infra/helm/key-funder/templates/cron-job.yaml
  7. 2
      typescript/infra/src/config/helloworld.ts
  8. 2
      typescript/infra/src/funding/deploy-key-funder.ts
  9. 1
      typescript/infra/src/helloworld/kathy.ts

@ -8,7 +8,7 @@ import { environment } from './chains';
export const keyFunderConfig: KeyFunderConfig = { export const keyFunderConfig: KeyFunderConfig = {
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo', repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: 'sha-7956ff0', tag: 'sha-937fd14',
}, },
cronSchedule: '45 * * * *', // Every hour at the 45 minute mark cronSchedule: '45 * * * *', // Every hour at the 45 minute mark
namespace: environment, namespace: environment,

@ -12,7 +12,7 @@ export const abacus: HelloWorldConfig<MainnetChains> = {
kathy: { kathy: {
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo', repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: 'sha-7956ff0', tag: 'sha-937fd14',
}, },
chainsToSkip: [], chainsToSkip: [],
runEnv: environment, runEnv: environment,
@ -24,7 +24,7 @@ export const abacus: HelloWorldConfig<MainnetChains> = {
messageSendTimeout: 1000 * 60 * 8, // 8 min messageSendTimeout: 1000 * 60 * 8, // 8 min
messageReceiptTimeout: 1000 * 60 * 20, // 20 min messageReceiptTimeout: 1000 * 60 * 20, // 20 min
connectionType: ConnectionType.Http, connectionType: ConnectionType.Http,
cycleBetweenEthereumMessages: 3, // Skip 3 cycles of Ethereum, i.e. send/receive Ethereum messages once a day. cyclesBetweenEthereumMessages: 3, // Skip 3 cycles of Ethereum, i.e. send/receive Ethereum messages once a day.
}, },
}; };
@ -33,7 +33,7 @@ export const releaseCandidate: HelloWorldConfig<MainnetChains> = {
kathy: { kathy: {
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo', repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: 'sha-7956ff0', tag: 'sha-937fd14',
}, },
chainsToSkip: [], chainsToSkip: [],
runEnv: environment, runEnv: environment,

@ -8,7 +8,7 @@ import { environment } from './chains';
export const keyFunderConfig: KeyFunderConfig = { export const keyFunderConfig: KeyFunderConfig = {
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo', repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: 'sha-7956ff0', tag: 'sha-937fd14',
}, },
cronSchedule: '45 * * * *', // Every hour at the 45 minute mark cronSchedule: '45 * * * *', // Every hour at the 45 minute mark
namespace: environment, namespace: environment,

@ -12,7 +12,7 @@ export const abacus: HelloWorldConfig<TestnetChains> = {
kathy: { kathy: {
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo', repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: 'sha-7956ff0', tag: 'sha-937fd14',
}, },
chainsToSkip: [], chainsToSkip: [],
runEnv: environment, runEnv: environment,
@ -32,7 +32,7 @@ export const releaseCandidate: HelloWorldConfig<TestnetChains> = {
kathy: { kathy: {
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo', repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: 'sha-7956ff0', tag: 'sha-937fd14',
}, },
chainsToSkip: [], chainsToSkip: [],
runEnv: environment, runEnv: environment,

@ -94,6 +94,10 @@ The helloworld-kathy container
{{- if .Values.abacus.connectionType }} {{- if .Values.abacus.connectionType }}
- --connection-type - --connection-type
- {{ .Values.abacus.connectionType }} - {{ .Values.abacus.connectionType }}
{{- end }}
{{- if .Values.abacus.cyclesBetweenEthereumMessages }}
- --cycles-between-ethereum-messages
- "{{ .Values.abacus.cyclesBetweenEthereumMessages }}"
{{- end }} {{- end }}
envFrom: envFrom:
- secretRef: - secretRef:

@ -33,10 +33,6 @@ spec:
{{- if .Values.abacus.connectionType }} {{- if .Values.abacus.connectionType }}
- --connection-type - --connection-type
- {{ .Values.abacus.connectionType }} - {{ .Values.abacus.connectionType }}
{{- end }}
{{- if .Values.abacus.cyclesBetweenEthereumMessages }}
- --cycles-between-ethereum-messages
- {{ .Values.abacus.cyclesBetweenEthereumMessages }}
{{- end }} {{- end }}
env: env:
- name: PROMETHEUS_PUSH_GATEWAY - name: PROMETHEUS_PUSH_GATEWAY

@ -31,7 +31,7 @@ export interface HelloWorldKathyConfig<Chain extends ChainName> {
// Whether to use a single HTTP provider or a quorum of HTTP providers // Whether to use a single HTTP provider or a quorum of HTTP providers
connectionType: ConnectionType.Http | ConnectionType.HttpQuorum; connectionType: ConnectionType.Http | ConnectionType.HttpQuorum;
// How many cycles to skip between a cycles that send messages to/from Ethereum. Defaults to 0. // How many cycles to skip between a cycles that send messages to/from Ethereum. Defaults to 0.
cycleBetweenEthereumMessages?: number; cyclesBetweenEthereumMessages?: number;
} }
export interface HelloWorldConfig<Chain extends ChainName> { export interface HelloWorldConfig<Chain extends ChainName> {

@ -50,8 +50,6 @@ function getKeyFunderHelmValues<Chain extends ChainName>(
chains: agentConfig.contextChainNames, chains: agentConfig.contextChainNames,
contextFundingFrom: keyFunderConfig.contextFundingFrom, contextFundingFrom: keyFunderConfig.contextFundingFrom,
contextsAndRolesToFund: keyFunderConfig.contextsAndRolesToFund, contextsAndRolesToFund: keyFunderConfig.contextsAndRolesToFund,
cyclesBetweenEthereumMessages:
keyFunderConfig.cyclesBetweenEthereumMessages,
connectionType: keyFunderConfig.connectionType, connectionType: keyFunderConfig.connectionType,
}, },
image: { image: {

@ -76,6 +76,7 @@ function getHelloworldKathyHelmValues<Chain extends ChainName>(
cycleOnce, cycleOnce,
fullCycleTime, fullCycleTime,
connectionType: kathyConfig.connectionType, connectionType: kathyConfig.connectionType,
cyclesBetweenEthereumMessages: kathyConfig.cyclesBetweenEthereumMessages,
}, },
image: { image: {
repository: kathyConfig.docker.repo, repository: kathyConfig.docker.repo,

Loading…
Cancel
Save