From 1b3ef861a57879bc42996f34a2c313b4351d624c Mon Sep 17 00:00:00 2001 From: byeongsu-hong Date: Mon, 13 May 2024 17:51:40 +0900 Subject: [PATCH 1/2] add osmosis --- src/consts/chains.ts | 32 +++++++++++++++++++++ src/consts/tokens.ts | 67 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/src/consts/chains.ts b/src/consts/chains.ts index a445640d..3424970f 100644 --- a/src/consts/chains.ts +++ b/src/consts/chains.ts @@ -36,6 +36,38 @@ export const chains: ChainMap = { // logoURI: '/logo.svg', // }, + osmosis: { + protocol: ProtocolType.Cosmos, + name: 'osmosis', + chainId: 'osmosis-1', + domainId: 875, + displayName: 'Osmosis', + displayNameShort: 'Osmosis', + slip44: 118, + bech32Prefix: 'osmo', + rpcUrls: [{ http: 'https://rpc.osmosis.zone:443' }], + restUrls: [{ http: 'https://rest.osmosis.zone:443' }], + grpcUrls: [{ http: 'https://grpc.osmosis.zone:443' }], + nativeToken: { + name: 'Osmosis', + denom: 'uosmo', + symbol: 'OSMO', + decimals: 6, + }, + blockExplorers: [ + { + name: 'Mintscan', + url: 'https://www.mintscan.io/osmosis', + // TODO API not supported, using url to meet validation requirements + apiUrl: 'https://www.mintscan.io/osmosis', + family: ExplorerFamily.Other, + }, + ], + transactionOverrides: { + gasPrice: 0.1, + }, + }, + ancient8: { blockExplorers: [ { diff --git a/src/consts/tokens.ts b/src/consts/tokens.ts index 645e6b8d..66a337f1 100644 --- a/src/consts/tokens.ts +++ b/src/consts/tokens.ts @@ -5,6 +5,60 @@ import { Chains, TokenConnectionType, TokenStandard, WarpCoreConfig } from '@hyp // The input here is typically the output of the Hyperlane CLI warp deploy command export const tokenConfigs: WarpCoreConfig = { tokens: [ + //#region OSMOSIS + // TIA Osmosis to Manta + { + chainName: 'osmosis', + standard: TokenStandard.CwHypCollateral, + decimals: 6, + symbol: 'TIA', + name: 'Celestia', + addressOrDenom: 'osmo1h4y9xjcvs8lrx4z8ha48uq9a338w74dpl2ly3tf74fzvugp2kj4q9l0jkw', + collateralAddressOrDenom: + 'ibc/D79E7D83AB399BFFF93433E54FAA480C191248FC556924A2A8351AE2638B3877', + connections: [{ token: 'ethereum|mantapacific|0x88410F3D8135b4D23b98dC37C4652C6969a5B1a8' }], + }, + // milkTIA Osmosis to Manta + { + chainName: 'osmosis', + standard: TokenStandard.CwHypCollateral, + decimals: 6, + symbol: 'milkTIA', + name: 'Celestia', + addressOrDenom: 'osmo17xuecsykqw2xcxwv8cau7uy4hgdwqt0u4qxflyc2yshhggpazfjs6kfqd3', + collateralAddressOrDenom: + 'factory/osmo1f5vfcph2dvfeqcqkhetwv75fda69z7e5c2dldm3kvgj23crkv6wqcn47a0/umilkTIA', + connections: [{ token: 'ethereum|mantapacific|0x32474653127048d9fC20000e21dEd396b47968E8' }], + }, + // TIA on Manta from Osmosis + { + chainName: 'mantapacific', + standard: TokenStandard.EvmHypSynthetic, + decimals: 6, + symbol: 'TIA', + name: 'Hyperlane Bridged TIA', + addressOrDenom: '0x88410F3D8135b4D23b98dC37C4652C6969a5B1a8', + connections: [ + { + token: 'cosmos|osmosis|osmo1h4y9xjcvs8lrx4z8ha48uq9a338w74dpl2ly3tf74fzvugp2kj4q9l0jkw', + }, + ], + }, + // milkTIA on Manta from Osmosis + { + chainName: 'mantapacific', + standard: TokenStandard.EvmHypSynthetic, + decimals: 6, + symbol: 'milkTIA', + name: 'Hyperlane Bridged milkTIA', + addressOrDenom: '0x32474653127048d9fC20000e21dEd396b47968E8', + connections: [ + { + token: 'cosmos|osmosis|osmo17xuecsykqw2xcxwv8cau7uy4hgdwqt0u4qxflyc2yshhggpazfjs6kfqd3', + }, + ], + }, + //#region NEUTRON // TIA Celestia to Neutron @@ -353,6 +407,19 @@ export const tokenConfigs: WarpCoreConfig = { ], options: { interchainFeeConstants: [ + { + origin: 'osmosis', + destination: Chains.mantapacific, + amount: 840000, + addressOrDenom: 'ibc/D79E7D83AB399BFFF93433E54FAA480C191248FC556924A2A8351AE2638B3877', + }, + { + origin: 'osmosis', + destination: Chains.mantapacific, + amount: 840000, + addressOrDenom: + 'factory/osmo1f5vfcph2dvfeqcqkhetwv75fda69z7e5c2dldm3kvgj23crkv6wqcn47a0/umilkTIA', + }, { origin: Chains.neutron, destination: Chains.arbitrum, From 312ae293e1e303346231782ca75614ce7cd19fc5 Mon Sep 17 00:00:00 2001 From: byeongsu-hong Date: Tue, 14 May 2024 13:54:12 +0900 Subject: [PATCH 2/2] add endregion --- src/consts/tokens.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/consts/tokens.ts b/src/consts/tokens.ts index 66a337f1..3df7d33c 100644 --- a/src/consts/tokens.ts +++ b/src/consts/tokens.ts @@ -59,6 +59,7 @@ export const tokenConfigs: WarpCoreConfig = { ], }, + //#endregion OSMOSIS //#region NEUTRON // TIA Celestia to Neutron