Skip to content

Commit

Permalink
feat: deploy to torus (#5116)
Browse files Browse the repository at this point in the history
### Description

- feat: deploy to torus

### Drive-by changes

- igp updates

### Related issues

hyperlane-xyz/hyperlane-registry#467

### 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

manual
  • Loading branch information
paulbalaji authored Jan 8, 2025
1 parent 71dd0f1 commit c690ca8
Show file tree
Hide file tree
Showing 15 changed files with 417 additions and 132 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-shoes-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Deploy to torus.
2 changes: 1 addition & 1 deletion .registryrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d01becffba3dd2d0a053a25bffc3d97bde70129a
8481aeb47ed242783c8dc6ccd366f90a95b471bf
67 changes: 67 additions & 0 deletions rust/main/config/mainnet_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,9 @@
}
],
"rpcUrls": [
{
"http": "https://injective-rpc.publicnode.com:443"
},
{
"http": "https://sentry.tm.injective.network:443"
}
Expand Down Expand Up @@ -7295,6 +7298,70 @@
"mailbox": "Mj7GE6LZiJUZFTgabmNkFoY2o6JCEwCMKopSUUC3kqj",
"merkleTreeHook": "Mj7GE6LZiJUZFTgabmNkFoY2o6JCEwCMKopSUUC3kqj",
"validatorAnnounce": "GFqF38mSacfvbJRKkhmjJvSkzTEKemSNVoWi4Q94ZPvz"
},
"torus": {
"blockExplorers": [
{
"apiUrl": "https://api.blockscout.torus.network/api",
"family": "blockscout",
"name": "Torus Explorer",
"url": "https://blockscout.torus.network"
}
],
"blocks": {
"confirmations": 1,
"estimateBlockTime": 8,
"reorgPeriod": "finalized"
},
"chainId": 21000,
"deployer": {
"name": "Abacus Works",
"url": "https://www.hyperlane.xyz"
},
"displayName": "Torus",
"domainId": 21000,
"gasCurrencyCoinGeckoId": "torus",
"name": "torus",
"nativeToken": {
"decimals": 18,
"name": "Torus",
"symbol": "TORUS"
},
"protocol": "ethereum",
"rpcUrls": [
{
"http": "https://api-hyperlane.nodes.torus.network"
}
],
"technicalStack": "polkadotsubstrate",
"aggregationHook": "0xfe94Ea7DA6C45849D395e3d03973aa924553b937",
"domainRoutingIsm": "0xBD70Ea9D599a0FC8158B026797177773C3445730",
"domainRoutingIsmFactory": "0x1052eF3419f26Bec74Ed7CEf4a4FA6812Bc09908",
"fallbackRoutingHook": "0x48C427782Bc1e9ecE406b3e277481b28ABcBdf03",
"interchainAccountIsm": "0xd64d126941EaC2Cf53e0E4E8146cC70449b60D73",
"interchainAccountRouter": "0x1A4F09A615aA4a35E5a146DC2fa19975bebF21A5",
"interchainGasPaymaster": "0x3cECBa60A580dE20CC57D87528953a00f4ED99EA",
"interchainSecurityModule": "0x8f1953EFbd2C720223faD02d6CB5CD25f97D7fC9",
"mailbox": "0x3a464f746D23Ab22155710f44dB16dcA53e0775E",
"merkleTreeHook": "0x1c6f404800bA49Ed581af734eA0d25c0c7d017B2",
"pausableHook": "0x9e8b689e83d929cb8c2d9166E55319a4e6aA83B7",
"pausableIsm": "0x2f0E57527Bb37E5E064EF243fad56CCE6241906c",
"protocolFee": "0x4Ee9dEBB3046139661b51E17bdfD54Fd63211de7",
"proxyAdmin": "0x2f2aFaE1139Ce54feFC03593FeE8AB2aDF4a85A7",
"staticAggregationHookFactory": "0xEb9FcFDC9EfDC17c1EC5E1dc085B98485da213D6",
"staticAggregationIsm": "0x8f1953EFbd2C720223faD02d6CB5CD25f97D7fC9",
"staticAggregationIsmFactory": "0x8F7454AC98228f3504Bb91eA3D8Adafe6406110A",
"staticMerkleRootMultisigIsmFactory": "0x2C1FAbEcd7bFBdEBF27CcdB67baADB38b6Df90fC",
"staticMerkleRootWeightedMultisigIsmFactory": "0x0761b0827849abbf7b0cC09CE14e1C93D87f5004",
"staticMessageIdMultisigIsmFactory": "0x8b83fefd896fAa52057798f6426E9f0B080FCCcE",
"staticMessageIdWeightedMultisigIsmFactory": "0x4Ed7d626f1E96cD1C0401607Bf70D95243E3dEd1",
"storageGasOracle": "0x248aDe14C0489E20C9a7Fea5F86DBfC3702208eF",
"testRecipient": "0x92249B8ed35C2980e58666a3EBF4a075DDD2895f",
"timelockController": "0x0000000000000000000000000000000000000000",
"validatorAnnounce": "0x65dCf8F6b3f6a0ECEdf3d0bdCB036AEa47A1d615",
"index": {
"from": 40622
}
}
},
"defaultRpcConsensusType": "fallback"
Expand Down
11 changes: 8 additions & 3 deletions typescript/infra/config/environments/mainnet3/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export const hyperlaneContextAgentChainConfig: AgentChainConfig<
taiko: true,
tangle: true,
telos: true,
torus: true,
treasure: true,
unichain: true,
vana: true,
Expand Down Expand Up @@ -271,6 +272,7 @@ export const hyperlaneContextAgentChainConfig: AgentChainConfig<
taiko: true,
tangle: true,
telos: true,
torus: true,
treasure: true,
unichain: true,
vana: true,
Expand Down Expand Up @@ -384,6 +386,7 @@ export const hyperlaneContextAgentChainConfig: AgentChainConfig<
taiko: true,
tangle: true,
telos: true,
torus: true,
treasure: true,
unichain: true,
vana: true,
Expand Down Expand Up @@ -476,6 +479,8 @@ const gasPaymentEnforcement: GasPaymentEnforcement[] = [
matchingList: [
// Temporary workaround due to funky Mantle gas amounts.
{ destinationDomain: getDomainId('mantle') },
// Temporary workaround due to funky Torus gas amounts.
{ destinationDomain: getDomainId('torus') },
// Temporary workaround for some high gas amount estimates on Treasure
...warpRouteMatchingList(WarpRouteIds.ArbitrumTreasureMAGIC),
],
Expand Down Expand Up @@ -625,7 +630,7 @@ const hyperlane: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: 'a470a5b-20250107-144236',
tag: '706f69b-20250107-230151',
},
blacklist,
gasPaymentEnforcement: gasPaymentEnforcement,
Expand All @@ -635,7 +640,7 @@ const hyperlane: RootAgentConfig = {
validators: {
docker: {
repo,
tag: 'a470a5b-20250107-144236',
tag: '706f69b-20250107-230151',
},
rpcConsensusType: RpcConsensusType.Quorum,
chains: validatorChainConfig(Contexts.Hyperlane),
Expand All @@ -645,7 +650,7 @@ const hyperlane: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '3812453-20241224-020703',
tag: '706f69b-20250107-230151',
},
resources: scraperResources,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@
"telos": {
"validators": ["0xcb08410b14d3adf0d0646f0c61cd07e0daba8e54"]
},
"torus": {
"validators": ["0x96982a325c28a842bc8cf61b63000737bb9f1f7d"]
},
"treasure": {
"validators": ["0x6ad994819185553e8baa01533f0cd2c7cadfe6cc"]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6968,5 +6968,75 @@
"constructorArguments": "0000000000000000000000003a464f746d23ab22155710f44db16dca53e0775e",
"isProxy": false
}
],
"torus": [
{
"name": "ProxyAdmin",
"address": "0x2f2aFaE1139Ce54feFC03593FeE8AB2aDF4a85A7",
"constructorArguments": "",
"isProxy": false
},
{
"name": "Mailbox",
"address": "0xeA87ae93Fa0019a82A727bfd3eBd1cFCa8f64f1D",
"constructorArguments": "0000000000000000000000000000000000000000000000000000000000005208",
"isProxy": false
},
{
"name": "TransparentUpgradeableProxy",
"address": "0x3a464f746D23Ab22155710f44dB16dcA53e0775E",
"constructorArguments": "000000000000000000000000ea87ae93fa0019a82a727bfd3ebd1cfca8f64f1d0000000000000000000000002f2afae1139ce54fefc03593fee8ab2adf4a85a700000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000",
"isProxy": true,
"expectedimplementation": "0xeA87ae93Fa0019a82A727bfd3eBd1cFCa8f64f1D"
},
{
"name": "MerkleTreeHook",
"address": "0x1c6f404800bA49Ed581af734eA0d25c0c7d017B2",
"constructorArguments": "0000000000000000000000003a464f746d23ab22155710f44db16dca53e0775e",
"isProxy": false
},
{
"name": "FallbackRoutingHook",
"address": "0x48C427782Bc1e9ecE406b3e277481b28ABcBdf03",
"constructorArguments": "0000000000000000000000003a464f746d23ab22155710f44db16dca53e0775e000000000000000000000000a7eccdb9be08178f896c26b7bbd8c3d4e844d9ba0000000000000000000000001c6f404800ba49ed581af734ea0d25c0c7d017b2",
"isProxy": false
},
{
"name": "PausableHook",
"address": "0x9e8b689e83d929cb8c2d9166E55319a4e6aA83B7",
"constructorArguments": "",
"isProxy": false
},
{
"name": "StorageGasOracle",
"address": "0x248aDe14C0489E20C9a7Fea5F86DBfC3702208eF",
"constructorArguments": "",
"isProxy": false
},
{
"name": "InterchainGasPaymaster",
"address": "0x5e8a0fCc0D1DF583322943e01F02cB243e5300f6",
"constructorArguments": "",
"isProxy": false
},
{
"name": "TransparentUpgradeableProxy",
"address": "0x3cECBa60A580dE20CC57D87528953a00f4ED99EA",
"constructorArguments": "0000000000000000000000005e8a0fcc0d1df583322943e01f02cb243e5300f60000000000000000000000002f2afae1139ce54fefc03593fee8ab2adf4a85a700000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000044485cc955000000000000000000000000a7eccdb9be08178f896c26b7bbd8c3d4e844d9ba000000000000000000000000a7eccdb9be08178f896c26b7bbd8c3d4e844d9ba00000000000000000000000000000000000000000000000000000000",
"isProxy": true,
"expectedimplementation": "0x5e8a0fCc0D1DF583322943e01F02cB243e5300f6"
},
{
"name": "ProtocolFee",
"address": "0x4Ee9dEBB3046139661b51E17bdfD54Fd63211de7",
"constructorArguments": "000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a7eccdb9be08178f896c26b7bbd8c3d4e844d9ba000000000000000000000000a7eccdb9be08178f896c26b7bbd8c3d4e844d9ba",
"isProxy": false
},
{
"name": "ValidatorAnnounce",
"address": "0x65dCf8F6b3f6a0ECEdf3d0bdCB036AEa47A1d615",
"constructorArguments": "0000000000000000000000003a464f746d23ab22155710f44db16dca53e0775e",
"isProxy": false
}
]
}
3 changes: 2 additions & 1 deletion typescript/infra/config/environments/mainnet3/funding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const keyFunderConfig: KeyFunderConfig<
> = {
docker: {
repo: 'gcr.io/abacus-labs-dev/hyperlane-monorepo',
tag: '05e90bc-20241216-180025',
tag: '706f69b-20250107-230147',
},
// We're currently using the same deployer/key funder key as mainnet2.
// To minimize nonce clobbering we offset the key funder cron
Expand Down Expand Up @@ -119,6 +119,7 @@ export const keyFunderConfig: KeyFunderConfig<
taiko: '0.2',
tangle: '2',
telos: '100',
torus: '5',
treasure: '900',
unichain: '0.05',
// temporarily low until we're able to fund more
Expand Down
36 changes: 20 additions & 16 deletions typescript/infra/config/environments/mainnet3/gasPrices.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
"decimals": 9
},
"arthera": {
"amount": "1.025064",
"amount": "1.025057",
"decimals": 9
},
"astar": {
"amount": "779.371350051",
"decimals": 9
},
"astarzkevm": {
"amount": "0.263",
"amount": "0.087",
"decimals": 9
},
"aurora": {
Expand All @@ -48,7 +48,7 @@
"decimals": 9
},
"b3": {
"amount": "0.001000252",
"amount": "0.001000285",
"decimals": 9
},
"base": {
Expand All @@ -68,7 +68,7 @@
"decimals": 9
},
"boba": {
"amount": "0.001000068",
"amount": "0.001000071",
"decimals": 9
},
"bsc": {
Expand Down Expand Up @@ -132,7 +132,7 @@
"decimals": 9
},
"ethereum": {
"amount": "10.0",
"amount": "10.885220772",
"decimals": 9
},
"everclear": {
Expand All @@ -148,7 +148,7 @@
"decimals": 9
},
"flare": {
"amount": "25.0",
"amount": "25.932675252",
"decimals": 9
},
"flowmainnet": {
Expand Down Expand Up @@ -180,7 +180,7 @@
"decimals": 9
},
"immutablezkevmmainnet": {
"amount": "11.00000005",
"amount": "11.000000049",
"decimals": 9
},
"inevm": {
Expand All @@ -204,11 +204,11 @@
"decimals": 9
},
"linea": {
"amount": "0.548523195",
"amount": "0.67121914",
"decimals": 9
},
"lisk": {
"amount": "0.001001154",
"amount": "0.010752839",
"decimals": 9
},
"lukso": {
Expand All @@ -224,7 +224,7 @@
"decimals": 9
},
"mantapacific": {
"amount": "0.003000319",
"amount": "0.003000333",
"decimals": 9
},
"mantle": {
Expand All @@ -244,7 +244,7 @@
"decimals": 9
},
"mint": {
"amount": "0.001000256",
"amount": "0.001000252",
"decimals": 9
},
"mode": {
Expand Down Expand Up @@ -352,7 +352,7 @@
"decimals": 9
},
"sonic": {
"amount": "1.1",
"amount": "5.5",
"decimals": 9
},
"soon": {
Expand Down Expand Up @@ -384,7 +384,11 @@
"decimals": 9
},
"telos": {
"amount": "522.500627641",
"amount": "522.109974741",
"decimals": 9
},
"torus": {
"amount": "31.25",
"decimals": 9
},
"treasure": {
Expand All @@ -396,15 +400,15 @@
"decimals": 9
},
"vana": {
"amount": "0.005",
"amount": "0.312673957",
"decimals": 9
},
"viction": {
"amount": "0.25",
"decimals": 9
},
"worldchain": {
"amount": "0.001000251",
"amount": "0.001000346",
"decimals": 9
},
"xai": {
Expand All @@ -416,7 +420,7 @@
"decimals": 9
},
"zeronetwork": {
"amount": "0.04525",
"amount": "0.06",
"decimals": 9
},
"zetachain": {
Expand Down
Loading

0 comments on commit c690ca8

Please sign in to comment.