Skip to content

Commit 34a51d1

Browse files
committed
Update schemas
1 parent aab668c commit 34a51d1

File tree

7 files changed

+26
-624
lines changed

7 files changed

+26
-624
lines changed

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

Lines changed: 0 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -402,51 +402,6 @@
402402
}
403403
]
404404
},
405-
"IbcEndpoint": {
406-
"type": "object",
407-
"required": [
408-
"channel_id",
409-
"port_id"
410-
],
411-
"properties": {
412-
"channel_id": {
413-
"type": "string"
414-
},
415-
"port_id": {
416-
"type": "string"
417-
}
418-
},
419-
"additionalProperties": false
420-
},
421-
"IbcFee": {
422-
"type": "object",
423-
"required": [
424-
"ack_fee",
425-
"recv_fee",
426-
"timeout_fee"
427-
],
428-
"properties": {
429-
"ack_fee": {
430-
"type": "array",
431-
"items": {
432-
"$ref": "#/definitions/Coin"
433-
}
434-
},
435-
"recv_fee": {
436-
"type": "array",
437-
"items": {
438-
"$ref": "#/definitions/Coin"
439-
}
440-
},
441-
"timeout_fee": {
442-
"type": "array",
443-
"items": {
444-
"$ref": "#/definitions/Coin"
445-
}
446-
}
447-
},
448-
"additionalProperties": false
449-
},
450405
"IbcMsg": {
451406
"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)",
452407
"oneOf": [
@@ -559,80 +514,6 @@
559514
}
560515
},
561516
"additionalProperties": false
562-
},
563-
{
564-
"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)); ```",
565-
"type": "object",
566-
"required": [
567-
"pay_packet_fee"
568-
],
569-
"properties": {
570-
"pay_packet_fee": {
571-
"type": "object",
572-
"required": [
573-
"fee",
574-
"relayers",
575-
"src"
576-
],
577-
"properties": {
578-
"fee": {
579-
"$ref": "#/definitions/IbcFee"
580-
},
581-
"relayers": {
582-
"description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.",
583-
"type": "array",
584-
"items": {
585-
"type": "string"
586-
}
587-
},
588-
"src": {
589-
"$ref": "#/definitions/IbcEndpoint"
590-
}
591-
},
592-
"additionalProperties": false
593-
}
594-
},
595-
"additionalProperties": false
596-
},
597-
{
598-
"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.",
599-
"type": "object",
600-
"required": [
601-
"pay_packet_fee_async"
602-
],
603-
"properties": {
604-
"pay_packet_fee_async": {
605-
"type": "object",
606-
"required": [
607-
"fee",
608-
"relayers",
609-
"sequence",
610-
"src"
611-
],
612-
"properties": {
613-
"fee": {
614-
"$ref": "#/definitions/IbcFee"
615-
},
616-
"relayers": {
617-
"description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.",
618-
"type": "array",
619-
"items": {
620-
"type": "string"
621-
}
622-
},
623-
"sequence": {
624-
"type": "integer",
625-
"format": "uint64",
626-
"minimum": 0.0
627-
},
628-
"src": {
629-
"$ref": "#/definitions/IbcEndpoint"
630-
}
631-
},
632-
"additionalProperties": false
633-
}
634-
},
635-
"additionalProperties": false
636517
}
637518
]
638519
},

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

