Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBC Fees #545

Merged
merged 3 commits into from
Aug 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"`
}
chipshort marked this conversation as resolved.
Show resolved Hide resolved

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