diff --git a/docs/ibc/proto-docs.md b/docs/ibc/proto-docs.md
index 6080f32d60e..9d0cf13eb4e 100644
--- a/docs/ibc/proto-docs.md
+++ b/docs/ibc/proto-docs.md
@@ -73,8 +73,8 @@
- [MsgPayPacketFeeAsync](#ibc.applications.fee.v1.MsgPayPacketFeeAsync)
- [MsgPayPacketFeeAsyncResponse](#ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse)
- [MsgPayPacketFeeResponse](#ibc.applications.fee.v1.MsgPayPacketFeeResponse)
- - [MsgRegisterCounterpartyAddress](#ibc.applications.fee.v1.MsgRegisterCounterpartyAddress)
- - [MsgRegisterCounterpartyAddressResponse](#ibc.applications.fee.v1.MsgRegisterCounterpartyAddressResponse)
+ - [MsgRegisterCounterpartyPayee](#ibc.applications.fee.v1.MsgRegisterCounterpartyPayee)
+ - [MsgRegisterCounterpartyPayeeResponse](#ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse)
- [MsgRegisterPayee](#ibc.applications.fee.v1.MsgRegisterPayee)
- [MsgRegisterPayeeResponse](#ibc.applications.fee.v1.MsgRegisterPayeeResponse)
@@ -1342,28 +1342,28 @@ MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc
-
+
-### MsgRegisterCounterpartyAddress
-MsgRegisterCounterpartyAddress defines the request type for the RegisterCounterpartyAddress rpc
+### MsgRegisterCounterpartyPayee
+MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| `address` | [string](#string) | | the relayer address |
-| `counterparty_address` | [string](#string) | | the counterparty relayer address |
| `port_id` | [string](#string) | | unique port identifier |
| `channel_id` | [string](#string) | | unique channel identifier |
+| `relayer` | [string](#string) | | the relayer address |
+| `counterparty_payee` | [string](#string) | | the counterparty payee address |
-
+
-### MsgRegisterCounterpartyAddressResponse
-MsgRegisterCounterpartyAddressResponse defines the response type for the RegisterCounterpartyAddress rpc
+### MsgRegisterCounterpartyPayeeResponse
+MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc
@@ -1380,8 +1380,8 @@ MsgRegisterPayee defines the request type for the RegisterPayee rpc
| ----- | ---- | ----- | ----------- |
| `port_id` | [string](#string) | | unique port identifier |
| `channel_id` | [string](#string) | | unique channel identifier |
-| `relayer_address` | [string](#string) | | the relayer address |
-| `payee` | [string](#string) | | the fee payee address |
+| `relayer` | [string](#string) | | the relayer address |
+| `payee` | [string](#string) | | the payee address |
@@ -1411,8 +1411,8 @@ Msg defines the ICS29 Msg service.
| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
-| `RegisterPayee` | [MsgRegisterPayee](#ibc.applications.fee.v1.MsgRegisterPayee) | [MsgRegisterPayeeResponse](#ibc.applications.fee.v1.MsgRegisterPayeeResponse) | RegisterPayee defines a rpc handler method for MsgRegisterPayee RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional payee to which escrowed packet fees will be paid out. The payee should be registered on the source chain from which packets originate as this is where fee distribution takes place. This function may be called more than once by a relayer, in which case, the latest payee is always used. | |
-| `RegisterCounterpartyAddress` | [MsgRegisterCounterpartyAddress](#ibc.applications.fee.v1.MsgRegisterCounterpartyAddress) | [MsgRegisterCounterpartyAddressResponse](#ibc.applications.fee.v1.MsgRegisterCounterpartyAddressResponse) | RegisterCounterpartyAddress defines a rpc handler method for MsgRegisterCounterpartyAddress RegisterCounterpartyAddress is called by the relayer on each channelEnd and allows them to specify their counterparty address before relaying. This ensures they will be properly compensated for forward relaying since destination chain must send back relayer's source address (counterparty address) in acknowledgement. This function may be called more than once by a relayer, in which case, the latest counterparty address is always used. | |
+| `RegisterPayee` | [MsgRegisterPayee](#ibc.applications.fee.v1.MsgRegisterPayee) | [MsgRegisterPayeeResponse](#ibc.applications.fee.v1.MsgRegisterPayeeResponse) | RegisterPayee defines a rpc handler method for MsgRegisterPayee RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on the source chain from which packets originate as this is where fee distribution takes place. This function may be called more than once by a relayer, in which case, the latest payee is always used. | |
+| `RegisterCounterpartyPayee` | [MsgRegisterCounterpartyPayee](#ibc.applications.fee.v1.MsgRegisterCounterpartyPayee) | [MsgRegisterCounterpartyPayeeResponse](#ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse) | RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty payee address before relaying. This ensures they will be properly compensated for forward relaying since the destination chain must include the registered counterparty payee address in the acknowledgement. This function may be called more than once by a relayer, in which case, the latest counterparty payee address is always used. | |
| `PayPacketFee` | [MsgPayPacketFee](#ibc.applications.fee.v1.MsgPayPacketFee) | [MsgPayPacketFeeResponse](#ibc.applications.fee.v1.MsgPayPacketFeeResponse) | PayPacketFee defines a rpc handler method for MsgPayPacketFee PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to incentivize the relaying of the packet at the next sequence NOTE: This method is intended to be used within a multi msg transaction, where the subsequent msg that follows initiates the lifecycle of the incentivized packet | |
| `PayPacketFeeAsync` | [MsgPayPacketFeeAsync](#ibc.applications.fee.v1.MsgPayPacketFeeAsync) | [MsgPayPacketFeeAsyncResponse](#ibc.applications.fee.v1.MsgPayPacketFeeAsyncResponse) | PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync PayPacketFeeAsync is an open callback that may be called by any module/user that wishes to escrow funds in order to incentivize the relaying of a known packet (i.e. at a particular sequence) | |
diff --git a/modules/apps/29-fee/client/cli/cli.go b/modules/apps/29-fee/client/cli/cli.go
index fdf5d3ffbb9..d609104ba67 100644
--- a/modules/apps/29-fee/client/cli/cli.go
+++ b/modules/apps/29-fee/client/cli/cli.go
@@ -42,8 +42,8 @@ func NewTxCmd() *cobra.Command {
txCmd.AddCommand(
NewRegisterPayeeCmd(),
+ NewRegisterCounterpartyPayeeCmd(),
NewPayPacketFeeAsyncTxCmd(),
- NewRegisterCounterpartyAddressCmd(),
)
return txCmd
diff --git a/modules/apps/29-fee/client/cli/tx.go b/modules/apps/29-fee/client/cli/tx.go
index 24f84731d88..ef038ac7fd5 100644
--- a/modules/apps/29-fee/client/cli/tx.go
+++ b/modules/apps/29-fee/client/cli/tx.go
@@ -25,7 +25,7 @@ const (
// NewRegisterPayeeCmd returns the command to create a MsgRegisterPayee
func NewRegisterPayeeCmd() *cobra.Command {
cmd := &cobra.Command{
- Use: "register-payee [port-id] [channel-id] [relayer-address] [payee-address] ",
+ Use: "register-payee [port-id] [channel-id] [relayer] [payee] ",
Short: "Register a payee on a given channel.",
Long: strings.TrimSpace(`Register a payee address on a given channel.`),
Example: fmt.Sprintf("%s tx ibc-fee register-payee transfer channel-0 cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh cosmos153lf4zntqt33a4v0sm5cytrxyqn78q7kz8j8x5", version.AppName),
@@ -47,6 +47,31 @@ func NewRegisterPayeeCmd() *cobra.Command {
return cmd
}
+// NewRegisterCounterpartyPayeeCmd returns the command to create a MsgRegisterCounterpartyPayee
+func NewRegisterCounterpartyPayeeCmd() *cobra.Command {
+ cmd := &cobra.Command{
+ Use: "register-counterparty-payee [port-id] [channel-id] [relayer] [counterparty-payee] ",
+ Short: "Register a counterparty payee address on a given channel.",
+ Long: strings.TrimSpace(`Register a counterparty payee address on a given channel.`),
+ Example: fmt.Sprintf("%s tx ibc-fee register-counterparty-payee transfer channel-0 cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh osmo1v5y0tz01llxzf4c2afml8s3awue0ymju22wxx2", version.AppName),
+ Args: cobra.ExactArgs(4),
+ RunE: func(cmd *cobra.Command, args []string) error {
+ clientCtx, err := client.GetClientTxContext(cmd)
+ if err != nil {
+ return err
+ }
+
+ msg := types.NewMsgRegisterCounterpartyPayee(args[0], args[1], args[2], args[3])
+
+ return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
+ },
+ }
+
+ flags.AddTxFlagsToCmd(cmd)
+
+ return cmd
+}
+
// NewPayPacketFeeAsyncTxCmd returns the command to create a MsgPayPacketFeeAsync
func NewPayPacketFeeAsyncTxCmd() *cobra.Command {
cmd := &cobra.Command{
@@ -122,28 +147,3 @@ func NewPayPacketFeeAsyncTxCmd() *cobra.Command {
return cmd
}
-
-// NewRegisterCounterpartyAddressCmd returns the command to create a MsgRegisterCounterpartyAddress
-func NewRegisterCounterpartyAddressCmd() *cobra.Command {
- cmd := &cobra.Command{
- Use: "register-counterparty [port-id] [channel-id] [address] [counterparty-address] ",
- Short: "Register a counterparty relayer address on a given channel.",
- Long: strings.TrimSpace(`Register a counterparty relayer address on a given channel.`),
- Example: fmt.Sprintf("%s tx ibc-fee register-counterparty transfer channel-0 cosmos1rsp837a4kvtgp2m4uqzdge0zzu6efqgucm0qdh osmo1v5y0tz01llxzf4c2afml8s3awue0ymju22wxx2", version.AppName),
- Args: cobra.ExactArgs(4),
- RunE: func(cmd *cobra.Command, args []string) error {
- clientCtx, err := client.GetClientTxContext(cmd)
- if err != nil {
- return err
- }
-
- msg := types.NewMsgRegisterCounterpartyAddress(args[0], args[1], args[2], args[3])
-
- return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), msg)
- },
- }
-
- flags.AddTxFlagsToCmd(cmd)
-
- return cmd
-}
diff --git a/modules/apps/29-fee/ibc_middleware.go b/modules/apps/29-fee/ibc_middleware.go
index d5cc6f4cfca..d9161d7caba 100644
--- a/modules/apps/29-fee/ibc_middleware.go
+++ b/modules/apps/29-fee/ibc_middleware.go
@@ -231,7 +231,7 @@ func (im IBCMiddleware) OnRecvPacket(
}
// if forwardRelayer is not found we refund recv_fee
- forwardRelayer, _ := im.keeper.GetCounterpartyAddress(ctx, relayer.String(), packet.GetDestChannel())
+ forwardRelayer, _ := im.keeper.GetCounterpartyPayeeAddress(ctx, relayer.String(), packet.GetDestChannel())
return types.NewIncentivizedAcknowledgement(forwardRelayer, ack.Acknowledgement(), ack.Success())
}
diff --git a/modules/apps/29-fee/ibc_middleware_test.go b/modules/apps/29-fee/ibc_middleware_test.go
index 37cfaf2f948..1aa8810453e 100644
--- a/modules/apps/29-fee/ibc_middleware_test.go
+++ b/modules/apps/29-fee/ibc_middleware_test.go
@@ -539,7 +539,7 @@ func (suite *FeeTestSuite) TestOnRecvPacket() {
{
"forward address is not found",
func() {
- suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), "", suite.path.EndpointB.ChannelID)
+ suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyPayeeAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), "", suite.path.EndpointB.ChannelID)
},
false,
true,
@@ -566,7 +566,7 @@ func (suite *FeeTestSuite) TestOnRecvPacket() {
cbs, ok := suite.chainB.App.GetIBCKeeper().Router.GetRoute(module)
suite.Require().True(ok)
- suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), suite.path.EndpointB.ChannelID)
+ suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyPayeeAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), suite.path.EndpointB.ChannelID)
// malleate test case
tc.malleate()
@@ -575,7 +575,7 @@ func (suite *FeeTestSuite) TestOnRecvPacket() {
switch {
case tc.name == "success":
- forwardAddr, _ := suite.chainB.GetSimApp().IBCFeeKeeper.GetCounterpartyAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), suite.path.EndpointB.ChannelID)
+ forwardAddr, _ := suite.chainB.GetSimApp().IBCFeeKeeper.GetCounterpartyPayeeAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), suite.path.EndpointB.ChannelID)
expectedAck := types.IncentivizedAcknowledgement{
AppAcknowledgement: ibcmock.MockAcknowledgement.Acknowledgement(),
diff --git a/modules/apps/29-fee/ica_test.go b/modules/apps/29-fee/ica_test.go
index 88b3d088412..d8cd4e4ce05 100644
--- a/modules/apps/29-fee/ica_test.go
+++ b/modules/apps/29-fee/ica_test.go
@@ -102,7 +102,7 @@ func (suite *FeeTestSuite) TestFeeInterchainAccounts() {
suite.Require().True(suite.chainB.GetSimApp().IBCFeeKeeper.IsFeeEnabled(suite.chainB.GetContext(), path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID))
// register counterparty address on destination chainB as chainA.SenderAccounts[1] for recv fee distribution
- suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyAddress(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress().String(), suite.chainA.SenderAccounts[1].SenderAccount.GetAddress().String(), path.EndpointB.ChannelID)
+ suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyPayeeAddress(suite.chainB.GetContext(), suite.chainB.SenderAccount.GetAddress().String(), suite.chainA.SenderAccounts[1].SenderAccount.GetAddress().String(), path.EndpointB.ChannelID)
// escrow a packet fee for the next send sequence
expectedFee := types.NewFee(defaultRecvFee, defaultAckFee, defaultTimeoutFee)
diff --git a/modules/apps/29-fee/keeper/genesis.go b/modules/apps/29-fee/keeper/genesis.go
index c4be3a9d027..eb7b1fd7095 100644
--- a/modules/apps/29-fee/keeper/genesis.go
+++ b/modules/apps/29-fee/keeper/genesis.go
@@ -13,7 +13,7 @@ func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState) {
}
for _, relayer := range state.RegisteredRelayers {
- k.SetCounterpartyAddress(ctx, relayer.Address, relayer.CounterpartyAddress, relayer.ChannelId)
+ k.SetCounterpartyPayeeAddress(ctx, relayer.Address, relayer.CounterpartyAddress, relayer.ChannelId)
}
for _, forwardAddr := range state.ForwardRelayers {
diff --git a/modules/apps/29-fee/keeper/genesis_test.go b/modules/apps/29-fee/keeper/genesis_test.go
index 7cd2e5bd1a6..05b8c907bb4 100644
--- a/modules/apps/29-fee/keeper/genesis_test.go
+++ b/modules/apps/29-fee/keeper/genesis_test.go
@@ -56,7 +56,7 @@ func (suite *KeeperTestSuite) TestInitGenesis() {
suite.Require().True(isEnabled)
// check relayers
- addr, found := suite.chainA.GetSimApp().IBCFeeKeeper.GetCounterpartyAddress(suite.chainA.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), ibctesting.FirstChannelID)
+ addr, found := suite.chainA.GetSimApp().IBCFeeKeeper.GetCounterpartyPayeeAddress(suite.chainA.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), ibctesting.FirstChannelID)
suite.Require().True(found)
suite.Require().Equal(genesisState.RegisteredRelayers[0].CounterpartyAddress, addr)
@@ -82,7 +82,7 @@ func (suite *KeeperTestSuite) TestExportGenesis() {
sender := suite.chainA.SenderAccount.GetAddress().String()
counterparty := suite.chainB.SenderAccount.GetAddress().String()
// set counterparty address
- suite.chainA.GetSimApp().IBCFeeKeeper.SetCounterpartyAddress(suite.chainA.GetContext(), sender, counterparty, ibctesting.FirstChannelID)
+ suite.chainA.GetSimApp().IBCFeeKeeper.SetCounterpartyPayeeAddress(suite.chainA.GetContext(), sender, counterparty, ibctesting.FirstChannelID)
// set forward relayer address
suite.chainA.GetSimApp().IBCFeeKeeper.SetRelayerAddressForAsyncAck(suite.chainA.GetContext(), packetID, sender)
diff --git a/modules/apps/29-fee/keeper/grpc_query.go b/modules/apps/29-fee/keeper/grpc_query.go
index 2df2b1823c9..ec8bf2ea656 100644
--- a/modules/apps/29-fee/keeper/grpc_query.go
+++ b/modules/apps/29-fee/keeper/grpc_query.go
@@ -197,7 +197,7 @@ func (k Keeper) CounterpartyAddress(goCtx context.Context, req *types.QueryCount
ctx := sdk.UnwrapSDKContext(goCtx)
- counterpartyAddr, found := k.GetCounterpartyAddress(ctx, req.RelayerAddress, req.ChannelId)
+ counterpartyAddr, found := k.GetCounterpartyPayeeAddress(ctx, req.RelayerAddress, req.ChannelId)
if !found {
return nil, status.Errorf(codes.NotFound, "counterparty address not found for address: %s on channel: %s", req.RelayerAddress, req.ChannelId)
}
diff --git a/modules/apps/29-fee/keeper/grpc_query_test.go b/modules/apps/29-fee/keeper/grpc_query_test.go
index dc345fa06eb..2f7b4f3f4bc 100644
--- a/modules/apps/29-fee/keeper/grpc_query_test.go
+++ b/modules/apps/29-fee/keeper/grpc_query_test.go
@@ -508,7 +508,7 @@ func (suite *KeeperTestSuite) TestQueryCounterpartyAddress() {
pk := secp256k1.GenPrivKey().PubKey()
expectedCounterpartyAddr := sdk.AccAddress(pk.Address())
- suite.chainA.GetSimApp().IBCFeeKeeper.SetCounterpartyAddress(
+ suite.chainA.GetSimApp().IBCFeeKeeper.SetCounterpartyPayeeAddress(
suite.chainA.GetContext(),
suite.chainA.SenderAccount.GetAddress().String(),
expectedCounterpartyAddr.String(),
diff --git a/modules/apps/29-fee/keeper/keeper.go b/modules/apps/29-fee/keeper/keeper.go
index 311bee5eb69..c8ccc9a0e6c 100644
--- a/modules/apps/29-fee/keeper/keeper.go
+++ b/modules/apps/29-fee/keeper/keeper.go
@@ -150,7 +150,7 @@ func (k Keeper) GetAllFeeEnabledChannels(ctx sdk.Context) []types.FeeEnabledChan
// GetPayeeAddress retrieves the fee payee address stored in state given the provided channel identifier and relayer address
func (k Keeper) GetPayeeAddress(ctx sdk.Context, relayerAddr, channelID string) (string, bool) {
store := ctx.KVStore(k.storeKey)
- key := types.KeyPayeeAddress(relayerAddr, channelID)
+ key := types.KeyPayee(relayerAddr, channelID)
if !store.Has(key) {
return "", false
@@ -162,13 +162,13 @@ func (k Keeper) GetPayeeAddress(ctx sdk.Context, relayerAddr, channelID string)
// SetPayeeAddress stores the fee payee address in state keyed by the provided channel identifier and relayer address
func (k Keeper) SetPayeeAddress(ctx sdk.Context, relayerAddr, payeeAddr, channelID string) {
store := ctx.KVStore(k.storeKey)
- store.Set(types.KeyPayeeAddress(relayerAddr, channelID), []byte(payeeAddr))
+ store.Set(types.KeyPayee(relayerAddr, channelID), []byte(payeeAddr))
}
// GetAllPayeeAddresses returns all registered payees
func (k Keeper) GetAllPayeeAddresses(ctx sdk.Context) []types.RegisteredPayee {
store := ctx.KVStore(k.storeKey)
- iterator := sdk.KVStorePrefixIterator(store, []byte(types.PayeeAddressKeyPrefix))
+ iterator := sdk.KVStorePrefixIterator(store, []byte(types.PayeeKeyPrefix))
defer iterator.Close()
var registeredPayees []types.RegisteredPayee
@@ -190,17 +190,17 @@ func (k Keeper) GetAllPayeeAddresses(ctx sdk.Context) []types.RegisteredPayee {
return registeredPayees
}
-// SetCounterpartyAddress maps the destination chain relayer address to the source relayer address
-// The receiving chain must store the mapping from: address -> counterpartyAddress for the given channel
-func (k Keeper) SetCounterpartyAddress(ctx sdk.Context, address, counterpartyAddress, channelID string) {
+// SetCounterpartyPayeeAddress maps the destination chain counterparty payee address to the source relayer address
+// The receiving chain must store the mapping from: address -> counterpartyPayeeAddress for the given channel
+func (k Keeper) SetCounterpartyPayeeAddress(ctx sdk.Context, address, counterpartyAddress, channelID string) {
store := ctx.KVStore(k.storeKey)
- store.Set(types.KeyCounterpartyRelayer(address, channelID), []byte(counterpartyAddress))
+ store.Set(types.KeyCounterpartyPayee(address, channelID), []byte(counterpartyAddress))
}
-// GetCounterpartyAddress gets the relayer counterparty address given a destination relayer address
-func (k Keeper) GetCounterpartyAddress(ctx sdk.Context, address, channelID string) (string, bool) {
+// GetCounterpartyPayeeAddress gets the counterparty payee address given a destination relayer address
+func (k Keeper) GetCounterpartyPayeeAddress(ctx sdk.Context, address, channelID string) (string, bool) {
store := ctx.KVStore(k.storeKey)
- key := types.KeyCounterpartyRelayer(address, channelID)
+ key := types.KeyCounterpartyPayee(address, channelID)
if !store.Has(key) {
return "", false
@@ -213,12 +213,12 @@ func (k Keeper) GetCounterpartyAddress(ctx sdk.Context, address, channelID strin
// GetAllRelayerAddresses returns all registered relayer addresses
func (k Keeper) GetAllRelayerAddresses(ctx sdk.Context) []types.RegisteredRelayerAddress {
store := ctx.KVStore(k.storeKey)
- iterator := sdk.KVStorePrefixIterator(store, []byte(types.CounterpartyRelayerAddressKeyPrefix))
+ iterator := sdk.KVStorePrefixIterator(store, []byte(types.CounterpartyPayeeKeyPrefix))
defer iterator.Close()
var registeredAddrArr []types.RegisteredRelayerAddress
for ; iterator.Valid(); iterator.Next() {
- address, channelID, err := types.ParseKeyCounterpartyRelayer(string(iterator.Key()))
+ address, channelID, err := types.ParseKeyCounterpartyPayee(string(iterator.Key()))
if err != nil {
panic(err)
}
diff --git a/modules/apps/29-fee/keeper/keeper_test.go b/modules/apps/29-fee/keeper/keeper_test.go
index 1b26fe6ac5e..b322cb07c60 100644
--- a/modules/apps/29-fee/keeper/keeper_test.go
+++ b/modules/apps/29-fee/keeper/keeper_test.go
@@ -262,7 +262,7 @@ func (suite *KeeperTestSuite) TestGetAllRelayerAddresses() {
sender := suite.chainA.SenderAccount.GetAddress().String()
counterparty := suite.chainB.SenderAccount.GetAddress().String()
- suite.chainA.GetSimApp().IBCFeeKeeper.SetCounterpartyAddress(suite.chainA.GetContext(), sender, counterparty, ibctesting.FirstChannelID)
+ suite.chainA.GetSimApp().IBCFeeKeeper.SetCounterpartyPayeeAddress(suite.chainA.GetContext(), sender, counterparty, ibctesting.FirstChannelID)
expectedAddr := []types.RegisteredRelayerAddress{
{
diff --git a/modules/apps/29-fee/keeper/msg_server.go b/modules/apps/29-fee/keeper/msg_server.go
index 0dfc8cb9a10..fe7af407d2f 100644
--- a/modules/apps/29-fee/keeper/msg_server.go
+++ b/modules/apps/29-fee/keeper/msg_server.go
@@ -14,9 +14,9 @@ var _ types.MsgServer = Keeper{}
// RegisterPayee defines a rpc handler method for MsgRegisterPayee
// RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional
-// payee to which escrowed packet fees will be paid out. The payee should be registered on the source chain from which
-// packets originate as this is where fee distribution takes place. This function may be called more than once by a relayer,
-// in which case, the latest payee is always used.
+// payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on
+// the source chain from which packets originate as this is where fee distribution takes place. This function may be
+// called more than once by a relayer, in which case, the latest payee is always used.
func (k Keeper) RegisterPayee(goCtx context.Context, msg *types.MsgRegisterPayee) (*types.MsgRegisterPayeeResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
@@ -29,20 +29,22 @@ func (k Keeper) RegisterPayee(goCtx context.Context, msg *types.MsgRegisterPayee
return nil, types.ErrFeeNotEnabled
}
- k.SetPayeeAddress(ctx, msg.RelayerAddress, msg.Payee, msg.ChannelId)
+ k.SetPayeeAddress(ctx, msg.Relayer, msg.Payee, msg.ChannelId)
- k.Logger(ctx).Info("registering payee address for relayer", "relayer address", msg.RelayerAddress, "payee address", msg.Payee, "channel", msg.ChannelId)
+ k.Logger(ctx).Info("registering payee address for relayer", "relayer", msg.Relayer, "payee", msg.Payee, "channel", msg.ChannelId)
return &types.MsgRegisterPayeeResponse{}, nil
}
-// RegisterCounterpartyAddress is called by the relayer on each channelEnd and allows them to specify their counterparty address before relaying
-// This ensures they will be properly compensated for forward relaying on the source chain since the destination chain must send back relayer's source address (counterparty address) in acknowledgement
-// This function may be called more than once by relayers, in which case, the previous counterparty address will be overwritten by the new counterparty address
-func (k Keeper) RegisterCounterpartyAddress(goCtx context.Context, msg *types.MsgRegisterCounterpartyAddress) (*types.MsgRegisterCounterpartyAddressResponse, error) {
+// RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee
+// RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty
+// payee address before relaying. This ensures they will be properly compensated for forward relaying since
+// the destination chain must include the registered counterparty payee address in the acknowledgement. This function
+// may be called more than once by a relayer, in which case, the latest counterparty payee address is always used.
+func (k Keeper) RegisterCounterpartyPayee(goCtx context.Context, msg *types.MsgRegisterCounterpartyPayee) (*types.MsgRegisterCounterpartyPayeeResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
- // only register counterparty address if the channel exists and is fee enabled
+ // only register counterparty payee if the channel exists and is fee enabled
if _, found := k.channelKeeper.GetChannel(ctx, msg.PortId, msg.ChannelId); !found {
return nil, channeltypes.ErrChannelNotFound
}
@@ -51,11 +53,11 @@ func (k Keeper) RegisterCounterpartyAddress(goCtx context.Context, msg *types.Ms
return nil, types.ErrFeeNotEnabled
}
- k.SetCounterpartyAddress(ctx, msg.Address, msg.CounterpartyAddress, msg.ChannelId)
+ k.SetCounterpartyPayeeAddress(ctx, msg.Relayer, msg.CounterpartyPayee, msg.ChannelId)
- k.Logger(ctx).Info("registering counterparty address for relayer", "address", msg.Address, "counterparty address", msg.CounterpartyAddress, "channel", msg.ChannelId)
+ k.Logger(ctx).Info("registering counterparty payee for relayer", "relayer", msg.Relayer, "counterparty payee", msg.CounterpartyPayee, "channel", msg.ChannelId)
- return &types.MsgRegisterCounterpartyAddressResponse{}, nil
+ return &types.MsgRegisterCounterpartyPayeeResponse{}, nil
}
// PayPacketFee defines a rpc handler method for MsgPayPacketFee
diff --git a/modules/apps/29-fee/keeper/msg_server_test.go b/modules/apps/29-fee/keeper/msg_server_test.go
index 76179514943..9a05f294c9d 100644
--- a/modules/apps/29-fee/keeper/msg_server_test.go
+++ b/modules/apps/29-fee/keeper/msg_server_test.go
@@ -73,12 +73,10 @@ func (suite *KeeperTestSuite) TestRegisterPayee() {
}
}
-func (suite *KeeperTestSuite) TestRegisterCounterpartyAddress() {
+func (suite *KeeperTestSuite) TestRegisterCounterpartyPayee() {
var (
- sender string
- counterparty string
- channelID string
- ctx sdk.Context
+ msg *types.MsgRegisterCounterpartyPayee
+ expCounterpartyPayee string
)
testCases := []struct {
@@ -92,43 +90,57 @@ func (suite *KeeperTestSuite) TestRegisterCounterpartyAddress() {
func() {},
},
{
- "counterparty is an arbitrary string",
+ "counterparty payee is an arbitrary string",
true,
- func() { counterparty = "arbitrary-string" },
+ func() {
+ msg.CounterpartyPayee = "arbitrary-string"
+ expCounterpartyPayee = "arbitrary-string"
+ },
},
{
"channel does not exist",
false,
- func() { channelID = "channel-22" },
+ func() {
+ msg.ChannelId = "channel-100"
+ },
},
{
"channel is not fee enabled",
false,
func() {
- suite.chainA.GetSimApp().IBCFeeKeeper.DeleteFeeEnabled(ctx, suite.path.EndpointA.ChannelConfig.PortID, channelID)
+ suite.chainA.GetSimApp().IBCFeeKeeper.DeleteFeeEnabled(suite.chainA.GetContext(), suite.path.EndpointA.ChannelConfig.PortID, suite.path.EndpointA.ChannelID)
},
},
}
for _, tc := range testCases {
suite.SetupTest()
- ctx = suite.chainA.GetContext()
suite.coordinator.Setup(suite.path) // setup channel
- sender = suite.chainA.SenderAccount.GetAddress().String()
- counterparty = suite.chainB.SenderAccount.GetAddress().String()
- channelID = suite.path.EndpointA.ChannelID
+ expCounterpartyPayee = suite.chainA.SenderAccounts[1].SenderAccount.GetAddress().String()
+ msg = types.NewMsgRegisterCounterpartyPayee(
+ suite.path.EndpointA.ChannelConfig.PortID,
+ suite.path.EndpointA.ChannelID,
+ suite.chainA.SenderAccounts[0].SenderAccount.GetAddress().String(),
+ expCounterpartyPayee,
+ )
tc.malleate()
- msg := types.NewMsgRegisterCounterpartyAddress(suite.path.EndpointA.ChannelConfig.PortID, channelID, sender, counterparty)
- _, err := suite.chainA.GetSimApp().IBCFeeKeeper.RegisterCounterpartyAddress(sdk.WrapSDKContext(ctx), msg)
+ res, err := suite.chainA.GetSimApp().IBCFeeKeeper.RegisterCounterpartyPayee(sdk.WrapSDKContext(suite.chainA.GetContext()), msg)
if tc.expPass {
- suite.Require().NoError(err) // message committed
+ suite.Require().NoError(err)
+ suite.Require().NotNil(res)
+
+ counterpartyPayee, found := suite.chainA.GetSimApp().IBCFeeKeeper.GetCounterpartyPayeeAddress(
+ suite.chainA.GetContext(),
+ suite.chainA.SenderAccount.GetAddress().String(),
+ ibctesting.FirstChannelID,
+ )
- counterpartyAddress, _ := suite.chainA.GetSimApp().IBCFeeKeeper.GetCounterpartyAddress(ctx, suite.chainA.SenderAccount.GetAddress().String(), ibctesting.FirstChannelID)
- suite.Require().Equal(counterparty, counterpartyAddress)
+ suite.Require().True(found)
+ suite.Require().Equal(expCounterpartyPayee, counterpartyPayee)
} else {
suite.Require().Error(err)
}
diff --git a/modules/apps/29-fee/keeper/relay.go b/modules/apps/29-fee/keeper/relay.go
index 476497bfbbb..0c14726c9ed 100644
--- a/modules/apps/29-fee/keeper/relay.go
+++ b/modules/apps/29-fee/keeper/relay.go
@@ -35,7 +35,7 @@ func (k Keeper) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.C
// it is possible that a relayer has not registered a counterparty address.
// if there is no registered counterparty address then write acknowledgement with empty relayer address and refund recv_fee.
- forwardRelayer, _ := k.GetCounterpartyAddress(ctx, relayer, packet.GetDestChannel())
+ forwardRelayer, _ := k.GetCounterpartyPayeeAddress(ctx, relayer, packet.GetDestChannel())
ack := types.NewIncentivizedAcknowledgement(forwardRelayer, acknowledgement.Acknowledgement(), acknowledgement.Success())
diff --git a/modules/apps/29-fee/keeper/relay_test.go b/modules/apps/29-fee/keeper/relay_test.go
index d0a9e620f9d..5dd0aa15815 100644
--- a/modules/apps/29-fee/keeper/relay_test.go
+++ b/modules/apps/29-fee/keeper/relay_test.go
@@ -18,7 +18,7 @@ func (suite *KeeperTestSuite) TestWriteAcknowledgementAsync() {
"success",
func() {
suite.chainB.GetSimApp().IBCFeeKeeper.SetRelayerAddressForAsyncAck(suite.chainB.GetContext(), channeltypes.NewPacketId(suite.path.EndpointB.ChannelConfig.PortID, suite.path.EndpointB.ChannelID, 1), suite.chainA.SenderAccount.GetAddress().String())
- suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), suite.path.EndpointB.ChannelID)
+ suite.chainB.GetSimApp().IBCFeeKeeper.SetCounterpartyPayeeAddress(suite.chainB.GetContext(), suite.chainA.SenderAccount.GetAddress().String(), suite.chainB.SenderAccount.GetAddress().String(), suite.path.EndpointB.ChannelID)
},
true,
},
diff --git a/modules/apps/29-fee/transfer_test.go b/modules/apps/29-fee/transfer_test.go
index 3f4545e9fdd..be91db917ed 100644
--- a/modules/apps/29-fee/transfer_test.go
+++ b/modules/apps/29-fee/transfer_test.go
@@ -46,7 +46,7 @@ func (suite *FeeTestSuite) TestFeeTransfer() {
// to differentiate from the chainA.SenderAccount for checking successful relay payouts
relayerAddress := suite.chainB.SenderAccount.GetAddress()
- msgRegister := types.NewMsgRegisterCounterpartyAddress(path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID, suite.chainB.SenderAccount.GetAddress().String(), relayerAddress.String())
+ msgRegister := types.NewMsgRegisterCounterpartyPayee(path.EndpointB.ChannelConfig.PortID, path.EndpointB.ChannelID, suite.chainB.SenderAccount.GetAddress().String(), relayerAddress.String())
_, err = suite.chainB.SendMsgs(msgRegister)
suite.Require().NoError(err) // message committed
diff --git a/modules/apps/29-fee/types/codec.go b/modules/apps/29-fee/types/codec.go
index 871f148b043..272056d6f9f 100644
--- a/modules/apps/29-fee/types/codec.go
+++ b/modules/apps/29-fee/types/codec.go
@@ -10,9 +10,10 @@ import (
// RegisterLegacyAminoCodec registers the necessary x/ibc 29-fee interfaces and concrete types
// on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
- cdc.RegisterConcrete(&MsgRegisterCounterpartyAddress{}, "cosmos-sdk/MsgRegisterCounterpartyAddress", nil)
cdc.RegisterConcrete(&MsgPayPacketFee{}, "cosmos-sdk/MsgPayPacketFee", nil)
cdc.RegisterConcrete(&MsgPayPacketFeeAsync{}, "cosmos-sdk/MsgPayPacketFeeAsync", nil)
+ cdc.RegisterConcrete(&MsgRegisterPayee{}, "cosmos-sdk/MsgRegisterPayee", nil)
+ cdc.RegisterConcrete(&MsgRegisterCounterpartyPayee{}, "cosmos-sdk/MsgRegisterCounterpartyPayee", nil)
}
// RegisterInterfaces register the 29-fee module interfaces to protobuf
@@ -20,9 +21,10 @@ func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*sdk.Msg)(nil),
- &MsgRegisterCounterpartyAddress{},
&MsgPayPacketFee{},
&MsgPayPacketFeeAsync{},
+ &MsgRegisterPayee{},
+ &MsgRegisterCounterpartyPayee{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
diff --git a/modules/apps/29-fee/types/errors.go b/modules/apps/29-fee/types/errors.go
index 812db0a43a4..0ac40e5f824 100644
--- a/modules/apps/29-fee/types/errors.go
+++ b/modules/apps/29-fee/types/errors.go
@@ -11,7 +11,7 @@ var (
ErrBalanceNotFound = sdkerrors.Register(ModuleName, 4, "balance not found for given account address")
ErrFeeNotFound = sdkerrors.Register(ModuleName, 5, "there is no fee escrowed for the given packetID")
ErrRelayersNotNil = sdkerrors.Register(ModuleName, 6, "relayers must be nil. This feature is not supported")
- ErrCounterpartyAddressEmpty = sdkerrors.Register(ModuleName, 7, "counterparty address must not be empty")
+ ErrCounterpartyPayeeEmpty = sdkerrors.Register(ModuleName, 7, "counterparty payee must not be empty")
ErrForwardRelayerAddressNotFound = sdkerrors.Register(ModuleName, 8, "forward relayer address not found")
ErrFeeNotEnabled = sdkerrors.Register(ModuleName, 9, "fee module is not enabled for this channel. If this error occurs after channel setup, fee module may not be enabled")
ErrRelayerNotFoundForAsyncAck = sdkerrors.Register(ModuleName, 10, "relayer address must be stored for async WriteAcknowledgement")
diff --git a/modules/apps/29-fee/types/genesis.go b/modules/apps/29-fee/types/genesis.go
index db406c3fefb..74660034041 100644
--- a/modules/apps/29-fee/types/genesis.go
+++ b/modules/apps/29-fee/types/genesis.go
@@ -89,7 +89,7 @@ func (gs GenesisState) Validate() error {
}
if strings.TrimSpace(rel.CounterpartyAddress) == "" {
- return ErrCounterpartyAddressEmpty
+ return ErrCounterpartyPayeeEmpty
}
}
diff --git a/modules/apps/29-fee/types/keys.go b/modules/apps/29-fee/types/keys.go
index 6cb6f53551c..7cbaffcd556 100644
--- a/modules/apps/29-fee/types/keys.go
+++ b/modules/apps/29-fee/types/keys.go
@@ -28,11 +28,11 @@ const (
// FeeEnabledPrefix is the key prefix for storing fee enabled flag
FeeEnabledKeyPrefix = "feeEnabled"
- // PayeeAddressKeyPrefix is the key prefix for the fee payee address stored in state
- PayeeAddressKeyPrefix = "payeeAddress"
+ // PayeeKeyPrefix is the key prefix for the fee payee address stored in state
+ PayeeKeyPrefix = "payee"
- // CounterpartyRelayerAddressKeyPrefix is the key prefix for relayer address mapping
- CounterpartyRelayerAddressKeyPrefix = "relayerAddress"
+ // CounterpartyPayeeKeyPrefix is the key prefix for the counterparty payee address mapping
+ CounterpartyPayeeKeyPrefix = "counterpartyPayee"
// FeesInEscrowPrefix is the key prefix for fee in escrow mapping
FeesInEscrowPrefix = "feesInEscrow"
@@ -73,9 +73,9 @@ func ParseKeyFeeEnabled(key string) (portID, channelID string, err error) {
return portID, channelID, nil
}
-// KeyPayeeAddress returns the key for relayer address -> payee address mapping
-func KeyPayeeAddress(relayerAddr, channelID string) []byte {
- return []byte(fmt.Sprintf("%s/%s/%s", PayeeAddressKeyPrefix, relayerAddr, channelID))
+// KeyPayee returns the key for relayer address -> payee address mapping
+func KeyPayee(relayerAddr, channelID string) []byte {
+ return []byte(fmt.Sprintf("%s/%s/%s", PayeeKeyPrefix, relayerAddr, channelID))
}
// ParseKeyPayeeAddress returns the registered relayer addresss and channelID used to the store the fee payee address
@@ -90,13 +90,13 @@ func ParseKeyPayeeAddress(key string) (relayerAddr, channelID string, err error)
return keySplit[1], keySplit[2], nil
}
-// KeyCounterpartyRelayer returns the key for relayer address -> counterparty address mapping
-func KeyCounterpartyRelayer(address, channelID string) []byte {
- return []byte(fmt.Sprintf("%s/%s/%s", CounterpartyRelayerAddressKeyPrefix, address, channelID))
+// KeyCounterpartyPayee returns the key for relayer address -> counterparty payee address mapping
+func KeyCounterpartyPayee(address, channelID string) []byte {
+ return []byte(fmt.Sprintf("%s/%s/%s", CounterpartyPayeeKeyPrefix, address, channelID))
}
-// ParseKeyCounterpartyRelayer returns the registered relayer address and channelID used to store the counterpartyrelayer address
-func ParseKeyCounterpartyRelayer(key string) (address string, channelID string, error error) {
+// ParseKeyCounterpartyPayee returns the registered relayer address and channelID used to store the counterparty payee address
+func ParseKeyCounterpartyPayee(key string) (address string, channelID string, error error) {
keySplit := strings.Split(key, "/")
if len(keySplit) != 3 {
return "", "", sdkerrors.Wrapf(
diff --git a/modules/apps/29-fee/types/keys_test.go b/modules/apps/29-fee/types/keys_test.go
index 442c4a47634..94f2c4602b2 100644
--- a/modules/apps/29-fee/types/keys_test.go
+++ b/modules/apps/29-fee/types/keys_test.go
@@ -13,12 +13,12 @@ import (
var validPacketID = channeltypes.NewPacketId(ibctesting.MockFeePort, ibctesting.FirstChannelID, 1)
-func TestKeyPayeeAddress(t *testing.T) {
- key := types.KeyPayeeAddress("relayer-address", ibctesting.FirstChannelID)
- require.Equal(t, string(key), fmt.Sprintf("%s/%s/%s", types.PayeeAddressKeyPrefix, "relayer-address", ibctesting.FirstChannelID))
+func TestKeyPayee(t *testing.T) {
+ key := types.KeyPayee("relayer-address", ibctesting.FirstChannelID)
+ require.Equal(t, string(key), fmt.Sprintf("%s/%s/%s", types.PayeeKeyPrefix, "relayer-address", ibctesting.FirstChannelID))
}
-func TestParseKeyPayeeAddress(t *testing.T) {
+func TestParseKeyPayee(t *testing.T) {
testCases := []struct {
name string
key string
@@ -26,7 +26,7 @@ func TestParseKeyPayeeAddress(t *testing.T) {
}{
{
"success",
- string(types.KeyPayeeAddress("relayer-address", ibctesting.FirstChannelID)),
+ string(types.KeyPayee("relayer-address", ibctesting.FirstChannelID)),
true,
},
{
@@ -49,14 +49,14 @@ func TestParseKeyPayeeAddress(t *testing.T) {
}
}
-func TestKeyCounterpartyRelayer(t *testing.T) {
+func TestKeyCounterpartyPayee(t *testing.T) {
var (
relayerAddress = "relayer_address"
channelID = "channel-0"
)
- key := types.KeyCounterpartyRelayer(relayerAddress, channelID)
- require.Equal(t, string(key), fmt.Sprintf("%s/%s/%s", types.CounterpartyRelayerAddressKeyPrefix, relayerAddress, channelID))
+ key := types.KeyCounterpartyPayee(relayerAddress, channelID)
+ require.Equal(t, string(key), fmt.Sprintf("%s/%s/%s", types.CounterpartyPayeeKeyPrefix, relayerAddress, channelID))
}
func TestKeyFeesInEscrow(t *testing.T) {
@@ -172,7 +172,7 @@ func TestParseKeyForwardRelayerAddress(t *testing.T) {
}
}
-func TestParseKeyCounterpartyRelayer(t *testing.T) {
+func TestParseKeyCounterpartyPayee(t *testing.T) {
relayerAddress := "relayer_address"
testCases := []struct {
@@ -182,7 +182,7 @@ func TestParseKeyCounterpartyRelayer(t *testing.T) {
}{
{
"success",
- string(types.KeyCounterpartyRelayer(relayerAddress, ibctesting.FirstChannelID)),
+ string(types.KeyCounterpartyPayee(relayerAddress, ibctesting.FirstChannelID)),
true,
},
{
@@ -193,7 +193,7 @@ func TestParseKeyCounterpartyRelayer(t *testing.T) {
}
for _, tc := range testCases {
- address, channelID, err := types.ParseKeyCounterpartyRelayer(tc.key)
+ address, channelID, err := types.ParseKeyCounterpartyPayee(tc.key)
if tc.expPass {
require.NoError(t, err)
diff --git a/modules/apps/29-fee/types/msgs.go b/modules/apps/29-fee/types/msgs.go
index 3d5520f3ff2..81d22d50422 100644
--- a/modules/apps/29-fee/types/msgs.go
+++ b/modules/apps/29-fee/types/msgs.go
@@ -19,10 +19,10 @@ const (
// NewMsgRegisterPayee creates a new instance of MsgRegisterPayee
func NewMsgRegisterPayee(portID, channelID, relayerAddr, payeeAddr string) *MsgRegisterPayee {
return &MsgRegisterPayee{
- PortId: portID,
- ChannelId: channelID,
- RelayerAddress: relayerAddr,
- Payee: payeeAddr,
+ PortId: portID,
+ ChannelId: channelID,
+ Relayer: relayerAddr,
+ Payee: payeeAddr,
}
}
@@ -36,11 +36,11 @@ func (msg MsgRegisterPayee) ValidateBasic() error {
return err
}
- if msg.RelayerAddress == msg.Payee {
+ if msg.Relayer == msg.Payee {
return sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, "relayer address and payee must not be equal")
}
- _, err := sdk.AccAddressFromBech32(msg.RelayerAddress)
+ _, err := sdk.AccAddressFromBech32(msg.Relayer)
if err != nil {
return sdkerrors.Wrap(err, "failed to create sdk.AccAddress from relayer address")
}
@@ -55,7 +55,7 @@ func (msg MsgRegisterPayee) ValidateBasic() error {
// GetSigners implements sdk.Msg
func (msg MsgRegisterPayee) GetSigners() []sdk.AccAddress {
- signer, err := sdk.AccAddressFromBech32(msg.RelayerAddress)
+ signer, err := sdk.AccAddressFromBech32(msg.Relayer)
if err != nil {
panic(err)
}
@@ -63,46 +63,45 @@ func (msg MsgRegisterPayee) GetSigners() []sdk.AccAddress {
return []sdk.AccAddress{signer}
}
-// NewMsgRegisterCounterpartyAddress creates a new instance of MsgRegisterCounterpartyAddress
-func NewMsgRegisterCounterpartyAddress(portID, channelID, address, counterpartyAddress string) *MsgRegisterCounterpartyAddress {
- return &MsgRegisterCounterpartyAddress{
- Address: address,
- CounterpartyAddress: counterpartyAddress,
- PortId: portID,
- ChannelId: channelID,
+// NewMsgRegisterCounterpartyPayee creates a new instance of MsgRegisterCounterpartyPayee
+func NewMsgRegisterCounterpartyPayee(portID, channelID, relayerAddr, counterpartyPayeeAddr string) *MsgRegisterCounterpartyPayee {
+ return &MsgRegisterCounterpartyPayee{
+ PortId: portID,
+ ChannelId: channelID,
+ Relayer: relayerAddr,
+ CounterpartyPayee: counterpartyPayeeAddr,
}
}
// ValidateBasic performs a basic check of the MsgRegisterCounterpartyAddress fields
-func (msg MsgRegisterCounterpartyAddress) ValidateBasic() error {
- _, err := sdk.AccAddressFromBech32(msg.Address)
- if err != nil {
- return sdkerrors.Wrap(err, "failed to convert msg.Address into sdk.AccAddress")
- }
-
- if strings.TrimSpace(msg.CounterpartyAddress) == "" {
- return ErrCounterpartyAddressEmpty
- }
-
- // validate portId
+func (msg MsgRegisterCounterpartyPayee) ValidateBasic() error {
if err := host.PortIdentifierValidator(msg.PortId); err != nil {
return err
}
- // validate channelId
if err := host.ChannelIdentifierValidator(msg.ChannelId); err != nil {
return err
}
+ _, err := sdk.AccAddressFromBech32(msg.Relayer)
+ if err != nil {
+ return sdkerrors.Wrap(err, "failed to create sdk.AccAddress from relayer address")
+ }
+
+ if strings.TrimSpace(msg.CounterpartyPayee) == "" {
+ return ErrCounterpartyPayeeEmpty
+ }
+
return nil
}
// GetSigners implements sdk.Msg
-func (msg MsgRegisterCounterpartyAddress) GetSigners() []sdk.AccAddress {
- signer, err := sdk.AccAddressFromBech32(msg.Address)
+func (msg MsgRegisterCounterpartyPayee) GetSigners() []sdk.AccAddress {
+ signer, err := sdk.AccAddressFromBech32(msg.Relayer)
if err != nil {
panic(err)
}
+
return []sdk.AccAddress{signer}
}
diff --git a/modules/apps/29-fee/types/msgs_test.go b/modules/apps/29-fee/types/msgs_test.go
index 4ca23fea458..5b6cbc8c033 100644
--- a/modules/apps/29-fee/types/msgs_test.go
+++ b/modules/apps/29-fee/types/msgs_test.go
@@ -42,7 +42,7 @@ func TestMsgRegisterPayeeValidation(t *testing.T) {
{
"invalid request relayer and payee are equal",
func() {
- msg.RelayerAddress = defaultAccAddress
+ msg.Relayer = defaultAccAddress
msg.Payee = defaultAccAddress
},
false,
@@ -50,7 +50,7 @@ func TestMsgRegisterPayeeValidation(t *testing.T) {
{
"invalid relayer address",
func() {
- msg.RelayerAddress = "invalid-address"
+ msg.Relayer = "invalid-address"
},
false,
},
@@ -87,8 +87,8 @@ func TestRegisterPayeeGetSigners(t *testing.T) {
require.Equal(t, []sdk.AccAddress{sdk.AccAddress(accAddress)}, msg.GetSigners())
}
-func TestMsgRegisterCountepartyAddressValidation(t *testing.T) {
- var msg *types.MsgRegisterCounterpartyAddress
+func TestMsgRegisterCountepartyPayeeValidation(t *testing.T) {
+ var msg *types.MsgRegisterCounterpartyPayee
testCases := []struct {
name string
@@ -101,44 +101,44 @@ func TestMsgRegisterCountepartyAddressValidation(t *testing.T) {
true,
},
{
- "validate with incorrect destination relayer address",
+ "invalid portID",
func() {
- msg.Address = "invalid-address"
+ msg.PortId = ""
},
false,
},
{
- "invalid counterparty address",
+ "invalid channelID",
func() {
- msg.CounterpartyAddress = ""
+ msg.ChannelId = ""
},
false,
},
{
- "invalid counterparty address: whitespaced empty string",
+ "validate with incorrect destination relayer address",
func() {
- msg.CounterpartyAddress = " "
+ msg.Relayer = "invalid-address"
},
false,
},
{
- "invalid channelID",
+ "invalid counterparty payee address",
func() {
- msg.ChannelId = ""
+ msg.CounterpartyPayee = ""
},
false,
},
{
- "invalid portID",
+ "invalid counterparty payee address: whitespaced empty string",
func() {
- msg.PortId = ""
+ msg.CounterpartyPayee = " "
},
false,
},
}
for i, tc := range testCases {
- msg = types.NewMsgRegisterCounterpartyAddress(ibctesting.MockPort, ibctesting.FirstChannelID, defaultAccAddress, defaultAccAddress)
+ msg = types.NewMsgRegisterCounterpartyPayee(ibctesting.MockPort, ibctesting.FirstChannelID, defaultAccAddress, defaultAccAddress)
tc.malleate()
@@ -154,7 +154,7 @@ func TestMsgRegisterCountepartyAddressValidation(t *testing.T) {
func TestRegisterCountepartyAddressGetSigners(t *testing.T) {
accAddress := sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address())
- msg := types.NewMsgRegisterCounterpartyAddress(ibctesting.MockPort, ibctesting.FirstChannelID, accAddress.String(), defaultAccAddress)
+ msg := types.NewMsgRegisterCounterpartyPayee(ibctesting.MockPort, ibctesting.FirstChannelID, accAddress.String(), defaultAccAddress)
require.Equal(t, []sdk.AccAddress{sdk.AccAddress(accAddress)}, msg.GetSigners())
}
diff --git a/modules/apps/29-fee/types/tx.pb.go b/modules/apps/29-fee/types/tx.pb.go
index 7c941f44c9c..e62ca434e8d 100644
--- a/modules/apps/29-fee/types/tx.pb.go
+++ b/modules/apps/29-fee/types/tx.pb.go
@@ -36,8 +36,8 @@ type MsgRegisterPayee struct {
// unique channel identifier
ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
// the relayer address
- RelayerAddress string `protobuf:"bytes,3,opt,name=relayer_address,json=relayerAddress,proto3" json:"relayer_address,omitempty" yaml:"relayer_address"`
- // the fee payee address
+ Relayer string `protobuf:"bytes,3,opt,name=relayer,proto3" json:"relayer,omitempty"`
+ // the payee address
Payee string `protobuf:"bytes,4,opt,name=payee,proto3" json:"payee,omitempty"`
}
@@ -111,30 +111,30 @@ func (m *MsgRegisterPayeeResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_MsgRegisterPayeeResponse proto.InternalMessageInfo
-// MsgRegisterCounterpartyAddress defines the request type for the RegisterCounterpartyAddress rpc
-type MsgRegisterCounterpartyAddress struct {
- // the relayer address
- Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
- // the counterparty relayer address
- CounterpartyAddress string `protobuf:"bytes,2,opt,name=counterparty_address,json=counterpartyAddress,proto3" json:"counterparty_address,omitempty" yaml:"counterparty_address"`
+// MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc
+type MsgRegisterCounterpartyPayee struct {
// unique port identifier
- PortId string `protobuf:"bytes,3,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
+ PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty" yaml:"port_id"`
// unique channel identifier
- ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
+ ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty" yaml:"channel_id"`
+ // the relayer address
+ Relayer string `protobuf:"bytes,3,opt,name=relayer,proto3" json:"relayer,omitempty"`
+ // the counterparty payee address
+ CounterpartyPayee string `protobuf:"bytes,4,opt,name=counterparty_payee,json=counterpartyPayee,proto3" json:"counterparty_payee,omitempty" yaml:"counterparty_payee"`
}
-func (m *MsgRegisterCounterpartyAddress) Reset() { *m = MsgRegisterCounterpartyAddress{} }
-func (m *MsgRegisterCounterpartyAddress) String() string { return proto.CompactTextString(m) }
-func (*MsgRegisterCounterpartyAddress) ProtoMessage() {}
-func (*MsgRegisterCounterpartyAddress) Descriptor() ([]byte, []int) {
+func (m *MsgRegisterCounterpartyPayee) Reset() { *m = MsgRegisterCounterpartyPayee{} }
+func (m *MsgRegisterCounterpartyPayee) String() string { return proto.CompactTextString(m) }
+func (*MsgRegisterCounterpartyPayee) ProtoMessage() {}
+func (*MsgRegisterCounterpartyPayee) Descriptor() ([]byte, []int) {
return fileDescriptor_05c93128649f1b96, []int{2}
}
-func (m *MsgRegisterCounterpartyAddress) XXX_Unmarshal(b []byte) error {
+func (m *MsgRegisterCounterpartyPayee) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *MsgRegisterCounterpartyAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *MsgRegisterCounterpartyPayee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_MsgRegisterCounterpartyAddress.Marshal(b, m, deterministic)
+ return xxx_messageInfo_MsgRegisterCounterpartyPayee.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -144,36 +144,34 @@ func (m *MsgRegisterCounterpartyAddress) XXX_Marshal(b []byte, deterministic boo
return b[:n], nil
}
}
-func (m *MsgRegisterCounterpartyAddress) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MsgRegisterCounterpartyAddress.Merge(m, src)
+func (m *MsgRegisterCounterpartyPayee) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgRegisterCounterpartyPayee.Merge(m, src)
}
-func (m *MsgRegisterCounterpartyAddress) XXX_Size() int {
+func (m *MsgRegisterCounterpartyPayee) XXX_Size() int {
return m.Size()
}
-func (m *MsgRegisterCounterpartyAddress) XXX_DiscardUnknown() {
- xxx_messageInfo_MsgRegisterCounterpartyAddress.DiscardUnknown(m)
+func (m *MsgRegisterCounterpartyPayee) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgRegisterCounterpartyPayee.DiscardUnknown(m)
}
-var xxx_messageInfo_MsgRegisterCounterpartyAddress proto.InternalMessageInfo
+var xxx_messageInfo_MsgRegisterCounterpartyPayee proto.InternalMessageInfo
-// MsgRegisterCounterpartyAddressResponse defines the response type for the RegisterCounterpartyAddress rpc
-type MsgRegisterCounterpartyAddressResponse struct {
+// MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc
+type MsgRegisterCounterpartyPayeeResponse struct {
}
-func (m *MsgRegisterCounterpartyAddressResponse) Reset() {
- *m = MsgRegisterCounterpartyAddressResponse{}
-}
-func (m *MsgRegisterCounterpartyAddressResponse) String() string { return proto.CompactTextString(m) }
-func (*MsgRegisterCounterpartyAddressResponse) ProtoMessage() {}
-func (*MsgRegisterCounterpartyAddressResponse) Descriptor() ([]byte, []int) {
+func (m *MsgRegisterCounterpartyPayeeResponse) Reset() { *m = MsgRegisterCounterpartyPayeeResponse{} }
+func (m *MsgRegisterCounterpartyPayeeResponse) String() string { return proto.CompactTextString(m) }
+func (*MsgRegisterCounterpartyPayeeResponse) ProtoMessage() {}
+func (*MsgRegisterCounterpartyPayeeResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_05c93128649f1b96, []int{3}
}
-func (m *MsgRegisterCounterpartyAddressResponse) XXX_Unmarshal(b []byte) error {
+func (m *MsgRegisterCounterpartyPayeeResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *MsgRegisterCounterpartyAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *MsgRegisterCounterpartyPayeeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_MsgRegisterCounterpartyAddressResponse.Marshal(b, m, deterministic)
+ return xxx_messageInfo_MsgRegisterCounterpartyPayeeResponse.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -183,17 +181,17 @@ func (m *MsgRegisterCounterpartyAddressResponse) XXX_Marshal(b []byte, determini
return b[:n], nil
}
}
-func (m *MsgRegisterCounterpartyAddressResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_MsgRegisterCounterpartyAddressResponse.Merge(m, src)
+func (m *MsgRegisterCounterpartyPayeeResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_MsgRegisterCounterpartyPayeeResponse.Merge(m, src)
}
-func (m *MsgRegisterCounterpartyAddressResponse) XXX_Size() int {
+func (m *MsgRegisterCounterpartyPayeeResponse) XXX_Size() int {
return m.Size()
}
-func (m *MsgRegisterCounterpartyAddressResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_MsgRegisterCounterpartyAddressResponse.DiscardUnknown(m)
+func (m *MsgRegisterCounterpartyPayeeResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_MsgRegisterCounterpartyPayeeResponse.DiscardUnknown(m)
}
-var xxx_messageInfo_MsgRegisterCounterpartyAddressResponse proto.InternalMessageInfo
+var xxx_messageInfo_MsgRegisterCounterpartyPayeeResponse proto.InternalMessageInfo
// MsgPayPacketFee defines the request type for the PayPacketFee rpc
// This Msg can be used to pay for a packet at the next sequence send & should be combined with the Msg that will be
@@ -363,8 +361,8 @@ var xxx_messageInfo_MsgPayPacketFeeAsyncResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgRegisterPayee)(nil), "ibc.applications.fee.v1.MsgRegisterPayee")
proto.RegisterType((*MsgRegisterPayeeResponse)(nil), "ibc.applications.fee.v1.MsgRegisterPayeeResponse")
- proto.RegisterType((*MsgRegisterCounterpartyAddress)(nil), "ibc.applications.fee.v1.MsgRegisterCounterpartyAddress")
- proto.RegisterType((*MsgRegisterCounterpartyAddressResponse)(nil), "ibc.applications.fee.v1.MsgRegisterCounterpartyAddressResponse")
+ proto.RegisterType((*MsgRegisterCounterpartyPayee)(nil), "ibc.applications.fee.v1.MsgRegisterCounterpartyPayee")
+ proto.RegisterType((*MsgRegisterCounterpartyPayeeResponse)(nil), "ibc.applications.fee.v1.MsgRegisterCounterpartyPayeeResponse")
proto.RegisterType((*MsgPayPacketFee)(nil), "ibc.applications.fee.v1.MsgPayPacketFee")
proto.RegisterType((*MsgPayPacketFeeResponse)(nil), "ibc.applications.fee.v1.MsgPayPacketFeeResponse")
proto.RegisterType((*MsgPayPacketFeeAsync)(nil), "ibc.applications.fee.v1.MsgPayPacketFeeAsync")
@@ -374,53 +372,51 @@ func init() {
func init() { proto.RegisterFile("ibc/applications/fee/v1/tx.proto", fileDescriptor_05c93128649f1b96) }
var fileDescriptor_05c93128649f1b96 = []byte{
- // 732 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcf, 0x4f, 0xdb, 0x58,
- 0x10, 0x8e, 0x09, 0xbf, 0x32, 0xb0, 0x40, 0xbc, 0x01, 0x8c, 0x61, 0x6d, 0xd6, 0x87, 0x55, 0x56,
- 0x2b, 0xec, 0x4d, 0x00, 0xad, 0x96, 0x0b, 0x22, 0x48, 0xa8, 0x1c, 0x50, 0x23, 0xab, 0xa7, 0xaa,
- 0x12, 0x72, 0x9c, 0x89, 0x71, 0x9b, 0xe4, 0x59, 0x7e, 0x4e, 0x54, 0xff, 0x07, 0x3d, 0x72, 0xeb,
- 0x95, 0x3f, 0x87, 0x23, 0x87, 0x1e, 0xaa, 0x1e, 0xac, 0x0a, 0x2e, 0x3d, 0x47, 0xea, 0xa9, 0x97,
- 0xca, 0xf6, 0xb3, 0xeb, 0xa4, 0x09, 0x0a, 0xbd, 0xbd, 0x99, 0xf9, 0x66, 0xde, 0x7c, 0x9f, 0x67,
- 0xfc, 0x60, 0xd7, 0x6e, 0x98, 0x9a, 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1, 0xe6, 0xb6, 0x2a, 0x7c, 0xb9,
+ 0xad, 0x0a, 0x97, 0x77, 0xd5, 0xc2, 0xcd, 0x5d, 0xb5, 0xf0, 0xf9, 0xae, 0x5a, 0x78, 0x75, 0x68,
+ 0x3b, 0xc1, 0x45, 0xaf, 0xa9, 0x5a, 0xa4, 0xab, 0x59, 0x84, 0x76, 0x09, 0xd5, 0x9c, 0xa6, 0xb5,
+ 0x67, 0x13, 0xad, 0xbf, 0xaf, 0x75, 0x49, 0xab, 0xd7, 0xc1, 0x94, 0x3d, 0x41, 0x54, 0xab, 0x3f,
+ 0xda, 0x63, 0xaf, 0x4f, 0x10, 0x7a, 0x98, 0x36, 0xe7, 0xe3, 0xa7, 0x65, 0xff, 0x47, 0x00, 0x00,
+ 0x00, 0xff, 0xff, 0x59, 0xf9, 0x73, 0xbc, 0xf3, 0x06, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -437,16 +433,16 @@ const _ = grpc.SupportPackageIsVersion4
type MsgClient interface {
// RegisterPayee defines a rpc handler method for MsgRegisterPayee
// RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional
- // payee to which escrowed packet fees will be paid out. The payee should be registered on the source chain from which
- // packets originate as this is where fee distribution takes place. This function may be called more than once by a
- // relayer, in which case, the latest payee is always used.
+ // payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on
+ // the source chain from which packets originate as this is where fee distribution takes place. This function may be
+ // called more than once by a relayer, in which case, the latest payee is always used.
RegisterPayee(ctx context.Context, in *MsgRegisterPayee, opts ...grpc.CallOption) (*MsgRegisterPayeeResponse, error)
- // RegisterCounterpartyAddress defines a rpc handler method for MsgRegisterCounterpartyAddress
- // RegisterCounterpartyAddress is called by the relayer on each channelEnd and allows them to specify their
- // counterparty address before relaying. This ensures they will be properly compensated for forward relaying since
- // destination chain must send back relayer's source address (counterparty address) in acknowledgement. This function
- // may be called more than once by a relayer, in which case, the latest counterparty address is always used.
- RegisterCounterpartyAddress(ctx context.Context, in *MsgRegisterCounterpartyAddress, opts ...grpc.CallOption) (*MsgRegisterCounterpartyAddressResponse, error)
+ // RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee
+ // RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty
+ // payee address before relaying. This ensures they will be properly compensated for forward relaying since
+ // the destination chain must include the registered counterparty payee address in the acknowledgement. This function
+ // may be called more than once by a relayer, in which case, the latest counterparty payee address is always used.
+ RegisterCounterpartyPayee(ctx context.Context, in *MsgRegisterCounterpartyPayee, opts ...grpc.CallOption) (*MsgRegisterCounterpartyPayeeResponse, error)
// PayPacketFee defines a rpc handler method for MsgPayPacketFee
// PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to
// incentivize the relaying of the packet at the next sequence
@@ -476,9 +472,9 @@ func (c *msgClient) RegisterPayee(ctx context.Context, in *MsgRegisterPayee, opt
return out, nil
}
-func (c *msgClient) RegisterCounterpartyAddress(ctx context.Context, in *MsgRegisterCounterpartyAddress, opts ...grpc.CallOption) (*MsgRegisterCounterpartyAddressResponse, error) {
- out := new(MsgRegisterCounterpartyAddressResponse)
- err := c.cc.Invoke(ctx, "/ibc.applications.fee.v1.Msg/RegisterCounterpartyAddress", in, out, opts...)
+func (c *msgClient) RegisterCounterpartyPayee(ctx context.Context, in *MsgRegisterCounterpartyPayee, opts ...grpc.CallOption) (*MsgRegisterCounterpartyPayeeResponse, error) {
+ out := new(MsgRegisterCounterpartyPayeeResponse)
+ err := c.cc.Invoke(ctx, "/ibc.applications.fee.v1.Msg/RegisterCounterpartyPayee", in, out, opts...)
if err != nil {
return nil, err
}
@@ -507,16 +503,16 @@ func (c *msgClient) PayPacketFeeAsync(ctx context.Context, in *MsgPayPacketFeeAs
type MsgServer interface {
// RegisterPayee defines a rpc handler method for MsgRegisterPayee
// RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional
- // payee to which escrowed packet fees will be paid out. The payee should be registered on the source chain from which
- // packets originate as this is where fee distribution takes place. This function may be called more than once by a
- // relayer, in which case, the latest payee is always used.
+ // payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on
+ // the source chain from which packets originate as this is where fee distribution takes place. This function may be
+ // called more than once by a relayer, in which case, the latest payee is always used.
RegisterPayee(context.Context, *MsgRegisterPayee) (*MsgRegisterPayeeResponse, error)
- // RegisterCounterpartyAddress defines a rpc handler method for MsgRegisterCounterpartyAddress
- // RegisterCounterpartyAddress is called by the relayer on each channelEnd and allows them to specify their
- // counterparty address before relaying. This ensures they will be properly compensated for forward relaying since
- // destination chain must send back relayer's source address (counterparty address) in acknowledgement. This function
- // may be called more than once by a relayer, in which case, the latest counterparty address is always used.
- RegisterCounterpartyAddress(context.Context, *MsgRegisterCounterpartyAddress) (*MsgRegisterCounterpartyAddressResponse, error)
+ // RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee
+ // RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty
+ // payee address before relaying. This ensures they will be properly compensated for forward relaying since
+ // the destination chain must include the registered counterparty payee address in the acknowledgement. This function
+ // may be called more than once by a relayer, in which case, the latest counterparty payee address is always used.
+ RegisterCounterpartyPayee(context.Context, *MsgRegisterCounterpartyPayee) (*MsgRegisterCounterpartyPayeeResponse, error)
// PayPacketFee defines a rpc handler method for MsgPayPacketFee
// PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to
// incentivize the relaying of the packet at the next sequence
@@ -536,8 +532,8 @@ type UnimplementedMsgServer struct {
func (*UnimplementedMsgServer) RegisterPayee(ctx context.Context, req *MsgRegisterPayee) (*MsgRegisterPayeeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegisterPayee not implemented")
}
-func (*UnimplementedMsgServer) RegisterCounterpartyAddress(ctx context.Context, req *MsgRegisterCounterpartyAddress) (*MsgRegisterCounterpartyAddressResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method RegisterCounterpartyAddress not implemented")
+func (*UnimplementedMsgServer) RegisterCounterpartyPayee(ctx context.Context, req *MsgRegisterCounterpartyPayee) (*MsgRegisterCounterpartyPayeeResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method RegisterCounterpartyPayee not implemented")
}
func (*UnimplementedMsgServer) PayPacketFee(ctx context.Context, req *MsgPayPacketFee) (*MsgPayPacketFeeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PayPacketFee not implemented")
@@ -568,20 +564,20 @@ func _Msg_RegisterPayee_Handler(srv interface{}, ctx context.Context, dec func(i
return interceptor(ctx, in, info, handler)
}
-func _Msg_RegisterCounterpartyAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(MsgRegisterCounterpartyAddress)
+func _Msg_RegisterCounterpartyPayee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(MsgRegisterCounterpartyPayee)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
- return srv.(MsgServer).RegisterCounterpartyAddress(ctx, in)
+ return srv.(MsgServer).RegisterCounterpartyPayee(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
- FullMethod: "/ibc.applications.fee.v1.Msg/RegisterCounterpartyAddress",
+ FullMethod: "/ibc.applications.fee.v1.Msg/RegisterCounterpartyPayee",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MsgServer).RegisterCounterpartyAddress(ctx, req.(*MsgRegisterCounterpartyAddress))
+ return srv.(MsgServer).RegisterCounterpartyPayee(ctx, req.(*MsgRegisterCounterpartyPayee))
}
return interceptor(ctx, in, info, handler)
}
@@ -631,8 +627,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{
Handler: _Msg_RegisterPayee_Handler,
},
{
- MethodName: "RegisterCounterpartyAddress",
- Handler: _Msg_RegisterCounterpartyAddress_Handler,
+ MethodName: "RegisterCounterpartyPayee",
+ Handler: _Msg_RegisterCounterpartyPayee_Handler,
},
{
MethodName: "PayPacketFee",
@@ -674,10 +670,10 @@ func (m *MsgRegisterPayee) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i--
dAtA[i] = 0x22
}
- if len(m.RelayerAddress) > 0 {
- i -= len(m.RelayerAddress)
- copy(dAtA[i:], m.RelayerAddress)
- i = encodeVarintTx(dAtA, i, uint64(len(m.RelayerAddress)))
+ if len(m.Relayer) > 0 {
+ i -= len(m.Relayer)
+ copy(dAtA[i:], m.Relayer)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Relayer)))
i--
dAtA[i] = 0x1a
}
@@ -721,7 +717,7 @@ func (m *MsgRegisterPayeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error
return len(dAtA) - i, nil
}
-func (m *MsgRegisterCounterpartyAddress) Marshal() (dAtA []byte, err error) {
+func (m *MsgRegisterCounterpartyPayee) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -731,48 +727,48 @@ func (m *MsgRegisterCounterpartyAddress) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *MsgRegisterCounterpartyAddress) MarshalTo(dAtA []byte) (int, error) {
+func (m *MsgRegisterCounterpartyPayee) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgRegisterCounterpartyAddress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *MsgRegisterCounterpartyPayee) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
+ if len(m.CounterpartyPayee) > 0 {
+ i -= len(m.CounterpartyPayee)
+ copy(dAtA[i:], m.CounterpartyPayee)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.CounterpartyPayee)))
+ i--
+ dAtA[i] = 0x22
+ }
+ if len(m.Relayer) > 0 {
+ i -= len(m.Relayer)
+ copy(dAtA[i:], m.Relayer)
+ i = encodeVarintTx(dAtA, i, uint64(len(m.Relayer)))
+ i--
+ dAtA[i] = 0x1a
+ }
if len(m.ChannelId) > 0 {
i -= len(m.ChannelId)
copy(dAtA[i:], m.ChannelId)
i = encodeVarintTx(dAtA, i, uint64(len(m.ChannelId)))
i--
- dAtA[i] = 0x22
+ dAtA[i] = 0x12
}
if len(m.PortId) > 0 {
i -= len(m.PortId)
copy(dAtA[i:], m.PortId)
i = encodeVarintTx(dAtA, i, uint64(len(m.PortId)))
i--
- dAtA[i] = 0x1a
- }
- if len(m.CounterpartyAddress) > 0 {
- i -= len(m.CounterpartyAddress)
- copy(dAtA[i:], m.CounterpartyAddress)
- i = encodeVarintTx(dAtA, i, uint64(len(m.CounterpartyAddress)))
- i--
- dAtA[i] = 0x12
- }
- if len(m.Address) > 0 {
- i -= len(m.Address)
- copy(dAtA[i:], m.Address)
- i = encodeVarintTx(dAtA, i, uint64(len(m.Address)))
- i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
-func (m *MsgRegisterCounterpartyAddressResponse) Marshal() (dAtA []byte, err error) {
+func (m *MsgRegisterCounterpartyPayeeResponse) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -782,12 +778,12 @@ func (m *MsgRegisterCounterpartyAddressResponse) Marshal() (dAtA []byte, err err
return dAtA[:n], nil
}
-func (m *MsgRegisterCounterpartyAddressResponse) MarshalTo(dAtA []byte) (int, error) {
+func (m *MsgRegisterCounterpartyPayeeResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *MsgRegisterCounterpartyAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *MsgRegisterCounterpartyPayeeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -972,7 +968,7 @@ func (m *MsgRegisterPayee) Size() (n int) {
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
- l = len(m.RelayerAddress)
+ l = len(m.Relayer)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
@@ -992,32 +988,32 @@ func (m *MsgRegisterPayeeResponse) Size() (n int) {
return n
}
-func (m *MsgRegisterCounterpartyAddress) Size() (n int) {
+func (m *MsgRegisterCounterpartyPayee) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
- l = len(m.Address)
+ l = len(m.PortId)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
- l = len(m.CounterpartyAddress)
+ l = len(m.ChannelId)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
- l = len(m.PortId)
+ l = len(m.Relayer)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
- l = len(m.ChannelId)
+ l = len(m.CounterpartyPayee)
if l > 0 {
n += 1 + l + sovTx(uint64(l))
}
return n
}
-func (m *MsgRegisterCounterpartyAddressResponse) Size() (n int) {
+func (m *MsgRegisterCounterpartyPayeeResponse) Size() (n int) {
if m == nil {
return 0
}
@@ -1187,7 +1183,7 @@ func (m *MsgRegisterPayee) Unmarshal(dAtA []byte) error {
iNdEx = postIndex
case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field RelayerAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Relayer", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1215,7 +1211,7 @@ func (m *MsgRegisterPayee) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.RelayerAddress = string(dAtA[iNdEx:postIndex])
+ m.Relayer = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
@@ -1320,7 +1316,7 @@ func (m *MsgRegisterPayeeResponse) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgRegisterCounterpartyAddress) Unmarshal(dAtA []byte) error {
+func (m *MsgRegisterCounterpartyPayee) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1343,15 +1339,15 @@ func (m *MsgRegisterCounterpartyAddress) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgRegisterCounterpartyAddress: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgRegisterCounterpartyPayee: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgRegisterCounterpartyAddress: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgRegisterCounterpartyPayee: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1379,11 +1375,11 @@ func (m *MsgRegisterCounterpartyAddress) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.Address = string(dAtA[iNdEx:postIndex])
+ m.PortId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field CounterpartyAddress", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1411,11 +1407,11 @@ func (m *MsgRegisterCounterpartyAddress) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.CounterpartyAddress = string(dAtA[iNdEx:postIndex])
+ m.ChannelId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field PortId", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Relayer", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1443,11 +1439,11 @@ func (m *MsgRegisterCounterpartyAddress) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.PortId = string(dAtA[iNdEx:postIndex])
+ m.Relayer = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 4:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ChannelId", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field CounterpartyPayee", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
@@ -1475,7 +1471,7 @@ func (m *MsgRegisterCounterpartyAddress) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- m.ChannelId = string(dAtA[iNdEx:postIndex])
+ m.CounterpartyPayee = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
@@ -1498,7 +1494,7 @@ func (m *MsgRegisterCounterpartyAddress) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *MsgRegisterCounterpartyAddressResponse) Unmarshal(dAtA []byte) error {
+func (m *MsgRegisterCounterpartyPayeeResponse) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -1521,10 +1517,10 @@ func (m *MsgRegisterCounterpartyAddressResponse) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: MsgRegisterCounterpartyAddressResponse: wiretype end group for non-group")
+ return fmt.Errorf("proto: MsgRegisterCounterpartyPayeeResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: MsgRegisterCounterpartyAddressResponse: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: MsgRegisterCounterpartyPayeeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
default:
diff --git a/modules/light-clients/07-tendermint/types/tendermint.pb.go b/modules/light-clients/07-tendermint/types/tendermint.pb.go
index 4be50fa8739..bcb71558313 100644
--- a/modules/light-clients/07-tendermint/types/tendermint.pb.go
+++ b/modules/light-clients/07-tendermint/types/tendermint.pb.go
@@ -322,75 +322,75 @@ func init() {
}
var fileDescriptor_c6d6cf2b288949be = []byte{
- // 1078 bytes of a gzipped FileDescriptorProto
+ // 1080 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
0x14, 0x6e, 0xda, 0xb2, 0x4d, 0x26, 0xe9, 0x76, 0x31, 0xa5, 0x9b, 0x96, 0x6e, 0x1c, 0x19, 0xa9,
0xe4, 0x40, 0x6d, 0x92, 0x22, 0x21, 0x55, 0x5c, 0x70, 0x77, 0x51, 0x8b, 0x58, 0xa9, 0x72, 0xf9,
0x21, 0x21, 0x21, 0x33, 0xb1, 0x27, 0xc9, 0x68, 0x6d, 0x8f, 0xe5, 0x99, 0x84, 0x96, 0xbf, 0x00,
- 0x4e, 0xec, 0x11, 0x71, 0xe2, 0xc0, 0x1f, 0xb3, 0xc7, 0x1e, 0x39, 0x19, 0xd4, 0x5e, 0x39, 0xe5,
- 0xc8, 0x09, 0xcd, 0x0f, 0xdb, 0xd3, 0x6c, 0x97, 0x6a, 0xb9, 0x44, 0xf3, 0xde, 0xfb, 0xde, 0xf7,
- 0x65, 0xe6, 0xbd, 0x79, 0x63, 0xe0, 0xe0, 0x61, 0xe0, 0x44, 0x78, 0x3c, 0x61, 0x41, 0x84, 0x51,
- 0xc2, 0xa8, 0xc3, 0x50, 0x12, 0xa2, 0x2c, 0xc6, 0x09, 0x73, 0x66, 0x7d, 0xcd, 0xb2, 0xd3, 0x8c,
- 0x30, 0x62, 0x74, 0xf0, 0x30, 0xb0, 0xf5, 0x04, 0x5b, 0x83, 0xcc, 0xfa, 0x3b, 0x5d, 0x2d, 0x9f,
- 0x5d, 0xa4, 0x88, 0x3a, 0x33, 0x18, 0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, 0x96, 0xb7, 0xae, 0x1c, 0x6a, 0x94, 0x45, 0xc0, 0x28,
+ 0x10, 0x55, 0xb3, 0xaa, 0xc7, 0xe5, 0xae, 0x5d, 0x3c, 0x9a, 0xe7, 0xe6, 0xf6, 0x4d, 0x95, 0x8a,
+ 0xc3, 0xf2, 0xde, 0x54, 0xce, 0xaa, 0x6d, 0xad, 0xcf, 0x40, 0xbd, 0x78, 0x64, 0x8d, 0x5d, 0xd0,
+ 0x48, 0xa6, 0x31, 0xca, 0x78, 0x44, 0x9c, 0xcc, 0xaa, 0x57, 0x39, 0x8c, 0x2e, 0x68, 0x86, 0x28,
+ 0x21, 0x31, 0x4e, 0x44, 0x7c, 0x59, 0xc4, 0x75, 0x97, 0xeb, 0xbf, 0xb8, 0xea, 0xd4, 0x2e, 0xaf,
+ 0x3a, 0xb5, 0xbf, 0xae, 0x3a, 0xb5, 0xe7, 0xd7, 0x9d, 0xa5, 0xcb, 0xeb, 0xce, 0xd2, 0x1f, 0xd7,
+ 0x9d, 0xa5, 0x6f, 0x9e, 0x68, 0x57, 0x2c, 0x20, 0x34, 0x26, 0x94, 0x7f, 0x7a, 0xed, 0x8f, 0x89,
+ 0x33, 0x3b, 0x70, 0x62, 0x12, 0x4e, 0x23, 0x44, 0xe5, 0x87, 0xd8, 0x7e, 0xf1, 0x25, 0xf6, 0xc1,
+ 0x47, 0xfb, 0x8b, 0x9f, 0x4a, 0xc3, 0x7b, 0x62, 0xa4, 0x1c, 0xfc, 0x1b, 0x00, 0x00, 0xff, 0xff,
+ 0x31, 0x4f, 0x07, 0x47, 0xb8, 0x09, 0x00, 0x00,
}
func (m *ClientState) Marshal() (dAtA []byte, err error) {
diff --git a/proto/ibc/applications/fee/v1/tx.proto b/proto/ibc/applications/fee/v1/tx.proto
index f7c4618f54c..f876ea50483 100644
--- a/proto/ibc/applications/fee/v1/tx.proto
+++ b/proto/ibc/applications/fee/v1/tx.proto
@@ -12,17 +12,17 @@ import "ibc/core/channel/v1/channel.proto";
service Msg {
// RegisterPayee defines a rpc handler method for MsgRegisterPayee
// RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional
- // payee to which escrowed packet fees will be paid out. The payee should be registered on the source chain from which
- // packets originate as this is where fee distribution takes place. This function may be called more than once by a
- // relayer, in which case, the latest payee is always used.
+ // payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on
+ // the source chain from which packets originate as this is where fee distribution takes place. This function may be
+ // called more than once by a relayer, in which case, the latest payee is always used.
rpc RegisterPayee(MsgRegisterPayee) returns (MsgRegisterPayeeResponse);
- // RegisterCounterpartyAddress defines a rpc handler method for MsgRegisterCounterpartyAddress
- // RegisterCounterpartyAddress is called by the relayer on each channelEnd and allows them to specify their
- // counterparty address before relaying. This ensures they will be properly compensated for forward relaying since
- // destination chain must send back relayer's source address (counterparty address) in acknowledgement. This function
- // may be called more than once by a relayer, in which case, the latest counterparty address is always used.
- rpc RegisterCounterpartyAddress(MsgRegisterCounterpartyAddress) returns (MsgRegisterCounterpartyAddressResponse);
+ // RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee
+ // RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty
+ // payee address before relaying. This ensures they will be properly compensated for forward relaying since
+ // the destination chain must include the registered counterparty payee address in the acknowledgement. This function
+ // may be called more than once by a relayer, in which case, the latest counterparty payee address is always used.
+ rpc RegisterCounterpartyPayee(MsgRegisterCounterpartyPayee) returns (MsgRegisterCounterpartyPayeeResponse);
// PayPacketFee defines a rpc handler method for MsgPayPacketFee
// PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to
@@ -47,31 +47,31 @@ message MsgRegisterPayee {
// unique channel identifier
string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
// the relayer address
- string relayer_address = 3 [(gogoproto.moretags) = "yaml:\"relayer_address\""];
- // the fee payee address
+ string relayer = 3;
+ // the payee address
string payee = 4;
}
// MsgRegisterPayeeResponse defines the response type for the RegisterPayee rpc
message MsgRegisterPayeeResponse {}
-// MsgRegisterCounterpartyAddress defines the request type for the RegisterCounterpartyAddress rpc
-message MsgRegisterCounterpartyAddress {
+// MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc
+message MsgRegisterCounterpartyPayee {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
- // the relayer address
- string address = 1;
- // the counterparty relayer address
- string counterparty_address = 2 [(gogoproto.moretags) = "yaml:\"counterparty_address\""];
// unique port identifier
- string port_id = 3 [(gogoproto.moretags) = "yaml:\"port_id\""];
+ string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
// unique channel identifier
- string channel_id = 4 [(gogoproto.moretags) = "yaml:\"channel_id\""];
+ string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
+ // the relayer address
+ string relayer = 3;
+ // the counterparty payee address
+ string counterparty_payee = 4 [(gogoproto.moretags) = "yaml:\"counterparty_payee\""];
}
-// MsgRegisterCounterpartyAddressResponse defines the response type for the RegisterCounterpartyAddress rpc
-message MsgRegisterCounterpartyAddressResponse {}
+// MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc
+message MsgRegisterCounterpartyPayeeResponse {}
// MsgPayPacketFee defines the request type for the PayPacketFee rpc
// This Msg can be used to pay for a packet at the next sequence send & should be combined with the Msg that will be