Deploy agents, deploy on chain fee quoting to testnet3 rc (#1921)

### Description

* Routine agent deploy to all envs / contexts
* Fixed a JSON deserialization issue where a U256 must be a string and
not a number
* Added the on chain fee quoting gas enforcement policy to infra
* Deployed to testnet3 rc with on chain fee quoting gas enforcement
policy

### Drive-by changes

n/a

### Related issues

n/a

### Backward compatibility

_Are these changes backward compatible?_

Yes

_Are there any infrastructure implications, e.g. changes that would
prohibit deploying older commits using this infra tooling?_

not really - but bc this includes an infra fix, you should deploy using
this commit or later


### Testing

_What kind of testing have these changes undergone?_

Deployed
pull/1923/head
Trevor Porter 2 years ago committed by GitHub
parent cd75c25f40
commit dd5478f740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      typescript/infra/config/environments/mainnet2/agent.ts
  2. 9
      typescript/infra/config/environments/testnet3/agent.ts
  3. 7
      typescript/infra/src/config/agent.ts

@ -29,7 +29,7 @@ export const hyperlane: AgentConfig = {
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: '69c49a3-20230220-224405', tag: '1cbe5fd-20230309-202035',
}, },
aws: { aws: {
region: 'us-east-1', region: 'us-east-1',
@ -61,7 +61,7 @@ export const hyperlane: AgentConfig = {
}, },
{ {
type: GasPaymentEnforcementPolicyType.Minimum, type: GasPaymentEnforcementPolicyType.Minimum,
payment: 1, payment: '1',
}, },
], ],
}, },
@ -75,7 +75,7 @@ export const releaseCandidate: AgentConfig = {
context: Contexts.ReleaseCandidate, context: Contexts.ReleaseCandidate,
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-agent', repo: 'gcr.io/abacus-labs-dev/hyperlane-agent',
tag: '69c49a3-20230220-224405', tag: '1cbe5fd-20230309-202035',
}, },
aws: { aws: {
region: 'us-east-1', region: 'us-east-1',
@ -96,7 +96,7 @@ export const releaseCandidate: AgentConfig = {
}, },
{ {
type: GasPaymentEnforcementPolicyType.Minimum, type: GasPaymentEnforcementPolicyType.Minimum,
payment: 1, payment: '1',
}, },
], ],
transactionGasLimit: 750000, transactionGasLimit: 750000,

@ -29,7 +29,7 @@ export const hyperlane: AgentConfig = {
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: '69c49a3-20230220-224405', tag: '1cbe5fd-20230309-202035',
}, },
aws: { aws: {
region: 'us-east-1', region: 'us-east-1',
@ -55,7 +55,7 @@ export const hyperlane: AgentConfig = {
}, },
{ {
type: GasPaymentEnforcementPolicyType.Minimum, type: GasPaymentEnforcementPolicyType.Minimum,
payment: 1, payment: '1',
}, },
], ],
}, },
@ -69,7 +69,7 @@ export const releaseCandidate: AgentConfig = {
context: Contexts.ReleaseCandidate, context: Contexts.ReleaseCandidate,
docker: { docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-agent', repo: 'gcr.io/abacus-labs-dev/hyperlane-agent',
tag: '69c49a3-20230220-224405', tag: '1cbe5fd-20230309-202035',
}, },
aws: { aws: {
region: 'us-east-1', region: 'us-east-1',
@ -89,8 +89,7 @@ export const releaseCandidate: AgentConfig = {
matchingList: interchainQueriesMatchingList, matchingList: interchainQueriesMatchingList,
}, },
{ {
type: GasPaymentEnforcementPolicyType.Minimum, type: GasPaymentEnforcementPolicyType.OnChainFeeQuoting,
payment: 1, // require 1 wei
}, },
], ],
transactionGasLimit: 750000, transactionGasLimit: 750000,

@ -48,6 +48,7 @@ export enum GasPaymentEnforcementPolicyType {
None = 'none', None = 'none',
Minimum = 'minimum', Minimum = 'minimum',
MeetsEstimatedCost = 'meetsEstimatedCost', MeetsEstimatedCost = 'meetsEstimatedCost',
OnChainFeeQuoting = 'onChainFeeQuoting',
} }
export type GasPaymentEnforcementPolicy = export type GasPaymentEnforcementPolicy =
@ -56,7 +57,11 @@ export type GasPaymentEnforcementPolicy =
} }
| { | {
type: GasPaymentEnforcementPolicyType.Minimum; type: GasPaymentEnforcementPolicyType.Minimum;
payment: BigNumberish; payment: string; // An integer string, may be 0x-prefixed
}
| {
type: GasPaymentEnforcementPolicyType.OnChainFeeQuoting;
gasfraction?: string; // An optional string of "numerator / denominator", e.g. "1 / 2"
}; };
export type GasPaymentEnforcementConfig = GasPaymentEnforcementPolicy & { export type GasPaymentEnforcementConfig = GasPaymentEnforcementPolicy & {

Loading…
Cancel
Save