@@ -28,7 +28,7 @@ func NewPayPacketFeeAsyncTxCmd() *cobra.Command {
28
28
Use : "pay-packet-fee [src-port] [src-channel] [sequence]" ,
29
29
Short : "Pay a fee to incentivize an existing IBC packet" ,
30
30
Long : strings .TrimSpace (`Pay a fee to incentivize an existing IBC packet.` ),
31
- Example : fmt .Sprintf ("%s tx pay-packet-fee transfer channel-0 1 --recv-fee 10stake --ack-fee 10stake --timeout-fee 10stake" , version .AppName ),
31
+ Example : fmt .Sprintf ("%s tx ibc-fee pay-packet-fee transfer channel-0 1 --recv-fee 10stake --ack-fee 10stake --timeout-fee 10stake" , version .AppName ),
32
32
Args : cobra .ExactArgs (3 ),
33
33
RunE : func (cmd * cobra.Command , args []string ) error {
34
34
clientCtx , err := client .GetClientTxContext (cmd )
@@ -97,3 +97,28 @@ func NewPayPacketFeeAsyncTxCmd() *cobra.Command {
97
97
98
98
return cmd
99
99
}
100
+
101
+ // NewRegisterCounterpartyAddress returns the command to create a MsgRegisterCounterpartyAddress
102
+ func NewRegisterCounterpartyAddress () * cobra.Command {
103
+ cmd := & cobra.Command {
104
+ Use : "register-counterparty [address] [counterparty-address] [channel-id]" ,
105
+ Short : "Register a counterparty relayer address on a given channel." ,
106
+ Long : strings .TrimSpace (`Register a counterparty relayer address on a given channel.` ),
107
+ Example : fmt .Sprintf ("%s tx ibc-fee register-counterparty cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh osmo1v5y0tz01llxzf4c2afml8s3awue0ymju22wxx2 channel-0" , version .AppName ),
108
+ Args : cobra .ExactArgs (3 ),
109
+ RunE : func (cmd * cobra.Command , args []string ) error {
110
+ clientCtx , err := client .GetClientTxContext (cmd )
111
+ if err != nil {
112
+ return err
113
+ }
114
+
115
+ msg := types .NewMsgRegisterCounterpartyAddress (args [0 ], args [1 ], args [2 ])
116
+
117
+ return tx .GenerateOrBroadcastTxCLI (clientCtx , cmd .Flags (), msg )
118
+ },
119
+ }
120
+
121
+ flags .AddTxFlagsToCmd (cmd )
122
+
123
+ return cmd
124
+ }
0 commit comments