Skip to content

Commit

Permalink
Update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Aug 7, 2024
1 parent 27fc0ee commit c912c21
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 624 deletions.
119 changes: 0 additions & 119 deletions contracts/ibc-reflect-send/schema/ibc-reflect-send.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
},
Expand Down
119 changes: 0 additions & 119 deletions contracts/ibc-reflect-send/schema/ibc/packet_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
},
Expand Down
119 changes: 0 additions & 119 deletions contracts/ibc-reflect-send/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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
}
]
},
Expand Down
Loading

0 comments on commit c912c21

Please sign in to comment.