feat: add agent config for Osmosis Mainnet (#3825)

### Description

- Added agent config description for Osmosis Mainnet
- Updated infra test to allow agent config chains to be a superset of
infra chains

Taken from @byeongsu-hong's https://github.com/hyperlane-xyz/hyperlane-monorepo/pull/3766, but with a fixed test

### 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: byeongsu-hong <hong@byeongsu.dev>
pull/3831/head
Trevor Porter 6 months ago committed by GitHub
parent a574b76584
commit 335a0d7479
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 33
      rust/config/mainnet_config.json
  2. 4
      typescript/infra/test/agent-configs.test.ts

@ -892,6 +892,39 @@
"timelockController": "0x0000000000000000000000000000000000000000",
"validatorAnnounce": "0x30f5b08e01808643221528BB2f7953bf2830Ef38"
},
"osmosis": {
"bech32Prefix": "osmo",
"blocks": {
"reorgPeriod": 1
},
"canonicalAsset": "uosmo",
"chainId": "osmosis-1",
"contractAddressBytes": 32,
"domainId": "875",
"gasPrice": {
"amount": "0.025",
"denom": "uosmo"
},
"grpcUrls": [
{
"http": "https://osmosis-grpc.publicnode.com:443"
}
],
"index": {
"from": 14389169
},
"interchainGasPaymaster": "0xd20a9dcf61939fc2fe6ad501b9457b1029b3cc7ab12ed72675ea2e10d831ee5d",
"mailbox": "0x9493e39d85dd038022f97d88aba6bff98d98f9a016b4f2e498bf1d9898420172",
"merkleTreeHook": "0x8920e062ee5ed8afccbc155d13ea9049296399ee41403655864fcd243edc7388",
"name": "osmosis1",
"protocol": "cosmos",
"rpcUrls": [
{
"http": "https://osmosis-rpc.publicnode.com:443"
}
],
"validatorAnnounce": "0xaf867da5b09a20ee49161d57f99477c0c42d100f34eb53da0d2eb7fc6c257235"
},
"polygon": {
"aggregationHook": "0x34dAb05650Cf590088bA18aF9d597f3e081bCc47",
"blockExplorers": [

@ -43,7 +43,9 @@ describe('Agent configs', () => {
const agentJsonConfigChains = Object.keys(
config.agentJsonConfig.chains,
);
expect(agentJsonConfigChains).to.have.members(
// Allow for the agent JSON config to be a superset of the supported
// chain names, as AW may not always run agents for all chains.
expect(agentJsonConfigChains).to.include.members(
config.supportedChainNames,
);
});

Loading…
Cancel
Save