Skip to content

Commit

Permalink
Add ibc fees messages
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Jul 29, 2024
1 parent d7906b3 commit 1921fe0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ type IBCMsg struct {
SendPacket *SendPacketMsg `json:"send_packet,omitempty"`
WriteAcknowledgement *WriteAcknowledgementMsg `json:"write_acknowledgement,omitempty"`
CloseChannel *CloseChannelMsg `json:"close_channel,omitempty"`
PayPacketFee *PayPacketFeeMsg `json:"pay_packet_fee,omitempty"`
PayPacketFeeAsync *PayPacketFeeAsyncMsg `json:"pay_packet_fee_async,omitempty"`
}

type GovMsg struct {
Expand Down Expand Up @@ -255,6 +257,26 @@ type CloseChannelMsg struct {
ChannelID string `json:"channel_id"`
}

type PayPacketFeeMsg struct {
Fee IBCFee `json:"fee"`
// Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.
Relayers Array[string] `json:"relayers"`
Src IBCEndpoint `json:"src"`
}
type PayPacketFeeAsyncMsg struct {
Fee IBCFee `json:"fee"`
// Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.
Relayers Array[string] `json:"relayers"`
Sequence uint64 `json:"sequence"`
Src IBCEndpoint `json:"src"`
}

type IBCFee struct {
AckFee Array[Coin] `json:"ack_fee"`
RecvFee Array[Coin] `json:"recv_fee"`
TimeoutFee Array[Coin] `json:"timeout_fee"`
}

type StakingMsg struct {
Delegate *DelegateMsg `json:"delegate,omitempty"`
Undelegate *UndelegateMsg `json:"undelegate,omitempty"`
Expand Down

0 comments on commit 1921fe0

Please sign in to comment.