Skip to content

Commit

Permalink
Address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yorhodes committed Oct 14, 2023
1 parent 6eca260 commit 2c65484
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 86 deletions.
4 changes: 0 additions & 4 deletions typescript/infra/config/aggregationIsm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// Aggregation (1/2)
// | |
// | |
// v v
import {
AggregationIsmConfig,
ChainName,
Expand Down
73 changes: 1 addition & 72 deletions typescript/infra/config/environments/testnet4/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import {
GasPaymentEnforcementPolicyType,
RpcConsensusType,
chainMetadata,
getDomainId,
hyperlaneEnvironments,
} from '@hyperlane-xyz/sdk';
import { objMap } from '@hyperlane-xyz/utils';

import {
RootAgentConfig,
Expand All @@ -24,20 +21,6 @@ const releaseCandidateHelloworldMatchingList = routerMatchingList(
helloWorld[Contexts.ReleaseCandidate].addresses,
);

const interchainQueryRouters = objMap(
hyperlaneEnvironments.testnet,
(_, addresses) => {
return {
// @ts-ignore moonbasealpha has no interchain query router
router: addresses.interchainQueryRouter,
};
},
);

const interchainQueriesMatchingList = routerMatchingList(
interchainQueryRouters,
);

const repo = 'gcr.io/abacus-labs-dev/hyperlane-agent';

const contextBase = {
Expand All @@ -51,35 +34,6 @@ const contextBase = {
} as const;

const gasPaymentEnforcement: GasPaymentEnforcementConfig[] = [
{
type: GasPaymentEnforcementPolicyType.None,
// To continue relaying interchain query callbacks, we whitelist
// all messages between interchain query routers.
// This whitelist will become more strict with
// https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/1605
matchingList: [
...interchainQueriesMatchingList,
{
originDomain: [getDomainId(chainMetadata.solanadevnet)],
senderAddress: [
// hyperlane context helloworld router on solanadevnet
'CXQX54kdkU5GqdRJjCmHpwHfEMgFb5SeBmMWntP2Ds7J',
],
destinationDomain: '*',
recipientAddress: '*',
},
{
originDomain: [getDomainId(chainMetadata.bsctestnet)],
senderAddress: [
// testnet ZBC warp route on bsctestnet, which pays
// an IGP that isn't indexed by the relayer at the moment
'0x31b5234A896FbC4b3e2F7237592D054716762131',
],
destinationDomain: '*',
recipientAddress: '*',
},
],
},
// Default policy is OnChainFeeQuoting
{
type: GasPaymentEnforcementPolicyType.OnChainFeeQuoting,
Expand Down Expand Up @@ -114,11 +68,6 @@ const hyperlane: RootAgentConfig = {
repo,
tag: 'ed7569d-20230725-171222',
},
chainDockerOverrides: {
// [chainMetadata.solanadevnet.name]: {
// tag: '79bad9d-20230706-190752',
// },
},
chains: validatorChainConfig(Contexts.Hyperlane),
},
scraper: {
Expand All @@ -141,27 +90,7 @@ const releaseCandidate: RootAgentConfig = {
tag: '892cc5d-20230908-162614',
},
whitelist: [...releaseCandidateHelloworldMatchingList],
gasPaymentEnforcement: [
// Don't require gas payments from solanadevnet
// {
// type: GasPaymentEnforcementPolicyType.None,
// matchingList: [
// {
// originDomain: [getDomainId(chainMetadata.solanadevnet)],
// senderAddress: '*',
// destinationDomain: '*',
// recipientAddress: '*',
// },
// {
// originDomain: '*',
// senderAddress: '*',
// destinationDomain: [getDomainId(chainMetadata.solanadevnet)],
// recipientAddress: '*',
// },
// ],
// },
...gasPaymentEnforcement,
],
gasPaymentEnforcement,
transactionGasLimit: 750000,
// Skipping arbitrum because the gas price estimates are inclusive of L1
// fees which leads to wildly off predictions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@ spec:
* The templating of external-secrets will use the data section below to know how
* to replace the correct value in the created secret.
*/}}
<<<<<<< HEAD
{{- range .Values.hyperlane.chains }}
{{- if or (eq $.Values.hyperlane.connectionType "quorum") (eq $.Values.hyperlane.connectionType "fallback") }}
=======
{{- range .Values.hyperlane.chains.relayer }}
{{- if or (eq $.Values.hyperlane.connectionType "httpQuorum") (eq $.Values.hyperlane.connectionType "httpFallback") }}
>>>>>>> main
GCP_SECRET_OVERRIDE_{{ $.Values.hyperlane.runEnv | upper }}_RPC_ENDPOINTS_{{ . | upper }}: {{ printf "'{{ .%s_rpcs | toString }}'" . }}
{{- else }}
GCP_SECRET_OVERRIDE_{{ $.Values.hyperlane.runEnv | upper }}_RPC_ENDPOINT_{{ . | upper }}: {{ printf "'{{ .%s_rpc | toString }}'" . }}
Expand All @@ -55,13 +50,8 @@ spec:
* For each network, load the secret in GCP secret manager with the form: environment-rpc-endpoint-network,
* and associate it with the secret key networkname_rpc.
*/}}
<<<<<<< HEAD
{{- range .Values.hyperlane.chains }}
{{- if or (eq $.Values.hyperlane.connectionType "quorum") (eq $.Values.hyperlane.connectionType "fallback") }}
=======
{{- range .Values.hyperlane.chains.relayer }}
{{- if or (eq $.Values.hyperlane.connectionType "httpQuorum") (eq $.Values.hyperlane.connectionType "httpFallback") }}
>>>>>>> main
- secretKey: {{ printf "%s_rpcs" . }}
remoteRef:
key: {{ printf "%s-rpc-endpoints-%s" $.Values.hyperlane.runEnv . }}
Expand Down

0 comments on commit 2c65484

Please sign in to comment.