You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This document provides instructions on how to create IBC connection from the manifest chain to Osmosis Testnet 5 as well as how to create a Liquidity Pool.
where `[MANIFEST_CHAIN_ID]` is the chain ID of the Manifest network, `[MANIFEST_RPC_ENDPOINT]` is the network RPC endpoint, `[MANIFEST_gRPC_ENDPOINT]` is the network gRPC endpoint and `[MANIFEST_GAS_PRICE]` is the network gas price, e.g., `0.0011`.
1. Add keys to Hermes
```shell
# Add the Manifest relaying account key
# The `--key-name` must match the `key_name` entry from the `config.toml`
# `[MANIFEST_CHAIN_ID]` is the chain ID of the Manifest network
# The `manifest-icb` contains the mnemonic words of the key
1. Run Hermes health-check. Disregard the Osmosis Testnet WARNING. Note that Hermes will also print a warning if you set your network gas price to `0.0`. Disregard if this was intended.
```shell
$ hermes health-check
INFO ThreadId(01) using default configuration from '/home/debian/.hermes/config.toml'
INFO ThreadId(01) running Hermes v1.9.0+a026d66
INFO ThreadId(01) health_check{chain=osmo-test-5}: performing health check...
WARN ThreadId(05) health_check{chain=osmo-test-5}: health check failed for chain 'osmo-test-5'
WARN ThreadId(05) health_check{chain=osmo-test-5}: reason: transaction indexing for chain 'osmo-test-5' is disabled (`node_info.other.tx_index` is off)
WARN ThreadId(05) health_check{chain=osmo-test-5}: some Hermes features may not work in this mode!
WARN ThreadId(01) health_check{chain=osmo-test-5}: chain is not healthy
INFO ThreadId(01) health_check{chain=manifest-test-1}: performing health check...
INFO ThreadId(01) health_check{chain=manifest-test-1}: chain is healthy
```
1. Start Hermes
```shell
$ hermes start
INFO ThreadId(01) using default configuration from '/home/debian/.hermes/config.toml'
INFO ThreadId(01) running Hermes v1.9.0+a026d66
INFO ThreadId(01) telemetry: telemetry disabled
INFO ThreadId(01) rest: REST server disabled
WARN ThreadId(06) health_check{chain=osmo-test-5}: health check failed for chain 'osmo-test-5'
WARN ThreadId(06) health_check{chain=osmo-test-5}: reason: transaction indexing for chain 'osmo-test-5' is disabled (`node_info.other.tx_index` is off)
WARN ThreadId(06) health_check{chain=osmo-test-5}: some Hermes features may not work in this mode!
WARN ThreadId(01) health_check{chain=osmo-test-5}: chain is not healthy: transaction indexing for chain 'osmo-test-5' is disabled (`node_info.other.tx_index` is off)
INFO ThreadId(01) health_check{chain=manifest-test-1}: chain is healthy
INFO ThreadId(01) scan.chain{chain=osmo-test-5}: scanning chain...
INFO ThreadId(01) scan.chain{chain=osmo-test-5}: scanning chain for all clients, connections and channels
INFO ThreadId(01) scan.chain{chain=osmo-test-5}: scanning all clients...
# DISREGARD THE FOLLOWING ERROR, IT WILL STILL WORK
ERROR ThreadId(01) spawn: failed to spawn worker for a chain, reason: query: gRPC call `query_clients` failed with status: status: Internal, message: "protocol error: received message with invalid compression flag: 60 (valid flags are 0 and 1) while receiving response with status: 504 Gateway Timeout", details: [], metadata: MetadataMap { headers: {"server": "nginx", "date": "Tue, 04 Jun 2024 13:51:16 GMT", "content-type": "text/html; charset=utf-8", "content-length": "160"} }
```
1. Create a new Hermes connection and channel
```shell
$ hermes create channel --a-chain osmo-test-5 --b-chain [MANIFEST_CHAIN_ID] --a-port transfer --b-port transfer --new-client-connection --yes
where `ibc/CEE22D005E967405D7AF1B5E3658B11C75FF240A21F335DD868C6E240330B43D` is the IBC identifier corresponding to `umfx`. This configuration means that `1umfx == 1uosmo`.
NOTE: One will need to configure the proper weight on the `mainnet` following the `umfx` token launch price.
NOTE: The swap fee is also TBD.
1. Create the liquidity pool
```shell
# The creator of the LP, here `osmoibc`, will need `uosmo` funds for the pool creation
You can retrieve the pool ID using https://www.mintscan.io/osmosis-testnet/. Search for the pool creator address and find the `Create Balance Pool` transaction from the transaction list. Click on it and then click on `Event Logs`. Expand the `[23] Pool Created` box and you should see the `Pool Id`.
1. Query the liquidity pool
```shell
$ osmosisd q gamm pool [POOL_ID] --node https://rpc.osmotest5.osmosis.zone:443