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
Copy file name to clipboardExpand all lines: docs/middleware/ics29-fee/end-users.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Learn how to incentivize IBC packets using the ICS29 Fee Middleware module. {syn
8
8
9
9
## Pre-requisite readings
10
10
11
-
*[Fee Middleware](overview.md) {prereq}
11
+
-[Fee Middleware](overview.md) {prereq}
12
12
13
13
## Summary
14
14
@@ -17,7 +17,6 @@ Different types of end users:
17
17
- CLI users who want to manually incentivize IBC packets
18
18
- Client developers
19
19
20
-
21
20
The Fee Middleware module allows end users to add a 'tip' to each IBC packet which will incentivize relayer operators to relay packets between chains. gRPC endpoints are exposed for client developers as well as a simple CLI for manually incentivizing IBC packets.
22
21
23
22
## CLI Users
@@ -26,6 +25,6 @@ For an in depth guide on how to use the ICS29 Fee Middleware module using the CL
26
25
27
26
## Client developers
28
27
29
-
Client developers can read more about the relevant ICS29 message types in the [Escrowing and paying out fees section](../ics29-fee/msgs.md).
28
+
Client developers can read more about the relevant ICS29 message types in the [Fee messages section](../ics29-fee/msgs.md).
30
29
31
30
[CosmJS](https://github.com/cosmos/cosmjs) is a useful client library for signing and broadcasting Cosmos SDK messages.
Copy file name to clipboardExpand all lines: docs/middleware/ics29-fee/fee-distribution.md
+42-28Lines changed: 42 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,26 +8,30 @@ Learn about payee registration for the distribution of packet fees. The followin
8
8
9
9
## Pre-requisite readings
10
10
11
-
*[Fee Middleware](overview.md) {prereq}
11
+
-[Fee Middleware](overview.md) {prereq}
12
12
13
13
Packet fees are divided into 3 distinct amounts in order to compensate relayer operators for packet relaying on fee enabled IBC channels.
14
14
15
15
-`RecvFee`: The sum of all packet receive fees distributed to a payee for successful execution of `MsgRecvPacket`.
16
16
-`AckFee`: The sum of all packet acknowledgement fees distributed to a payee for successful execution of `MsgAcknowledgement`.
17
17
-`TimeoutFee`: The sum of all packet timeout fees distributed to a payee for successful execution of `MsgTimeout`.
18
18
19
-
## Register a payee address for forward relaying
19
+
## Register a counterparty payee address for forward relaying
20
+
21
+
As mentioned in [ICS29 Concepts](../ics29-fee/overview.md#concepts), the forward relayer describes the actor who performs the submission of `MsgRecvPacket` on the destination chain.
22
+
Fee distribution for incentivized packet relays takes place on the packet source chain.
23
+
24
+
> Relayer operators are expected to register a counterparty payee address, in order to be compensated accordingly with `RecvFee`s upon completion of a packet lifecycle.
20
25
21
-
As mentioned in [ICS29 Concepts](../ics29-fee/overview.md#concepts), the forward relayer describes the actor who performs the submission of `MsgRecvPacket` on the destination chain.
22
-
Fee distribution for incentivized packet relays takes place on the packet source chain.
23
-
Relayer operators are expected to register a counterparty payee address, in order to be compensated accordingly with `RecvFee`s upon completion of a packet lifecycle.
24
26
The counterparty payee address registered on the destination chain is encoded into the packet acknowledgement and communicated as such to the source chain for fee distribution.
25
-
If a counterparty payee is not registered for the forward relayer on the destination chain, the escrowed fees will be refunded upon fee distribution.
27
+
**If a counterparty payee is not registered for the forward relayer on the destination chain, the escrowed fees will be refunded upon fee distribution.**
28
+
29
+
### Relayer operator actions?
26
30
27
-
A transaction must be submitted to the destination chain including a `CounterpartyPayee` address of an account on the source chain.
31
+
A transaction must be submitted **to the destination chain** including a `CounterpartyPayee` address of an account on the source chain.
28
32
The transaction must be signed by the `Relayer`.
29
33
30
-
Note: If a module account address is used as the `CounterpartyPayee` it is recommended to [turn off invariant checks](https://github.com/cosmos/ibc-go/blob/71d7480c923f4227453e8a80f51be01ae7ee845e/testing/simapp/app.go#L659) for that module.
34
+
Note: If a module account address is used as the `CounterpartyPayee` it is recommended to [turn off invariant checks](https://github.com/cosmos/ibc-go/blob/71d7480c923f4227453e8a80f51be01ae7ee845e/testing/simapp/app.go#L659) for that module.
31
35
32
36
```go
33
37
typeMsgRegisterCounterpartyPayeestruct {
@@ -42,27 +46,34 @@ type MsgRegisterCounterpartyPayee struct {
42
46
}
43
47
```
44
48
45
-
This message is expected to fail if:
46
-
47
-
-`PortId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators).
48
-
-`ChannelId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators)).
49
-
-`Relayer` is an invalid address (see [Cosmos SDK Addresses](https://github.com/cosmos/cosmos-sdk/blob/main/docs/basics/accounts.md#Addresses)).
50
-
-`CounterpartyPayee` is empty.
49
+
> This message is expected to fail if:
50
+
>
51
+
> -`PortId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators).
52
+
> -`ChannelId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators)).
53
+
> -`Relayer` is an invalid address (see [Cosmos SDK Addresses](https://github.com/cosmos/cosmos-sdk/blob/main/docs/basics/accounts.md#Addresses)).
54
+
> -`CounterpartyPayee` is empty.
51
55
52
56
See below for an example CLI command:
53
57
54
-
```
55
-
simd tx ibc-fee register-counterparty-payee transfer channel-0 cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh osmo1v5y0tz01llxzf4c2afml8s3awue0ymju22wxx2 --from cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh
58
+
```bash
59
+
simd tx ibc-fee register-counterparty-payee transfer channel-0 \
## Register a payee address for reverse and timeout relaying
65
+
## Register an alternative payee address for reverse and timeout relaying
59
66
60
-
As mentioned in [ICS29 Concepts](../ics29-fee/overview.md#concepts), the reverse relayer describes the actor who performs the submission of `MsgAcknowledgement` on the source chain.
67
+
As mentioned in [ICS29 Concepts](../ics29-fee/overview.md#concepts), the reverse relayer describes the actor who performs the submission of `MsgAcknowledgement` on the source chain.
61
68
Similarly the timeout relayer describes the actor who performs the submission of `MsgTimeout` (or `MsgTimeoutOnClose`) on the source chain.
62
-
Relayer operators may choose to register an optional payee address, in order to be compensated accordingly with `AckFee`s and `TimeoutFee`s upon completion of a packet life cycle.
69
+
70
+
> Relayer operators **may choose** to register an optional payee address, in order to be compensated accordingly with `AckFee`s and `TimeoutFee`s upon completion of a packet life cycle.
71
+
63
72
If a payee is not registered for the reverse or timeout relayer on the source chain, then fee distribution assumes the default behaviour, where fees are paid out to the relayer account which delivers `MsgAcknowledgement` or `MsgTimeout`/`MsgTimeoutOnClose`.
64
73
65
-
A transaction must be submitted to the source chain including a `Payee` address of an account on the source chain.
74
+
### Relayer operator actions
75
+
76
+
A transaction must be submitted **to the source chain** including a `Payee` address of an account on the source chain.
66
77
The transaction must be signed by the `Relayer`.
67
78
68
79
Note: If a module account address is used as the `Payee` it is recommended to [turn off invariant checks](https://github.com/cosmos/ibc-go/blob/71d7480c923f4227453e8a80f51be01ae7ee845e/testing/simapp/app.go#L659) for that module.
@@ -80,15 +91,18 @@ type MsgRegisterPayee struct {
80
91
}
81
92
```
82
93
83
-
This message is expected to fail if:
84
-
85
-
-`PortId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators).
86
-
-`ChannelId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators)).
87
-
-`Relayer` is an invalid address (see [Cosmos SDK Addresses](https://github.com/cosmos/cosmos-sdk/blob/main/docs/basics/accounts.md#Addresses)).
88
-
-`Payee` is an invalid address (see [Cosmos SDK Addresses](https://github.com/cosmos/cosmos-sdk/blob/main/docs/basics/accounts.md#Addresses)).
94
+
> This message is expected to fail if:
95
+
>
96
+
> -`PortId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators).
97
+
> -`ChannelId` is invalid (see [24-host naming requirements](https://github.com/cosmos/ibc/blob/master/spec/core/ics-024-host-requirements/README.md#paths-identifiers-separators)).
98
+
> -`Relayer` is an invalid address (see [Cosmos SDK Addresses](https://github.com/cosmos/cosmos-sdk/blob/main/docs/basics/accounts.md#Addresses)).
99
+
> -`Payee` is an invalid address (see [Cosmos SDK Addresses](https://github.com/cosmos/cosmos-sdk/blob/main/docs/basics/accounts.md#Addresses)).
89
100
90
101
See below for an example CLI command:
91
102
92
-
```
93
-
simd tx ibc-fee register-payee transfer channel-0 cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh cosmos153lf4zntqt33a4v0sm5cytrxyqn78q7kz8j8x5 --from cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh
103
+
```bash
104
+
simd tx ibc-fee register-payee transfer channel-0 \
0 commit comments