Deploy Jan 25 (#1665)

pull/1669/head
Nam Chu Hoai 2 years ago committed by GitHub
parent c163fce339
commit 7501a865fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      rust/helm/hyperlane-agent/templates/relayer-external-secret.yaml
  2. 4
      rust/helm/hyperlane-agent/templates/relayer-statefulset.yaml
  3. 8
      typescript/infra/config/environments/mainnet2/agent.ts
  4. 6
      typescript/infra/config/environments/testnet3/agent.ts
  5. 6
      typescript/infra/src/agents/index.ts

@ -21,9 +21,9 @@ spec:
labels: labels:
{{- include "agent-common.labels" . | nindent 10 }} {{- include "agent-common.labels" . | nindent 10 }}
data: data:
{{- range .Values.hyperlane.chains }} {{- range .Values.hyperlane.relayerChains }}
{{- if eq .signer.keyConfig.type "hexKey" }} {{- if eq .signer.type "hexKey" }}
HYP_BASE_CHAINS_{{ .name | upper }}_KEY: {{ printf "'{{ .%s_signer_key | toString }}'" .name }} HYP_BASE_CHAINS_{{ .name | upper }}_SIGNER_KEY: {{ printf "'{{ .%s_signer_key | toString }}'" .name }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if .Values.hyperlane.relayer.aws }} {{- if .Values.hyperlane.relayer.aws }}
@ -34,8 +34,8 @@ spec:
HYP_RELAYER_GASPAYMENTENFORCEMENTPOLICY_COINGECKOAPIKEY: {{ print "'{{ .coingecko_api_key | toString }}'" }} HYP_RELAYER_GASPAYMENTENFORCEMENTPOLICY_COINGECKOAPIKEY: {{ print "'{{ .coingecko_api_key | toString }}'" }}
{{- end }} {{- end }}
data: data:
{{- range .Values.hyperlane.chains }} {{- range .Values.hyperlane.relayerChains }}
{{- if eq .signer.keyConfig.type "hexKey" }} {{- if eq .signer.type "hexKey" }}
- secretKey: {{ printf "%s_signer_key" .name }} - secretKey: {{ printf "%s_signer_key" .name }}
remoteRef: remoteRef:
key: {{ printf "%s-%s-key-%s-relayer" $.Values.hyperlane.context $.Values.hyperlane.runEnv $.Values.hyperlane.relayer.config.originChainName }} key: {{ printf "%s-%s-key-%s-relayer" $.Values.hyperlane.context $.Values.hyperlane.runEnv $.Values.hyperlane.relayer.config.originChainName }}

@ -56,8 +56,8 @@ spec:
name: {{ include "agent-common.fullname" . }}-relayer-secret name: {{ include "agent-common.fullname" . }}-relayer-secret
env: env:
{{- include "agent-common.config-env-vars" (dict "config" .Values.hyperlane.relayer.config "agent_name" "relayer") | indent 10 }} {{- include "agent-common.config-env-vars" (dict "config" .Values.hyperlane.relayer.config "agent_name" "relayer") | indent 10 }}
{{- range .Values.hyperlane.chains }} {{- range .Values.hyperlane.relayerChains }}
{{- include "agent-common.config-env-vars" (dict "config" .keyConfig "agent_name" "base" "key_name_prefix" (printf "CHAINS_%s_SIGNER_" (.name | upper))) | indent 10 }} {{- include "agent-common.config-env-vars" (dict "config" .signer "agent_name" "base" "key_name_prefix" (printf "CHAINS_%s_SIGNER_" (.name | upper))) | indent 10 }}
{{- end }} {{- end }}
{{- if .Values.hyperlane.tracing.uri }} {{- if .Values.hyperlane.tracing.uri }}
- name: HYP_BASE_TRACING_JAEGER_NAME - name: HYP_BASE_TRACING_JAEGER_NAME

@ -17,7 +17,7 @@ export const hyperlane: AgentConfig<MainnetChains> = {
context: Contexts.Hyperlane, context: Contexts.Hyperlane,
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-agent', repo: 'gcr.io/abacus-labs-dev/hyperlane-agent',
tag: 'sha-82951fb', tag: 'sha-c163fce',
}, },
aws: { aws: {
region: 'us-east-1', region: 'us-east-1',
@ -63,6 +63,12 @@ export const hyperlane: AgentConfig<MainnetChains> = {
}, },
relayer: { relayer: {
default: { default: {
blacklist: [
{
sourceDomain: '137',
destinationAddress: '0xBC3cFeca7Df5A45d61BC60E7898E63670e1654aE',
},
],
gasPaymentEnforcementPolicy: { gasPaymentEnforcementPolicy: {
type: GasPaymentEnforcementPolicyType.None, type: GasPaymentEnforcementPolicyType.None,
}, },

@ -26,7 +26,7 @@ export const hyperlane: AgentConfig<TestnetChains> = {
context: Contexts.Hyperlane, context: Contexts.Hyperlane,
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-agent', repo: 'gcr.io/abacus-labs-dev/hyperlane-agent',
tag: 'sha-82951fb', tag: 'sha-c163fce',
}, },
aws: { aws: {
region: 'us-east-1', region: 'us-east-1',
@ -66,7 +66,9 @@ export const hyperlane: AgentConfig<TestnetChains> = {
}, },
relayer: { relayer: {
default: { default: {
// blacklist: releaseCandidateHelloworldMatchingList, blacklist: [
{ destinationAddress: '0xBC3cFeca7Df5A45d61BC60E7898E63670e1654aE' },
],
gasPaymentEnforcementPolicy: { gasPaymentEnforcementPolicy: {
type: GasPaymentEnforcementPolicyType.None, type: GasPaymentEnforcementPolicyType.None,
}, },

@ -71,12 +71,16 @@ async function helmValuesForChain<Chain extends ChainName>(
chains: agentConfig.environmentChainNames.map((envChainName) => ({ chains: agentConfig.environmentChainNames.map((envChainName) => ({
name: envChainName, name: envChainName,
disabled: !agentConfig.contextChainNames.includes(envChainName), disabled: !agentConfig.contextChainNames.includes(envChainName),
signer: signers[envChainName],
txsubmission: { txsubmission: {
type: chainAgentConfig.transactionSubmissionType(envChainName), type: chainAgentConfig.transactionSubmissionType(envChainName),
}, },
connection: baseConnectionConfig, connection: baseConnectionConfig,
})), })),
// Only the relayer has the signers on the chains config object
relayerChains: agentConfig.environmentChainNames.map((envChainName) => ({
name: envChainName,
signer: signers[envChainName],
})),
validator: { validator: {
enabled: chainAgentConfig.validatorEnabled, enabled: chainAgentConfig.validatorEnabled,
configs: await chainAgentConfig.validatorConfigs(), configs: await chainAgentConfig.validatorConfigs(),

Loading…
Cancel
Save