Skip to content

chore: Remove IBC fees #2479

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

Merged
merged 2 commits into from
May 16, 2025
Merged
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ and this project adheres to
primary cosmwasm_std dependency of a contract.
- cosmwasm-vm: Enable partial reference-type support, enabling contracts
compiled with Rust 1.82 or newer to be stored. ([#2473])
- cosmwasm-std: Removed IBC fees ([#2479])

## Fixed

Expand Down Expand Up @@ -132,6 +133,7 @@ and this project adheres to
[#2472]: https://github.com/CosmWasm/cosmwasm/pull/2472
[#2473]: https://github.com/CosmWasm/cosmwasm/pull/2473
[#2477]: https://github.com/CosmWasm/cosmwasm/pull/2477
[#2479]: https://github.com/CosmWasm/cosmwasm/pull/2479
[#2480]: https://github.com/CosmWasm/cosmwasm/pull/2480

## [2.2.0] - 2024-12-17
Expand Down
116 changes: 0 additions & 116 deletions contracts/ibc-reflect/schema/ibc/packet_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -423,35 +423,6 @@
},
"additionalProperties": false
},
"IbcFee": {
"type": "object",
"required": [
"ack_fee",
"receive_fee",
"timeout_fee"
],
"properties": {
"ack_fee": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"receive_fee": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"timeout_fee": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
}
},
"additionalProperties": false
},
"IbcMsg": {
"description": "These are messages in the IBC lifecycle. Only usable by IBC-enabled contracts (contracts that directly speak the IBC protocol via 6 entry points)",
"oneOf": [
Expand Down Expand Up @@ -603,93 +574,6 @@
}
},
"additionalProperties": false
},
{
"description": "Incentivizes the next IBC packet sent after this message with a fee. Note that this does not necessarily have to be a packet sent by this contract. The fees are taken from the contract's balance immediately and locked until the packet is handled.\n\n# Example\n\nMost commonly, you will attach this message to a response right before sending a packet using [`IbcMsg::SendPacket`] or [`IbcMsg::Transfer`].\n\n```rust # use cosmwasm_std::{IbcMsg, IbcEndpoint, IbcFee, IbcTimeout, Coin, coins, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), fee: IbcFee { receive_fee: coins(100, \"token\"), ack_fee: coins(201, \"token\"), timeout_fee: coins(200, \"token\"), }, relayers: vec![], }; let transfer = IbcMsg::Transfer { channel_id: \"source-channel\".to_string(), to_address: \"receiver\".to_string(), amount: Coin::new(100u32, \"token\"), timeout: IbcTimeout::with_timestamp(Timestamp::from_nanos(0)), memo: None, };\n\n# #[cfg(feature = \"stargate\")] let _: Response = Response::new() .add_message(CosmosMsg::Ibc(incentivize)) .add_message(CosmosMsg::Ibc(transfer)); ```",
"type": "object",
"required": [
"pay_packet_fee"
],
"properties": {
"pay_packet_fee": {
"type": "object",
"required": [
"channel_id",
"fee",
"port_id",
"relayers"
],
"properties": {
"channel_id": {
"description": "The channel id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"fee": {
"$ref": "#/definitions/IbcFee"
},
"port_id": {
"description": "The port id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"relayers": {
"description": "Allowlist of relayer addresses that can receive the fee. An empty list means that any relayer can receive the fee.\n\nThis is currently not implemented and *must* be empty.",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Incentivizes the existing IBC packet with the given port, channel and sequence with a fee. Note that this does not necessarily have to be a packet sent by this contract. The fees are taken from the contract's balance immediately and locked until the packet is handled. They are added to the existing fees on the packet.",
"type": "object",
"required": [
"pay_packet_fee_async"
],
"properties": {
"pay_packet_fee_async": {
"type": "object",
"required": [
"channel_id",
"fee",
"port_id",
"relayers",
"sequence"
],
"properties": {
"channel_id": {
"description": "The channel id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"fee": {
"$ref": "#/definitions/IbcFee"
},
"port_id": {
"description": "The port id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"relayers": {
"description": "Allowlist of relayer addresses that can receive the fee. An empty list means that any relayer can receive the fee.\n\nThis is currently not implemented and *must* be empty.",
"type": "array",
"items": {
"type": "string"
}
},
"sequence": {
"description": "The sequence number of the packet that should be incentivized.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
Expand Down
116 changes: 0 additions & 116 deletions contracts/reflect/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,35 +488,6 @@
},
"additionalProperties": false
},
"IbcFee": {
"type": "object",
"required": [
"ack_fee",
"receive_fee",
"timeout_fee"
],
"properties": {
"ack_fee": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"receive_fee": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"timeout_fee": {
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
}
},
"additionalProperties": false
},
"IbcMsg": {
"description": "These are messages in the IBC lifecycle. Only usable by IBC-enabled contracts (contracts that directly speak the IBC protocol via 6 entry points)",
"oneOf": [
Expand Down Expand Up @@ -668,93 +639,6 @@
}
},
"additionalProperties": false
},
{
"description": "Incentivizes the next IBC packet sent after this message with a fee. Note that this does not necessarily have to be a packet sent by this contract. The fees are taken from the contract's balance immediately and locked until the packet is handled.\n\n# Example\n\nMost commonly, you will attach this message to a response right before sending a packet using [`IbcMsg::SendPacket`] or [`IbcMsg::Transfer`].\n\n```rust # use cosmwasm_std::{IbcMsg, IbcEndpoint, IbcFee, IbcTimeout, Coin, coins, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), fee: IbcFee { receive_fee: coins(100, \"token\"), ack_fee: coins(201, \"token\"), timeout_fee: coins(200, \"token\"), }, relayers: vec![], }; let transfer = IbcMsg::Transfer { channel_id: \"source-channel\".to_string(), to_address: \"receiver\".to_string(), amount: Coin::new(100u32, \"token\"), timeout: IbcTimeout::with_timestamp(Timestamp::from_nanos(0)), memo: None, };\n\n# #[cfg(feature = \"stargate\")] let _: Response = Response::new() .add_message(CosmosMsg::Ibc(incentivize)) .add_message(CosmosMsg::Ibc(transfer)); ```",
"type": "object",
"required": [
"pay_packet_fee"
],
"properties": {
"pay_packet_fee": {
"type": "object",
"required": [
"channel_id",
"fee",
"port_id",
"relayers"
],
"properties": {
"channel_id": {
"description": "The channel id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"fee": {
"$ref": "#/definitions/IbcFee"
},
"port_id": {
"description": "The port id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"relayers": {
"description": "Allowlist of relayer addresses that can receive the fee. An empty list means that any relayer can receive the fee.\n\nThis is currently not implemented and *must* be empty.",
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"description": "Incentivizes the existing IBC packet with the given port, channel and sequence with a fee. Note that this does not necessarily have to be a packet sent by this contract. The fees are taken from the contract's balance immediately and locked until the packet is handled. They are added to the existing fees on the packet.",
"type": "object",
"required": [
"pay_packet_fee_async"
],
"properties": {
"pay_packet_fee_async": {
"type": "object",
"required": [
"channel_id",
"fee",
"port_id",
"relayers",
"sequence"
],
"properties": {
"channel_id": {
"description": "The channel id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"fee": {
"$ref": "#/definitions/IbcFee"
},
"port_id": {
"description": "The port id on the chain where the packet is sent from (this chain).",
"type": "string"
},
"relayers": {
"description": "Allowlist of relayer addresses that can receive the fee. An empty list means that any relayer can receive the fee.\n\nThis is currently not implemented and *must* be empty.",
"type": "array",
"items": {
"type": "string"
}
},
"sequence": {
"description": "The sequence number of the packet that should be incentivized.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
Expand Down
28 changes: 0 additions & 28 deletions contracts/reflect/schema/raw/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -378,34 +378,6 @@
}
},
"additionalProperties": false
},
{
"description": "Queries whether the given channel supports IBC fees. If port_id is omitted, it will default to the contract's own channel. (To save a PortId{} call)\n\nReturns a `FeeEnabledChannelResponse`.",
"type": "object",
"required": [
"fee_enabled_channel"
],
"properties": {
"fee_enabled_channel": {
"type": "object",
"required": [
"channel_id"
],
"properties": {
"channel_id": {
"type": "string"
},
"port_id": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
Expand Down
Loading
Loading