From c912c217882b1d99d93da593b4875fa0fe616d53 Mon Sep 17 00:00:00 2001 From: Christoph Otter Date: Wed, 7 Aug 2024 15:02:56 +0200 Subject: [PATCH] Update schemas --- .../schema/ibc-reflect-send.json | 119 ----------------- .../schema/ibc/packet_msg.json | 119 ----------------- .../ibc-reflect-send/schema/raw/execute.json | 119 ----------------- .../ibc-reflect/schema/ibc/packet_msg.json | 51 ++++---- contracts/reflect/schema/raw/execute.json | 119 ----------------- contracts/reflect/schema/raw/query.json | 2 +- contracts/reflect/schema/reflect.json | 121 +----------------- 7 files changed, 26 insertions(+), 624 deletions(-) diff --git a/contracts/ibc-reflect-send/schema/ibc-reflect-send.json b/contracts/ibc-reflect-send/schema/ibc-reflect-send.json index a2566b707d..c8d872b5d2 100644 --- a/contracts/ibc-reflect-send/schema/ibc-reflect-send.json +++ b/contracts/ibc-reflect-send/schema/ibc-reflect-send.json @@ -402,51 +402,6 @@ } ] }, - "IbcEndpoint": { - "type": "object", - "required": [ - "channel_id", - "port_id" - ], - "properties": { - "channel_id": { - "type": "string" - }, - "port_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "IbcFee": { - "type": "object", - "required": [ - "ack_fee", - "recv_fee", - "timeout_fee" - ], - "properties": { - "ack_fee": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } - }, - "recv_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": [ @@ -559,80 +514,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, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { src: IbcEndpoint { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), }, fee: IbcFee { recv_fee: vec![Coin::new(100u32, \"token\")], ..IbcFee::default() }, 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": [ - "fee", - "relayers", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "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.", - "type": "object", - "required": [ - "pay_packet_fee_async" - ], - "properties": { - "pay_packet_fee_async": { - "type": "object", - "required": [ - "fee", - "relayers", - "sequence", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "sequence": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false } ] }, diff --git a/contracts/ibc-reflect-send/schema/ibc/packet_msg.json b/contracts/ibc-reflect-send/schema/ibc/packet_msg.json index 7862c8f33a..cea5745b7e 100644 --- a/contracts/ibc-reflect-send/schema/ibc/packet_msg.json +++ b/contracts/ibc-reflect-send/schema/ibc/packet_msg.json @@ -343,51 +343,6 @@ } ] }, - "IbcEndpoint": { - "type": "object", - "required": [ - "channel_id", - "port_id" - ], - "properties": { - "channel_id": { - "type": "string" - }, - "port_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "IbcFee": { - "type": "object", - "required": [ - "ack_fee", - "recv_fee", - "timeout_fee" - ], - "properties": { - "ack_fee": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } - }, - "recv_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": [ @@ -500,80 +455,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, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { src: IbcEndpoint { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), }, fee: IbcFee { recv_fee: vec![Coin::new(100u32, \"token\")], ..IbcFee::default() }, 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": [ - "fee", - "relayers", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "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.", - "type": "object", - "required": [ - "pay_packet_fee_async" - ], - "properties": { - "pay_packet_fee_async": { - "type": "object", - "required": [ - "fee", - "relayers", - "sequence", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "sequence": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false } ] }, diff --git a/contracts/ibc-reflect-send/schema/raw/execute.json b/contracts/ibc-reflect-send/schema/raw/execute.json index bbccb2d0f8..f1b1d6dcef 100644 --- a/contracts/ibc-reflect-send/schema/raw/execute.json +++ b/contracts/ibc-reflect-send/schema/raw/execute.json @@ -391,51 +391,6 @@ } ] }, - "IbcEndpoint": { - "type": "object", - "required": [ - "channel_id", - "port_id" - ], - "properties": { - "channel_id": { - "type": "string" - }, - "port_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "IbcFee": { - "type": "object", - "required": [ - "ack_fee", - "recv_fee", - "timeout_fee" - ], - "properties": { - "ack_fee": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } - }, - "recv_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": [ @@ -548,80 +503,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, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { src: IbcEndpoint { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), }, fee: IbcFee { recv_fee: vec![Coin::new(100u32, \"token\")], ..IbcFee::default() }, 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": [ - "fee", - "relayers", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "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.", - "type": "object", - "required": [ - "pay_packet_fee_async" - ], - "properties": { - "pay_packet_fee_async": { - "type": "object", - "required": [ - "fee", - "relayers", - "sequence", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "sequence": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false } ] }, diff --git a/contracts/ibc-reflect/schema/ibc/packet_msg.json b/contracts/ibc-reflect/schema/ibc/packet_msg.json index 52c79b0141..18b6ee9ce6 100644 --- a/contracts/ibc-reflect/schema/ibc/packet_msg.json +++ b/contracts/ibc-reflect/schema/ibc/packet_msg.json @@ -415,22 +415,6 @@ }, "additionalProperties": false }, - "IbcEndpoint": { - "type": "object", - "required": [ - "channel_id", - "port_id" - ], - "properties": { - "channel_id": { - "type": "string" - }, - "port_id": { - "type": "string" - } - }, - "additionalProperties": false - }, "IbcFee": { "type": "object", "required": [ @@ -613,7 +597,7 @@ "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, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { src: IbcEndpoint { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), }, fee: IbcFee { recv_fee: vec![Coin::new(100u32, \"token\")], ..IbcFee::default() }, 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)); ```", + "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, coins, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), fee: IbcFee { recv_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" @@ -622,23 +606,29 @@ "pay_packet_fee": { "type": "object", "required": [ + "channel_id", "fee", - "relayers", - "src" + "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. This is currently not implemented and *must* be empty.", "type": "array", "items": { "type": "string" } - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" } }, "additionalProperties": false @@ -656,15 +646,24 @@ "pay_packet_fee_async": { "type": "object", "required": [ + "channel_id", "fee", + "port_id", "relayers", - "sequence", - "src" + "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. This is currently not implemented and *must* be empty.", "type": "array", @@ -673,12 +672,10 @@ } }, "sequence": { + "description": "The sequence number of the packet that should be incentivized.", "type": "integer", "format": "uint64", "minimum": 0.0 - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" } }, "additionalProperties": false diff --git a/contracts/reflect/schema/raw/execute.json b/contracts/reflect/schema/raw/execute.json index c0c238c82b..947eb3997c 100644 --- a/contracts/reflect/schema/raw/execute.json +++ b/contracts/reflect/schema/raw/execute.json @@ -476,51 +476,6 @@ } ] }, - "IbcEndpoint": { - "type": "object", - "required": [ - "channel_id", - "port_id" - ], - "properties": { - "channel_id": { - "type": "string" - }, - "port_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "IbcFee": { - "type": "object", - "required": [ - "ack_fee", - "recv_fee", - "timeout_fee" - ], - "properties": { - "ack_fee": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } - }, - "recv_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": [ @@ -633,80 +588,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, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { src: IbcEndpoint { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), }, fee: IbcFee { recv_fee: vec![Coin::new(100u32, \"token\")], ..IbcFee::default() }, 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": [ - "fee", - "relayers", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "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.", - "type": "object", - "required": [ - "pay_packet_fee_async" - ], - "properties": { - "pay_packet_fee_async": { - "type": "object", - "required": [ - "fee", - "relayers", - "sequence", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "sequence": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false } ] }, diff --git a/contracts/reflect/schema/raw/query.json b/contracts/reflect/schema/raw/query.json index ab934e28ef..271b323776 100644 --- a/contracts/reflect/schema/raw/query.json +++ b/contracts/reflect/schema/raw/query.json @@ -357,7 +357,7 @@ "additionalProperties": false }, "IbcQuery": { - "description": "These are queries to the various IBC modules to see the state of the contract's IBC connection. These will return errors if the contract is not \"ibc enabled\"", + "description": "These are queries to the various IBC modules to see the state of the contract's IBC connection. Most of these will return errors if the contract is not \"ibc enabled\"", "oneOf": [ { "description": "Gets the Port ID the current contract is bound to.\n\nReturns a `PortIdResponse`.", diff --git a/contracts/reflect/schema/reflect.json b/contracts/reflect/schema/reflect.json index 2aa46ffc50..52c958cc19 100644 --- a/contracts/reflect/schema/reflect.json +++ b/contracts/reflect/schema/reflect.json @@ -486,51 +486,6 @@ } ] }, - "IbcEndpoint": { - "type": "object", - "required": [ - "channel_id", - "port_id" - ], - "properties": { - "channel_id": { - "type": "string" - }, - "port_id": { - "type": "string" - } - }, - "additionalProperties": false - }, - "IbcFee": { - "type": "object", - "required": [ - "ack_fee", - "recv_fee", - "timeout_fee" - ], - "properties": { - "ack_fee": { - "type": "array", - "items": { - "$ref": "#/definitions/Coin" - } - }, - "recv_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": [ @@ -643,80 +598,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, CosmosMsg, Response, Timestamp};\n\nlet incentivize = IbcMsg::PayPacketFee { src: IbcEndpoint { port_id: \"transfer\".to_string(), channel_id: \"source-channel\".to_string(), }, fee: IbcFee { recv_fee: vec![Coin::new(100u32, \"token\")], ..IbcFee::default() }, 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": [ - "fee", - "relayers", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "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.", - "type": "object", - "required": [ - "pay_packet_fee_async" - ], - "properties": { - "pay_packet_fee_async": { - "type": "object", - "required": [ - "fee", - "relayers", - "sequence", - "src" - ], - "properties": { - "fee": { - "$ref": "#/definitions/IbcFee" - }, - "relayers": { - "description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.", - "type": "array", - "items": { - "type": "string" - } - }, - "sequence": { - "type": "integer", - "format": "uint64", - "minimum": 0.0 - }, - "src": { - "$ref": "#/definitions/IbcEndpoint" - } - }, - "additionalProperties": false - } - }, - "additionalProperties": false } ] }, @@ -1569,7 +1450,7 @@ "additionalProperties": false }, "IbcQuery": { - "description": "These are queries to the various IBC modules to see the state of the contract's IBC connection. These will return errors if the contract is not \"ibc enabled\"", + "description": "These are queries to the various IBC modules to see the state of the contract's IBC connection. Most of these will return errors if the contract is not \"ibc enabled\"", "oneOf": [ { "description": "Gets the Port ID the current contract is bound to.\n\nReturns a `PortIdResponse`.",