Skip to content

Commit

Permalink
Update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed May 10, 2024
1 parent fa8d13d commit cdca3da
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 75 deletions.
19 changes: 4 additions & 15 deletions contracts/ibc-reflect/schema/ibc-reflect.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"description": "The acknowledgement to send back",
"allOf": [
{
"$ref": "#/definitions/IbcFullAcknowledgement"
"$ref": "#/definitions/IbcAcknowledgement"
}
]
},
Expand Down Expand Up @@ -69,25 +69,14 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"IbcFullAcknowledgement": {
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
"IbcAcknowledgement": {
"type": "object",
"required": [
"data",
"success"
"data"
],
"properties": {
"data": {
"description": "The acknowledgement data returned by the module.",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"success": {
"description": "Whether the acknowledgement was successful or not.",
"type": "boolean"
"$ref": "#/definitions/Binary"
}
},
"additionalProperties": false
Expand Down
19 changes: 4 additions & 15 deletions contracts/ibc-reflect/schema/ibc/packet_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,25 +403,14 @@
}
]
},
"IbcFullAcknowledgement": {
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
"IbcAcknowledgement": {
"type": "object",
"required": [
"data",
"success"
"data"
],
"properties": {
"data": {
"description": "The acknowledgement data returned by the module.",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"success": {
"description": "Whether the acknowledgement was successful or not.",
"type": "boolean"
"$ref": "#/definitions/Binary"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -536,7 +525,7 @@
"description": "The acknowledgement to send back",
"allOf": [
{
"$ref": "#/definitions/IbcFullAcknowledgement"
"$ref": "#/definitions/IbcAcknowledgement"
}
]
},
Expand Down
19 changes: 4 additions & 15 deletions contracts/ibc-reflect/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"description": "The acknowledgement to send back",
"allOf": [
{
"$ref": "#/definitions/IbcFullAcknowledgement"
"$ref": "#/definitions/IbcAcknowledgement"
}
]
},
Expand Down Expand Up @@ -48,25 +48,14 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"IbcFullAcknowledgement": {
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
"IbcAcknowledgement": {
"type": "object",
"required": [
"data",
"success"
"data"
],
"properties": {
"data": {
"description": "The acknowledgement data returned by the module.",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"success": {
"description": "Whether the acknowledgement was successful or not.",
"type": "boolean"
"$ref": "#/definitions/Binary"
}
},
"additionalProperties": false
Expand Down
19 changes: 4 additions & 15 deletions contracts/reflect/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -476,25 +476,14 @@
}
]
},
"IbcFullAcknowledgement": {
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
"IbcAcknowledgement": {
"type": "object",
"required": [
"data",
"success"
"data"
],
"properties": {
"data": {
"description": "The acknowledgement data returned by the module.",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"success": {
"description": "Whether the acknowledgement was successful or not.",
"type": "boolean"
"$ref": "#/definitions/Binary"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -609,7 +598,7 @@
"description": "The acknowledgement to send back",
"allOf": [
{
"$ref": "#/definitions/IbcFullAcknowledgement"
"$ref": "#/definitions/IbcAcknowledgement"
}
]
},
Expand Down
19 changes: 4 additions & 15 deletions contracts/reflect/schema/reflect.json
Original file line number Diff line number Diff line change
Expand Up @@ -486,25 +486,14 @@
}
]
},
"IbcFullAcknowledgement": {
"description": "The acknowledgement written by the module on the destination chain. It is different from the [`crate::IbcAcknowledgement`] as it can be unsuccessful.",
"IbcAcknowledgement": {
"type": "object",
"required": [
"data",
"success"
"data"
],
"properties": {
"data": {
"description": "The acknowledgement data returned by the module.",
"allOf": [
{
"$ref": "#/definitions/Binary"
}
]
},
"success": {
"description": "Whether the acknowledgement was successful or not.",
"type": "boolean"
"$ref": "#/definitions/Binary"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -619,7 +608,7 @@
"description": "The acknowledgement to send back",
"allOf": [
{
"$ref": "#/definitions/IbcFullAcknowledgement"
"$ref": "#/definitions/IbcAcknowledgement"
}
]
},
Expand Down

0 comments on commit cdca3da

Please sign in to comment.