Skip to content

chore: Remove IBC fees #669

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
30 changes: 0 additions & 30 deletions types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,6 @@ 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 @@ -260,34 +258,6 @@ type CloseChannelMsg struct {
ChannelID string `json:"channel_id"`
}

type PayPacketFeeMsg struct {
// The channel id on the chain where the packet is sent from (this chain).
ChannelID string `json:"channel_id"`
Fee IBCFee `json:"fee"`
// The port id on the chain where the packet is sent from (this chain).
PortID string `json:"port_id"`
// Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.
Relayers Array[string] `json:"relayers"`
}

type PayPacketFeeAsyncMsg struct {
// The channel id on the chain where the packet is sent from (this chain).
ChannelID string `json:"channel_id"`
Fee IBCFee `json:"fee"`
// The port id on the chain where the packet is sent from (this chain).
PortID string `json:"port_id"`
// Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.
Relayers Array[string] `json:"relayers"`
// The sequence number of the packet that should be incentivized.
Sequence uint64 `json:"sequence"`
}

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

type StakingMsg struct {
Delegate *DelegateMsg `json:"delegate,omitempty"`
Undelegate *UndelegateMsg `json:"undelegate,omitempty"`
Expand Down
16 changes: 3 additions & 13 deletions types/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,9 @@ type AllDenomMetadataResponse struct {
// IBCQuery defines a query request from the contract into the chain.
// This is the counterpart of [IbcQuery](https://github.com/CosmWasm/cosmwasm/blob/v0.14.0-beta1/packages/std/src/ibc.rs#L61-L83).
type IBCQuery struct {
PortID *PortIDQuery `json:"port_id,omitempty"`
ListChannels *ListChannelsQuery `json:"list_channels,omitempty"`
Channel *ChannelQuery `json:"channel,omitempty"`
FeeEnabledChannel *FeeEnabledChannelQuery `json:"fee_enabled_channel,omitempty"`
}

type FeeEnabledChannelQuery struct {
ChannelID string `json:"channel_id"`
PortID string `json:"port_id,omitempty"`
}

type FeeEnabledChannelResponse struct {
FeeEnabled bool `json:"fee_enabled"`
PortID *PortIDQuery `json:"port_id,omitempty"`
ListChannels *ListChannelsQuery `json:"list_channels,omitempty"`
Channel *ChannelQuery `json:"channel,omitempty"`
}

type PortIDQuery struct{}
Expand Down