schemos 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/client.d.ts +8 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -0
- package/dist/client.test-d.d.ts +2 -0
- package/dist/client.test-d.d.ts.map +1 -0
- package/dist/client.test-d.js +50 -0
- package/dist/client.test-d.js.map +1 -0
- package/dist/contract.bench-d.d.ts +2 -0
- package/dist/contract.bench-d.d.ts.map +1 -0
- package/dist/contract.bench-d.js +67 -0
- package/dist/contract.bench-d.js.map +1 -0
- package/dist/contract.d.ts +27 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/contract.js +30 -0
- package/dist/contract.js.map +1 -0
- package/dist/contract.test-d.d.ts +2 -0
- package/dist/contract.test-d.d.ts.map +1 -0
- package/dist/contract.test-d.js +147 -0
- package/dist/contract.test-d.js.map +1 -0
- package/dist/contract.test.d.ts +2 -0
- package/dist/contract.test.d.ts.map +1 -0
- package/dist/contract.test.js +77 -0
- package/dist/contract.test.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/cw20/execute.d.ts +367 -0
- package/dist/schemas/cw20/execute.d.ts.map +1 -0
- package/dist/schemas/cw20/execute.js +398 -0
- package/dist/schemas/cw20/execute.js.map +1 -0
- package/dist/schemas/cw20/index.d.ts +905 -0
- package/dist/schemas/cw20/index.d.ts.map +1 -0
- package/dist/schemas/cw20/index.js +10 -0
- package/dist/schemas/cw20/index.js.map +1 -0
- package/dist/schemas/cw20/query.d.ts +160 -0
- package/dist/schemas/cw20/query.d.ts.map +1 -0
- package/dist/schemas/cw20/query.js +170 -0
- package/dist/schemas/cw20/query.js.map +1 -0
- package/dist/schemas/cw20/responses.d.ts +386 -0
- package/dist/schemas/cw20/responses.d.ts.map +1 -0
- package/dist/schemas/cw20/responses.js +416 -0
- package/dist/schemas/cw20/responses.js.map +1 -0
- package/dist/schemas/cw721/execute.d.ts +543 -0
- package/dist/schemas/cw721/execute.d.ts.map +1 -0
- package/dist/schemas/cw721/execute.js +597 -0
- package/dist/schemas/cw721/execute.js.map +1 -0
- package/dist/schemas/cw721/index.d.ts +2507 -0
- package/dist/schemas/cw721/index.d.ts.map +1 -0
- package/dist/schemas/cw721/index.js +10 -0
- package/dist/schemas/cw721/index.js.map +1 -0
- package/dist/schemas/cw721/query.d.ts +487 -0
- package/dist/schemas/cw721/query.d.ts.map +1 -0
- package/dist/schemas/cw721/query.js +526 -0
- package/dist/schemas/cw721/query.js.map +1 -0
- package/dist/schemas/cw721/responses.d.ts +1485 -0
- package/dist/schemas/cw721/responses.d.ts.map +1 -0
- package/dist/schemas/cw721/responses.js +1675 -0
- package/dist/schemas/cw721/responses.js.map +1 -0
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/schemas.test-d.d.ts +2 -0
- package/dist/schemas/schemas.test-d.d.ts.map +1 -0
- package/dist/schemas/schemas.test-d.js +92 -0
- package/dist/schemas/schemas.test-d.js.map +1 -0
- package/dist/schemas/schemas.test.d.ts +2 -0
- package/dist/schemas/schemas.test.d.ts.map +1 -0
- package/dist/schemas/schemas.test.js +150 -0
- package/dist/schemas/schemas.test.js.map +1 -0
- package/dist/telescope.d.ts +140 -0
- package/dist/telescope.d.ts.map +1 -0
- package/dist/telescope.js +119 -0
- package/dist/telescope.js.map +1 -0
- package/dist/telescope.test.d.ts +2 -0
- package/dist/telescope.test.d.ts.map +1 -0
- package/dist/telescope.test.js +91 -0
- package/dist/telescope.test.js.map +1 -0
- package/dist/types.d.ts +9 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/types.test-d.d.ts +2 -0
- package/dist/types.test-d.d.ts.map +1 -0
- package/dist/types.test-d.js +28 -0
- package/dist/types.test-d.js.map +1 -0
- package/dist/wallet-compat.test-d.d.ts +13 -0
- package/dist/wallet-compat.test-d.d.ts.map +1 -0
- package/dist/wallet-compat.test-d.js +74 -0
- package/dist/wallet-compat.test-d.js.map +1 -0
- package/package.json +65 -7
|
@@ -0,0 +1,2507 @@
|
|
|
1
|
+
import { cw721ExecuteSchema } from './execute.js';
|
|
2
|
+
import { cw721QuerySchema } from './query.js';
|
|
3
|
+
import { cw721ResponseSchemas } from './responses.js';
|
|
4
|
+
export declare const cw721: {
|
|
5
|
+
readonly execute: {
|
|
6
|
+
readonly oneOf: readonly [{
|
|
7
|
+
readonly description: "Deprecated: use UpdateMinterOwnership instead! Will be removed in next release!";
|
|
8
|
+
readonly deprecated: true;
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly required: readonly ["update_ownership"];
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly update_ownership: {
|
|
13
|
+
readonly $ref: "#/definitions/Action";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
readonly additionalProperties: false;
|
|
17
|
+
}, {
|
|
18
|
+
readonly type: "object";
|
|
19
|
+
readonly required: readonly ["update_minter_ownership"];
|
|
20
|
+
readonly properties: {
|
|
21
|
+
readonly update_minter_ownership: {
|
|
22
|
+
readonly $ref: "#/definitions/Action";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly additionalProperties: false;
|
|
26
|
+
}, {
|
|
27
|
+
readonly type: "object";
|
|
28
|
+
readonly required: readonly ["update_creator_ownership"];
|
|
29
|
+
readonly properties: {
|
|
30
|
+
readonly update_creator_ownership: {
|
|
31
|
+
readonly $ref: "#/definitions/Action";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly additionalProperties: false;
|
|
35
|
+
}, {
|
|
36
|
+
readonly description: "The creator is the only one eligible to update `CollectionInfo`.";
|
|
37
|
+
readonly type: "object";
|
|
38
|
+
readonly required: readonly ["update_collection_info"];
|
|
39
|
+
readonly properties: {
|
|
40
|
+
readonly update_collection_info: {
|
|
41
|
+
readonly type: "object";
|
|
42
|
+
readonly required: readonly ["collection_info"];
|
|
43
|
+
readonly properties: {
|
|
44
|
+
readonly collection_info: {
|
|
45
|
+
readonly $ref: "#/definitions/CollectionInfoMsg_for_Nullable_CollectionExtensionMsg_for_RoyaltyInfoResponse";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly additionalProperties: false;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly additionalProperties: false;
|
|
52
|
+
}, {
|
|
53
|
+
readonly description: "Transfer is a base message to move a token to another account without triggering actions";
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly required: readonly ["transfer_nft"];
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly transfer_nft: {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly required: readonly ["recipient", "token_id"];
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly recipient: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
};
|
|
64
|
+
readonly token_id: {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly additionalProperties: false;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly additionalProperties: false;
|
|
72
|
+
}, {
|
|
73
|
+
readonly description: "Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.";
|
|
74
|
+
readonly type: "object";
|
|
75
|
+
readonly required: readonly ["send_nft"];
|
|
76
|
+
readonly properties: {
|
|
77
|
+
readonly send_nft: {
|
|
78
|
+
readonly type: "object";
|
|
79
|
+
readonly required: readonly ["contract", "msg", "token_id"];
|
|
80
|
+
readonly properties: {
|
|
81
|
+
readonly contract: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
};
|
|
84
|
+
readonly msg: {
|
|
85
|
+
readonly $ref: "#/definitions/Binary";
|
|
86
|
+
};
|
|
87
|
+
readonly token_id: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly additionalProperties: false;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
readonly additionalProperties: false;
|
|
95
|
+
}, {
|
|
96
|
+
readonly description: "Allows operator to transfer / send the token from the owner's account. If expiration is set, then this allowance has a time/height limit";
|
|
97
|
+
readonly type: "object";
|
|
98
|
+
readonly required: readonly ["approve"];
|
|
99
|
+
readonly properties: {
|
|
100
|
+
readonly approve: {
|
|
101
|
+
readonly type: "object";
|
|
102
|
+
readonly required: readonly ["spender", "token_id"];
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly expires: {
|
|
105
|
+
readonly anyOf: readonly [{
|
|
106
|
+
readonly $ref: "#/definitions/Expiration";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "null";
|
|
109
|
+
}];
|
|
110
|
+
};
|
|
111
|
+
readonly spender: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
};
|
|
114
|
+
readonly token_id: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
readonly additionalProperties: false;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
readonly additionalProperties: false;
|
|
122
|
+
}, {
|
|
123
|
+
readonly description: "Remove previously granted Approval";
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
readonly required: readonly ["revoke"];
|
|
126
|
+
readonly properties: {
|
|
127
|
+
readonly revoke: {
|
|
128
|
+
readonly type: "object";
|
|
129
|
+
readonly required: readonly ["spender", "token_id"];
|
|
130
|
+
readonly properties: {
|
|
131
|
+
readonly spender: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
readonly token_id: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
readonly additionalProperties: false;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly additionalProperties: false;
|
|
142
|
+
}, {
|
|
143
|
+
readonly description: "Allows operator to transfer / send any token from the owner's account. If expiration is set, then this allowance has a time/height limit";
|
|
144
|
+
readonly type: "object";
|
|
145
|
+
readonly required: readonly ["approve_all"];
|
|
146
|
+
readonly properties: {
|
|
147
|
+
readonly approve_all: {
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly required: readonly ["operator"];
|
|
150
|
+
readonly properties: {
|
|
151
|
+
readonly expires: {
|
|
152
|
+
readonly anyOf: readonly [{
|
|
153
|
+
readonly $ref: "#/definitions/Expiration";
|
|
154
|
+
}, {
|
|
155
|
+
readonly type: "null";
|
|
156
|
+
}];
|
|
157
|
+
};
|
|
158
|
+
readonly operator: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
readonly additionalProperties: false;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
readonly additionalProperties: false;
|
|
166
|
+
}, {
|
|
167
|
+
readonly description: "Remove previously granted ApproveAll permission";
|
|
168
|
+
readonly type: "object";
|
|
169
|
+
readonly required: readonly ["revoke_all"];
|
|
170
|
+
readonly properties: {
|
|
171
|
+
readonly revoke_all: {
|
|
172
|
+
readonly type: "object";
|
|
173
|
+
readonly required: readonly ["operator"];
|
|
174
|
+
readonly properties: {
|
|
175
|
+
readonly operator: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
readonly additionalProperties: false;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly additionalProperties: false;
|
|
183
|
+
}, {
|
|
184
|
+
readonly description: "Mint a new NFT, can only be called by the contract minter";
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly required: readonly ["mint"];
|
|
187
|
+
readonly properties: {
|
|
188
|
+
readonly mint: {
|
|
189
|
+
readonly type: "object";
|
|
190
|
+
readonly required: readonly ["owner", "token_id"];
|
|
191
|
+
readonly properties: {
|
|
192
|
+
readonly extension: {
|
|
193
|
+
readonly description: "Any custom extension used by this contract";
|
|
194
|
+
readonly anyOf: readonly [{
|
|
195
|
+
readonly $ref: "#/definitions/Empty";
|
|
196
|
+
}, {
|
|
197
|
+
readonly type: "null";
|
|
198
|
+
}];
|
|
199
|
+
};
|
|
200
|
+
readonly owner: {
|
|
201
|
+
readonly description: "The owner of the newly minter NFT";
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
};
|
|
204
|
+
readonly token_id: {
|
|
205
|
+
readonly description: "Unique ID of the NFT";
|
|
206
|
+
readonly type: "string";
|
|
207
|
+
};
|
|
208
|
+
readonly token_uri: {
|
|
209
|
+
readonly description: "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema";
|
|
210
|
+
readonly type: readonly ["string", "null"];
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
readonly additionalProperties: false;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly additionalProperties: false;
|
|
217
|
+
}, {
|
|
218
|
+
readonly description: "Burn an NFT the sender has access to";
|
|
219
|
+
readonly type: "object";
|
|
220
|
+
readonly required: readonly ["burn"];
|
|
221
|
+
readonly properties: {
|
|
222
|
+
readonly burn: {
|
|
223
|
+
readonly type: "object";
|
|
224
|
+
readonly required: readonly ["token_id"];
|
|
225
|
+
readonly properties: {
|
|
226
|
+
readonly token_id: {
|
|
227
|
+
readonly type: "string";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
readonly additionalProperties: false;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly additionalProperties: false;
|
|
234
|
+
}, {
|
|
235
|
+
readonly description: "Add an additional minter. Only the primary minter (manager) can call this.";
|
|
236
|
+
readonly type: "object";
|
|
237
|
+
readonly required: readonly ["add_minter"];
|
|
238
|
+
readonly properties: {
|
|
239
|
+
readonly add_minter: {
|
|
240
|
+
readonly type: "object";
|
|
241
|
+
readonly required: readonly ["minter"];
|
|
242
|
+
readonly properties: {
|
|
243
|
+
readonly minter: {
|
|
244
|
+
readonly type: "string";
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
readonly additionalProperties: false;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly additionalProperties: false;
|
|
251
|
+
}, {
|
|
252
|
+
readonly description: "Remove an additional minter. Only the primary minter (manager) can call this.";
|
|
253
|
+
readonly type: "object";
|
|
254
|
+
readonly required: readonly ["remove_minter"];
|
|
255
|
+
readonly properties: {
|
|
256
|
+
readonly remove_minter: {
|
|
257
|
+
readonly type: "object";
|
|
258
|
+
readonly required: readonly ["minter"];
|
|
259
|
+
readonly properties: {
|
|
260
|
+
readonly minter: {
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly additionalProperties: false;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
readonly additionalProperties: false;
|
|
268
|
+
}, {
|
|
269
|
+
readonly description: "Custom msg execution. This is a no-op in default implementation.";
|
|
270
|
+
readonly type: "object";
|
|
271
|
+
readonly required: readonly ["update_extension"];
|
|
272
|
+
readonly properties: {
|
|
273
|
+
readonly update_extension: {
|
|
274
|
+
readonly type: "object";
|
|
275
|
+
readonly required: readonly ["msg"];
|
|
276
|
+
readonly properties: {
|
|
277
|
+
readonly msg: {
|
|
278
|
+
readonly $ref: "#/definitions/Empty";
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
readonly additionalProperties: false;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
readonly additionalProperties: false;
|
|
285
|
+
}, {
|
|
286
|
+
readonly description: "The creator is the only one eligible to update NFT's token uri and onchain metadata (`NftInfo.extension`). NOTE: approvals and owner are not affected by this call, since they belong to the NFT owner.";
|
|
287
|
+
readonly type: "object";
|
|
288
|
+
readonly required: readonly ["update_nft_info"];
|
|
289
|
+
readonly properties: {
|
|
290
|
+
readonly update_nft_info: {
|
|
291
|
+
readonly type: "object";
|
|
292
|
+
readonly required: readonly ["token_id"];
|
|
293
|
+
readonly properties: {
|
|
294
|
+
readonly extension: {
|
|
295
|
+
readonly anyOf: readonly [{
|
|
296
|
+
readonly $ref: "#/definitions/Empty";
|
|
297
|
+
}, {
|
|
298
|
+
readonly type: "null";
|
|
299
|
+
}];
|
|
300
|
+
};
|
|
301
|
+
readonly token_id: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
};
|
|
304
|
+
readonly token_uri: {
|
|
305
|
+
readonly description: "NOTE: Empty string is handled as None";
|
|
306
|
+
readonly type: readonly ["string", "null"];
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
readonly additionalProperties: false;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly additionalProperties: false;
|
|
313
|
+
}, {
|
|
314
|
+
readonly description: "Sets address to send withdrawn fees to. Only owner can call this.";
|
|
315
|
+
readonly type: "object";
|
|
316
|
+
readonly required: readonly ["set_withdraw_address"];
|
|
317
|
+
readonly properties: {
|
|
318
|
+
readonly set_withdraw_address: {
|
|
319
|
+
readonly type: "object";
|
|
320
|
+
readonly required: readonly ["address"];
|
|
321
|
+
readonly properties: {
|
|
322
|
+
readonly address: {
|
|
323
|
+
readonly type: "string";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
readonly additionalProperties: false;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
readonly additionalProperties: false;
|
|
330
|
+
}, {
|
|
331
|
+
readonly description: "Removes the withdraw address, so fees are sent to the contract. Only owner can call this.";
|
|
332
|
+
readonly type: "object";
|
|
333
|
+
readonly required: readonly ["remove_withdraw_address"];
|
|
334
|
+
readonly properties: {
|
|
335
|
+
readonly remove_withdraw_address: {
|
|
336
|
+
readonly type: "object";
|
|
337
|
+
readonly additionalProperties: false;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
readonly additionalProperties: false;
|
|
341
|
+
}, {
|
|
342
|
+
readonly description: "Withdraw from the contract to the given address. Anyone can call this, which is okay since withdraw address has been set by owner.";
|
|
343
|
+
readonly type: "object";
|
|
344
|
+
readonly required: readonly ["withdraw_funds"];
|
|
345
|
+
readonly properties: {
|
|
346
|
+
readonly withdraw_funds: {
|
|
347
|
+
readonly type: "object";
|
|
348
|
+
readonly required: readonly ["amount"];
|
|
349
|
+
readonly properties: {
|
|
350
|
+
readonly amount: {
|
|
351
|
+
readonly $ref: "#/definitions/Coin";
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
readonly additionalProperties: false;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
readonly additionalProperties: false;
|
|
358
|
+
}];
|
|
359
|
+
readonly definitions: {
|
|
360
|
+
readonly Action: {
|
|
361
|
+
readonly description: "Actions that can be taken to alter the contract's ownership";
|
|
362
|
+
readonly oneOf: readonly [{
|
|
363
|
+
readonly description: "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.";
|
|
364
|
+
readonly type: "object";
|
|
365
|
+
readonly required: readonly ["transfer_ownership"];
|
|
366
|
+
readonly properties: {
|
|
367
|
+
readonly transfer_ownership: {
|
|
368
|
+
readonly type: "object";
|
|
369
|
+
readonly required: readonly ["new_owner"];
|
|
370
|
+
readonly properties: {
|
|
371
|
+
readonly expiry: {
|
|
372
|
+
readonly anyOf: readonly [{
|
|
373
|
+
readonly $ref: "#/definitions/Expiration";
|
|
374
|
+
}, {
|
|
375
|
+
readonly type: "null";
|
|
376
|
+
}];
|
|
377
|
+
};
|
|
378
|
+
readonly new_owner: {
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
readonly additionalProperties: false;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
readonly additionalProperties: false;
|
|
386
|
+
}, {
|
|
387
|
+
readonly description: "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.";
|
|
388
|
+
readonly type: "string";
|
|
389
|
+
readonly enum: readonly ["accept_ownership"];
|
|
390
|
+
}, {
|
|
391
|
+
readonly description: "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.";
|
|
392
|
+
readonly type: "string";
|
|
393
|
+
readonly enum: readonly ["renounce_ownership"];
|
|
394
|
+
}];
|
|
395
|
+
};
|
|
396
|
+
readonly Binary: {
|
|
397
|
+
readonly 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>.";
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
};
|
|
400
|
+
readonly Coin: {
|
|
401
|
+
readonly type: "object";
|
|
402
|
+
readonly required: readonly ["amount", "denom"];
|
|
403
|
+
readonly properties: {
|
|
404
|
+
readonly amount: {
|
|
405
|
+
readonly $ref: "#/definitions/Uint128";
|
|
406
|
+
};
|
|
407
|
+
readonly denom: {
|
|
408
|
+
readonly type: "string";
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
readonly additionalProperties: false;
|
|
412
|
+
};
|
|
413
|
+
readonly CollectionExtensionMsg_for_RoyaltyInfoResponse: {
|
|
414
|
+
readonly description: "NOTE: In case `info` is not provided in `create()` or `validate()` (like for migration), creator/minter assertion is skipped.";
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly properties: {
|
|
417
|
+
readonly banner_url: {
|
|
418
|
+
readonly type: readonly ["string", "null"];
|
|
419
|
+
};
|
|
420
|
+
readonly description: {
|
|
421
|
+
readonly type: readonly ["string", "null"];
|
|
422
|
+
};
|
|
423
|
+
readonly explicit_content: {
|
|
424
|
+
readonly type: readonly ["boolean", "null"];
|
|
425
|
+
};
|
|
426
|
+
readonly external_link: {
|
|
427
|
+
readonly type: readonly ["string", "null"];
|
|
428
|
+
};
|
|
429
|
+
readonly image: {
|
|
430
|
+
readonly type: readonly ["string", "null"];
|
|
431
|
+
};
|
|
432
|
+
readonly royalty_info: {
|
|
433
|
+
readonly anyOf: readonly [{
|
|
434
|
+
readonly $ref: "#/definitions/RoyaltyInfoResponse";
|
|
435
|
+
}, {
|
|
436
|
+
readonly type: "null";
|
|
437
|
+
}];
|
|
438
|
+
};
|
|
439
|
+
readonly start_trading_time: {
|
|
440
|
+
readonly anyOf: readonly [{
|
|
441
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
442
|
+
}, {
|
|
443
|
+
readonly type: "null";
|
|
444
|
+
}];
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
readonly additionalProperties: false;
|
|
448
|
+
};
|
|
449
|
+
readonly CollectionInfoMsg_for_Nullable_CollectionExtensionMsg_for_RoyaltyInfoResponse: {
|
|
450
|
+
readonly type: "object";
|
|
451
|
+
readonly properties: {
|
|
452
|
+
readonly extension: {
|
|
453
|
+
readonly anyOf: readonly [{
|
|
454
|
+
readonly $ref: "#/definitions/CollectionExtensionMsg_for_RoyaltyInfoResponse";
|
|
455
|
+
}, {
|
|
456
|
+
readonly type: "null";
|
|
457
|
+
}];
|
|
458
|
+
};
|
|
459
|
+
readonly name: {
|
|
460
|
+
readonly type: readonly ["string", "null"];
|
|
461
|
+
};
|
|
462
|
+
readonly symbol: {
|
|
463
|
+
readonly type: readonly ["string", "null"];
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
readonly additionalProperties: false;
|
|
467
|
+
};
|
|
468
|
+
readonly Decimal: {
|
|
469
|
+
readonly description: "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)";
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
};
|
|
472
|
+
readonly Empty: {
|
|
473
|
+
readonly description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)";
|
|
474
|
+
readonly type: "object";
|
|
475
|
+
readonly additionalProperties: false;
|
|
476
|
+
};
|
|
477
|
+
readonly Expiration: {
|
|
478
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
479
|
+
readonly oneOf: readonly [{
|
|
480
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
481
|
+
readonly type: "object";
|
|
482
|
+
readonly required: readonly ["at_height"];
|
|
483
|
+
readonly properties: {
|
|
484
|
+
readonly at_height: {
|
|
485
|
+
readonly type: "integer";
|
|
486
|
+
readonly format: "uint64";
|
|
487
|
+
readonly minimum: 0;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
readonly additionalProperties: false;
|
|
491
|
+
}, {
|
|
492
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
493
|
+
readonly type: "object";
|
|
494
|
+
readonly required: readonly ["at_time"];
|
|
495
|
+
readonly properties: {
|
|
496
|
+
readonly at_time: {
|
|
497
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
readonly additionalProperties: false;
|
|
501
|
+
}, {
|
|
502
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
503
|
+
readonly type: "object";
|
|
504
|
+
readonly required: readonly ["never"];
|
|
505
|
+
readonly properties: {
|
|
506
|
+
readonly never: {
|
|
507
|
+
readonly type: "object";
|
|
508
|
+
readonly additionalProperties: false;
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly additionalProperties: false;
|
|
512
|
+
}];
|
|
513
|
+
};
|
|
514
|
+
readonly RoyaltyInfoResponse: {
|
|
515
|
+
readonly type: "object";
|
|
516
|
+
readonly required: readonly ["payment_address", "share"];
|
|
517
|
+
readonly properties: {
|
|
518
|
+
readonly payment_address: {
|
|
519
|
+
readonly type: "string";
|
|
520
|
+
};
|
|
521
|
+
readonly share: {
|
|
522
|
+
readonly $ref: "#/definitions/Decimal";
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
readonly additionalProperties: false;
|
|
526
|
+
};
|
|
527
|
+
readonly Timestamp: {
|
|
528
|
+
readonly 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); ```";
|
|
529
|
+
readonly allOf: readonly [{
|
|
530
|
+
readonly $ref: "#/definitions/Uint64";
|
|
531
|
+
}];
|
|
532
|
+
};
|
|
533
|
+
readonly Uint128: {
|
|
534
|
+
readonly description: "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```";
|
|
535
|
+
readonly type: "string";
|
|
536
|
+
};
|
|
537
|
+
readonly Uint64: {
|
|
538
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
539
|
+
readonly type: "string";
|
|
540
|
+
};
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
readonly query: {
|
|
544
|
+
readonly oneOf: readonly [{
|
|
545
|
+
readonly description: "Return the owner of the given token, error if token does not exist";
|
|
546
|
+
readonly type: "object";
|
|
547
|
+
readonly required: readonly ["owner_of"];
|
|
548
|
+
readonly properties: {
|
|
549
|
+
readonly owner_of: {
|
|
550
|
+
readonly type: "object";
|
|
551
|
+
readonly required: readonly ["token_id"];
|
|
552
|
+
readonly properties: {
|
|
553
|
+
readonly include_expired: {
|
|
554
|
+
readonly description: "unset or false will filter out expired approvals, you must set to true to see them";
|
|
555
|
+
readonly type: readonly ["boolean", "null"];
|
|
556
|
+
};
|
|
557
|
+
readonly token_id: {
|
|
558
|
+
readonly type: "string";
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
readonly additionalProperties: false;
|
|
562
|
+
};
|
|
563
|
+
};
|
|
564
|
+
readonly additionalProperties: false;
|
|
565
|
+
}, {
|
|
566
|
+
readonly description: "Return operator that can access all of the owner's tokens.";
|
|
567
|
+
readonly type: "object";
|
|
568
|
+
readonly required: readonly ["approval"];
|
|
569
|
+
readonly properties: {
|
|
570
|
+
readonly approval: {
|
|
571
|
+
readonly type: "object";
|
|
572
|
+
readonly required: readonly ["spender", "token_id"];
|
|
573
|
+
readonly properties: {
|
|
574
|
+
readonly include_expired: {
|
|
575
|
+
readonly type: readonly ["boolean", "null"];
|
|
576
|
+
};
|
|
577
|
+
readonly spender: {
|
|
578
|
+
readonly type: "string";
|
|
579
|
+
};
|
|
580
|
+
readonly token_id: {
|
|
581
|
+
readonly type: "string";
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
readonly additionalProperties: false;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
readonly additionalProperties: false;
|
|
588
|
+
}, {
|
|
589
|
+
readonly description: "Return approvals that a token has";
|
|
590
|
+
readonly type: "object";
|
|
591
|
+
readonly required: readonly ["approvals"];
|
|
592
|
+
readonly properties: {
|
|
593
|
+
readonly approvals: {
|
|
594
|
+
readonly type: "object";
|
|
595
|
+
readonly required: readonly ["token_id"];
|
|
596
|
+
readonly properties: {
|
|
597
|
+
readonly include_expired: {
|
|
598
|
+
readonly type: readonly ["boolean", "null"];
|
|
599
|
+
};
|
|
600
|
+
readonly token_id: {
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
readonly additionalProperties: false;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
readonly additionalProperties: false;
|
|
608
|
+
}, {
|
|
609
|
+
readonly description: "Return approval of a given operator for all tokens of an owner, error if not set";
|
|
610
|
+
readonly type: "object";
|
|
611
|
+
readonly required: readonly ["operator"];
|
|
612
|
+
readonly properties: {
|
|
613
|
+
readonly operator: {
|
|
614
|
+
readonly type: "object";
|
|
615
|
+
readonly required: readonly ["operator", "owner"];
|
|
616
|
+
readonly properties: {
|
|
617
|
+
readonly include_expired: {
|
|
618
|
+
readonly type: readonly ["boolean", "null"];
|
|
619
|
+
};
|
|
620
|
+
readonly operator: {
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
};
|
|
623
|
+
readonly owner: {
|
|
624
|
+
readonly type: "string";
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
readonly additionalProperties: false;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
readonly additionalProperties: false;
|
|
631
|
+
}, {
|
|
632
|
+
readonly description: "List all operators that can access all of the owner's tokens";
|
|
633
|
+
readonly type: "object";
|
|
634
|
+
readonly required: readonly ["all_operators"];
|
|
635
|
+
readonly properties: {
|
|
636
|
+
readonly all_operators: {
|
|
637
|
+
readonly type: "object";
|
|
638
|
+
readonly required: readonly ["owner"];
|
|
639
|
+
readonly properties: {
|
|
640
|
+
readonly include_expired: {
|
|
641
|
+
readonly description: "unset or false will filter out expired items, you must set to true to see them";
|
|
642
|
+
readonly type: readonly ["boolean", "null"];
|
|
643
|
+
};
|
|
644
|
+
readonly limit: {
|
|
645
|
+
readonly type: readonly ["integer", "null"];
|
|
646
|
+
readonly format: "uint32";
|
|
647
|
+
readonly minimum: 0;
|
|
648
|
+
};
|
|
649
|
+
readonly owner: {
|
|
650
|
+
readonly type: "string";
|
|
651
|
+
};
|
|
652
|
+
readonly start_after: {
|
|
653
|
+
readonly type: readonly ["string", "null"];
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
readonly additionalProperties: false;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
readonly additionalProperties: false;
|
|
660
|
+
}, {
|
|
661
|
+
readonly description: "Total number of tokens issued";
|
|
662
|
+
readonly type: "object";
|
|
663
|
+
readonly required: readonly ["num_tokens"];
|
|
664
|
+
readonly properties: {
|
|
665
|
+
readonly num_tokens: {
|
|
666
|
+
readonly type: "object";
|
|
667
|
+
readonly additionalProperties: false;
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
readonly additionalProperties: false;
|
|
671
|
+
}, {
|
|
672
|
+
readonly description: "Deprecated: use GetCollectionInfoAndExtension instead! Will be removed in next release!";
|
|
673
|
+
readonly deprecated: true;
|
|
674
|
+
readonly type: "object";
|
|
675
|
+
readonly required: readonly ["contract_info"];
|
|
676
|
+
readonly properties: {
|
|
677
|
+
readonly contract_info: {
|
|
678
|
+
readonly type: "object";
|
|
679
|
+
readonly additionalProperties: false;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
readonly additionalProperties: false;
|
|
683
|
+
}, {
|
|
684
|
+
readonly description: "Returns `AllCollectionInfoResponse`";
|
|
685
|
+
readonly type: "object";
|
|
686
|
+
readonly required: readonly ["get_config"];
|
|
687
|
+
readonly properties: {
|
|
688
|
+
readonly get_config: {
|
|
689
|
+
readonly type: "object";
|
|
690
|
+
readonly additionalProperties: false;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
readonly additionalProperties: false;
|
|
694
|
+
}, {
|
|
695
|
+
readonly description: "Returns `CollectionInfoAndExtensionResponse`";
|
|
696
|
+
readonly type: "object";
|
|
697
|
+
readonly required: readonly ["get_collection_info_and_extension"];
|
|
698
|
+
readonly properties: {
|
|
699
|
+
readonly get_collection_info_and_extension: {
|
|
700
|
+
readonly type: "object";
|
|
701
|
+
readonly additionalProperties: false;
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
readonly additionalProperties: false;
|
|
705
|
+
}, {
|
|
706
|
+
readonly description: "returns `AllInfoResponse` which contains contract, collection and nft details";
|
|
707
|
+
readonly type: "object";
|
|
708
|
+
readonly required: readonly ["get_all_info"];
|
|
709
|
+
readonly properties: {
|
|
710
|
+
readonly get_all_info: {
|
|
711
|
+
readonly type: "object";
|
|
712
|
+
readonly additionalProperties: false;
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
readonly additionalProperties: false;
|
|
716
|
+
}, {
|
|
717
|
+
readonly description: "Returns `CollectionExtensionAttributes`";
|
|
718
|
+
readonly type: "object";
|
|
719
|
+
readonly required: readonly ["get_collection_extension_attributes"];
|
|
720
|
+
readonly properties: {
|
|
721
|
+
readonly get_collection_extension_attributes: {
|
|
722
|
+
readonly type: "object";
|
|
723
|
+
readonly additionalProperties: false;
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
readonly additionalProperties: false;
|
|
727
|
+
}, {
|
|
728
|
+
readonly description: "Deprecated: use GetMinterOwnership instead! Will be removed in next release!";
|
|
729
|
+
readonly deprecated: true;
|
|
730
|
+
readonly type: "object";
|
|
731
|
+
readonly required: readonly ["ownership"];
|
|
732
|
+
readonly properties: {
|
|
733
|
+
readonly ownership: {
|
|
734
|
+
readonly type: "object";
|
|
735
|
+
readonly additionalProperties: false;
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
readonly additionalProperties: false;
|
|
739
|
+
}, {
|
|
740
|
+
readonly description: "Return the minter Deprecated: use GetMinterOwnership instead! Will be removed in next release!";
|
|
741
|
+
readonly deprecated: true;
|
|
742
|
+
readonly type: "object";
|
|
743
|
+
readonly required: readonly ["minter"];
|
|
744
|
+
readonly properties: {
|
|
745
|
+
readonly minter: {
|
|
746
|
+
readonly type: "object";
|
|
747
|
+
readonly additionalProperties: false;
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
readonly additionalProperties: false;
|
|
751
|
+
}, {
|
|
752
|
+
readonly type: "object";
|
|
753
|
+
readonly required: readonly ["get_minter_ownership"];
|
|
754
|
+
readonly properties: {
|
|
755
|
+
readonly get_minter_ownership: {
|
|
756
|
+
readonly type: "object";
|
|
757
|
+
readonly additionalProperties: false;
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
readonly additionalProperties: false;
|
|
761
|
+
}, {
|
|
762
|
+
readonly type: "object";
|
|
763
|
+
readonly required: readonly ["get_creator_ownership"];
|
|
764
|
+
readonly properties: {
|
|
765
|
+
readonly get_creator_ownership: {
|
|
766
|
+
readonly type: "object";
|
|
767
|
+
readonly additionalProperties: false;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
readonly additionalProperties: false;
|
|
771
|
+
}, {
|
|
772
|
+
readonly description: "Returns the list of additional minters (paginated).";
|
|
773
|
+
readonly type: "object";
|
|
774
|
+
readonly required: readonly ["get_additional_minters"];
|
|
775
|
+
readonly properties: {
|
|
776
|
+
readonly get_additional_minters: {
|
|
777
|
+
readonly type: "object";
|
|
778
|
+
readonly properties: {
|
|
779
|
+
readonly limit: {
|
|
780
|
+
readonly type: readonly ["integer", "null"];
|
|
781
|
+
readonly format: "uint32";
|
|
782
|
+
readonly minimum: 0;
|
|
783
|
+
};
|
|
784
|
+
readonly start_after: {
|
|
785
|
+
readonly type: readonly ["string", "null"];
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
readonly additionalProperties: false;
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
readonly additionalProperties: false;
|
|
792
|
+
}, {
|
|
793
|
+
readonly description: "With MetaData Extension. Returns metadata about one particular token, based on *ERC721 Metadata JSON Schema* but directly from the contract";
|
|
794
|
+
readonly type: "object";
|
|
795
|
+
readonly required: readonly ["nft_info"];
|
|
796
|
+
readonly properties: {
|
|
797
|
+
readonly nft_info: {
|
|
798
|
+
readonly type: "object";
|
|
799
|
+
readonly required: readonly ["token_id"];
|
|
800
|
+
readonly properties: {
|
|
801
|
+
readonly token_id: {
|
|
802
|
+
readonly type: "string";
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
readonly additionalProperties: false;
|
|
806
|
+
};
|
|
807
|
+
};
|
|
808
|
+
readonly additionalProperties: false;
|
|
809
|
+
}, {
|
|
810
|
+
readonly type: "object";
|
|
811
|
+
readonly required: readonly ["get_nft_by_extension"];
|
|
812
|
+
readonly properties: {
|
|
813
|
+
readonly get_nft_by_extension: {
|
|
814
|
+
readonly type: "object";
|
|
815
|
+
readonly properties: {
|
|
816
|
+
readonly extension: {
|
|
817
|
+
readonly anyOf: readonly [{
|
|
818
|
+
readonly $ref: "#/definitions/Empty";
|
|
819
|
+
}, {
|
|
820
|
+
readonly type: "null";
|
|
821
|
+
}];
|
|
822
|
+
};
|
|
823
|
+
readonly limit: {
|
|
824
|
+
readonly type: readonly ["integer", "null"];
|
|
825
|
+
readonly format: "uint32";
|
|
826
|
+
readonly minimum: 0;
|
|
827
|
+
};
|
|
828
|
+
readonly start_after: {
|
|
829
|
+
readonly type: readonly ["string", "null"];
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
readonly additionalProperties: false;
|
|
833
|
+
};
|
|
834
|
+
};
|
|
835
|
+
readonly additionalProperties: false;
|
|
836
|
+
}, {
|
|
837
|
+
readonly description: "With MetaData Extension. Returns the result of both `NftInfo` and `OwnerOf` as one query as an optimization for clients";
|
|
838
|
+
readonly type: "object";
|
|
839
|
+
readonly required: readonly ["all_nft_info"];
|
|
840
|
+
readonly properties: {
|
|
841
|
+
readonly all_nft_info: {
|
|
842
|
+
readonly type: "object";
|
|
843
|
+
readonly required: readonly ["token_id"];
|
|
844
|
+
readonly properties: {
|
|
845
|
+
readonly include_expired: {
|
|
846
|
+
readonly description: "unset or false will filter out expired approvals, you must set to true to see them";
|
|
847
|
+
readonly type: readonly ["boolean", "null"];
|
|
848
|
+
};
|
|
849
|
+
readonly token_id: {
|
|
850
|
+
readonly type: "string";
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
readonly additionalProperties: false;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
readonly additionalProperties: false;
|
|
857
|
+
}, {
|
|
858
|
+
readonly description: "With Enumerable extension. Returns all tokens owned by the given address, [] if unset.";
|
|
859
|
+
readonly type: "object";
|
|
860
|
+
readonly required: readonly ["tokens"];
|
|
861
|
+
readonly properties: {
|
|
862
|
+
readonly tokens: {
|
|
863
|
+
readonly type: "object";
|
|
864
|
+
readonly required: readonly ["owner"];
|
|
865
|
+
readonly properties: {
|
|
866
|
+
readonly limit: {
|
|
867
|
+
readonly type: readonly ["integer", "null"];
|
|
868
|
+
readonly format: "uint32";
|
|
869
|
+
readonly minimum: 0;
|
|
870
|
+
};
|
|
871
|
+
readonly owner: {
|
|
872
|
+
readonly type: "string";
|
|
873
|
+
};
|
|
874
|
+
readonly start_after: {
|
|
875
|
+
readonly type: readonly ["string", "null"];
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
readonly additionalProperties: false;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
readonly additionalProperties: false;
|
|
882
|
+
}, {
|
|
883
|
+
readonly description: "With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract.";
|
|
884
|
+
readonly type: "object";
|
|
885
|
+
readonly required: readonly ["all_tokens"];
|
|
886
|
+
readonly properties: {
|
|
887
|
+
readonly all_tokens: {
|
|
888
|
+
readonly type: "object";
|
|
889
|
+
readonly properties: {
|
|
890
|
+
readonly limit: {
|
|
891
|
+
readonly type: readonly ["integer", "null"];
|
|
892
|
+
readonly format: "uint32";
|
|
893
|
+
readonly minimum: 0;
|
|
894
|
+
};
|
|
895
|
+
readonly start_after: {
|
|
896
|
+
readonly type: readonly ["string", "null"];
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
readonly additionalProperties: false;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
readonly additionalProperties: false;
|
|
903
|
+
}, {
|
|
904
|
+
readonly description: "Custom msg query. Default implementation returns an empty binary.";
|
|
905
|
+
readonly type: "object";
|
|
906
|
+
readonly required: readonly ["extension"];
|
|
907
|
+
readonly properties: {
|
|
908
|
+
readonly extension: {
|
|
909
|
+
readonly type: "object";
|
|
910
|
+
readonly required: readonly ["msg"];
|
|
911
|
+
readonly properties: {
|
|
912
|
+
readonly msg: {
|
|
913
|
+
readonly $ref: "#/definitions/Empty";
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
readonly additionalProperties: false;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
readonly additionalProperties: false;
|
|
920
|
+
}, {
|
|
921
|
+
readonly type: "object";
|
|
922
|
+
readonly required: readonly ["get_collection_extension"];
|
|
923
|
+
readonly properties: {
|
|
924
|
+
readonly get_collection_extension: {
|
|
925
|
+
readonly type: "object";
|
|
926
|
+
readonly properties: {
|
|
927
|
+
readonly msg: {
|
|
928
|
+
readonly anyOf: readonly [{
|
|
929
|
+
readonly $ref: "#/definitions/CollectionExtension_for_RoyaltyInfo";
|
|
930
|
+
}, {
|
|
931
|
+
readonly type: "null";
|
|
932
|
+
}];
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
readonly additionalProperties: false;
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
readonly additionalProperties: false;
|
|
939
|
+
}, {
|
|
940
|
+
readonly type: "object";
|
|
941
|
+
readonly required: readonly ["get_withdraw_address"];
|
|
942
|
+
readonly properties: {
|
|
943
|
+
readonly get_withdraw_address: {
|
|
944
|
+
readonly type: "object";
|
|
945
|
+
readonly additionalProperties: false;
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
readonly additionalProperties: false;
|
|
949
|
+
}];
|
|
950
|
+
readonly definitions: {
|
|
951
|
+
readonly Addr: {
|
|
952
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
953
|
+
readonly type: "string";
|
|
954
|
+
};
|
|
955
|
+
readonly CollectionExtension_for_RoyaltyInfo: {
|
|
956
|
+
readonly type: "object";
|
|
957
|
+
readonly required: readonly ["description", "image"];
|
|
958
|
+
readonly properties: {
|
|
959
|
+
readonly banner_url: {
|
|
960
|
+
readonly type: readonly ["string", "null"];
|
|
961
|
+
};
|
|
962
|
+
readonly description: {
|
|
963
|
+
readonly type: "string";
|
|
964
|
+
};
|
|
965
|
+
readonly explicit_content: {
|
|
966
|
+
readonly type: readonly ["boolean", "null"];
|
|
967
|
+
};
|
|
968
|
+
readonly external_link: {
|
|
969
|
+
readonly type: readonly ["string", "null"];
|
|
970
|
+
};
|
|
971
|
+
readonly image: {
|
|
972
|
+
readonly type: "string";
|
|
973
|
+
};
|
|
974
|
+
readonly royalty_info: {
|
|
975
|
+
readonly anyOf: readonly [{
|
|
976
|
+
readonly $ref: "#/definitions/RoyaltyInfo";
|
|
977
|
+
}, {
|
|
978
|
+
readonly type: "null";
|
|
979
|
+
}];
|
|
980
|
+
};
|
|
981
|
+
readonly start_trading_time: {
|
|
982
|
+
readonly anyOf: readonly [{
|
|
983
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
984
|
+
}, {
|
|
985
|
+
readonly type: "null";
|
|
986
|
+
}];
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
readonly additionalProperties: false;
|
|
990
|
+
};
|
|
991
|
+
readonly Decimal: {
|
|
992
|
+
readonly description: "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)";
|
|
993
|
+
readonly type: "string";
|
|
994
|
+
};
|
|
995
|
+
readonly Empty: {
|
|
996
|
+
readonly description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)";
|
|
997
|
+
readonly type: "object";
|
|
998
|
+
readonly additionalProperties: false;
|
|
999
|
+
};
|
|
1000
|
+
readonly RoyaltyInfo: {
|
|
1001
|
+
readonly type: "object";
|
|
1002
|
+
readonly required: readonly ["payment_address", "share"];
|
|
1003
|
+
readonly properties: {
|
|
1004
|
+
readonly payment_address: {
|
|
1005
|
+
readonly $ref: "#/definitions/Addr";
|
|
1006
|
+
};
|
|
1007
|
+
readonly share: {
|
|
1008
|
+
readonly $ref: "#/definitions/Decimal";
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
readonly additionalProperties: false;
|
|
1012
|
+
};
|
|
1013
|
+
readonly Timestamp: {
|
|
1014
|
+
readonly 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); ```";
|
|
1015
|
+
readonly allOf: readonly [{
|
|
1016
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1017
|
+
}];
|
|
1018
|
+
};
|
|
1019
|
+
readonly Uint64: {
|
|
1020
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1021
|
+
readonly type: "string";
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
1025
|
+
readonly responses: {
|
|
1026
|
+
readonly all_nft_info: {
|
|
1027
|
+
readonly type: "object";
|
|
1028
|
+
readonly required: readonly ["access", "info"];
|
|
1029
|
+
readonly properties: {
|
|
1030
|
+
readonly access: {
|
|
1031
|
+
readonly description: "Who can transfer the token";
|
|
1032
|
+
readonly allOf: readonly [{
|
|
1033
|
+
readonly $ref: "#/definitions/OwnerOfResponse";
|
|
1034
|
+
}];
|
|
1035
|
+
};
|
|
1036
|
+
readonly info: {
|
|
1037
|
+
readonly description: "Data on the token itself,";
|
|
1038
|
+
readonly allOf: readonly [{
|
|
1039
|
+
readonly $ref: "#/definitions/NftInfoResponse_for_Nullable_Empty";
|
|
1040
|
+
}];
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
readonly additionalProperties: false;
|
|
1044
|
+
readonly definitions: {
|
|
1045
|
+
readonly Addr: {
|
|
1046
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1047
|
+
readonly type: "string";
|
|
1048
|
+
};
|
|
1049
|
+
readonly Approval: {
|
|
1050
|
+
readonly type: "object";
|
|
1051
|
+
readonly required: readonly ["expires", "spender"];
|
|
1052
|
+
readonly properties: {
|
|
1053
|
+
readonly expires: {
|
|
1054
|
+
readonly description: "When the Approval expires (maybe Expiration::never)";
|
|
1055
|
+
readonly allOf: readonly [{
|
|
1056
|
+
readonly $ref: "#/definitions/Expiration";
|
|
1057
|
+
}];
|
|
1058
|
+
};
|
|
1059
|
+
readonly spender: {
|
|
1060
|
+
readonly description: "Account that can transfer/send the token";
|
|
1061
|
+
readonly allOf: readonly [{
|
|
1062
|
+
readonly $ref: "#/definitions/Addr";
|
|
1063
|
+
}];
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
readonly additionalProperties: false;
|
|
1067
|
+
};
|
|
1068
|
+
readonly Empty: {
|
|
1069
|
+
readonly description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)";
|
|
1070
|
+
readonly type: "object";
|
|
1071
|
+
readonly additionalProperties: false;
|
|
1072
|
+
};
|
|
1073
|
+
readonly Expiration: {
|
|
1074
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
1075
|
+
readonly oneOf: readonly [{
|
|
1076
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
1077
|
+
readonly type: "object";
|
|
1078
|
+
readonly required: readonly ["at_height"];
|
|
1079
|
+
readonly properties: {
|
|
1080
|
+
readonly at_height: {
|
|
1081
|
+
readonly type: "integer";
|
|
1082
|
+
readonly format: "uint64";
|
|
1083
|
+
readonly minimum: 0;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
readonly additionalProperties: false;
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
1089
|
+
readonly type: "object";
|
|
1090
|
+
readonly required: readonly ["at_time"];
|
|
1091
|
+
readonly properties: {
|
|
1092
|
+
readonly at_time: {
|
|
1093
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1094
|
+
};
|
|
1095
|
+
};
|
|
1096
|
+
readonly additionalProperties: false;
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
1099
|
+
readonly type: "object";
|
|
1100
|
+
readonly required: readonly ["never"];
|
|
1101
|
+
readonly properties: {
|
|
1102
|
+
readonly never: {
|
|
1103
|
+
readonly type: "object";
|
|
1104
|
+
readonly additionalProperties: false;
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
readonly additionalProperties: false;
|
|
1108
|
+
}];
|
|
1109
|
+
};
|
|
1110
|
+
readonly NftInfoResponse_for_Nullable_Empty: {
|
|
1111
|
+
readonly type: "object";
|
|
1112
|
+
readonly properties: {
|
|
1113
|
+
readonly extension: {
|
|
1114
|
+
readonly description: "You can add any custom metadata here when you extend cw721-base";
|
|
1115
|
+
readonly anyOf: readonly [{
|
|
1116
|
+
readonly $ref: "#/definitions/Empty";
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly type: "null";
|
|
1119
|
+
}];
|
|
1120
|
+
};
|
|
1121
|
+
readonly token_uri: {
|
|
1122
|
+
readonly description: "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema";
|
|
1123
|
+
readonly type: readonly ["string", "null"];
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
readonly additionalProperties: false;
|
|
1127
|
+
};
|
|
1128
|
+
readonly OwnerOfResponse: {
|
|
1129
|
+
readonly type: "object";
|
|
1130
|
+
readonly required: readonly ["approvals", "owner"];
|
|
1131
|
+
readonly properties: {
|
|
1132
|
+
readonly approvals: {
|
|
1133
|
+
readonly description: "If set this address is approved to transfer/send the token as well";
|
|
1134
|
+
readonly type: "array";
|
|
1135
|
+
readonly items: {
|
|
1136
|
+
readonly $ref: "#/definitions/Approval";
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
readonly owner: {
|
|
1140
|
+
readonly description: "Owner of the token";
|
|
1141
|
+
readonly type: "string";
|
|
1142
|
+
};
|
|
1143
|
+
};
|
|
1144
|
+
readonly additionalProperties: false;
|
|
1145
|
+
};
|
|
1146
|
+
readonly Timestamp: {
|
|
1147
|
+
readonly 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); ```";
|
|
1148
|
+
readonly allOf: readonly [{
|
|
1149
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1150
|
+
}];
|
|
1151
|
+
};
|
|
1152
|
+
readonly Uint64: {
|
|
1153
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1154
|
+
readonly type: "string";
|
|
1155
|
+
};
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
readonly all_operators: {
|
|
1159
|
+
readonly type: "object";
|
|
1160
|
+
readonly required: readonly ["operators"];
|
|
1161
|
+
readonly properties: {
|
|
1162
|
+
readonly operators: {
|
|
1163
|
+
readonly type: "array";
|
|
1164
|
+
readonly items: {
|
|
1165
|
+
readonly $ref: "#/definitions/Approval";
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
readonly additionalProperties: false;
|
|
1170
|
+
readonly definitions: {
|
|
1171
|
+
readonly Addr: {
|
|
1172
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1173
|
+
readonly type: "string";
|
|
1174
|
+
};
|
|
1175
|
+
readonly Approval: {
|
|
1176
|
+
readonly type: "object";
|
|
1177
|
+
readonly required: readonly ["expires", "spender"];
|
|
1178
|
+
readonly properties: {
|
|
1179
|
+
readonly expires: {
|
|
1180
|
+
readonly description: "When the Approval expires (maybe Expiration::never)";
|
|
1181
|
+
readonly allOf: readonly [{
|
|
1182
|
+
readonly $ref: "#/definitions/Expiration";
|
|
1183
|
+
}];
|
|
1184
|
+
};
|
|
1185
|
+
readonly spender: {
|
|
1186
|
+
readonly description: "Account that can transfer/send the token";
|
|
1187
|
+
readonly allOf: readonly [{
|
|
1188
|
+
readonly $ref: "#/definitions/Addr";
|
|
1189
|
+
}];
|
|
1190
|
+
};
|
|
1191
|
+
};
|
|
1192
|
+
readonly additionalProperties: false;
|
|
1193
|
+
};
|
|
1194
|
+
readonly Expiration: {
|
|
1195
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
1196
|
+
readonly oneOf: readonly [{
|
|
1197
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
1198
|
+
readonly type: "object";
|
|
1199
|
+
readonly required: readonly ["at_height"];
|
|
1200
|
+
readonly properties: {
|
|
1201
|
+
readonly at_height: {
|
|
1202
|
+
readonly type: "integer";
|
|
1203
|
+
readonly format: "uint64";
|
|
1204
|
+
readonly minimum: 0;
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
readonly additionalProperties: false;
|
|
1208
|
+
}, {
|
|
1209
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
1210
|
+
readonly type: "object";
|
|
1211
|
+
readonly required: readonly ["at_time"];
|
|
1212
|
+
readonly properties: {
|
|
1213
|
+
readonly at_time: {
|
|
1214
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1215
|
+
};
|
|
1216
|
+
};
|
|
1217
|
+
readonly additionalProperties: false;
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
1220
|
+
readonly type: "object";
|
|
1221
|
+
readonly required: readonly ["never"];
|
|
1222
|
+
readonly properties: {
|
|
1223
|
+
readonly never: {
|
|
1224
|
+
readonly type: "object";
|
|
1225
|
+
readonly additionalProperties: false;
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
readonly additionalProperties: false;
|
|
1229
|
+
}];
|
|
1230
|
+
};
|
|
1231
|
+
readonly Timestamp: {
|
|
1232
|
+
readonly 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); ```";
|
|
1233
|
+
readonly allOf: readonly [{
|
|
1234
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1235
|
+
}];
|
|
1236
|
+
};
|
|
1237
|
+
readonly Uint64: {
|
|
1238
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1239
|
+
readonly type: "string";
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1243
|
+
readonly all_tokens: {
|
|
1244
|
+
readonly type: "object";
|
|
1245
|
+
readonly required: readonly ["tokens"];
|
|
1246
|
+
readonly properties: {
|
|
1247
|
+
readonly tokens: {
|
|
1248
|
+
readonly description: "Contains all token_ids in lexicographical ordering If there are more than `limit`, use `start_after` in future queries to achieve pagination.";
|
|
1249
|
+
readonly type: "array";
|
|
1250
|
+
readonly items: {
|
|
1251
|
+
readonly type: "string";
|
|
1252
|
+
};
|
|
1253
|
+
};
|
|
1254
|
+
};
|
|
1255
|
+
readonly additionalProperties: false;
|
|
1256
|
+
};
|
|
1257
|
+
readonly approval: {
|
|
1258
|
+
readonly type: "object";
|
|
1259
|
+
readonly required: readonly ["approval"];
|
|
1260
|
+
readonly properties: {
|
|
1261
|
+
readonly approval: {
|
|
1262
|
+
readonly $ref: "#/definitions/Approval";
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
readonly additionalProperties: false;
|
|
1266
|
+
readonly definitions: {
|
|
1267
|
+
readonly Addr: {
|
|
1268
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1269
|
+
readonly type: "string";
|
|
1270
|
+
};
|
|
1271
|
+
readonly Approval: {
|
|
1272
|
+
readonly type: "object";
|
|
1273
|
+
readonly required: readonly ["expires", "spender"];
|
|
1274
|
+
readonly properties: {
|
|
1275
|
+
readonly expires: {
|
|
1276
|
+
readonly description: "When the Approval expires (maybe Expiration::never)";
|
|
1277
|
+
readonly allOf: readonly [{
|
|
1278
|
+
readonly $ref: "#/definitions/Expiration";
|
|
1279
|
+
}];
|
|
1280
|
+
};
|
|
1281
|
+
readonly spender: {
|
|
1282
|
+
readonly description: "Account that can transfer/send the token";
|
|
1283
|
+
readonly allOf: readonly [{
|
|
1284
|
+
readonly $ref: "#/definitions/Addr";
|
|
1285
|
+
}];
|
|
1286
|
+
};
|
|
1287
|
+
};
|
|
1288
|
+
readonly additionalProperties: false;
|
|
1289
|
+
};
|
|
1290
|
+
readonly Expiration: {
|
|
1291
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
1292
|
+
readonly oneOf: readonly [{
|
|
1293
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
1294
|
+
readonly type: "object";
|
|
1295
|
+
readonly required: readonly ["at_height"];
|
|
1296
|
+
readonly properties: {
|
|
1297
|
+
readonly at_height: {
|
|
1298
|
+
readonly type: "integer";
|
|
1299
|
+
readonly format: "uint64";
|
|
1300
|
+
readonly minimum: 0;
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
readonly additionalProperties: false;
|
|
1304
|
+
}, {
|
|
1305
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
1306
|
+
readonly type: "object";
|
|
1307
|
+
readonly required: readonly ["at_time"];
|
|
1308
|
+
readonly properties: {
|
|
1309
|
+
readonly at_time: {
|
|
1310
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1311
|
+
};
|
|
1312
|
+
};
|
|
1313
|
+
readonly additionalProperties: false;
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
1316
|
+
readonly type: "object";
|
|
1317
|
+
readonly required: readonly ["never"];
|
|
1318
|
+
readonly properties: {
|
|
1319
|
+
readonly never: {
|
|
1320
|
+
readonly type: "object";
|
|
1321
|
+
readonly additionalProperties: false;
|
|
1322
|
+
};
|
|
1323
|
+
};
|
|
1324
|
+
readonly additionalProperties: false;
|
|
1325
|
+
}];
|
|
1326
|
+
};
|
|
1327
|
+
readonly Timestamp: {
|
|
1328
|
+
readonly 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); ```";
|
|
1329
|
+
readonly allOf: readonly [{
|
|
1330
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1331
|
+
}];
|
|
1332
|
+
};
|
|
1333
|
+
readonly Uint64: {
|
|
1334
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1335
|
+
readonly type: "string";
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
readonly approvals: {
|
|
1340
|
+
readonly type: "object";
|
|
1341
|
+
readonly required: readonly ["approvals"];
|
|
1342
|
+
readonly properties: {
|
|
1343
|
+
readonly approvals: {
|
|
1344
|
+
readonly type: "array";
|
|
1345
|
+
readonly items: {
|
|
1346
|
+
readonly $ref: "#/definitions/Approval";
|
|
1347
|
+
};
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
readonly additionalProperties: false;
|
|
1351
|
+
readonly definitions: {
|
|
1352
|
+
readonly Addr: {
|
|
1353
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1354
|
+
readonly type: "string";
|
|
1355
|
+
};
|
|
1356
|
+
readonly Approval: {
|
|
1357
|
+
readonly type: "object";
|
|
1358
|
+
readonly required: readonly ["expires", "spender"];
|
|
1359
|
+
readonly properties: {
|
|
1360
|
+
readonly expires: {
|
|
1361
|
+
readonly description: "When the Approval expires (maybe Expiration::never)";
|
|
1362
|
+
readonly allOf: readonly [{
|
|
1363
|
+
readonly $ref: "#/definitions/Expiration";
|
|
1364
|
+
}];
|
|
1365
|
+
};
|
|
1366
|
+
readonly spender: {
|
|
1367
|
+
readonly description: "Account that can transfer/send the token";
|
|
1368
|
+
readonly allOf: readonly [{
|
|
1369
|
+
readonly $ref: "#/definitions/Addr";
|
|
1370
|
+
}];
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
readonly additionalProperties: false;
|
|
1374
|
+
};
|
|
1375
|
+
readonly Expiration: {
|
|
1376
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
1377
|
+
readonly oneOf: readonly [{
|
|
1378
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
1379
|
+
readonly type: "object";
|
|
1380
|
+
readonly required: readonly ["at_height"];
|
|
1381
|
+
readonly properties: {
|
|
1382
|
+
readonly at_height: {
|
|
1383
|
+
readonly type: "integer";
|
|
1384
|
+
readonly format: "uint64";
|
|
1385
|
+
readonly minimum: 0;
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
readonly additionalProperties: false;
|
|
1389
|
+
}, {
|
|
1390
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
1391
|
+
readonly type: "object";
|
|
1392
|
+
readonly required: readonly ["at_time"];
|
|
1393
|
+
readonly properties: {
|
|
1394
|
+
readonly at_time: {
|
|
1395
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
readonly additionalProperties: false;
|
|
1399
|
+
}, {
|
|
1400
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
1401
|
+
readonly type: "object";
|
|
1402
|
+
readonly required: readonly ["never"];
|
|
1403
|
+
readonly properties: {
|
|
1404
|
+
readonly never: {
|
|
1405
|
+
readonly type: "object";
|
|
1406
|
+
readonly additionalProperties: false;
|
|
1407
|
+
};
|
|
1408
|
+
};
|
|
1409
|
+
readonly additionalProperties: false;
|
|
1410
|
+
}];
|
|
1411
|
+
};
|
|
1412
|
+
readonly Timestamp: {
|
|
1413
|
+
readonly 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); ```";
|
|
1414
|
+
readonly allOf: readonly [{
|
|
1415
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1416
|
+
}];
|
|
1417
|
+
};
|
|
1418
|
+
readonly Uint64: {
|
|
1419
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1420
|
+
readonly type: "string";
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
readonly contract_info: {
|
|
1425
|
+
readonly description: "This is a wrapper around CollectionInfo that includes the extension.";
|
|
1426
|
+
readonly type: "object";
|
|
1427
|
+
readonly required: readonly ["name", "symbol", "updated_at"];
|
|
1428
|
+
readonly properties: {
|
|
1429
|
+
readonly extension: {
|
|
1430
|
+
readonly anyOf: readonly [{
|
|
1431
|
+
readonly $ref: "#/definitions/CollectionExtension_for_RoyaltyInfo";
|
|
1432
|
+
}, {
|
|
1433
|
+
readonly type: "null";
|
|
1434
|
+
}];
|
|
1435
|
+
};
|
|
1436
|
+
readonly name: {
|
|
1437
|
+
readonly type: "string";
|
|
1438
|
+
};
|
|
1439
|
+
readonly symbol: {
|
|
1440
|
+
readonly type: "string";
|
|
1441
|
+
};
|
|
1442
|
+
readonly updated_at: {
|
|
1443
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1444
|
+
};
|
|
1445
|
+
};
|
|
1446
|
+
readonly additionalProperties: false;
|
|
1447
|
+
readonly definitions: {
|
|
1448
|
+
readonly Addr: {
|
|
1449
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1450
|
+
readonly type: "string";
|
|
1451
|
+
};
|
|
1452
|
+
readonly CollectionExtension_for_RoyaltyInfo: {
|
|
1453
|
+
readonly type: "object";
|
|
1454
|
+
readonly required: readonly ["description", "image"];
|
|
1455
|
+
readonly properties: {
|
|
1456
|
+
readonly banner_url: {
|
|
1457
|
+
readonly type: readonly ["string", "null"];
|
|
1458
|
+
};
|
|
1459
|
+
readonly description: {
|
|
1460
|
+
readonly type: "string";
|
|
1461
|
+
};
|
|
1462
|
+
readonly explicit_content: {
|
|
1463
|
+
readonly type: readonly ["boolean", "null"];
|
|
1464
|
+
};
|
|
1465
|
+
readonly external_link: {
|
|
1466
|
+
readonly type: readonly ["string", "null"];
|
|
1467
|
+
};
|
|
1468
|
+
readonly image: {
|
|
1469
|
+
readonly type: "string";
|
|
1470
|
+
};
|
|
1471
|
+
readonly royalty_info: {
|
|
1472
|
+
readonly anyOf: readonly [{
|
|
1473
|
+
readonly $ref: "#/definitions/RoyaltyInfo";
|
|
1474
|
+
}, {
|
|
1475
|
+
readonly type: "null";
|
|
1476
|
+
}];
|
|
1477
|
+
};
|
|
1478
|
+
readonly start_trading_time: {
|
|
1479
|
+
readonly anyOf: readonly [{
|
|
1480
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1481
|
+
}, {
|
|
1482
|
+
readonly type: "null";
|
|
1483
|
+
}];
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
readonly additionalProperties: false;
|
|
1487
|
+
};
|
|
1488
|
+
readonly Decimal: {
|
|
1489
|
+
readonly description: "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)";
|
|
1490
|
+
readonly type: "string";
|
|
1491
|
+
};
|
|
1492
|
+
readonly RoyaltyInfo: {
|
|
1493
|
+
readonly type: "object";
|
|
1494
|
+
readonly required: readonly ["payment_address", "share"];
|
|
1495
|
+
readonly properties: {
|
|
1496
|
+
readonly payment_address: {
|
|
1497
|
+
readonly $ref: "#/definitions/Addr";
|
|
1498
|
+
};
|
|
1499
|
+
readonly share: {
|
|
1500
|
+
readonly $ref: "#/definitions/Decimal";
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1503
|
+
readonly additionalProperties: false;
|
|
1504
|
+
};
|
|
1505
|
+
readonly Timestamp: {
|
|
1506
|
+
readonly 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); ```";
|
|
1507
|
+
readonly allOf: readonly [{
|
|
1508
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1509
|
+
}];
|
|
1510
|
+
};
|
|
1511
|
+
readonly Uint64: {
|
|
1512
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1513
|
+
readonly type: "string";
|
|
1514
|
+
};
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
readonly extension: {
|
|
1518
|
+
readonly type: "null";
|
|
1519
|
+
};
|
|
1520
|
+
readonly get_additional_minters: {
|
|
1521
|
+
readonly type: "object";
|
|
1522
|
+
readonly required: readonly ["minters"];
|
|
1523
|
+
readonly properties: {
|
|
1524
|
+
readonly minters: {
|
|
1525
|
+
readonly type: "array";
|
|
1526
|
+
readonly items: {
|
|
1527
|
+
readonly type: "string";
|
|
1528
|
+
};
|
|
1529
|
+
};
|
|
1530
|
+
};
|
|
1531
|
+
readonly additionalProperties: false;
|
|
1532
|
+
};
|
|
1533
|
+
readonly get_all_info: {
|
|
1534
|
+
readonly description: "This is a wrapper around CollectionInfo that includes the extension, contract info, and number of tokens (supply).";
|
|
1535
|
+
readonly type: "object";
|
|
1536
|
+
readonly required: readonly ["collection_extension", "collection_info", "contract_info", "num_tokens"];
|
|
1537
|
+
readonly properties: {
|
|
1538
|
+
readonly collection_extension: {
|
|
1539
|
+
readonly type: "array";
|
|
1540
|
+
readonly items: {
|
|
1541
|
+
readonly $ref: "#/definitions/Attribute";
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
readonly collection_info: {
|
|
1545
|
+
readonly $ref: "#/definitions/CollectionInfo";
|
|
1546
|
+
};
|
|
1547
|
+
readonly contract_info: {
|
|
1548
|
+
readonly $ref: "#/definitions/ContractInfoResponse";
|
|
1549
|
+
};
|
|
1550
|
+
readonly num_tokens: {
|
|
1551
|
+
readonly type: "integer";
|
|
1552
|
+
readonly format: "uint64";
|
|
1553
|
+
readonly minimum: 0;
|
|
1554
|
+
};
|
|
1555
|
+
};
|
|
1556
|
+
readonly additionalProperties: false;
|
|
1557
|
+
readonly definitions: {
|
|
1558
|
+
readonly Addr: {
|
|
1559
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1560
|
+
readonly type: "string";
|
|
1561
|
+
};
|
|
1562
|
+
readonly Attribute: {
|
|
1563
|
+
readonly type: "object";
|
|
1564
|
+
readonly required: readonly ["key", "value"];
|
|
1565
|
+
readonly properties: {
|
|
1566
|
+
readonly key: {
|
|
1567
|
+
readonly type: "string";
|
|
1568
|
+
};
|
|
1569
|
+
readonly value: {
|
|
1570
|
+
readonly $ref: "#/definitions/Binary";
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1573
|
+
readonly additionalProperties: false;
|
|
1574
|
+
};
|
|
1575
|
+
readonly Binary: {
|
|
1576
|
+
readonly 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>.";
|
|
1577
|
+
readonly type: "string";
|
|
1578
|
+
};
|
|
1579
|
+
readonly CollectionInfo: {
|
|
1580
|
+
readonly type: "object";
|
|
1581
|
+
readonly required: readonly ["name", "symbol", "updated_at"];
|
|
1582
|
+
readonly properties: {
|
|
1583
|
+
readonly name: {
|
|
1584
|
+
readonly type: "string";
|
|
1585
|
+
};
|
|
1586
|
+
readonly symbol: {
|
|
1587
|
+
readonly type: "string";
|
|
1588
|
+
};
|
|
1589
|
+
readonly updated_at: {
|
|
1590
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
readonly additionalProperties: false;
|
|
1594
|
+
};
|
|
1595
|
+
readonly ContractInfoResponse: {
|
|
1596
|
+
readonly type: "object";
|
|
1597
|
+
readonly required: readonly ["code_id", "creator", "pinned"];
|
|
1598
|
+
readonly properties: {
|
|
1599
|
+
readonly admin: {
|
|
1600
|
+
readonly description: "admin who can run migrations (if any)";
|
|
1601
|
+
readonly anyOf: readonly [{
|
|
1602
|
+
readonly $ref: "#/definitions/Addr";
|
|
1603
|
+
}, {
|
|
1604
|
+
readonly type: "null";
|
|
1605
|
+
}];
|
|
1606
|
+
};
|
|
1607
|
+
readonly code_id: {
|
|
1608
|
+
readonly type: "integer";
|
|
1609
|
+
readonly format: "uint64";
|
|
1610
|
+
readonly minimum: 0;
|
|
1611
|
+
};
|
|
1612
|
+
readonly creator: {
|
|
1613
|
+
readonly description: "address that instantiated this contract";
|
|
1614
|
+
readonly allOf: readonly [{
|
|
1615
|
+
readonly $ref: "#/definitions/Addr";
|
|
1616
|
+
}];
|
|
1617
|
+
};
|
|
1618
|
+
readonly ibc_port: {
|
|
1619
|
+
readonly description: "set if this contract has bound an IBC port";
|
|
1620
|
+
readonly type: readonly ["string", "null"];
|
|
1621
|
+
};
|
|
1622
|
+
readonly pinned: {
|
|
1623
|
+
readonly description: "if set, the contract is pinned to the cache, and thus uses less gas when called";
|
|
1624
|
+
readonly type: "boolean";
|
|
1625
|
+
};
|
|
1626
|
+
};
|
|
1627
|
+
readonly additionalProperties: false;
|
|
1628
|
+
};
|
|
1629
|
+
readonly Timestamp: {
|
|
1630
|
+
readonly 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); ```";
|
|
1631
|
+
readonly allOf: readonly [{
|
|
1632
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1633
|
+
}];
|
|
1634
|
+
};
|
|
1635
|
+
readonly Uint64: {
|
|
1636
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1637
|
+
readonly type: "string";
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
1641
|
+
readonly get_collection_extension: {
|
|
1642
|
+
readonly type: "null";
|
|
1643
|
+
};
|
|
1644
|
+
readonly get_collection_extension_attributes: {
|
|
1645
|
+
readonly type: "array";
|
|
1646
|
+
readonly items: {
|
|
1647
|
+
readonly $ref: "#/definitions/Attribute";
|
|
1648
|
+
};
|
|
1649
|
+
readonly definitions: {
|
|
1650
|
+
readonly Attribute: {
|
|
1651
|
+
readonly type: "object";
|
|
1652
|
+
readonly required: readonly ["key", "value"];
|
|
1653
|
+
readonly properties: {
|
|
1654
|
+
readonly key: {
|
|
1655
|
+
readonly type: "string";
|
|
1656
|
+
};
|
|
1657
|
+
readonly value: {
|
|
1658
|
+
readonly $ref: "#/definitions/Binary";
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
readonly additionalProperties: false;
|
|
1662
|
+
};
|
|
1663
|
+
readonly Binary: {
|
|
1664
|
+
readonly 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>.";
|
|
1665
|
+
readonly type: "string";
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
readonly get_collection_info_and_extension: {
|
|
1670
|
+
readonly description: "This is a wrapper around CollectionInfo that includes the extension.";
|
|
1671
|
+
readonly type: "object";
|
|
1672
|
+
readonly required: readonly ["name", "symbol", "updated_at"];
|
|
1673
|
+
readonly properties: {
|
|
1674
|
+
readonly extension: {
|
|
1675
|
+
readonly anyOf: readonly [{
|
|
1676
|
+
readonly $ref: "#/definitions/CollectionExtension_for_RoyaltyInfo";
|
|
1677
|
+
}, {
|
|
1678
|
+
readonly type: "null";
|
|
1679
|
+
}];
|
|
1680
|
+
};
|
|
1681
|
+
readonly name: {
|
|
1682
|
+
readonly type: "string";
|
|
1683
|
+
};
|
|
1684
|
+
readonly symbol: {
|
|
1685
|
+
readonly type: "string";
|
|
1686
|
+
};
|
|
1687
|
+
readonly updated_at: {
|
|
1688
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
readonly additionalProperties: false;
|
|
1692
|
+
readonly definitions: {
|
|
1693
|
+
readonly Addr: {
|
|
1694
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1695
|
+
readonly type: "string";
|
|
1696
|
+
};
|
|
1697
|
+
readonly CollectionExtension_for_RoyaltyInfo: {
|
|
1698
|
+
readonly type: "object";
|
|
1699
|
+
readonly required: readonly ["description", "image"];
|
|
1700
|
+
readonly properties: {
|
|
1701
|
+
readonly banner_url: {
|
|
1702
|
+
readonly type: readonly ["string", "null"];
|
|
1703
|
+
};
|
|
1704
|
+
readonly description: {
|
|
1705
|
+
readonly type: "string";
|
|
1706
|
+
};
|
|
1707
|
+
readonly explicit_content: {
|
|
1708
|
+
readonly type: readonly ["boolean", "null"];
|
|
1709
|
+
};
|
|
1710
|
+
readonly external_link: {
|
|
1711
|
+
readonly type: readonly ["string", "null"];
|
|
1712
|
+
};
|
|
1713
|
+
readonly image: {
|
|
1714
|
+
readonly type: "string";
|
|
1715
|
+
};
|
|
1716
|
+
readonly royalty_info: {
|
|
1717
|
+
readonly anyOf: readonly [{
|
|
1718
|
+
readonly $ref: "#/definitions/RoyaltyInfo";
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly type: "null";
|
|
1721
|
+
}];
|
|
1722
|
+
};
|
|
1723
|
+
readonly start_trading_time: {
|
|
1724
|
+
readonly anyOf: readonly [{
|
|
1725
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1726
|
+
}, {
|
|
1727
|
+
readonly type: "null";
|
|
1728
|
+
}];
|
|
1729
|
+
};
|
|
1730
|
+
};
|
|
1731
|
+
readonly additionalProperties: false;
|
|
1732
|
+
};
|
|
1733
|
+
readonly Decimal: {
|
|
1734
|
+
readonly description: "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)";
|
|
1735
|
+
readonly type: "string";
|
|
1736
|
+
};
|
|
1737
|
+
readonly RoyaltyInfo: {
|
|
1738
|
+
readonly type: "object";
|
|
1739
|
+
readonly required: readonly ["payment_address", "share"];
|
|
1740
|
+
readonly properties: {
|
|
1741
|
+
readonly payment_address: {
|
|
1742
|
+
readonly $ref: "#/definitions/Addr";
|
|
1743
|
+
};
|
|
1744
|
+
readonly share: {
|
|
1745
|
+
readonly $ref: "#/definitions/Decimal";
|
|
1746
|
+
};
|
|
1747
|
+
};
|
|
1748
|
+
readonly additionalProperties: false;
|
|
1749
|
+
};
|
|
1750
|
+
readonly Timestamp: {
|
|
1751
|
+
readonly 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); ```";
|
|
1752
|
+
readonly allOf: readonly [{
|
|
1753
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1754
|
+
}];
|
|
1755
|
+
};
|
|
1756
|
+
readonly Uint64: {
|
|
1757
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1758
|
+
readonly type: "string";
|
|
1759
|
+
};
|
|
1760
|
+
};
|
|
1761
|
+
};
|
|
1762
|
+
readonly get_config: {
|
|
1763
|
+
readonly description: "This is a wrapper around CollectionInfo that includes the extension.";
|
|
1764
|
+
readonly type: "object";
|
|
1765
|
+
readonly required: readonly ["collection_info", "contract_info", "creator_ownership", "minter_ownership", "num_tokens"];
|
|
1766
|
+
readonly properties: {
|
|
1767
|
+
readonly collection_extension: {
|
|
1768
|
+
readonly anyOf: readonly [{
|
|
1769
|
+
readonly $ref: "#/definitions/CollectionExtension_for_RoyaltyInfo";
|
|
1770
|
+
}, {
|
|
1771
|
+
readonly type: "null";
|
|
1772
|
+
}];
|
|
1773
|
+
};
|
|
1774
|
+
readonly collection_info: {
|
|
1775
|
+
readonly $ref: "#/definitions/CollectionInfo";
|
|
1776
|
+
};
|
|
1777
|
+
readonly contract_info: {
|
|
1778
|
+
readonly $ref: "#/definitions/ContractInfoResponse";
|
|
1779
|
+
};
|
|
1780
|
+
readonly creator_ownership: {
|
|
1781
|
+
readonly $ref: "#/definitions/Ownership_for_Addr";
|
|
1782
|
+
};
|
|
1783
|
+
readonly minter_ownership: {
|
|
1784
|
+
readonly $ref: "#/definitions/Ownership_for_Addr";
|
|
1785
|
+
};
|
|
1786
|
+
readonly num_tokens: {
|
|
1787
|
+
readonly type: "integer";
|
|
1788
|
+
readonly format: "uint64";
|
|
1789
|
+
readonly minimum: 0;
|
|
1790
|
+
};
|
|
1791
|
+
readonly withdraw_address: {
|
|
1792
|
+
readonly type: readonly ["string", "null"];
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
readonly additionalProperties: false;
|
|
1796
|
+
readonly definitions: {
|
|
1797
|
+
readonly Addr: {
|
|
1798
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
1799
|
+
readonly type: "string";
|
|
1800
|
+
};
|
|
1801
|
+
readonly CollectionExtension_for_RoyaltyInfo: {
|
|
1802
|
+
readonly type: "object";
|
|
1803
|
+
readonly required: readonly ["description", "image"];
|
|
1804
|
+
readonly properties: {
|
|
1805
|
+
readonly banner_url: {
|
|
1806
|
+
readonly type: readonly ["string", "null"];
|
|
1807
|
+
};
|
|
1808
|
+
readonly description: {
|
|
1809
|
+
readonly type: "string";
|
|
1810
|
+
};
|
|
1811
|
+
readonly explicit_content: {
|
|
1812
|
+
readonly type: readonly ["boolean", "null"];
|
|
1813
|
+
};
|
|
1814
|
+
readonly external_link: {
|
|
1815
|
+
readonly type: readonly ["string", "null"];
|
|
1816
|
+
};
|
|
1817
|
+
readonly image: {
|
|
1818
|
+
readonly type: "string";
|
|
1819
|
+
};
|
|
1820
|
+
readonly royalty_info: {
|
|
1821
|
+
readonly anyOf: readonly [{
|
|
1822
|
+
readonly $ref: "#/definitions/RoyaltyInfo";
|
|
1823
|
+
}, {
|
|
1824
|
+
readonly type: "null";
|
|
1825
|
+
}];
|
|
1826
|
+
};
|
|
1827
|
+
readonly start_trading_time: {
|
|
1828
|
+
readonly anyOf: readonly [{
|
|
1829
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1830
|
+
}, {
|
|
1831
|
+
readonly type: "null";
|
|
1832
|
+
}];
|
|
1833
|
+
};
|
|
1834
|
+
};
|
|
1835
|
+
readonly additionalProperties: false;
|
|
1836
|
+
};
|
|
1837
|
+
readonly CollectionInfo: {
|
|
1838
|
+
readonly type: "object";
|
|
1839
|
+
readonly required: readonly ["name", "symbol", "updated_at"];
|
|
1840
|
+
readonly properties: {
|
|
1841
|
+
readonly name: {
|
|
1842
|
+
readonly type: "string";
|
|
1843
|
+
};
|
|
1844
|
+
readonly symbol: {
|
|
1845
|
+
readonly type: "string";
|
|
1846
|
+
};
|
|
1847
|
+
readonly updated_at: {
|
|
1848
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
readonly additionalProperties: false;
|
|
1852
|
+
};
|
|
1853
|
+
readonly ContractInfoResponse: {
|
|
1854
|
+
readonly type: "object";
|
|
1855
|
+
readonly required: readonly ["code_id", "creator", "pinned"];
|
|
1856
|
+
readonly properties: {
|
|
1857
|
+
readonly admin: {
|
|
1858
|
+
readonly description: "admin who can run migrations (if any)";
|
|
1859
|
+
readonly anyOf: readonly [{
|
|
1860
|
+
readonly $ref: "#/definitions/Addr";
|
|
1861
|
+
}, {
|
|
1862
|
+
readonly type: "null";
|
|
1863
|
+
}];
|
|
1864
|
+
};
|
|
1865
|
+
readonly code_id: {
|
|
1866
|
+
readonly type: "integer";
|
|
1867
|
+
readonly format: "uint64";
|
|
1868
|
+
readonly minimum: 0;
|
|
1869
|
+
};
|
|
1870
|
+
readonly creator: {
|
|
1871
|
+
readonly description: "address that instantiated this contract";
|
|
1872
|
+
readonly allOf: readonly [{
|
|
1873
|
+
readonly $ref: "#/definitions/Addr";
|
|
1874
|
+
}];
|
|
1875
|
+
};
|
|
1876
|
+
readonly ibc_port: {
|
|
1877
|
+
readonly description: "set if this contract has bound an IBC port";
|
|
1878
|
+
readonly type: readonly ["string", "null"];
|
|
1879
|
+
};
|
|
1880
|
+
readonly pinned: {
|
|
1881
|
+
readonly description: "if set, the contract is pinned to the cache, and thus uses less gas when called";
|
|
1882
|
+
readonly type: "boolean";
|
|
1883
|
+
};
|
|
1884
|
+
};
|
|
1885
|
+
readonly additionalProperties: false;
|
|
1886
|
+
};
|
|
1887
|
+
readonly Decimal: {
|
|
1888
|
+
readonly description: "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)";
|
|
1889
|
+
readonly type: "string";
|
|
1890
|
+
};
|
|
1891
|
+
readonly Expiration: {
|
|
1892
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
1893
|
+
readonly oneOf: readonly [{
|
|
1894
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
1895
|
+
readonly type: "object";
|
|
1896
|
+
readonly required: readonly ["at_height"];
|
|
1897
|
+
readonly properties: {
|
|
1898
|
+
readonly at_height: {
|
|
1899
|
+
readonly type: "integer";
|
|
1900
|
+
readonly format: "uint64";
|
|
1901
|
+
readonly minimum: 0;
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
readonly additionalProperties: false;
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
1907
|
+
readonly type: "object";
|
|
1908
|
+
readonly required: readonly ["at_time"];
|
|
1909
|
+
readonly properties: {
|
|
1910
|
+
readonly at_time: {
|
|
1911
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
1912
|
+
};
|
|
1913
|
+
};
|
|
1914
|
+
readonly additionalProperties: false;
|
|
1915
|
+
}, {
|
|
1916
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
1917
|
+
readonly type: "object";
|
|
1918
|
+
readonly required: readonly ["never"];
|
|
1919
|
+
readonly properties: {
|
|
1920
|
+
readonly never: {
|
|
1921
|
+
readonly type: "object";
|
|
1922
|
+
readonly additionalProperties: false;
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
readonly additionalProperties: false;
|
|
1926
|
+
}];
|
|
1927
|
+
};
|
|
1928
|
+
readonly Ownership_for_Addr: {
|
|
1929
|
+
readonly description: "The contract's ownership info";
|
|
1930
|
+
readonly type: "object";
|
|
1931
|
+
readonly properties: {
|
|
1932
|
+
readonly owner: {
|
|
1933
|
+
readonly description: "The contract's current owner. `None` if the ownership has been renounced.";
|
|
1934
|
+
readonly anyOf: readonly [{
|
|
1935
|
+
readonly $ref: "#/definitions/Addr";
|
|
1936
|
+
}, {
|
|
1937
|
+
readonly type: "null";
|
|
1938
|
+
}];
|
|
1939
|
+
};
|
|
1940
|
+
readonly pending_expiry: {
|
|
1941
|
+
readonly description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.";
|
|
1942
|
+
readonly anyOf: readonly [{
|
|
1943
|
+
readonly $ref: "#/definitions/Expiration";
|
|
1944
|
+
}, {
|
|
1945
|
+
readonly type: "null";
|
|
1946
|
+
}];
|
|
1947
|
+
};
|
|
1948
|
+
readonly pending_owner: {
|
|
1949
|
+
readonly description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.";
|
|
1950
|
+
readonly anyOf: readonly [{
|
|
1951
|
+
readonly $ref: "#/definitions/Addr";
|
|
1952
|
+
}, {
|
|
1953
|
+
readonly type: "null";
|
|
1954
|
+
}];
|
|
1955
|
+
};
|
|
1956
|
+
};
|
|
1957
|
+
readonly additionalProperties: false;
|
|
1958
|
+
};
|
|
1959
|
+
readonly RoyaltyInfo: {
|
|
1960
|
+
readonly type: "object";
|
|
1961
|
+
readonly required: readonly ["payment_address", "share"];
|
|
1962
|
+
readonly properties: {
|
|
1963
|
+
readonly payment_address: {
|
|
1964
|
+
readonly $ref: "#/definitions/Addr";
|
|
1965
|
+
};
|
|
1966
|
+
readonly share: {
|
|
1967
|
+
readonly $ref: "#/definitions/Decimal";
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
readonly additionalProperties: false;
|
|
1971
|
+
};
|
|
1972
|
+
readonly Timestamp: {
|
|
1973
|
+
readonly 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); ```";
|
|
1974
|
+
readonly allOf: readonly [{
|
|
1975
|
+
readonly $ref: "#/definitions/Uint64";
|
|
1976
|
+
}];
|
|
1977
|
+
};
|
|
1978
|
+
readonly Uint64: {
|
|
1979
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
1980
|
+
readonly type: "string";
|
|
1981
|
+
};
|
|
1982
|
+
};
|
|
1983
|
+
};
|
|
1984
|
+
readonly get_creator_ownership: {
|
|
1985
|
+
readonly description: "The contract's ownership info";
|
|
1986
|
+
readonly type: "object";
|
|
1987
|
+
readonly properties: {
|
|
1988
|
+
readonly owner: {
|
|
1989
|
+
readonly description: "The contract's current owner. `None` if the ownership has been renounced.";
|
|
1990
|
+
readonly anyOf: readonly [{
|
|
1991
|
+
readonly $ref: "#/definitions/Addr";
|
|
1992
|
+
}, {
|
|
1993
|
+
readonly type: "null";
|
|
1994
|
+
}];
|
|
1995
|
+
};
|
|
1996
|
+
readonly pending_expiry: {
|
|
1997
|
+
readonly description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.";
|
|
1998
|
+
readonly anyOf: readonly [{
|
|
1999
|
+
readonly $ref: "#/definitions/Expiration";
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly type: "null";
|
|
2002
|
+
}];
|
|
2003
|
+
};
|
|
2004
|
+
readonly pending_owner: {
|
|
2005
|
+
readonly description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.";
|
|
2006
|
+
readonly anyOf: readonly [{
|
|
2007
|
+
readonly $ref: "#/definitions/Addr";
|
|
2008
|
+
}, {
|
|
2009
|
+
readonly type: "null";
|
|
2010
|
+
}];
|
|
2011
|
+
};
|
|
2012
|
+
};
|
|
2013
|
+
readonly additionalProperties: false;
|
|
2014
|
+
readonly definitions: {
|
|
2015
|
+
readonly Addr: {
|
|
2016
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
2017
|
+
readonly type: "string";
|
|
2018
|
+
};
|
|
2019
|
+
readonly Expiration: {
|
|
2020
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
2021
|
+
readonly oneOf: readonly [{
|
|
2022
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
2023
|
+
readonly type: "object";
|
|
2024
|
+
readonly required: readonly ["at_height"];
|
|
2025
|
+
readonly properties: {
|
|
2026
|
+
readonly at_height: {
|
|
2027
|
+
readonly type: "integer";
|
|
2028
|
+
readonly format: "uint64";
|
|
2029
|
+
readonly minimum: 0;
|
|
2030
|
+
};
|
|
2031
|
+
};
|
|
2032
|
+
readonly additionalProperties: false;
|
|
2033
|
+
}, {
|
|
2034
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
2035
|
+
readonly type: "object";
|
|
2036
|
+
readonly required: readonly ["at_time"];
|
|
2037
|
+
readonly properties: {
|
|
2038
|
+
readonly at_time: {
|
|
2039
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
2040
|
+
};
|
|
2041
|
+
};
|
|
2042
|
+
readonly additionalProperties: false;
|
|
2043
|
+
}, {
|
|
2044
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
2045
|
+
readonly type: "object";
|
|
2046
|
+
readonly required: readonly ["never"];
|
|
2047
|
+
readonly properties: {
|
|
2048
|
+
readonly never: {
|
|
2049
|
+
readonly type: "object";
|
|
2050
|
+
readonly additionalProperties: false;
|
|
2051
|
+
};
|
|
2052
|
+
};
|
|
2053
|
+
readonly additionalProperties: false;
|
|
2054
|
+
}];
|
|
2055
|
+
};
|
|
2056
|
+
readonly Timestamp: {
|
|
2057
|
+
readonly 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); ```";
|
|
2058
|
+
readonly allOf: readonly [{
|
|
2059
|
+
readonly $ref: "#/definitions/Uint64";
|
|
2060
|
+
}];
|
|
2061
|
+
};
|
|
2062
|
+
readonly Uint64: {
|
|
2063
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
2064
|
+
readonly type: "string";
|
|
2065
|
+
};
|
|
2066
|
+
};
|
|
2067
|
+
};
|
|
2068
|
+
readonly get_minter_ownership: {
|
|
2069
|
+
readonly description: "The contract's ownership info";
|
|
2070
|
+
readonly type: "object";
|
|
2071
|
+
readonly properties: {
|
|
2072
|
+
readonly owner: {
|
|
2073
|
+
readonly description: "The contract's current owner. `None` if the ownership has been renounced.";
|
|
2074
|
+
readonly anyOf: readonly [{
|
|
2075
|
+
readonly $ref: "#/definitions/Addr";
|
|
2076
|
+
}, {
|
|
2077
|
+
readonly type: "null";
|
|
2078
|
+
}];
|
|
2079
|
+
};
|
|
2080
|
+
readonly pending_expiry: {
|
|
2081
|
+
readonly description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.";
|
|
2082
|
+
readonly anyOf: readonly [{
|
|
2083
|
+
readonly $ref: "#/definitions/Expiration";
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly type: "null";
|
|
2086
|
+
}];
|
|
2087
|
+
};
|
|
2088
|
+
readonly pending_owner: {
|
|
2089
|
+
readonly description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.";
|
|
2090
|
+
readonly anyOf: readonly [{
|
|
2091
|
+
readonly $ref: "#/definitions/Addr";
|
|
2092
|
+
}, {
|
|
2093
|
+
readonly type: "null";
|
|
2094
|
+
}];
|
|
2095
|
+
};
|
|
2096
|
+
};
|
|
2097
|
+
readonly additionalProperties: false;
|
|
2098
|
+
readonly definitions: {
|
|
2099
|
+
readonly Addr: {
|
|
2100
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
2101
|
+
readonly type: "string";
|
|
2102
|
+
};
|
|
2103
|
+
readonly Expiration: {
|
|
2104
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
2105
|
+
readonly oneOf: readonly [{
|
|
2106
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
2107
|
+
readonly type: "object";
|
|
2108
|
+
readonly required: readonly ["at_height"];
|
|
2109
|
+
readonly properties: {
|
|
2110
|
+
readonly at_height: {
|
|
2111
|
+
readonly type: "integer";
|
|
2112
|
+
readonly format: "uint64";
|
|
2113
|
+
readonly minimum: 0;
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
readonly additionalProperties: false;
|
|
2117
|
+
}, {
|
|
2118
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
2119
|
+
readonly type: "object";
|
|
2120
|
+
readonly required: readonly ["at_time"];
|
|
2121
|
+
readonly properties: {
|
|
2122
|
+
readonly at_time: {
|
|
2123
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
2124
|
+
};
|
|
2125
|
+
};
|
|
2126
|
+
readonly additionalProperties: false;
|
|
2127
|
+
}, {
|
|
2128
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
2129
|
+
readonly type: "object";
|
|
2130
|
+
readonly required: readonly ["never"];
|
|
2131
|
+
readonly properties: {
|
|
2132
|
+
readonly never: {
|
|
2133
|
+
readonly type: "object";
|
|
2134
|
+
readonly additionalProperties: false;
|
|
2135
|
+
};
|
|
2136
|
+
};
|
|
2137
|
+
readonly additionalProperties: false;
|
|
2138
|
+
}];
|
|
2139
|
+
};
|
|
2140
|
+
readonly Timestamp: {
|
|
2141
|
+
readonly 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); ```";
|
|
2142
|
+
readonly allOf: readonly [{
|
|
2143
|
+
readonly $ref: "#/definitions/Uint64";
|
|
2144
|
+
}];
|
|
2145
|
+
};
|
|
2146
|
+
readonly Uint64: {
|
|
2147
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
2148
|
+
readonly type: "string";
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
readonly get_nft_by_extension: {
|
|
2153
|
+
readonly anyOf: readonly [{
|
|
2154
|
+
readonly $ref: "#/definitions/NftInfoResponse_for_Nullable_Empty";
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly type: "null";
|
|
2157
|
+
}];
|
|
2158
|
+
readonly definitions: {
|
|
2159
|
+
readonly Empty: {
|
|
2160
|
+
readonly description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)";
|
|
2161
|
+
readonly type: "object";
|
|
2162
|
+
readonly additionalProperties: false;
|
|
2163
|
+
};
|
|
2164
|
+
readonly NftInfoResponse_for_Nullable_Empty: {
|
|
2165
|
+
readonly type: "object";
|
|
2166
|
+
readonly properties: {
|
|
2167
|
+
readonly extension: {
|
|
2168
|
+
readonly description: "You can add any custom metadata here when you extend cw721-base";
|
|
2169
|
+
readonly anyOf: readonly [{
|
|
2170
|
+
readonly $ref: "#/definitions/Empty";
|
|
2171
|
+
}, {
|
|
2172
|
+
readonly type: "null";
|
|
2173
|
+
}];
|
|
2174
|
+
};
|
|
2175
|
+
readonly token_uri: {
|
|
2176
|
+
readonly description: "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema";
|
|
2177
|
+
readonly type: readonly ["string", "null"];
|
|
2178
|
+
};
|
|
2179
|
+
};
|
|
2180
|
+
readonly additionalProperties: false;
|
|
2181
|
+
};
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
readonly get_withdraw_address: {
|
|
2185
|
+
readonly type: readonly ["string", "null"];
|
|
2186
|
+
};
|
|
2187
|
+
readonly minter: {
|
|
2188
|
+
readonly description: "Deprecated: use Cw721QueryMsg::GetMinterOwnership instead! Shows who can mint these tokens.";
|
|
2189
|
+
readonly type: "object";
|
|
2190
|
+
readonly properties: {
|
|
2191
|
+
readonly minter: {
|
|
2192
|
+
readonly type: readonly ["string", "null"];
|
|
2193
|
+
};
|
|
2194
|
+
};
|
|
2195
|
+
readonly additionalProperties: false;
|
|
2196
|
+
};
|
|
2197
|
+
readonly nft_info: {
|
|
2198
|
+
readonly type: "object";
|
|
2199
|
+
readonly properties: {
|
|
2200
|
+
readonly extension: {
|
|
2201
|
+
readonly description: "You can add any custom metadata here when you extend cw721-base";
|
|
2202
|
+
readonly anyOf: readonly [{
|
|
2203
|
+
readonly $ref: "#/definitions/Empty";
|
|
2204
|
+
}, {
|
|
2205
|
+
readonly type: "null";
|
|
2206
|
+
}];
|
|
2207
|
+
};
|
|
2208
|
+
readonly token_uri: {
|
|
2209
|
+
readonly description: "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema";
|
|
2210
|
+
readonly type: readonly ["string", "null"];
|
|
2211
|
+
};
|
|
2212
|
+
};
|
|
2213
|
+
readonly additionalProperties: false;
|
|
2214
|
+
readonly definitions: {
|
|
2215
|
+
readonly Empty: {
|
|
2216
|
+
readonly description: "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressible in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)";
|
|
2217
|
+
readonly type: "object";
|
|
2218
|
+
readonly additionalProperties: false;
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
};
|
|
2222
|
+
readonly num_tokens: {
|
|
2223
|
+
readonly type: "object";
|
|
2224
|
+
readonly required: readonly ["count"];
|
|
2225
|
+
readonly properties: {
|
|
2226
|
+
readonly count: {
|
|
2227
|
+
readonly type: "integer";
|
|
2228
|
+
readonly format: "uint64";
|
|
2229
|
+
readonly minimum: 0;
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
readonly additionalProperties: false;
|
|
2233
|
+
};
|
|
2234
|
+
readonly operator: {
|
|
2235
|
+
readonly type: "object";
|
|
2236
|
+
readonly required: readonly ["approval"];
|
|
2237
|
+
readonly properties: {
|
|
2238
|
+
readonly approval: {
|
|
2239
|
+
readonly $ref: "#/definitions/Approval";
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2242
|
+
readonly additionalProperties: false;
|
|
2243
|
+
readonly definitions: {
|
|
2244
|
+
readonly Addr: {
|
|
2245
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
2246
|
+
readonly type: "string";
|
|
2247
|
+
};
|
|
2248
|
+
readonly Approval: {
|
|
2249
|
+
readonly type: "object";
|
|
2250
|
+
readonly required: readonly ["expires", "spender"];
|
|
2251
|
+
readonly properties: {
|
|
2252
|
+
readonly expires: {
|
|
2253
|
+
readonly description: "When the Approval expires (maybe Expiration::never)";
|
|
2254
|
+
readonly allOf: readonly [{
|
|
2255
|
+
readonly $ref: "#/definitions/Expiration";
|
|
2256
|
+
}];
|
|
2257
|
+
};
|
|
2258
|
+
readonly spender: {
|
|
2259
|
+
readonly description: "Account that can transfer/send the token";
|
|
2260
|
+
readonly allOf: readonly [{
|
|
2261
|
+
readonly $ref: "#/definitions/Addr";
|
|
2262
|
+
}];
|
|
2263
|
+
};
|
|
2264
|
+
};
|
|
2265
|
+
readonly additionalProperties: false;
|
|
2266
|
+
};
|
|
2267
|
+
readonly Expiration: {
|
|
2268
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
2269
|
+
readonly oneOf: readonly [{
|
|
2270
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
2271
|
+
readonly type: "object";
|
|
2272
|
+
readonly required: readonly ["at_height"];
|
|
2273
|
+
readonly properties: {
|
|
2274
|
+
readonly at_height: {
|
|
2275
|
+
readonly type: "integer";
|
|
2276
|
+
readonly format: "uint64";
|
|
2277
|
+
readonly minimum: 0;
|
|
2278
|
+
};
|
|
2279
|
+
};
|
|
2280
|
+
readonly additionalProperties: false;
|
|
2281
|
+
}, {
|
|
2282
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
2283
|
+
readonly type: "object";
|
|
2284
|
+
readonly required: readonly ["at_time"];
|
|
2285
|
+
readonly properties: {
|
|
2286
|
+
readonly at_time: {
|
|
2287
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
2288
|
+
};
|
|
2289
|
+
};
|
|
2290
|
+
readonly additionalProperties: false;
|
|
2291
|
+
}, {
|
|
2292
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
2293
|
+
readonly type: "object";
|
|
2294
|
+
readonly required: readonly ["never"];
|
|
2295
|
+
readonly properties: {
|
|
2296
|
+
readonly never: {
|
|
2297
|
+
readonly type: "object";
|
|
2298
|
+
readonly additionalProperties: false;
|
|
2299
|
+
};
|
|
2300
|
+
};
|
|
2301
|
+
readonly additionalProperties: false;
|
|
2302
|
+
}];
|
|
2303
|
+
};
|
|
2304
|
+
readonly Timestamp: {
|
|
2305
|
+
readonly 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); ```";
|
|
2306
|
+
readonly allOf: readonly [{
|
|
2307
|
+
readonly $ref: "#/definitions/Uint64";
|
|
2308
|
+
}];
|
|
2309
|
+
};
|
|
2310
|
+
readonly Uint64: {
|
|
2311
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
2312
|
+
readonly type: "string";
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
readonly owner_of: {
|
|
2317
|
+
readonly type: "object";
|
|
2318
|
+
readonly required: readonly ["approvals", "owner"];
|
|
2319
|
+
readonly properties: {
|
|
2320
|
+
readonly approvals: {
|
|
2321
|
+
readonly description: "If set this address is approved to transfer/send the token as well";
|
|
2322
|
+
readonly type: "array";
|
|
2323
|
+
readonly items: {
|
|
2324
|
+
readonly $ref: "#/definitions/Approval";
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
readonly owner: {
|
|
2328
|
+
readonly description: "Owner of the token";
|
|
2329
|
+
readonly type: "string";
|
|
2330
|
+
};
|
|
2331
|
+
};
|
|
2332
|
+
readonly additionalProperties: false;
|
|
2333
|
+
readonly definitions: {
|
|
2334
|
+
readonly Addr: {
|
|
2335
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
2336
|
+
readonly type: "string";
|
|
2337
|
+
};
|
|
2338
|
+
readonly Approval: {
|
|
2339
|
+
readonly type: "object";
|
|
2340
|
+
readonly required: readonly ["expires", "spender"];
|
|
2341
|
+
readonly properties: {
|
|
2342
|
+
readonly expires: {
|
|
2343
|
+
readonly description: "When the Approval expires (maybe Expiration::never)";
|
|
2344
|
+
readonly allOf: readonly [{
|
|
2345
|
+
readonly $ref: "#/definitions/Expiration";
|
|
2346
|
+
}];
|
|
2347
|
+
};
|
|
2348
|
+
readonly spender: {
|
|
2349
|
+
readonly description: "Account that can transfer/send the token";
|
|
2350
|
+
readonly allOf: readonly [{
|
|
2351
|
+
readonly $ref: "#/definitions/Addr";
|
|
2352
|
+
}];
|
|
2353
|
+
};
|
|
2354
|
+
};
|
|
2355
|
+
readonly additionalProperties: false;
|
|
2356
|
+
};
|
|
2357
|
+
readonly Expiration: {
|
|
2358
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
2359
|
+
readonly oneOf: readonly [{
|
|
2360
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
2361
|
+
readonly type: "object";
|
|
2362
|
+
readonly required: readonly ["at_height"];
|
|
2363
|
+
readonly properties: {
|
|
2364
|
+
readonly at_height: {
|
|
2365
|
+
readonly type: "integer";
|
|
2366
|
+
readonly format: "uint64";
|
|
2367
|
+
readonly minimum: 0;
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
readonly additionalProperties: false;
|
|
2371
|
+
}, {
|
|
2372
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
2373
|
+
readonly type: "object";
|
|
2374
|
+
readonly required: readonly ["at_time"];
|
|
2375
|
+
readonly properties: {
|
|
2376
|
+
readonly at_time: {
|
|
2377
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
2380
|
+
readonly additionalProperties: false;
|
|
2381
|
+
}, {
|
|
2382
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
2383
|
+
readonly type: "object";
|
|
2384
|
+
readonly required: readonly ["never"];
|
|
2385
|
+
readonly properties: {
|
|
2386
|
+
readonly never: {
|
|
2387
|
+
readonly type: "object";
|
|
2388
|
+
readonly additionalProperties: false;
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
readonly additionalProperties: false;
|
|
2392
|
+
}];
|
|
2393
|
+
};
|
|
2394
|
+
readonly Timestamp: {
|
|
2395
|
+
readonly 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); ```";
|
|
2396
|
+
readonly allOf: readonly [{
|
|
2397
|
+
readonly $ref: "#/definitions/Uint64";
|
|
2398
|
+
}];
|
|
2399
|
+
};
|
|
2400
|
+
readonly Uint64: {
|
|
2401
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
2402
|
+
readonly type: "string";
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
};
|
|
2406
|
+
readonly ownership: {
|
|
2407
|
+
readonly description: "The contract's ownership info";
|
|
2408
|
+
readonly type: "object";
|
|
2409
|
+
readonly properties: {
|
|
2410
|
+
readonly owner: {
|
|
2411
|
+
readonly description: "The contract's current owner. `None` if the ownership has been renounced.";
|
|
2412
|
+
readonly anyOf: readonly [{
|
|
2413
|
+
readonly $ref: "#/definitions/Addr";
|
|
2414
|
+
}, {
|
|
2415
|
+
readonly type: "null";
|
|
2416
|
+
}];
|
|
2417
|
+
};
|
|
2418
|
+
readonly pending_expiry: {
|
|
2419
|
+
readonly description: "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.";
|
|
2420
|
+
readonly anyOf: readonly [{
|
|
2421
|
+
readonly $ref: "#/definitions/Expiration";
|
|
2422
|
+
}, {
|
|
2423
|
+
readonly type: "null";
|
|
2424
|
+
}];
|
|
2425
|
+
};
|
|
2426
|
+
readonly pending_owner: {
|
|
2427
|
+
readonly description: "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.";
|
|
2428
|
+
readonly anyOf: readonly [{
|
|
2429
|
+
readonly $ref: "#/definitions/Addr";
|
|
2430
|
+
}, {
|
|
2431
|
+
readonly type: "null";
|
|
2432
|
+
}];
|
|
2433
|
+
};
|
|
2434
|
+
};
|
|
2435
|
+
readonly additionalProperties: false;
|
|
2436
|
+
readonly definitions: {
|
|
2437
|
+
readonly Addr: {
|
|
2438
|
+
readonly description: "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.";
|
|
2439
|
+
readonly type: "string";
|
|
2440
|
+
};
|
|
2441
|
+
readonly Expiration: {
|
|
2442
|
+
readonly description: "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)";
|
|
2443
|
+
readonly oneOf: readonly [{
|
|
2444
|
+
readonly description: "AtHeight will expire when `env.block.height` >= height";
|
|
2445
|
+
readonly type: "object";
|
|
2446
|
+
readonly required: readonly ["at_height"];
|
|
2447
|
+
readonly properties: {
|
|
2448
|
+
readonly at_height: {
|
|
2449
|
+
readonly type: "integer";
|
|
2450
|
+
readonly format: "uint64";
|
|
2451
|
+
readonly minimum: 0;
|
|
2452
|
+
};
|
|
2453
|
+
};
|
|
2454
|
+
readonly additionalProperties: false;
|
|
2455
|
+
}, {
|
|
2456
|
+
readonly description: "AtTime will expire when `env.block.time` >= time";
|
|
2457
|
+
readonly type: "object";
|
|
2458
|
+
readonly required: readonly ["at_time"];
|
|
2459
|
+
readonly properties: {
|
|
2460
|
+
readonly at_time: {
|
|
2461
|
+
readonly $ref: "#/definitions/Timestamp";
|
|
2462
|
+
};
|
|
2463
|
+
};
|
|
2464
|
+
readonly additionalProperties: false;
|
|
2465
|
+
}, {
|
|
2466
|
+
readonly description: "Never will never expire. Used to express the empty variant";
|
|
2467
|
+
readonly type: "object";
|
|
2468
|
+
readonly required: readonly ["never"];
|
|
2469
|
+
readonly properties: {
|
|
2470
|
+
readonly never: {
|
|
2471
|
+
readonly type: "object";
|
|
2472
|
+
readonly additionalProperties: false;
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2475
|
+
readonly additionalProperties: false;
|
|
2476
|
+
}];
|
|
2477
|
+
};
|
|
2478
|
+
readonly Timestamp: {
|
|
2479
|
+
readonly 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); ```";
|
|
2480
|
+
readonly allOf: readonly [{
|
|
2481
|
+
readonly $ref: "#/definitions/Uint64";
|
|
2482
|
+
}];
|
|
2483
|
+
};
|
|
2484
|
+
readonly Uint64: {
|
|
2485
|
+
readonly description: "A thin wrapper around u64 that is using strings for JSON encoding/decoding, such that the full u64 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u64` to get the value out:\n\n``` # use cosmwasm_std::Uint64; let a = Uint64::from(42u64); assert_eq!(a.u64(), 42);\n\nlet b = Uint64::from(70u32); assert_eq!(b.u64(), 70); ```";
|
|
2486
|
+
readonly type: "string";
|
|
2487
|
+
};
|
|
2488
|
+
};
|
|
2489
|
+
};
|
|
2490
|
+
readonly tokens: {
|
|
2491
|
+
readonly type: "object";
|
|
2492
|
+
readonly required: readonly ["tokens"];
|
|
2493
|
+
readonly properties: {
|
|
2494
|
+
readonly tokens: {
|
|
2495
|
+
readonly description: "Contains all token_ids in lexicographical ordering If there are more than `limit`, use `start_after` in future queries to achieve pagination.";
|
|
2496
|
+
readonly type: "array";
|
|
2497
|
+
readonly items: {
|
|
2498
|
+
readonly type: "string";
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
};
|
|
2502
|
+
readonly additionalProperties: false;
|
|
2503
|
+
};
|
|
2504
|
+
};
|
|
2505
|
+
};
|
|
2506
|
+
export { cw721ExecuteSchema, cw721QuerySchema, cw721ResponseSchemas };
|
|
2507
|
+
//# sourceMappingURL=index.d.ts.map
|