Lines changed: 0 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -343,51 +343,6 @@
343343
}
344344
]
345345
},
346-
"IbcEndpoint": {
347-
"type": "object",
348-
"required": [
349-
"channel_id",
350-
"port_id"
351-
],
352-
"properties": {
353-
"channel_id": {
354-
"type": "string"
355-
},
356-
"port_id": {
357-
"type": "string"
358-
}
359-
},
360-
"additionalProperties": false
361-
},
362-
"IbcFee": {
363-
"type": "object",
364-
"required": [
365-
"ack_fee",
366-
"recv_fee",
367-
"timeout_fee"
368-
],
369-
"properties": {
370-
"ack_fee": {
371-
"type": "array",
372-
"items": {
373-
"$ref": "#/definitions/Coin"
374-
}
375-
},
376-
"recv_fee": {
377-
"type": "array",
378-
"items": {
379-
"$ref": "#/definitions/Coin"
380-
}
381-
},
382-
"timeout_fee": {
383-
"type": "array",
384-
"items": {
385-
"$ref": "#/definitions/Coin"
386-
}
387-
}
388-
},
389-
"additionalProperties": false
390-
},
391346
"IbcMsg": {
392347
"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)",
393348
"oneOf": [
@@ -500,80 +455,6 @@
500455
}
501456
},
502457
"additionalProperties": false
503-
},
504-
{
505-
"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)); ```",
506-
"type": "object",
507-
"required": [
508-
"pay_packet_fee"
509-
],
510-
"properties": {
511-
"pay_packet_fee": {
512-
"type": "object",
513-
"required": [
514-
"fee",
515-
"relayers",
516-
"src"
517-
],
518-
"properties": {
519-
"fee": {
520-
"$ref": "#/definitions/IbcFee"
521-
},
522-
"relayers": {
523-
"description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.",
524-
"type": "array",
525-
"items": {
526-
"type": "string"
527-
}
528-
},
529-
"src": {
530-
"$ref": "#/definitions/IbcEndpoint"
531-
}
532-
},
533-
"additionalProperties": false
534-
}
535-
},
536-
"additionalProperties": false
537-
},
538-
{
539-
"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.",
540-
"type": "object",
541-
"required": [
542-
"pay_packet_fee_async"
543-
],
544-
"properties": {
545-
"pay_packet_fee_async": {
546-
"type": "object",
547-
"required": [
548-
"fee",
549-
"relayers",
550-
"sequence",
551-
"src"
552-
],
553-
"properties": {
554-
"fee": {
555-
"$ref": "#/definitions/IbcFee"
556-
},
557-
"relayers": {
558-
"description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.",
559-
"type": "array",
560-
"items": {
561-
"type": "string"
562-
}
563-
},
564-
"sequence": {
565-
"type": "integer",
566-
"format": "uint64",
567-
"minimum": 0.0
568-
},
569-
"src": {
570-
"$ref": "#/definitions/IbcEndpoint"
571-
}
572-
},
573-
"additionalProperties": false
574-
}
575-
},
576-
"additionalProperties": false
577458
}
578459
]
579460
},

contracts/ibc-reflect-send/schema/raw/execute.json

Lines changed: 0 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -391,51 +391,6 @@
391391
}
392392
]
393393
},
394-
"IbcEndpoint": {
395-
"type": "object",
396-
"required": [
397-
"channel_id",
398-
"port_id"
399-
],
400-
"properties": {
401-
"channel_id": {
402-
"type": "string"
403-
},
404-
"port_id": {
405-
"type": "string"
406-
}
407-
},
408-
"additionalProperties": false
409-
},
410-
"IbcFee": {
411-
"type": "object",
412-
"required": [
413-
"ack_fee",
414-
"recv_fee",
415-
"timeout_fee"
416-
],
417-
"properties": {
418-
"ack_fee": {
419-
"type": "array",
420-
"items": {
421-
"$ref": "#/definitions/Coin"
422-
}
423-
},
424-
"recv_fee": {
425-
"type": "array",
426-
"items": {
427-
"$ref": "#/definitions/Coin"
428-
}
429-
},
430-
"timeout_fee": {
431-
"type": "array",
432-
"items": {
433-
"$ref": "#/definitions/Coin"
434-
}
435-
}
436-
},
437-
"additionalProperties": false
438-
},
439394
"IbcMsg": {
440395
"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)",
441396
"oneOf": [
@@ -548,80 +503,6 @@
548503
}
549504
},
550505
"additionalProperties": false
551-
},
552-
{
553-
"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)); ```",
554-
"type": "object",
555-
"required": [
556-
"pay_packet_fee"
557-
],
558-
"properties": {
559-
"pay_packet_fee": {
560-
"type": "object",
561-
"required": [
562-
"fee",
563-
"relayers",
564-
"src"
565-
],
566-
"properties": {
567-
"fee": {
568-
"$ref": "#/definitions/IbcFee"
569-
},
570-
"relayers": {
571-
"description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.",
572-
"type": "array",
573-
"items": {
574-
"type": "string"
575-
}
576-
},
577-
"src": {
578-
"$ref": "#/definitions/IbcEndpoint"
579-
}
580-
},
581-
"additionalProperties": false
582-
}
583-
},
584-
"additionalProperties": false
585-
},
586-
{
587-
"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.",
588-
"type": "object",
589-
"required": [
590-
"pay_packet_fee_async"
591-
],
592-
"properties": {
593-
"pay_packet_fee_async": {
594-
"type": "object",
595-
"required": [
596-
"fee",
597-
"relayers",
598-
"sequence",
599-
"src"
600-
],
601-
"properties": {
602-
"fee": {
603-
"$ref": "#/definitions/IbcFee"
604-
},
605-
"relayers": {
606-
"description": "Allowlist of relayer addresses that can receive the fee. This is currently not implemented and *must* be empty.",
607-
"type": "array",
608-
"items": {
609-
"type": "string"
610-
}
611-
},
612-
"sequence": {
613-
"type": "integer",
614-
"format": "uint64",
615-
"minimum": 0.0
616-
},
617-
"src": {
618-
"$ref": "#/definitions/IbcEndpoint"
619-
}
620-
},
621-
"additionalProperties": false
622-
}
623-
},
624-
"additionalProperties": false
625506
}
626507
]
627508
},

0 commit comments

Comments
 (0)