ryan christoffersen
    • 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
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • 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

      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.
      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
    • Engagement control
    • 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 Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control 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
Engagement control Commenting, Suggest edit, Emoji Reply
  • 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

    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.
    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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ###### tags: `Testing` # Regen Ledger v5.0.0 (Chora <> Regen) ## Chora Setup Within [choraio/chora](https://github.com/choraio/chora)... ``` git checkout main ``` ``` make install ``` ``` chora version ``` ``` main-1d46734157d5305a4ce4f1d8e299d25723507dbd ``` ## Regen Setup Within [regen-network/regen-ledger](https://github.com/regen-network/regen-ledger)... ``` git checkout v5.0.0-rc2 ``` ``` make install ``` ``` regen version ``` ``` v5.0.0-rc2 ``` ***TEMP: issue identified and being resolved*** ``` git checkout release/v5.0.x ``` ``` make install ``` ``` regen version ``` ``` release/v5.0.x-55084f7754996e05bb561b9225ad0667b312946c ``` ## Hermes Setup ``` cargo install --version 1.2.0 ibc-relayer-cli --bin hermes --locked ``` Within [choraio/testing](https://github.com/choraio/testing)... ``` make init-hermes ``` ``` make start-hermes ``` ***warnings - ok*** ``` 2022-12-21T17:20:58.022717Z WARN ThreadId(32) health_check{chain=chora-ica}: Chain 'chora-ica' has no minimum gas price value configured for denomination 'uchora'. This is usually a sign of misconfiguration, please check your config.toml 2022-12-21T17:20:58.027179Z WARN ThreadId(33) health_check{chain=regen-ica}: Chain 'regen-ica' has no minimum gas price value configured for denomination 'uregen'. This is usually a sign of misconfiguration, please check your config.toml ``` --- ``` hermes query channels --chain chora-ica ``` ``` hermes query connections --chain chora-ica ``` ``` hermes query clients --host-chain chora-ica ``` --- ``` hermes query channels --chain regen-ica ``` ``` hermes query connections --chain regen-ica ``` ``` hermes query clients --host-chain regen-ica ``` ## Available Commands Chora query commands... ``` chora q ibc --help ``` ``` chora q ibc-fee --help ``` ``` chora q ibc-transfer --help ``` ``` chora q interchain-accounts --help ``` ``` chora q intertx --help ``` --- Chora tx commands... ``` chora tx ibc --help ``` ``` chora tx ibc-fee --help ``` ``` chora tx ibc-transfer --help ``` ``` chora tx intertx --help ``` --- Regen query commands... ``` regen q ibc --help ``` ``` regen q ibc-fee --help ``` ``` regen q ibc-transfer --help ``` ``` regen q interchain-accounts --help ``` ``` regen q intertx --help ``` --- Regen tx commands... ``` regen tx ibc --help ``` ``` regen tx ibc-fee --help ``` ``` regen tx ibc-transfer --help ``` ``` regen tx intertx --help ``` ## App Configuration ``` alias chora="chora --home ./data/chora-ica" ``` ``` chora config keyring-backend test ``` ``` chora config node tcp://localhost:26656 ``` ``` chora config broadcast-mode block ``` --- ``` alias regen="regen --home ./data/regen-ica" ``` ``` regen config keyring-backend test ``` ``` regen config node tcp://localhost:26657 ``` ``` regen config broadcast-mode block ``` ## Test Accounts ``` export CHORA_1=$(chora keys show test-1 -a) && echo $CHORA_1 ``` ``` export CHORA_2=$(chora keys show test-2 -a) && echo $CHORA_2 ``` ``` export REGEN_1=$(regen keys show test-1 -a) && echo $REGEN_1 ``` ``` export REGEN_2=$(regen keys show test-2 -a) && echo $REGEN_2 ``` ## Relayer Accounts ``` export CHORA_RELAYER=$(chora keys show relayer --address) && echo $CHORA_RELAYER ``` ``` export REGEN_RELAYER=$(regen keys show relayer --address) && echo $REGEN_RELAYER ``` ## IBC Module ``` chora q ibc client params ``` ``` chora q ibc client states ``` ``` chora q ibc client header ``` ``` chora q ibc client consensus-state-heights 07-tendermint-0 ``` ``` chora q ibc client consensus-states 07-tendermint-0 ``` ``` chora q ibc client self-consensus-state ``` --- ``` chora q ibc connection connections ``` ``` chora q ibc connection end connection-0 ``` ``` chora q ibc connection path 07-tendermint-0 ``` --- ``` chora q ibc channel channels ``` ``` chora q ibc channel connections connection-0 ``` --- ``` regen q ibc client params ``` ``` regen q ibc client states ``` ``` regen q ibc client header ``` ``` regen q ibc client status 07-tendermint-0 ``` ``` regen q ibc client consensus-state-heights 07-tendermint-0 ``` ``` regen q ibc client consensus-states 07-tendermint-0 ``` ``` regen q ibc client self-consensus-state ``` --- ``` regen q ibc connection connections ``` ``` regen q ibc connection end connection-0 ``` ``` regen q ibc connection path 07-tendermint-0 ``` --- ``` regen q ibc channel channels ``` ``` regen q ibc channel connections connection-0 ``` ## IBC Transfer Channel (fee module NOT enabled) ``` hermes create channel --a-chain chora-ica --a-connection connection-0 --a-port transfer --b-port transfer ``` ***errors and warnings - ok...?*** ``` message: "account sequence mismatch, expected 5, got 4: incorrect account sequence ``` ``` hermes query channels --chain chora-ica ``` ***why one channel for chora and two for regen - ok...?*** ``` hermes query channels --chain regen-ica ``` ## IBC Transfer Module (fee module NOT enabled) ``` chora q ibc-transfer params ``` ``` regen q ibc-transfer params ``` --- ``` regen q bank balances $REGEN_1 ``` ``` regen q ibc-transfer denom-traces ``` ``` chora tx ibc-transfer transfer transfer channel-0 $REGEN_1 1000000uchora --from $CHORA_1 ``` ``` regen q bank balances $REGEN_1 ``` ``` regen q ibc-transfer denom-traces ``` --- ``` chora q bank balances $CHORA_1 ``` ``` chora q ibc-transfer denom-traces ``` ``` regen tx ibc-transfer transfer transfer channel-0 $CHORA_1 1000000uregen --from $REGEN_1 ``` ``` chora q bank balances $CHORA_1 ``` ``` chora q ibc-transfer denom-traces ``` ## ICA Modules (fee module NOT enabled) ``` chora q ica host params ``` ``` regen q ica host params ``` --- See https://github.com/regen-network/regen-ledger/issues/1706 ``` echo '{ "version": "ics27-1", "controller_connection_id": "connection-0", "host_connection_id": "connection-0", "address": "chora1m9l358xunhhwds0568za49mzhvuxx9uxp4z9rz", "encoding": "proto3", "tx_type":"sdk_multi_msg" }' > chora_1_version.json ``` ``` export CHORA_1_VERSION=$(cat chora_1_version.json | tr -d " \t\n\r") ``` ``` echo $CHORA_1_VERSION ``` ``` chora tx intertx register --from $CHORA_1 --connection-id connection-0 --version $CHORA_1_VERSION ``` ``` chora q intertx ica $CHORA_1 connection-0 ``` ``` export ICA_CHORA_1=$(chora q intertx ica $CHORA_1 connection-0 -o json | jq -r '.interchain_account_address') ``` ``` echo $ICA_CHORA_1 ``` --- ``` regen q bank balances $ICA_CHORA_1 ``` ``` regen tx bank send $REGEN_1 $ICA_CHORA_1 1000000uregen ``` ``` regen q bank balances $ICA_CHORA_1 ``` --- ``` echo '{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "<INSERT_ICA_CHORA_1>", "to_address": "regen14zs2x38lmkw4eqvl3lpml5l8crzaxn6mpvh79z", "amount": [ { "denom": "uregen", "amount": "250000" } ] }' > regen_msg_send.json ``` ``` echo $ICA_CHORA_1 ``` ``` regen q bank balances $ICA_CHORA_1 ``` ``` regen q bank balances $REGEN_1 ``` ``` chora tx intertx submit-tx connection-0 regen_msg_send.json --from $CHORA_1 ``` ``` regen q bank balances $ICA_CHORA_1 ``` ``` regen q bank balances $REGEN_1 ``` ***success - balance should be updated - message allowed*** --- ``` echo '{ "@type": "/cosmos.staking.v1beta1.MsgDelegate", "delegator_address": "<INSERT_ICA_CHORA_1>", "validator_address": "regenvaloper1qnk2n4nlkpw9xfqntladh74w6ujtulwnah3mns", "amount": { "denom": "uregen", "amount": "250000" } }' > regen_msg_delegate.json ``` ``` echo $ICA_CHORA_1 ``` ``` regen q staking delegations-to regenvaloper1qnk2n4nlkpw9xfqntladh74w6ujtulwnah3mns ``` ``` chora tx intertx submit-tx connection-0 regen_msg_delegate.json --from $CHORA_1 ``` ``` regen q staking delegations-to regenvaloper1qnk2n4nlkpw9xfqntladh74w6ujtulwnah3mns ``` ***success - delegation should be updated - message allowed*** --- ``` echo '{ "@type": "/cosmos.staking.v1beta1.MsgUndelegate", "delegator_address": "<INSERT_ICA_CHORA_1>", "validator_address": "regenvaloper1qnk2n4nlkpw9xfqntladh74w6ujtulwnah3mns", "amount": { "denom": "uregen", "amount": "250000" } }' > regen_msg_undelegate.json ``` ``` echo $ICA_CHORA_1 ``` ``` regen q staking delegations-to regenvaloper1qnk2n4nlkpw9xfqntladh74w6ujtulwnah3mns ``` ``` chora tx intertx submit-tx connection-0 regen_msg_undelegate.json --from $CHORA_1 ``` ``` regen q staking delegations-to regenvaloper1qnk2n4nlkpw9xfqntladh74w6ujtulwnah3mns ``` ***success - delegation should not be updated - message not allowed*** --- See https://github.com/regen-network/regen-ledger/issues/1706 ``` echo '{ "version": "ics27-1", "controller_connection_id": "connection-0", "host_connection_id": "connection-0", "address": "regen14zs2x38lmkw4eqvl3lpml5l8crzaxn6mpvh79z", "encoding": "proto3", "tx_type":"sdk_multi_msg" }' > regen_1_version.json ``` ``` export REGEN_1_VERSION=$(cat regen_1_version.json | tr -d " \t\n\r") ``` ``` echo $REGEN_1_VERSION ``` ``` regen tx intertx register --from $REGEN_1 --connection-id connection-0 --version $REGEN_1_VERSION ``` ``` regen q intertx ica $REGEN_1 connection-0 ``` ``` export ICA_REGEN_1=$(regen q intertx ica $REGEN_1 connection-0 -o json | jq -r '.interchain_account_address') ``` ``` echo $ICA_REGEN_1 ``` --- ``` chora q bank balances $ICA_REGEN_1 ``` ``` chora tx bank send $CHORA_1 $ICA_REGEN_1 1000000uchora ``` ``` chora q bank balances $ICA_REGEN_1 ``` --- ``` echo '{ "@type":"/cosmos.bank.v1beta1.MsgSend", "from_address": "<INSERT_ICA_REGEN_1>", "to_address": "chora1m9l358xunhhwds0568za49mzhvuxx9uxp4z9rz", "amount": [ { "denom": "uchora", "amount": "250000" } ] }' > chora_msg_send.json ``` ``` echo $ICA_REGEN_1 ``` ``` chora q bank balances $ICA_REGEN_1 ``` ``` chora q bank balances $CHORA_1 ``` ``` regen tx intertx submit-tx connection-0 chora_msg_send.json --from $REGEN_1 ``` ``` chora q bank balances $ICA_REGEN_1 ``` ``` chora q bank balances $CHORA_1 ``` ***success - balance should be updated - message allowed*** --- ``` echo '{ "@type": "/cosmos.staking.v1beta1.MsgDelegate", "delegator_address": "<INSERT_ICA_REGEN_1>", "validator_address": "choravaloper18hl5c9xn5dze2g50uaw0l2mr02ew57zkrye4d9", "amount": { "denom": "uchora", "amount": "250000" } }' > chora_msg_delegate.json ``` ``` echo $ICA_REGEN_1 ``` ``` chora q staking delegations-to choravaloper18hl5c9xn5dze2g50uaw0l2mr02ew57zkrye4d9 ``` ``` regen tx intertx submit-tx connection-0 chora_msg_delegate.json --from $REGEN_1 ``` ``` chora q staking delegations-to choravaloper18hl5c9xn5dze2g50uaw0l2mr02ew57zkrye4d9 ``` ***success - delegation should be updated - message allowed*** --- ``` echo '{ "@type": "/cosmos.staking.v1beta1.MsgUndelegate", "delegator_address": "<INSERT_ICA_REGEN_1>", "validator_address": "choravaloper18hl5c9xn5dze2g50uaw0l2mr02ew57zkrye4d9", "amount": { "denom": "uchora", "amount": "250000" } }' > chora_msg_undelegate.json ``` ``` echo $ICA_REGEN_1 ``` ``` chora q staking delegations-to choravaloper18hl5c9xn5dze2g50uaw0l2mr02ew57zkrye4d9 ``` ``` regen tx intertx submit-tx connection-0 chora_msg_undelegate.json --from $REGEN_1 ``` ``` chora q staking delegations-to choravaloper18hl5c9xn5dze2g50uaw0l2mr02ew57zkrye4d9 ``` ***success - delegation should not be updated - message not allowed*** ## IBC Transfer Channel (fee module enabled) ``` hermes create channel --a-chain chora-ica --a-connection connection-0 --a-port transfer --b-port transfer --channel-version "{\"fee_version\":\"ics29-1\",\"app_version\":\"ics20-1\"}" ``` ***errors and warnings - ok...?*** ``` message: "account sequence mismatch, expected 18, got 17: incorrect account sequence ``` ``` hermes query channels --chain chora-ica ``` ***why four channels for chora and six for regen - ok...?*** ``` hermes query channels --chain regen-ica ``` ## IBC Fee Module (register payees) ``` chora q ibc-fee channel transfer channel-3 ``` ``` chora tx ibc-fee register-payee transfer channel-3 $CHORA_RELAYER $CHORA_1 --from $CHORA_RELAYER ``` ``` chora q ibc-fee payee channel-3 $CHORA_RELAYER ``` ``` chora tx ibc-fee register-counterparty-payee transfer channel-3 $CHORA_RELAYER $CHORA_1 --from $CHORA_RELAYER ``` ``` chora q ibc-fee counterparty-payee channel-3 $CHORA_RELAYER ``` --- ``` regen q ibc-fee channel transfer channel-4 ``` ``` regen tx ibc-fee register-payee transfer channel-4 $REGEN_RELAYER $REGEN_1 --from $REGEN_RELAYER ``` ``` regen q ibc-fee payee channel-4 $REGEN_RELAYER ``` ``` regen tx ibc-fee register-counterparty-payee transfer channel-4 $REGEN_RELAYER $CHORA_1 --from $REGEN_RELAYER ``` ``` regen q ibc-fee counterparty-payee channel-4 $REGEN_RELAYER ``` ## IBC Transfer Module (fee module enabled) ``` chora q ibc-transfer params ``` ``` regen q ibc-transfer params ``` --- With fee enabled channel but without fees... ``` chora q bank balances $CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` ``` regen q ibc-transfer denom-traces ``` ``` chora tx ibc-transfer transfer transfer channel-3 $REGEN_2 1000000uchora --from $CHORA_2 ``` ``` chora q bank balances $CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` ``` regen q ibc-transfer denom-traces ``` --- With fee enabled channel and fees... ``` chora q bank balances $CHORA_1 ``` ``` chora q bank balances $CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` ***stop hermes so that packet is not executed*** ``` chora tx ibc-transfer transfer transfer channel-3 $REGEN_2 1000000uchora --from $CHORA_2 ``` ``` chora tx ibc-fee pay-packet-fee transfer channel-3 2 --recv-fee 1uchora --ack-fee 1uchora --timeout-fee 1uchora --from $CHORA_2 ``` ``` chora q ibc-fee packets ``` ***start hermes so that packet is executed*** ``` chora q bank balances $CHORA_1 ``` ``` chora q bank balances $CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` --- With fee enabled channel but without fees... ``` regen q bank balances $REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` ``` regen q ibc-transfer denom-traces ``` ``` regen tx ibc-transfer transfer transfer channel-4 $CHORA_2 1000000uregen --from $REGEN_2 ``` ``` regen q bank balances $REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` ``` chora q ibc-transfer denom-traces ``` --- With fee enabled channel and fees... ``` regen q bank balances $REGEN_1 ``` ``` regen q bank balances $REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` ***stop hermes so that packet is not executed*** ``` regen tx ibc-transfer transfer transfer channel-4 $CHORA_2 1000000uregen --from $REGEN_2 ``` ``` regen tx ibc-fee pay-packet-fee transfer channel-4 2 --recv-fee 1uregen --ack-fee 1uregen --timeout-fee 1uregen --from $REGEN_2 ``` ``` regen q ibc-fee packets ``` ***start hermes so that packet is executed*** ``` regen q bank balances $REGEN_1 ``` ``` regen q bank balances $REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` ## ICA Modules (fee module enabled) ``` chora q ica host params ``` ``` regen q ica host params ``` --- ``` echo '{ "fee_version": "ics29-1", "app_version": "{\"version\":\"ics27-1\",\"controller_connection_id\":\"connection-0\",\"host_connection_id\":\"connection-0\",\"address\":\"chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp\",\"encoding\":\"proto3\",\"tx_type\":\"sdk_multi_msg\"}" }' > chora_2_version.json ``` ``` export CHORA_2_VERSION=$(cat chora_2_version.json | tr -d " \t\n\r") ``` ``` echo $CHORA_2_VERSION ``` ``` chora tx intertx register --connection-id connection-0 --version $CHORA_2_VERSION --from $CHORA_2 ``` ``` chora q intertx ica $CHORA_2 connection-0 ``` ``` export ICA_CHORA_2=$(chora q intertx ica $CHORA_2 connection-0 -o json | jq -r '.interchain_account_address') ``` ``` echo $ICA_CHORA_2 ``` --- ``` regen q bank balances $ICA_CHORA_2 ``` ``` regen tx bank send $REGEN_2 $ICA_CHORA_2 1000000uregen ``` ``` regen q bank balances $ICA_CHORA_2 ``` --- With fee enabled channel but without fees... ``` echo '{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "<INSERT_ICA_CHORA_2>", "to_address": "regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en", "amount": [ { "denom": "uregen", "amount": "250000" } ] }' > regen_msg_send.json ``` ``` echo $ICA_CHORA_2 ``` ``` regen q bank balances $ICA_CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` ``` chora tx intertx submit-tx connection-0 regen_msg_send.json --from $CHORA_2 ``` ``` regen q bank balances $ICA_CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` --- ``` chora q ibc-fee channel icacontroller-chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp channel-4 ``` ``` chora tx ibc-fee register-payee icacontroller-chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp channel-4 $CHORA_RELAYER $CHORA_1 --from $CHORA_RELAYER ``` ``` chora q ibc-fee payee channel-4 $CHORA_RELAYER ``` ``` chora tx ibc-fee register-counterparty-payee icacontroller-chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp channel-4 $CHORA_RELAYER $CHORA_1 --from $CHORA_RELAYER ``` ``` chora q ibc-fee counterparty-payee channel-4 $CHORA_RELAYER ``` --- With fee enabled channel and fees... ``` echo '{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "<INSERT_ICA_CHORA_2>", "to_address": "regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en", "amount": [ { "denom": "uregen", "amount": "250000" } ] }' > regen_msg_send.json ``` ``` echo $ICA_CHORA_2 ``` ``` chora q bank balances $CHORA_1 ``` ``` regen q bank balances $ICA_CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` ***stop hermes so that packet is not executed*** ``` chora tx intertx submit-tx connection-0 regen_msg_send.json --from $CHORA_2 ``` ``` chora tx ibc-fee pay-packet-fee icacontroller-chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp channel-4 2 --recv-fee 1uchora --ack-fee 1uchora --timeout-fee 1uchora --from $CHORA_2 ``` ``` chora q ibc-fee packets ``` ***start hermes so that packet is executed*** ``` chora q bank balances $CHORA_1 ``` ``` regen q bank balances $ICA_CHORA_2 ``` ``` regen q bank balances $REGEN_2 ``` --- ``` echo '{ "fee_version": "ics29-1", "app_version": "{\"version\": \"ics27-1\",\"controller_connection_id\": \"connection-0\",\"host_connection_id\": \"connection-0\",\"address\": \"regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en\",\"encoding\": \"proto3\",\"tx_type\": \"sdk_multi_msg\"}" }' > regen_2_version.json ``` ``` export REGEN_2_VERSION=$(cat regen_2_version.json | tr -d " \t\n\r") ``` ``` echo $REGEN_2_VERSION ``` ``` regen tx intertx register --from $REGEN_2 --connection-id connection-0 --version $REGEN_2_VERSION ``` ``` regen q intertx ica $REGEN_2 connection-0 ``` ``` export ICA_REGEN_2=$(regen q intertx ica $REGEN_2 connection-0 -o json | jq -r '.interchain_account_address') ``` ``` echo $ICA_REGEN_2 ``` --- ``` chora q bank balances $ICA_REGEN_2 ``` ``` chora tx bank send $CHORA_2 $ICA_REGEN_2 1000000uchora ``` ``` chora q bank balances $ICA_REGEN_2 ``` --- With fee enabled channel but without fees... ``` echo '{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "<INSERT_ICA_REGEN_2>", "to_address": "chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp", "amount": [ { "denom": "uchora", "amount": "250000" } ] }' > chora_msg_send.json ``` ``` echo $ICA_REGEN_2 ``` ``` chora q bank balances $ICA_REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` ``` regen tx intertx submit-tx connection-0 chora_msg_send.json --from $REGEN_2 ``` ``` chora q bank balances $ICA_REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` --- ``` regen q ibc-fee channel icacontroller-regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en channel-7 ``` ``` regen tx ibc-fee register-payee icacontroller-regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en channel-7 $REGEN_RELAYER $REGEN_1 --from $REGEN_RELAYER ``` ``` regen q ibc-fee payee channel-7 $REGEN_RELAYER ``` ``` regen tx ibc-fee register-counterparty-payee icacontroller-regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en channel-7 $REGEN_RELAYER $CHORA_1 --from $REGEN_RELAYER ``` ``` regen q ibc-fee counterparty-payee channel-7 $REGEN_RELAYER ``` --- With fee enabled channel and fees... ``` echo '{ "@type": "/cosmos.bank.v1beta1.MsgSend", "from_address": "<INSERT_ICA_REGEN_2>", "to_address": "chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp", "amount": [ { "denom": "uchora", "amount": "250000" } ] }' > chora_msg_send.json ``` ``` echo $ICA_REGEN_2 ``` ``` regen q bank balances $REGEN_1 ``` ``` chora q bank balances $ICA_REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` ***stop hermes so that packet is not executed*** ``` regen tx intertx submit-tx connection-0 chora_msg_send.json --from $REGEN_2 ``` ``` regen tx ibc-fee pay-packet-fee icacontroller-regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en channel-7 2 --recv-fee 1uregen --ack-fee 1uregen --timeout-fee 1uregen --from $REGEN_2 ``` ``` regen q ibc-fee packets ``` ***start hermes so that packet is executed*** ``` regen q bank balances $REGEN_1 ``` ``` chora q bank balances $ICA_REGEN_2 ``` ``` chora q bank balances $CHORA_2 ``` ## IBC Fee Module ``` hermes query channels --chain chora-ica ``` ``` chora q ibc-fee channel transfer channel-0 ``` ``` chora q ibc-fee channel icacontroller-chora1m9l358xunhhwds0568za49mzhvuxx9uxp4z9rz channel-1 ``` ``` chora q ibc-fee channel icahost channel-2 ``` ``` chora q ibc-fee channel transfer channel-3 ``` ``` chora q ibc-fee channel icacontroller-chora10h9stc5v6ntgeygf5xf945njqq5h32r5nskjnp channel-4 ``` ``` chora q ibc-fee channel icahost channel-5 ``` --- ``` hermes query channels --chain regen-ica ``` ``` regen q ibc-fee channel transfer channel-0 ``` ``` regen q ibc-fee channel transfer channel-1 ``` ``` regen q ibc-fee channel icahost channel-2 ``` ``` regen q ibc-fee channel icacontroller-regen14zs2x38lmkw4eqvl3lpml5l8crzaxn6mpvh79z channel-3 ``` ``` regen q ibc-fee channel transfer channel-4 ``` ``` regen q ibc-fee channel transfer channel-5 ``` ``` regen q ibc-fee channel icahost channel-6 ``` ``` regen q ibc-fee channel icacontroller-regen1d84j42rnfgq60sjxpzj4pgfu35mew34d7r65en channel-7 ```

    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

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    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