Skip to content

Commit 0b87b77

Browse files
authored
Merge pull request #157 from many-things/nexus
feat: add Osmosis chain / warp definitions
2 parents 2ed89bc + 312ae29 commit 0b87b77

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

src/consts/chains.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,38 @@ export const chains: ChainMap<ChainMetadata & { mailbox?: Address }> = {
3636
// logoURI: '/logo.svg',
3737
// },
3838

39+
osmosis: {
40+
protocol: ProtocolType.Cosmos,
41+
name: 'osmosis',
42+
chainId: 'osmosis-1',
43+
domainId: 875,
44+
displayName: 'Osmosis',
45+
displayNameShort: 'Osmosis',
46+
slip44: 118,
47+
bech32Prefix: 'osmo',
48+
rpcUrls: [{ http: 'https://rpc.osmosis.zone:443' }],
49+
restUrls: [{ http: 'https://rest.osmosis.zone:443' }],
50+
grpcUrls: [{ http: 'https://grpc.osmosis.zone:443' }],
51+
nativeToken: {
52+
name: 'Osmosis',
53+
denom: 'uosmo',
54+
symbol: 'OSMO',
55+
decimals: 6,
56+
},
57+
blockExplorers: [
58+
{
59+
name: 'Mintscan',
60+
url: 'https://www.mintscan.io/osmosis',
61+
// TODO API not supported, using url to meet validation requirements
62+
apiUrl: 'https://www.mintscan.io/osmosis',
63+
family: ExplorerFamily.Other,
64+
},
65+
],
66+
transactionOverrides: {
67+
gasPrice: 0.1,
68+
},
69+
},
70+
3971
ancient8: {
4072
blockExplorers: [
4173
{

src/consts/tokens.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,61 @@ import { Chains, TokenConnectionType, TokenStandard, WarpCoreConfig } from '@hyp
55
// The input here is typically the output of the Hyperlane CLI warp deploy command
66
export const tokenConfigs: WarpCoreConfig = {
77
tokens: [
8+
//#region OSMOSIS
9+
// TIA Osmosis to Manta
10+
{
11+
chainName: 'osmosis',
12+
standard: TokenStandard.CwHypCollateral,
13+
decimals: 6,
14+
symbol: 'TIA',
15+
name: 'Celestia',
16+
addressOrDenom: 'osmo1h4y9xjcvs8lrx4z8ha48uq9a338w74dpl2ly3tf74fzvugp2kj4q9l0jkw',
17+
collateralAddressOrDenom:
18+
'ibc/D79E7D83AB399BFFF93433E54FAA480C191248FC556924A2A8351AE2638B3877',
19+
connections: [{ token: 'ethereum|mantapacific|0x88410F3D8135b4D23b98dC37C4652C6969a5B1a8' }],
20+
},
21+
// milkTIA Osmosis to Manta
22+
{
23+
chainName: 'osmosis',
24+
standard: TokenStandard.CwHypCollateral,
25+
decimals: 6,
26+
symbol: 'milkTIA',
27+
name: 'Celestia',
28+
addressOrDenom: 'osmo17xuecsykqw2xcxwv8cau7uy4hgdwqt0u4qxflyc2yshhggpazfjs6kfqd3',
29+
collateralAddressOrDenom:
30+
'factory/osmo1f5vfcph2dvfeqcqkhetwv75fda69z7e5c2dldm3kvgj23crkv6wqcn47a0/umilkTIA',
31+
connections: [{ token: 'ethereum|mantapacific|0x32474653127048d9fC20000e21dEd396b47968E8' }],
32+
},
33+
// TIA on Manta from Osmosis
34+
{
35+
chainName: 'mantapacific',
36+
standard: TokenStandard.EvmHypSynthetic,
37+
decimals: 6,
38+
symbol: 'TIA',
39+
name: 'Hyperlane Bridged TIA',
40+
addressOrDenom: '0x88410F3D8135b4D23b98dC37C4652C6969a5B1a8',
41+
connections: [
42+
{
43+
token: 'cosmos|osmosis|osmo1h4y9xjcvs8lrx4z8ha48uq9a338w74dpl2ly3tf74fzvugp2kj4q9l0jkw',
44+
},
45+
],
46+
},
47+
// milkTIA on Manta from Osmosis
48+
{
49+
chainName: 'mantapacific',
50+
standard: TokenStandard.EvmHypSynthetic,
51+
decimals: 6,
52+
symbol: 'milkTIA',
53+
name: 'Hyperlane Bridged milkTIA',
54+
addressOrDenom: '0x32474653127048d9fC20000e21dEd396b47968E8',
55+
connections: [
56+
{
57+
token: 'cosmos|osmosis|osmo17xuecsykqw2xcxwv8cau7uy4hgdwqt0u4qxflyc2yshhggpazfjs6kfqd3',
58+
},
59+
],
60+
},
61+
62+
//#endregion OSMOSIS
863
//#region NEUTRON
964

1065
// TIA Celestia to Neutron
@@ -353,6 +408,19 @@ export const tokenConfigs: WarpCoreConfig = {
353408
],
354409
options: {
355410
interchainFeeConstants: [
411+
{
412+
origin: 'osmosis',
413+
destination: Chains.mantapacific,
414+
amount: 840000,
415+
addressOrDenom: 'ibc/D79E7D83AB399BFFF93433E54FAA480C191248FC556924A2A8351AE2638B3877',
416+
},
417+
{
418+
origin: 'osmosis',
419+
destination: Chains.mantapacific,
420+
amount: 840000,
421+
addressOrDenom:
422+
'factory/osmo1f5vfcph2dvfeqcqkhetwv75fda69z7e5c2dldm3kvgj23crkv6wqcn47a0/umilkTIA',
423+
},
356424
{
357425
origin: Chains.neutron,
358426
destination: Chains.arbitrum,

0 commit comments

Comments
 (0)