Skip to content

Commit 093e594

Browse files
author
Tomasz Kulik
committed
chore: Deprecate IBC fees
1 parent 3f0b433 commit 093e594

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

contracts/ibc-reflect/schema/ibc/packet_msg.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@
416416
"additionalProperties": false
417417
},
418418
"IbcFee": {
419+
"deprecated": true,
419420
"type": "object",
420421
"required": [
421422
"ack_fee",
@@ -598,6 +599,7 @@
598599
},
599600
{
600601
"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)); ```",
602+
"deprecated": true,
601603
"type": "object",
602604
"required": [
603605
"pay_packet_fee"
@@ -638,6 +640,7 @@
638640
},
639641
{
640642
"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.",
643+
"deprecated": true,
641644
"type": "object",
642645
"required": [
643646
"pay_packet_fee_async"

contracts/reflect/schema/raw/execute.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,7 @@
489489
"additionalProperties": false
490490
},
491491
"IbcFee": {
492+
"deprecated": true,
492493
"type": "object",
493494
"required": [
494495
"ack_fee",
@@ -671,6 +672,7 @@
671672
},
672673
{
673674
"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)); ```",
675+
"deprecated": true,
674676
"type": "object",
675677
"required": [
676678
"pay_packet_fee"
@@ -711,6 +713,7 @@
711713
},
712714
{
713715
"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.",
716+
"deprecated": true,
714717
"type": "object",
715718
"required": [
716719
"pay_packet_fee_async"

contracts/reflect/schema/reflect.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@
499499
"additionalProperties": false
500500
},
501501
"IbcFee": {
502+
"deprecated": true,
502503
"type": "object",
503504
"required": [
504505
"ack_fee",
@@ -681,6 +682,7 @@
681682
},
682683
{
683684
"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)); ```",
685+
"deprecated": true,
684686
"type": "object",
685687
"required": [
686688
"pay_packet_fee"
@@ -721,6 +723,7 @@
721723
},
722724
{
723725
"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.",
726+
"deprecated": true,
724727
"type": "object",
725728
"required": [
726729
"pay_packet_fee_async"

packages/std/src/ibc.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ pub enum IbcMsg {
111111
/// .add_message(CosmosMsg::Ibc(transfer));
112112
/// ```
113113
#[cfg(feature = "cosmwasm_2_2")]
114+
#[deprecated(
115+
since = "3.0.0",
116+
note = "IBC fees have been removed from ibc-go `v10`, which is used in wasmd `v0.55.0`."
117+
)]
114118
PayPacketFee {
115119
/// The port id on the chain where the packet is sent from (this chain).
116120
port_id: String,
@@ -128,6 +132,10 @@ pub enum IbcMsg {
128132
/// The fees are taken from the contract's balance immediately and locked until the packet is handled.
129133
/// They are added to the existing fees on the packet.
130134
#[cfg(feature = "cosmwasm_2_2")]
135+
#[deprecated(
136+
since = "3.0.0",
137+
note = "IBC fees have been removed from ibc-go `v10`, which is used in wasmd `v0.55.0`."
138+
)]
131139
PayPacketFeeAsync {
132140
/// The port id on the chain where the packet is sent from (this chain).
133141
port_id: String,
@@ -144,6 +152,10 @@ pub enum IbcMsg {
144152
},
145153
}
146154

155+
#[deprecated(
156+
since = "3.0.0",
157+
note = "IBC fees have been removed from ibc-go `v10`, which is used in wasmd `v0.55.0`."
158+
)]
147159
#[derive(Serialize, Deserialize, Default, Clone, Debug, PartialEq, Eq, JsonSchema)]
148160
pub struct IbcFee {
149161
// the packet receive fee

0 commit comments

Comments
 (0)