Skip to content

Commit 792ca3a

Browse files
committed
Update schemas
1 parent 4456df6 commit 792ca3a

File tree

6 files changed

+372
-0
lines changed

6 files changed

+372
-0
lines changed

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,29 @@
402402
}
403403
]
404404
},
405+
"IbcFullAcknowledgement": {
406+
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
407+
"type": "object",
408+
"required": [
409+
"data",
410+
"success"
411+
],
412+
"properties": {
413+
"data": {
414+
"description": "The acknowledgement data returned by the module.",
415+
"allOf": [
416+
{
417+
"$ref": "#/definitions/Binary"
418+
}
419+
]
420+
},
421+
"success": {
422+
"description": "Whether the acknowledgement was successful or not.",
423+
"type": "boolean"
424+
}
425+
},
426+
"additionalProperties": false
427+
},
405428
"IbcMsg": {
406429
"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)",
407430
"oneOf": [
@@ -493,6 +516,45 @@
493516
},
494517
"additionalProperties": false
495518
},
519+
{
520+
"description": "Acknowledges a packet that this contract received over IBC. This allows acknowledging a packet that was not acknowledged yet in the `ibc_packet_receive` call.",
521+
"type": "object",
522+
"required": [
523+
"write_acknowledgement"
524+
],
525+
"properties": {
526+
"write_acknowledgement": {
527+
"type": "object",
528+
"required": [
529+
"ack",
530+
"channel_id",
531+
"packet_sequence"
532+
],
533+
"properties": {
534+
"ack": {
535+
"description": "The acknowledgement to send back",
536+
"allOf": [
537+
{
538+
"$ref": "#/definitions/IbcFullAcknowledgement"
539+
}
540+
]
541+
},
542+
"channel_id": {
543+
"description": "Existing channel where the packet was received",
544+
"type": "string"
545+
},
546+
"packet_sequence": {
547+
"description": "Sequence number of the packet that was received",
548+
"type": "integer",
549+
"format": "uint64",
550+
"minimum": 0.0
551+
}
552+
},
553+
"additionalProperties": false
554+
}
555+
},
556+
"additionalProperties": false
557+
},
496558
{
497559
"description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port",
498560
"type": "object",

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,29 @@
343343
}
344344
]
345345
},
346+
"IbcFullAcknowledgement": {
347+
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
348+
"type": "object",
349+
"required": [
350+
"data",
351+
"success"
352+
],
353+
"properties": {
354+
"data": {
355+
"description": "The acknowledgement data returned by the module.",
356+
"allOf": [
357+
{
358+
"$ref": "#/definitions/Binary"
359+
}
360+
]
361+
},
362+
"success": {
363+
"description": "Whether the acknowledgement was successful or not.",
364+
"type": "boolean"
365+
}
366+
},
367+
"additionalProperties": false
368+
},
346369
"IbcMsg": {
347370
"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)",
348371
"oneOf": [
@@ -434,6 +457,45 @@
434457
},
435458
"additionalProperties": false
436459
},
460+
{
461+
"description": "Acknowledges a packet that this contract received over IBC. This allows acknowledging a packet that was not acknowledged yet in the `ibc_packet_receive` call.",
462+
"type": "object",
463+
"required": [
464+
"write_acknowledgement"
465+
],
466+
"properties": {
467+
"write_acknowledgement": {
468+
"type": "object",
469+
"required": [
470+
"ack",
471+
"channel_id",
472+
"packet_sequence"
473+
],
474+
"properties": {
475+
"ack": {
476+
"description": "The acknowledgement to send back",
477+
"allOf": [
478+
{
479+
"$ref": "#/definitions/IbcFullAcknowledgement"
480+
}
481+
]
482+
},
483+
"channel_id": {
484+
"description": "Existing channel where the packet was received",
485+
"type": "string"
486+
},
487+
"packet_sequence": {
488+
"description": "Sequence number of the packet that was received",
489+
"type": "integer",
490+
"format": "uint64",
491+
"minimum": 0.0
492+
}
493+
},
494+
"additionalProperties": false
495+
}
496+
},
497+
"additionalProperties": false
498+
},
437499
{
438500
"description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port",
439501
"type": "object",

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,29 @@
391391
}
392392
]
393393
},
394+
"IbcFullAcknowledgement": {
395+
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
396+
"type": "object",
397+
"required": [
398+
"data",
399+
"success"
400+
],
401+
"properties": {
402+
"data": {
403+
"description": "The acknowledgement data returned by the module.",
404+
"allOf": [
405+
{
406+
"$ref": "#/definitions/Binary"
407+
}
408+
]
409+
},
410+
"success": {
411+
"description": "Whether the acknowledgement was successful or not.",
412+
"type": "boolean"
413+
}
414+
},
415+
"additionalProperties": false
416+
},
394417
"IbcMsg": {
395418
"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)",
396419
"oneOf": [
@@ -482,6 +505,45 @@
482505
},
483506
"additionalProperties": false
484507
},
508+
{
509+
"description": "Acknowledges a packet that this contract received over IBC. This allows acknowledging a packet that was not acknowledged yet in the `ibc_packet_receive` call.",
510+
"type": "object",
511+
"required": [
512+
"write_acknowledgement"
513+
],
514+
"properties": {
515+
"write_acknowledgement": {
516+
"type": "object",
517+
"required": [
518+
"ack",
519+
"channel_id",
520+
"packet_sequence"
521+
],
522+
"properties": {
523+
"ack": {
524+
"description": "The acknowledgement to send back",
525+
"allOf": [
526+
{
527+
"$ref": "#/definitions/IbcFullAcknowledgement"
528+
}
529+
]
530+
},
531+
"channel_id": {
532+
"description": "Existing channel where the packet was received",
533+
"type": "string"
534+
},
535+
"packet_sequence": {
536+
"description": "Sequence number of the packet that was received",
537+
"type": "integer",
538+
"format": "uint64",
539+
"minimum": 0.0
540+
}
541+
},
542+
"additionalProperties": false
543+
}
544+
},
545+
"additionalProperties": false
546+
},
485547
{
486548
"description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port",
487549
"type": "object",

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

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,29 @@
390390
}
391391
]
392392
},
393+
"IbcFullAcknowledgement": {
394+
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
395+
"type": "object",
396+
"required": [
397+
"data",
398+
"success"
399+
],
400+
"properties": {
401+
"data": {
402+
"description": "The acknowledgement data returned by the module.",
403+
"allOf": [
404+
{
405+
"$ref": "#/definitions/Binary"
406+
}
407+
]
408+
},
409+
"success": {
410+
"description": "Whether the acknowledgement was successful or not.",
411+
"type": "boolean"
412+
}
413+
},
414+
"additionalProperties": false
415+
},
393416
"IbcMsg": {
394417
"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)",
395418
"oneOf": [
@@ -481,6 +504,45 @@
481504
},
482505
"additionalProperties": false
483506
},
507+
{
508+
"description": "Acknowledges a packet that this contract received over IBC. This allows acknowledging a packet that was not acknowledged yet in the `ibc_packet_receive` call.",
509+
"type": "object",
510+
"required": [
511+
"write_acknowledgement"
512+
],
513+
"properties": {
514+
"write_acknowledgement": {
515+
"type": "object",
516+
"required": [
517+
"ack",
518+
"channel_id",
519+
"packet_sequence"
520+
],
521+
"properties": {
522+
"ack": {
523+
"description": "The acknowledgement to send back",
524+
"allOf": [
525+
{
526+
"$ref": "#/definitions/IbcFullAcknowledgement"
527+
}
528+
]
529+
},
530+
"channel_id": {
531+
"description": "Existing channel where the packet was received",
532+
"type": "string"
533+
},
534+
"packet_sequence": {
535+
"description": "Sequence number of the packet that was received",
536+
"type": "integer",
537+
"format": "uint64",
538+
"minimum": 0.0
539+
}
540+
},
541+
"additionalProperties": false
542+
}
543+
},
544+
"additionalProperties": false
545+
},
484546
{
485547
"description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port",
486548
"type": "object",

contracts/reflect/schema/raw/execute.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,29 @@
476476
}
477477
]
478478
},
479+
"IbcFullAcknowledgement": {
480+
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
481+
"type": "object",
482+
"required": [
483+
"data",
484+
"success"
485+
],
486+
"properties": {
487+
"data": {
488+
"description": "The acknowledgement data returned by the module.",
489+
"allOf": [
490+
{
491+
"$ref": "#/definitions/Binary"
492+
}
493+
]
494+
},
495+
"success": {
496+
"description": "Whether the acknowledgement was successful or not.",
497+
"type": "boolean"
498+
}
499+
},
500+
"additionalProperties": false
501+
},
479502
"IbcMsg": {
480503
"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)",
481504
"oneOf": [
@@ -567,6 +590,45 @@
567590
},
568591
"additionalProperties": false
569592
},
593+
{
594+
"description": "Acknowledges a packet that this contract received over IBC. This allows acknowledging a packet that was not acknowledged yet in the `ibc_packet_receive` call.",
595+
"type": "object",
596+
"required": [
597+
"write_acknowledgement"
598+
],
599+
"properties": {
600+
"write_acknowledgement": {
601+
"type": "object",
602+
"required": [
603+
"ack",
604+
"channel_id",
605+
"packet_sequence"
606+
],
607+
"properties": {
608+
"ack": {
609+
"description": "The acknowledgement to send back",
610+
"allOf": [
611+
{
612+
"$ref": "#/definitions/IbcFullAcknowledgement"
613+
}
614+
]
615+
},
616+
"channel_id": {
617+
"description": "Existing channel where the packet was received",
618+
"type": "string"
619+
},
620+
"packet_sequence": {
621+
"description": "Sequence number of the packet that was received",
622+
"type": "integer",
623+
"format": "uint64",
624+
"minimum": 0.0
625+
}
626+
},
627+
"additionalProperties": false
628+
}
629+
},
630+
"additionalProperties": false
631+
},
570632
{
571633
"description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port",
572634
"type": "object",

0 commit comments

Comments
 (0)