-
Notifications
You must be signed in to change notification settings - Fork 332
Demos
Adi Seredinschi edited this page Feb 16, 2023
·
3 revisions
This session demonstrated a basic use of ICS29 relayer fees functionality in Hermes. ICS29 works in conjunction with ICS20 fungible-token transfer.
Specifically, we showed:
- when a user submits a transaction to perform an ICS20 fungible token transfer, the user can specify three new types of fees:
- a receive fee
- an acknowledgment fee
- a timeout fee
- in case of a successful relay of this transaction, then the relayer which fulfilled the packet receive step will be credited with the receive fee, and the relayer which fulfilled the acknowledgement step will get the acknowledgement fee;
- in this case, the user gets reimbursed the timeout fee
- in case of a timeout, the relayer which fulfils the timeout step will get the timeout fee
- in this case, the user gets reimbursed the receive and the acknowledgment fees
- we also looked at the available metrics that Hermes relayer exposes; the metrics are still work-in-progress, and are not yet documented in the guide
The demo was performed using:
- Hermes from this branch, which has ongoing changes for metrics: https://github.com/informalsystems/hermes/tree/luca_joss/multi-version-for-demo
- chain binary compiled from the latest ibc-go
simd
: https://github.com/cosmos/ibc-go/commit/26075efcc53ab5a3da5314933419cb16e823c3bd
% hermes fee transfer --help
Perform a token transfer supported with a fee
USAGE:
hermes fee transfer [OPTIONS] --dst-chain <DST_CHAIN_ID> --src-chain <SRC_CHAIN_ID> --src-port <SRC_PORT_ID> --src-channel <SRC_CHANNEL_ID> --amount <AMOUNT>
- standard: https://app.excalidraw.com/l/4XqkU6POmGI/8Kx7NF9qkjF
- timeout: https://app.excalidraw.com/l/4XqkU6POmGI/8Kx7NF9qkjF
15.02.23
Please contact Luca Joss for the recording's password:
- Email: [email protected]
- Discord: ljoss17#3931