King Sirouk
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    1
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Namada Dry Run - IBC Relayer w/Osmosis Node ## This is a quick guide to set up an IBC relayer with existing channels between a Namada Dry Run fullnode and an Osmosis fullnode ```bash ### IBC Setup: https://docs.namada.net/operators/ibc ### Settings export CHAIN_ID="namada-dryrun.abaaeaf7b78cb3ac" export BASE_DIR="/root/.local/share/namada" export CHAIN_A_ID="$CHAIN_ID" export CHAIN_A_CHANNEL_ID="channel-1" export CHAIN_A_KEY_NAME="relayer-namada" export CHAIN_A_CLIENT_ID="07-tendermint-1" ######### spork @ Knowable: the clients already exist from when i made the channel export CHAIN_B_ID="osmosis-1" ### Osmosis mainnet export CHAIN_B_CHANNEL_ID="channel-86536" export CHAIN_B_KEY_NAME="relayer-osmosis" export CHAIN_B_CLIENT_ID="07-tendermint-3352" ### spork @ Knowable: the clients already exist from when i made the channel export HERMES_CONFIG="$HOME/.hermes/config.toml" export TAG="v1.10.4-namada-beta17-rc2" ### check the tags here: https://github.com/heliaxdev/hermes/releases export ARCH="x86_64-unknown-linux-gnu" ### or "aarch64-apple-darwin" ### Relayer Wallets namadaw --pre-genesis derive --alias $CHAIN_A_KEY_NAME echo "put your seed here" > $BASE_DIR/$CHAIN_B_ID-$CHAIN_B_KEY_NAME-mnmem.txt ### open the RPC port on the Namada Dry Run node sed -i 's/127.0.0.1:26657/0.0.0.0:26657/g' $BASE_DIR/$CHAIN_ID/config.toml sed -i 's/127.0.0.1:26657/0.0.0.0:26657/g' $BASE_DIR/$CHAIN_ID/cometbft/config/config.toml ### check your work find $HOME/.local/ -type f -iname '*.toml' | xargs grep -rns '26657' ### restart the node sudo systemctl restart namada-node ### install hermes rm -rf /tmp/hermes.tar.gz curl -Lo /tmp/hermes.tar.gz https://github.com/heliaxdev/hermes/releases/download/${TAG}/hermes-${TAG}-${ARCH}.tar.gz sudo tar -xvzf /tmp/hermes.tar.gz -C /usr/local/bin ### check version hermes -V ### hermes 1.10.3+a046312 ### Set up a Namada Dry Run fullnode ### config binaries ### set custom configs server export NAMADA_NETWORK_CONFIGS_SERVER="https://testnet.namada-dryrun.tududes.com/configs" ### join network ### if your base_dir is not $HOME/.local/share/namada adjust this command accordingly namadac utils join-network --chain-id namada-dryrun.abaaeaf7b78cb3ac ### add persistent peer (adjust for base_dir if needed) sed -i \ 's###persistent_peers = ".*"###persistent_peers = "'\ 'tcp://05309c2cce2d163027a47c662066907e89cd6b99@74.50.93.254:26656,'\ 'tcp://2bf5cdd25975c239e8feb68153d69c5eec004fdb@64.118.250.82:46656,'\ 'tcp://75825cae136729aaf519ad62684b9b796c5593fd@138.197.133.118:26656"###' \ $HOME/.local/share/namada/namada-dryrun.abaaeaf7b78cb3ac/config.toml ### set up service template to run as a service journalctl -fu namada-node ### Set up an Osmosis fullnode on mainnet curl -sL https://get.osmosis.zone/install > i.py && python3 i.py ### 1 across the board and also 1 to cosmovisor as it will self-maintain as the chain upgrades ### 1 to default pruning and 1 for using the snapshot ### Open the RPC port on the Osmosis mainnet node sed -i 's#127.0.0.1:26657#0.0.0.0:26657#g' $HOME/.osmosisd/config/config.toml sed -i 's#grpc_laddr = ""#grpc_laddr = "tcp://0.0.0.0:9097"#g' $HOME/.osmosisd/config/config.toml ### open the firewall for rpc and grpc ports sudo ufw allow 26657 sudo ufw allow 9097 ### restart the node sudo systemctl restart cosmovisor && journalctl -fu cosmovisor ### test the ports curl http://your.osmo.node.ip:26657 curl http://your.osmo.node.ip:9097 ### Configuration that resides on the Namada Dry Run node ### https://docs.namada.net/operators/ibc###installing-hermes mkdir -p $(dirname $HERMES_CONFIG) sudo cat <<EOL > "$HERMES_CONFIG" [global] log_level = 'debug' [mode] [mode.clients] enabled = true refresh = true misbehaviour = false [mode.connections] enabled = false [mode.channels] enabled = false [mode.packets] enabled = true clear_interval = 30 clear_on_start = true tx_confirmation = true [rest] enabled = false host = '0.0.0.0' port = 3000 [telemetry] enabled = true host = '0.0.0.0' port = 3005 [[chains]] id = 'namada-dryrun.abaaeaf7b78cb3ac' type = 'Namada' rpc_addr = 'http://127.0.0.1:26657' grpc_addr = 'http://127.0.0.1:9097' ### not used event_source = { mode = 'push', url = 'ws://127.0.0.1:26657/websocket', batch_delay = '500ms' } account_prefix = '' key_name = '$CHAIN_A_KEY_NAME' store_prefix = 'ibc' ###trusting_period = '1100s' trusting_period = '14000s' gas_price = { price = 0.000001, denom = 'tnam1q9gr66cvu4hrzm0sd5kmlnjje82gs3xlfg3v6nu7' } gas_multiplier = 1.75 max_gas = 650000 rpc_timeout = '60s' memo_prefix = 'Dryrun relayer' [chains.packet_filter] policy = 'allow' list = [['transfer', '$CHAIN_A_CHANNEL_ID']] [[chains]] id = 'osmosis-1' type = 'CosmosSdk' rpc_addr = 'http://your.osmo.node.ip:26657' grpc_addr = 'http://your.osmo.node.ip:9097' ###event_source = { mode = 'push', url = 'wss://osmosis-rpc.polkachu.com/websocket', batch_delay = '500ms' } event_source = { mode = 'push', url = 'ws://your.osmo.node.ip:26657/websocket', batch_delay = '500ms' } rpc_timeout = '60s' account_prefix = 'osmo' key_name = '$CHAIN_B_KEY_NAME' store_prefix = 'ibc' default_gas = 5000000 max_gas = 15000000 gas_price = { price = 0.005, denom = 'uosmo' } gas_multiplier = 1.75 max_msg_num = 30 max_tx_size = 800000 clock_drift = '5s' max_block_time = '30s' trusting_period = '12days' ccv_consumer_chain = false sequential_batch_tx = false memo_prefix = 'Dryrun relayer' [chains.packet_filter] policy = 'allow' list = [['transfer', '$CHAIN_B_CHANNEL_ID']] EOL ### CHAIN A: add the key to the hermes config hermes --config $HERMES_CONFIG keys add --chain $CHAIN_A_ID --key-file $BASE_DIR/pre-genesis/wallet.toml --overwrite ### CHAIN B: add they key to the hermes config using a mnemonic hermes --config $HERMES_CONFIG keys add --chain $CHAIN_B_ID --mnemonic-file $BASE_DIR/$CHAIN_B_ID-$CHAIN_B_KEY_NAME-mnmem.txt --overwrite ### test the connection ### A quick script that installs grpcurl if it's not already installed. if ! command -v grpcurl &>/dev/null; then wget https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_x86_64.tar.gz sha=$(shasum -a 256 grpcurl_1.8.7_linux_x86_64.tar.gz | awk '{ print $1 }') [ "$sha" != "b50a9c9cdbabab03c0460a7218eab4a954913d696b4d69ffb720f42d869dbdd5" ] && echo "shasum mismatch" && exit 1 tar -xvf grpcurl_1.8.7_linux_x86_64.tar.gz chmod +x grpcurl ./grpcurl -version sudo mv grpcurl /usr/local/bin fi ### try a working one grpcurl grpc-t.cosmos.nodestake.org:443 list ### try ours grpcurl -plaintext your.osmo.node.ip:9097 list ### Update the clients hermes update client --host-chain $CHAIN_A_ID --client $CHAIN_A_CLIENT_ID hermes update client --host-chain $CHAIN_B_ID --client $CHAIN_B_CLIENT_ID ### make a cron for this export IBC_CHANNEL_KEEP_ALIVE_SCRIPT="$HOME/namada-osmosis-keepalive.sh" cat <<EOL > "$IBC_CHANNEL_KEEP_ALIVE_SCRIPT" ###!/bin/bash export CHAIN_A_ID="$CHAIN_A_ID" export CHAIN_A_CLIENT_ID="$CHAIN_A_CLIENT_ID" export CHAIN_B_ID="$CHAIN_B_ID" export CHAIN_B_CLIENT_ID="$CHAIN_B_CLIENT_ID" hermes update client --host-chain $CHAIN_A_ID --client $CHAIN_A_CLIENT_ID hermes update client --host-chain $CHAIN_B_ID --client $CHAIN_B_CLIENT_ID sleep 3 hermes health-check hermes config validate EOL ### make it executable sudo chmod +x $IBC_CHANNEL_KEEP_ALIVE_SCRIPT ### test the script $IBC_CHANNEL_KEEP_ALIVE_SCRIPT ### add it to cron (crontab -l 2>/dev/null; echo "*/15 * * * * $IBC_CHANNEL_KEEP_ALIVE_SCRIPT") | crontab - ### set up a service for hermes ### prepare the namada validator service export SERVICE_FILE="/lib/systemd/system/namada-hermes-ibc.service" sudo cat <<EOL > "$SERVICE_FILE" [Unit] Description=Namada Hermes IBC [Service] User=root Group=root LimitNPROC=1048576 LimitNOFILE=1048576 WorkingDirectory=$HOME ExecStart=/usr/local/bin/hermes --config $HERMES_CONFIG start ###Restart=on-failure Restart=always RestartSec=3s StandardOutput=journal StandardError=journal SyslogIdentifier=namada-hermes-ibc [Install] WantedBy=multi-user.target Alias=namada-hermes-ibc.service EOL ### save the file and exit ### enable the service sudo systemctl enable namada-hermes-ibc.service sudo systemctl daemon-reload ### start and watch the service in one go sudo systemctl start namada-hermes-ibc && journalctl -fu namada-hermes-ibc ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully