Skip to content

Commit d413bdb

Browse files
autofix-ci[bot]chipshort
authored andcommitted
[autofix.ci] apply automated fixes
1 parent 21c48c1 commit d413bdb

File tree

2 files changed

+82
-16
lines changed

2 files changed

+82
-16
lines changed

contracts/ibc-callbacks/schema/ibc-callbacks.json

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,16 +207,19 @@
207207
"ack": {
208208
"$ref": "#/definitions/IbcAcknowledgement"
209209
},
210-
"funds": {
211-
"description": "When the underlying packet is a transfer message and the receiver is the contract that receives the callback, this field contains the coins that were transferred. Otherwise it is empty.\n\nWhen the callback is executed, the transfer is completed already and the coins are now owned by the contract.\n\nThis is always empty on chains using CosmWasm < 3.0",
212-
"default": [],
213-
"type": "array",
214-
"items": {
215-
"$ref": "#/definitions/Coin"
216-
}
217-
},
218210
"packet": {
219211
"$ref": "#/definitions/IbcPacket"
212+
},
213+
"transfer": {
214+
"description": "When the underlying packet is a successful transfer message, this field contains information about the transfer. Otherwise it is empty.\n\nThis is always empty on chains using CosmWasm < 3.0",
215+
"anyOf": [
216+
{
217+
"$ref": "#/definitions/IbcTransferCallback"
218+
},
219+
{
220+
"type": "null"
221+
}
222+
]
220223
}
221224
},
222225
"additionalProperties": false
@@ -349,6 +352,36 @@
349352
},
350353
"additionalProperties": false
351354
},
355+
"IbcTransferCallback": {
356+
"type": "object",
357+
"required": [
358+
"funds",
359+
"receiver",
360+
"sender"
361+
],
362+
"properties": {
363+
"funds": {
364+
"description": "The funds that were transferred.\n\nWhen the callback is executed, the transfer is completed already and the coins are now owned by the receiver.",
365+
"type": "array",
366+
"items": {
367+
"$ref": "#/definitions/Coin"
368+
}
369+
},
370+
"receiver": {
371+
"description": "Address of the receiver of the transfer. Since this is on the destination chain, this is a valid address.",
372+
"allOf": [
373+
{
374+
"$ref": "#/definitions/Addr"
375+
}
376+
]
377+
},
378+
"sender": {
379+
"description": "Address of the sender of the transfer. Note that this is *not* a valid address on the destination chain.",
380+
"type": "string"
381+
}
382+
},
383+
"additionalProperties": false
384+
},
352385
"Timestamp": {
353386
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
354387
"allOf": [

contracts/ibc-callbacks/schema/raw/response_to_callback_stats.json

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,19 @@
9797
"ack": {
9898
"$ref": "#/definitions/IbcAcknowledgement"
9999
},
100-
"funds": {
101-
"description": "When the underlying packet is a transfer message and the receiver is the contract that receives the callback, this field contains the coins that were transferred. Otherwise it is empty.\n\nWhen the callback is executed, the transfer is completed already and the coins are now owned by the contract.\n\nThis is always empty on chains using CosmWasm < 3.0",
102-
"default": [],
103-
"type": "array",
104-
"items": {
105-
"$ref": "#/definitions/Coin"
106-
}
107-
},
108100
"packet": {
109101
"$ref": "#/definitions/IbcPacket"
102+
},
103+
"transfer": {
104+
"description": "When the underlying packet is a successful transfer message, this field contains information about the transfer. Otherwise it is empty.\n\nThis is always empty on chains using CosmWasm < 3.0",
105+
"anyOf": [
106+
{
107+
"$ref": "#/definitions/IbcTransferCallback"
108+
},
109+
{
110+
"type": "null"
111+
}
112+
]
110113
}
111114
},
112115
"additionalProperties": false
@@ -239,6 +242,36 @@
239242
},
240243
"additionalProperties": false
241244
},
245+
"IbcTransferCallback": {
246+
"type": "object",
247+
"required": [
248+
"funds",
249+
"receiver",
250+
"sender"
251+
],
252+
"properties": {
253+
"funds": {
254+
"description": "The funds that were transferred.\n\nWhen the callback is executed, the transfer is completed already and the coins are now owned by the receiver.",
255+
"type": "array",
256+
"items": {
257+
"$ref": "#/definitions/Coin"
258+
}
259+
},
260+
"receiver": {
261+
"description": "Address of the receiver of the transfer. Since this is on the destination chain, this is a valid address.",
262+
"allOf": [
263+
{
264+
"$ref": "#/definitions/Addr"
265+
}
266+
]
267+
},
268+
"sender": {
269+
"description": "Address of the sender of the transfer. Note that this is *not* a valid address on the destination chain.",
270+
"type": "string"
271+
}
272+
},
273+
"additionalProperties": false
274+
},
242275
"Timestamp": {
243276
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
244277
"allOf": [

0 commit comments

Comments
 (0)