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.
Files changed (94) hide show
  1. package/LICENSE +21 -0
  2. package/dist/client.d.ts +8 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +2 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/client.test-d.d.ts +2 -0
  7. package/dist/client.test-d.d.ts.map +1 -0
  8. package/dist/client.test-d.js +50 -0
  9. package/dist/client.test-d.js.map +1 -0
  10. package/dist/contract.bench-d.d.ts +2 -0
  11. package/dist/contract.bench-d.d.ts.map +1 -0
  12. package/dist/contract.bench-d.js +67 -0
  13. package/dist/contract.bench-d.js.map +1 -0
  14. package/dist/contract.d.ts +27 -0
  15. package/dist/contract.d.ts.map +1 -0
  16. package/dist/contract.js +30 -0
  17. package/dist/contract.js.map +1 -0
  18. package/dist/contract.test-d.d.ts +2 -0
  19. package/dist/contract.test-d.d.ts.map +1 -0
  20. package/dist/contract.test-d.js +147 -0
  21. package/dist/contract.test-d.js.map +1 -0
  22. package/dist/contract.test.d.ts +2 -0
  23. package/dist/contract.test.d.ts.map +1 -0
  24. package/dist/contract.test.js +77 -0
  25. package/dist/contract.test.js.map +1 -0
  26. package/dist/index.d.ts +5 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +2 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/schemas/cw20/execute.d.ts +367 -0
  31. package/dist/schemas/cw20/execute.d.ts.map +1 -0
  32. package/dist/schemas/cw20/execute.js +398 -0
  33. package/dist/schemas/cw20/execute.js.map +1 -0
  34. package/dist/schemas/cw20/index.d.ts +905 -0
  35. package/dist/schemas/cw20/index.d.ts.map +1 -0
  36. package/dist/schemas/cw20/index.js +10 -0
  37. package/dist/schemas/cw20/index.js.map +1 -0
  38. package/dist/schemas/cw20/query.d.ts +160 -0
  39. package/dist/schemas/cw20/query.d.ts.map +1 -0
  40. package/dist/schemas/cw20/query.js +170 -0
  41. package/dist/schemas/cw20/query.js.map +1 -0
  42. package/dist/schemas/cw20/responses.d.ts +386 -0
  43. package/dist/schemas/cw20/responses.d.ts.map +1 -0
  44. package/dist/schemas/cw20/responses.js +416 -0
  45. package/dist/schemas/cw20/responses.js.map +1 -0
  46. package/dist/schemas/cw721/execute.d.ts +543 -0
  47. package/dist/schemas/cw721/execute.d.ts.map +1 -0
  48. package/dist/schemas/cw721/execute.js +597 -0
  49. package/dist/schemas/cw721/execute.js.map +1 -0
  50. package/dist/schemas/cw721/index.d.ts +2507 -0
  51. package/dist/schemas/cw721/index.d.ts.map +1 -0
  52. package/dist/schemas/cw721/index.js +10 -0
  53. package/dist/schemas/cw721/index.js.map +1 -0
  54. package/dist/schemas/cw721/query.d.ts +487 -0
  55. package/dist/schemas/cw721/query.d.ts.map +1 -0
  56. package/dist/schemas/cw721/query.js +526 -0
  57. package/dist/schemas/cw721/query.js.map +1 -0
  58. package/dist/schemas/cw721/responses.d.ts +1485 -0
  59. package/dist/schemas/cw721/responses.d.ts.map +1 -0
  60. package/dist/schemas/cw721/responses.js +1675 -0
  61. package/dist/schemas/cw721/responses.js.map +1 -0
  62. package/dist/schemas/index.d.ts +3 -0
  63. package/dist/schemas/index.d.ts.map +1 -0
  64. package/dist/schemas/index.js +3 -0
  65. package/dist/schemas/index.js.map +1 -0
  66. package/dist/schemas/schemas.test-d.d.ts +2 -0
  67. package/dist/schemas/schemas.test-d.d.ts.map +1 -0
  68. package/dist/schemas/schemas.test-d.js +92 -0
  69. package/dist/schemas/schemas.test-d.js.map +1 -0
  70. package/dist/schemas/schemas.test.d.ts +2 -0
  71. package/dist/schemas/schemas.test.d.ts.map +1 -0
  72. package/dist/schemas/schemas.test.js +150 -0
  73. package/dist/schemas/schemas.test.js.map +1 -0
  74. package/dist/telescope.d.ts +140 -0
  75. package/dist/telescope.d.ts.map +1 -0
  76. package/dist/telescope.js +119 -0
  77. package/dist/telescope.js.map +1 -0
  78. package/dist/telescope.test.d.ts +2 -0
  79. package/dist/telescope.test.d.ts.map +1 -0
  80. package/dist/telescope.test.js +91 -0
  81. package/dist/telescope.test.js.map +1 -0
  82. package/dist/types.d.ts +9 -0
  83. package/dist/types.d.ts.map +1 -0
  84. package/dist/types.js +2 -0
  85. package/dist/types.js.map +1 -0
  86. package/dist/types.test-d.d.ts +2 -0
  87. package/dist/types.test-d.d.ts.map +1 -0
  88. package/dist/types.test-d.js +28 -0
  89. package/dist/types.test-d.js.map +1 -0
  90. package/dist/wallet-compat.test-d.d.ts +13 -0
  91. package/dist/wallet-compat.test-d.d.ts.map +1 -0
  92. package/dist/wallet-compat.test-d.js +74 -0
  93. package/dist/wallet-compat.test-d.js.map +1 -0
  94. package/package.json +65 -7
@@ -0,0 +1,905 @@
1
+ import { cw20ExecuteSchema } from './execute.js';
2
+ import { cw20QuerySchema } from './query.js';
3
+ import { cw20ResponseSchemas } from './responses.js';
4
+ export declare const cw20: {
5
+ readonly execute: {
6
+ readonly oneOf: readonly [{
7
+ readonly description: "Transfer is a base message to move tokens to another account without triggering actions";
8
+ readonly type: "object";
9
+ readonly required: readonly ["transfer"];
10
+ readonly properties: {
11
+ readonly transfer: {
12
+ readonly type: "object";
13
+ readonly required: readonly ["amount", "recipient"];
14
+ readonly properties: {
15
+ readonly amount: {
16
+ readonly $ref: "#/definitions/Uint128";
17
+ };
18
+ readonly recipient: {
19
+ readonly type: "string";
20
+ };
21
+ };
22
+ readonly additionalProperties: false;
23
+ };
24
+ };
25
+ readonly additionalProperties: false;
26
+ }, {
27
+ readonly description: "Burn is a base message to destroy tokens forever";
28
+ readonly type: "object";
29
+ readonly required: readonly ["burn"];
30
+ readonly properties: {
31
+ readonly burn: {
32
+ readonly type: "object";
33
+ readonly required: readonly ["amount"];
34
+ readonly properties: {
35
+ readonly amount: {
36
+ readonly $ref: "#/definitions/Uint128";
37
+ };
38
+ };
39
+ readonly additionalProperties: false;
40
+ };
41
+ };
42
+ readonly additionalProperties: false;
43
+ }, {
44
+ readonly description: "Send is a base message to transfer tokens to a contract and trigger an action on the receiving contract.";
45
+ readonly type: "object";
46
+ readonly required: readonly ["send"];
47
+ readonly properties: {
48
+ readonly send: {
49
+ readonly type: "object";
50
+ readonly required: readonly ["amount", "contract", "msg"];
51
+ readonly properties: {
52
+ readonly amount: {
53
+ readonly $ref: "#/definitions/Uint128";
54
+ };
55
+ readonly contract: {
56
+ readonly type: "string";
57
+ };
58
+ readonly msg: {
59
+ readonly $ref: "#/definitions/Binary";
60
+ };
61
+ };
62
+ readonly additionalProperties: false;
63
+ };
64
+ };
65
+ readonly additionalProperties: false;
66
+ }, {
67
+ readonly description: "Only with \"approval\" extension. Allows spender to access an additional amount tokens from the owner's (env.sender) account. If expires is Some(), overwrites current allowance expiration with this one.";
68
+ readonly type: "object";
69
+ readonly required: readonly ["increase_allowance"];
70
+ readonly properties: {
71
+ readonly increase_allowance: {
72
+ readonly type: "object";
73
+ readonly required: readonly ["amount", "spender"];
74
+ readonly properties: {
75
+ readonly amount: {
76
+ readonly $ref: "#/definitions/Uint128";
77
+ };
78
+ readonly expires: {
79
+ readonly anyOf: readonly [{
80
+ readonly $ref: "#/definitions/Expiration";
81
+ }, {
82
+ readonly type: "null";
83
+ }];
84
+ };
85
+ readonly spender: {
86
+ readonly type: "string";
87
+ };
88
+ };
89
+ readonly additionalProperties: false;
90
+ };
91
+ };
92
+ readonly additionalProperties: false;
93
+ }, {
94
+ readonly description: "Only with \"approval\" extension. Lowers the spender's access of tokens from the owner's (env.sender) account by amount. If expires is Some(), overwrites current allowance expiration with this one.";
95
+ readonly type: "object";
96
+ readonly required: readonly ["decrease_allowance"];
97
+ readonly properties: {
98
+ readonly decrease_allowance: {
99
+ readonly type: "object";
100
+ readonly required: readonly ["amount", "spender"];
101
+ readonly properties: {
102
+ readonly amount: {
103
+ readonly $ref: "#/definitions/Uint128";
104
+ };
105
+ readonly expires: {
106
+ readonly anyOf: readonly [{
107
+ readonly $ref: "#/definitions/Expiration";
108
+ }, {
109
+ readonly type: "null";
110
+ }];
111
+ };
112
+ readonly spender: {
113
+ readonly type: "string";
114
+ };
115
+ };
116
+ readonly additionalProperties: false;
117
+ };
118
+ };
119
+ readonly additionalProperties: false;
120
+ }, {
121
+ readonly description: "Only with \"approval\" extension. Transfers amount tokens from owner -> recipient if `env.sender` has sufficient pre-approval.";
122
+ readonly type: "object";
123
+ readonly required: readonly ["transfer_from"];
124
+ readonly properties: {
125
+ readonly transfer_from: {
126
+ readonly type: "object";
127
+ readonly required: readonly ["amount", "owner", "recipient"];
128
+ readonly properties: {
129
+ readonly amount: {
130
+ readonly $ref: "#/definitions/Uint128";
131
+ };
132
+ readonly owner: {
133
+ readonly type: "string";
134
+ };
135
+ readonly recipient: {
136
+ readonly type: "string";
137
+ };
138
+ };
139
+ readonly additionalProperties: false;
140
+ };
141
+ };
142
+ readonly additionalProperties: false;
143
+ }, {
144
+ readonly description: "Only with \"approval\" extension. Sends amount tokens from owner -> contract if `env.sender` has sufficient pre-approval.";
145
+ readonly type: "object";
146
+ readonly required: readonly ["send_from"];
147
+ readonly properties: {
148
+ readonly send_from: {
149
+ readonly type: "object";
150
+ readonly required: readonly ["amount", "contract", "msg", "owner"];
151
+ readonly properties: {
152
+ readonly amount: {
153
+ readonly $ref: "#/definitions/Uint128";
154
+ };
155
+ readonly contract: {
156
+ readonly type: "string";
157
+ };
158
+ readonly msg: {
159
+ readonly $ref: "#/definitions/Binary";
160
+ };
161
+ readonly owner: {
162
+ readonly type: "string";
163
+ };
164
+ };
165
+ readonly additionalProperties: false;
166
+ };
167
+ };
168
+ readonly additionalProperties: false;
169
+ }, {
170
+ readonly description: "Only with \"approval\" extension. Destroys tokens forever";
171
+ readonly type: "object";
172
+ readonly required: readonly ["burn_from"];
173
+ readonly properties: {
174
+ readonly burn_from: {
175
+ readonly type: "object";
176
+ readonly required: readonly ["amount", "owner"];
177
+ readonly properties: {
178
+ readonly amount: {
179
+ readonly $ref: "#/definitions/Uint128";
180
+ };
181
+ readonly owner: {
182
+ readonly type: "string";
183
+ };
184
+ };
185
+ readonly additionalProperties: false;
186
+ };
187
+ };
188
+ readonly additionalProperties: false;
189
+ }, {
190
+ readonly description: "Only with the \"mintable\" extension. If authorized, creates amount new tokens and adds to the recipient balance.";
191
+ readonly type: "object";
192
+ readonly required: readonly ["mint"];
193
+ readonly properties: {
194
+ readonly mint: {
195
+ readonly type: "object";
196
+ readonly required: readonly ["amount", "recipient"];
197
+ readonly properties: {
198
+ readonly amount: {
199
+ readonly $ref: "#/definitions/Uint128";
200
+ };
201
+ readonly recipient: {
202
+ readonly type: "string";
203
+ };
204
+ };
205
+ readonly additionalProperties: false;
206
+ };
207
+ };
208
+ readonly additionalProperties: false;
209
+ }, {
210
+ readonly description: "Only with the \"mintable\" extension. The current minter may set a new minter. Setting the minter to None will remove the token's minter forever.";
211
+ readonly type: "object";
212
+ readonly required: readonly ["update_minter"];
213
+ readonly properties: {
214
+ readonly update_minter: {
215
+ readonly type: "object";
216
+ readonly properties: {
217
+ readonly new_minter: {
218
+ readonly type: readonly ["string", "null"];
219
+ };
220
+ };
221
+ readonly additionalProperties: false;
222
+ };
223
+ };
224
+ readonly additionalProperties: false;
225
+ }, {
226
+ readonly description: "Only with the \"marketing\" extension. If authorized, updates marketing metadata. Setting None/null for any of these will leave it unchanged. Setting Some(\"\") will clear this field on the contract storage";
227
+ readonly type: "object";
228
+ readonly required: readonly ["update_marketing"];
229
+ readonly properties: {
230
+ readonly update_marketing: {
231
+ readonly type: "object";
232
+ readonly properties: {
233
+ readonly description: {
234
+ readonly description: "A longer description of the token and it's utility. Designed for tooltips or such";
235
+ readonly type: readonly ["string", "null"];
236
+ };
237
+ readonly marketing: {
238
+ readonly description: "The address (if any) who can update this data structure";
239
+ readonly type: readonly ["string", "null"];
240
+ };
241
+ readonly project: {
242
+ readonly description: "A URL pointing to the project behind this token.";
243
+ readonly type: readonly ["string", "null"];
244
+ };
245
+ };
246
+ readonly additionalProperties: false;
247
+ };
248
+ };
249
+ readonly additionalProperties: false;
250
+ }, {
251
+ readonly description: "If set as the \"marketing\" role on the contract, upload a new URL, SVG, or PNG for the token";
252
+ readonly type: "object";
253
+ readonly required: readonly ["upload_logo"];
254
+ readonly properties: {
255
+ readonly upload_logo: {
256
+ readonly $ref: "#/definitions/Logo";
257
+ };
258
+ };
259
+ readonly additionalProperties: false;
260
+ }];
261
+ readonly definitions: {
262
+ readonly Binary: {
263
+ 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>.";
264
+ readonly type: "string";
265
+ };
266
+ readonly EmbeddedLogo: {
267
+ readonly description: "This is used to store the logo on the blockchain in an accepted format. Enforce maximum size of 5KB on all variants.";
268
+ readonly oneOf: readonly [{
269
+ readonly description: "Store the Logo as an SVG file. The content must conform to the spec at https://en.wikipedia.org/wiki/Scalable_Vector_Graphics (The contract should do some light-weight sanity-check validation)";
270
+ readonly type: "object";
271
+ readonly required: readonly ["svg"];
272
+ readonly properties: {
273
+ readonly svg: {
274
+ readonly $ref: "#/definitions/Binary";
275
+ };
276
+ };
277
+ readonly additionalProperties: false;
278
+ }, {
279
+ readonly description: "Store the Logo as a PNG file. This will likely only support up to 64x64 or so within the 5KB limit.";
280
+ readonly type: "object";
281
+ readonly required: readonly ["png"];
282
+ readonly properties: {
283
+ readonly png: {
284
+ readonly $ref: "#/definitions/Binary";
285
+ };
286
+ };
287
+ readonly additionalProperties: false;
288
+ }];
289
+ };
290
+ readonly Expiration: {
291
+ 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)";
292
+ readonly oneOf: readonly [{
293
+ readonly description: "AtHeight will expire when `env.block.height` >= height";
294
+ readonly type: "object";
295
+ readonly required: readonly ["at_height"];
296
+ readonly properties: {
297
+ readonly at_height: {
298
+ readonly type: "integer";
299
+ readonly format: "uint64";
300
+ readonly minimum: 0;
301
+ };
302
+ };
303
+ readonly additionalProperties: false;
304
+ }, {
305
+ readonly description: "AtTime will expire when `env.block.time` >= time";
306
+ readonly type: "object";
307
+ readonly required: readonly ["at_time"];
308
+ readonly properties: {
309
+ readonly at_time: {
310
+ readonly $ref: "#/definitions/Timestamp";
311
+ };
312
+ };
313
+ readonly additionalProperties: false;
314
+ }, {
315
+ readonly description: "Never will never expire. Used to express the empty variant";
316
+ readonly type: "object";
317
+ readonly required: readonly ["never"];
318
+ readonly properties: {
319
+ readonly never: {
320
+ readonly type: "object";
321
+ readonly additionalProperties: false;
322
+ };
323
+ };
324
+ readonly additionalProperties: false;
325
+ }];
326
+ };
327
+ readonly Logo: {
328
+ readonly description: "This is used for uploading logo data, or setting it in InstantiateData";
329
+ readonly oneOf: readonly [{
330
+ readonly description: "A reference to an externally hosted logo. Must be a valid HTTP or HTTPS URL.";
331
+ readonly type: "object";
332
+ readonly required: readonly ["url"];
333
+ readonly properties: {
334
+ readonly url: {
335
+ readonly type: "string";
336
+ };
337
+ };
338
+ readonly additionalProperties: false;
339
+ }, {
340
+ readonly description: "Logo content stored on the blockchain. Enforce maximum size of 5KB on all variants";
341
+ readonly type: "object";
342
+ readonly required: readonly ["embedded"];
343
+ readonly properties: {
344
+ readonly embedded: {
345
+ readonly $ref: "#/definitions/EmbeddedLogo";
346
+ };
347
+ };
348
+ readonly additionalProperties: false;
349
+ }];
350
+ };
351
+ readonly Timestamp: {
352
+ 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); ```";
353
+ readonly allOf: readonly [{
354
+ readonly $ref: "#/definitions/Uint64";
355
+ }];
356
+ };
357
+ readonly Uint128: {
358
+ 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); ```";
359
+ readonly type: "string";
360
+ };
361
+ readonly Uint64: {
362
+ 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); ```";
363
+ readonly type: "string";
364
+ };
365
+ };
366
+ };
367
+ readonly query: {
368
+ readonly oneOf: readonly [{
369
+ readonly description: "Returns the current balance of the given address, 0 if unset.";
370
+ readonly type: "object";
371
+ readonly required: readonly ["balance"];
372
+ readonly properties: {
373
+ readonly balance: {
374
+ readonly type: "object";
375
+ readonly required: readonly ["address"];
376
+ readonly properties: {
377
+ readonly address: {
378
+ readonly type: "string";
379
+ };
380
+ };
381
+ readonly additionalProperties: false;
382
+ };
383
+ };
384
+ readonly additionalProperties: false;
385
+ }, {
386
+ readonly description: "Returns metadata on the contract - name, decimals, supply, etc.";
387
+ readonly type: "object";
388
+ readonly required: readonly ["token_info"];
389
+ readonly properties: {
390
+ readonly token_info: {
391
+ readonly type: "object";
392
+ readonly additionalProperties: false;
393
+ };
394
+ };
395
+ readonly additionalProperties: false;
396
+ }, {
397
+ readonly description: "Only with \"mintable\" extension. Returns who can mint and the hard cap on maximum tokens after minting.";
398
+ readonly type: "object";
399
+ readonly required: readonly ["minter"];
400
+ readonly properties: {
401
+ readonly minter: {
402
+ readonly type: "object";
403
+ readonly additionalProperties: false;
404
+ };
405
+ };
406
+ readonly additionalProperties: false;
407
+ }, {
408
+ readonly description: "Only with \"allowance\" extension. Returns how much spender can use from owner account, 0 if unset.";
409
+ readonly type: "object";
410
+ readonly required: readonly ["allowance"];
411
+ readonly properties: {
412
+ readonly allowance: {
413
+ readonly type: "object";
414
+ readonly required: readonly ["owner", "spender"];
415
+ readonly properties: {
416
+ readonly owner: {
417
+ readonly type: "string";
418
+ };
419
+ readonly spender: {
420
+ readonly type: "string";
421
+ };
422
+ };
423
+ readonly additionalProperties: false;
424
+ };
425
+ };
426
+ readonly additionalProperties: false;
427
+ }, {
428
+ readonly description: "Only with \"enumerable\" extension (and \"allowances\") Returns all allowances this owner has approved. Supports pagination.";
429
+ readonly type: "object";
430
+ readonly required: readonly ["all_allowances"];
431
+ readonly properties: {
432
+ readonly all_allowances: {
433
+ readonly type: "object";
434
+ readonly required: readonly ["owner"];
435
+ readonly properties: {
436
+ readonly limit: {
437
+ readonly type: readonly ["integer", "null"];
438
+ readonly format: "uint32";
439
+ readonly minimum: 0;
440
+ };
441
+ readonly owner: {
442
+ readonly type: "string";
443
+ };
444
+ readonly start_after: {
445
+ readonly type: readonly ["string", "null"];
446
+ };
447
+ };
448
+ readonly additionalProperties: false;
449
+ };
450
+ };
451
+ readonly additionalProperties: false;
452
+ }, {
453
+ readonly description: "Only with \"enumerable\" extension (and \"allowances\") Returns all allowances this spender has been granted. Supports pagination.";
454
+ readonly type: "object";
455
+ readonly required: readonly ["all_spender_allowances"];
456
+ readonly properties: {
457
+ readonly all_spender_allowances: {
458
+ readonly type: "object";
459
+ readonly required: readonly ["spender"];
460
+ readonly properties: {
461
+ readonly limit: {
462
+ readonly type: readonly ["integer", "null"];
463
+ readonly format: "uint32";
464
+ readonly minimum: 0;
465
+ };
466
+ readonly spender: {
467
+ readonly type: "string";
468
+ };
469
+ readonly start_after: {
470
+ readonly type: readonly ["string", "null"];
471
+ };
472
+ };
473
+ readonly additionalProperties: false;
474
+ };
475
+ };
476
+ readonly additionalProperties: false;
477
+ }, {
478
+ readonly description: "Only with \"enumerable\" extension Returns all accounts that have balances. Supports pagination.";
479
+ readonly type: "object";
480
+ readonly required: readonly ["all_accounts"];
481
+ readonly properties: {
482
+ readonly all_accounts: {
483
+ readonly type: "object";
484
+ readonly properties: {
485
+ readonly limit: {
486
+ readonly type: readonly ["integer", "null"];
487
+ readonly format: "uint32";
488
+ readonly minimum: 0;
489
+ };
490
+ readonly start_after: {
491
+ readonly type: readonly ["string", "null"];
492
+ };
493
+ };
494
+ readonly additionalProperties: false;
495
+ };
496
+ };
497
+ readonly additionalProperties: false;
498
+ }, {
499
+ readonly description: "Only with \"marketing\" extension Returns more metadata on the contract to display in the client: - description, logo, project url, etc.";
500
+ readonly type: "object";
501
+ readonly required: readonly ["marketing_info"];
502
+ readonly properties: {
503
+ readonly marketing_info: {
504
+ readonly type: "object";
505
+ readonly additionalProperties: false;
506
+ };
507
+ };
508
+ readonly additionalProperties: false;
509
+ }, {
510
+ readonly description: "Only with \"marketing\" extension Downloads the embedded logo data (if stored on chain). Errors if no logo data is stored for this contract.";
511
+ readonly type: "object";
512
+ readonly required: readonly ["download_logo"];
513
+ readonly properties: {
514
+ readonly download_logo: {
515
+ readonly type: "object";
516
+ readonly additionalProperties: false;
517
+ };
518
+ };
519
+ readonly additionalProperties: false;
520
+ }];
521
+ };
522
+ readonly responses: {
523
+ readonly all_accounts: {
524
+ readonly type: "object";
525
+ readonly required: readonly ["accounts"];
526
+ readonly properties: {
527
+ readonly accounts: {
528
+ readonly type: "array";
529
+ readonly items: {
530
+ readonly type: "string";
531
+ };
532
+ };
533
+ };
534
+ };
535
+ readonly all_allowances: {
536
+ readonly type: "object";
537
+ readonly required: readonly ["allowances"];
538
+ readonly properties: {
539
+ readonly allowances: {
540
+ readonly type: "array";
541
+ readonly items: {
542
+ readonly $ref: "#/definitions/AllowanceInfo";
543
+ };
544
+ };
545
+ };
546
+ readonly definitions: {
547
+ readonly AllowanceInfo: {
548
+ readonly type: "object";
549
+ readonly required: readonly ["allowance", "expires", "spender"];
550
+ readonly properties: {
551
+ readonly allowance: {
552
+ readonly $ref: "#/definitions/Uint128";
553
+ };
554
+ readonly expires: {
555
+ readonly $ref: "#/definitions/Expiration";
556
+ };
557
+ readonly spender: {
558
+ readonly type: "string";
559
+ };
560
+ };
561
+ readonly additionalProperties: false;
562
+ };
563
+ readonly Expiration: {
564
+ 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)";
565
+ readonly oneOf: readonly [{
566
+ readonly description: "AtHeight will expire when `env.block.height` >= height";
567
+ readonly type: "object";
568
+ readonly required: readonly ["at_height"];
569
+ readonly properties: {
570
+ readonly at_height: {
571
+ readonly type: "integer";
572
+ readonly format: "uint64";
573
+ readonly minimum: 0;
574
+ };
575
+ };
576
+ readonly additionalProperties: false;
577
+ }, {
578
+ readonly description: "AtTime will expire when `env.block.time` >= time";
579
+ readonly type: "object";
580
+ readonly required: readonly ["at_time"];
581
+ readonly properties: {
582
+ readonly at_time: {
583
+ readonly $ref: "#/definitions/Timestamp";
584
+ };
585
+ };
586
+ readonly additionalProperties: false;
587
+ }, {
588
+ readonly description: "Never will never expire. Used to express the empty variant";
589
+ readonly type: "object";
590
+ readonly required: readonly ["never"];
591
+ readonly properties: {
592
+ readonly never: {
593
+ readonly type: "object";
594
+ readonly additionalProperties: false;
595
+ };
596
+ };
597
+ readonly additionalProperties: false;
598
+ }];
599
+ };
600
+ readonly Timestamp: {
601
+ 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); ```";
602
+ readonly allOf: readonly [{
603
+ readonly $ref: "#/definitions/Uint64";
604
+ }];
605
+ };
606
+ readonly Uint128: {
607
+ 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); ```";
608
+ readonly type: "string";
609
+ };
610
+ readonly Uint64: {
611
+ 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); ```";
612
+ readonly type: "string";
613
+ };
614
+ };
615
+ };
616
+ readonly all_spender_allowances: {
617
+ readonly type: "object";
618
+ readonly required: readonly ["allowances"];
619
+ readonly properties: {
620
+ readonly allowances: {
621
+ readonly type: "array";
622
+ readonly items: {
623
+ readonly $ref: "#/definitions/SpenderAllowanceInfo";
624
+ };
625
+ };
626
+ };
627
+ readonly definitions: {
628
+ readonly Expiration: {
629
+ 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)";
630
+ readonly oneOf: readonly [{
631
+ readonly description: "AtHeight will expire when `env.block.height` >= height";
632
+ readonly type: "object";
633
+ readonly required: readonly ["at_height"];
634
+ readonly properties: {
635
+ readonly at_height: {
636
+ readonly type: "integer";
637
+ readonly format: "uint64";
638
+ readonly minimum: 0;
639
+ };
640
+ };
641
+ readonly additionalProperties: false;
642
+ }, {
643
+ readonly description: "AtTime will expire when `env.block.time` >= time";
644
+ readonly type: "object";
645
+ readonly required: readonly ["at_time"];
646
+ readonly properties: {
647
+ readonly at_time: {
648
+ readonly $ref: "#/definitions/Timestamp";
649
+ };
650
+ };
651
+ readonly additionalProperties: false;
652
+ }, {
653
+ readonly description: "Never will never expire. Used to express the empty variant";
654
+ readonly type: "object";
655
+ readonly required: readonly ["never"];
656
+ readonly properties: {
657
+ readonly never: {
658
+ readonly type: "object";
659
+ readonly additionalProperties: false;
660
+ };
661
+ };
662
+ readonly additionalProperties: false;
663
+ }];
664
+ };
665
+ readonly SpenderAllowanceInfo: {
666
+ readonly type: "object";
667
+ readonly required: readonly ["allowance", "expires", "owner"];
668
+ readonly properties: {
669
+ readonly allowance: {
670
+ readonly $ref: "#/definitions/Uint128";
671
+ };
672
+ readonly expires: {
673
+ readonly $ref: "#/definitions/Expiration";
674
+ };
675
+ readonly owner: {
676
+ readonly type: "string";
677
+ };
678
+ };
679
+ readonly additionalProperties: false;
680
+ };
681
+ readonly Timestamp: {
682
+ 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); ```";
683
+ readonly allOf: readonly [{
684
+ readonly $ref: "#/definitions/Uint64";
685
+ }];
686
+ };
687
+ readonly Uint128: {
688
+ 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); ```";
689
+ readonly type: "string";
690
+ };
691
+ readonly Uint64: {
692
+ 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); ```";
693
+ readonly type: "string";
694
+ };
695
+ };
696
+ };
697
+ readonly allowance: {
698
+ readonly type: "object";
699
+ readonly required: readonly ["allowance", "expires"];
700
+ readonly properties: {
701
+ readonly allowance: {
702
+ readonly $ref: "#/definitions/Uint128";
703
+ };
704
+ readonly expires: {
705
+ readonly $ref: "#/definitions/Expiration";
706
+ };
707
+ };
708
+ readonly definitions: {
709
+ readonly Expiration: {
710
+ 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)";
711
+ readonly oneOf: readonly [{
712
+ readonly description: "AtHeight will expire when `env.block.height` >= height";
713
+ readonly type: "object";
714
+ readonly required: readonly ["at_height"];
715
+ readonly properties: {
716
+ readonly at_height: {
717
+ readonly type: "integer";
718
+ readonly format: "uint64";
719
+ readonly minimum: 0;
720
+ };
721
+ };
722
+ readonly additionalProperties: false;
723
+ }, {
724
+ readonly description: "AtTime will expire when `env.block.time` >= time";
725
+ readonly type: "object";
726
+ readonly required: readonly ["at_time"];
727
+ readonly properties: {
728
+ readonly at_time: {
729
+ readonly $ref: "#/definitions/Timestamp";
730
+ };
731
+ };
732
+ readonly additionalProperties: false;
733
+ }, {
734
+ readonly description: "Never will never expire. Used to express the empty variant";
735
+ readonly type: "object";
736
+ readonly required: readonly ["never"];
737
+ readonly properties: {
738
+ readonly never: {
739
+ readonly type: "object";
740
+ readonly additionalProperties: false;
741
+ };
742
+ };
743
+ readonly additionalProperties: false;
744
+ }];
745
+ };
746
+ readonly Timestamp: {
747
+ 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); ```";
748
+ readonly allOf: readonly [{
749
+ readonly $ref: "#/definitions/Uint64";
750
+ }];
751
+ };
752
+ readonly Uint128: {
753
+ 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); ```";
754
+ readonly type: "string";
755
+ };
756
+ readonly Uint64: {
757
+ 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); ```";
758
+ readonly type: "string";
759
+ };
760
+ };
761
+ };
762
+ readonly balance: {
763
+ readonly type: "object";
764
+ readonly required: readonly ["balance"];
765
+ readonly properties: {
766
+ readonly balance: {
767
+ readonly $ref: "#/definitions/Uint128";
768
+ };
769
+ };
770
+ readonly additionalProperties: false;
771
+ readonly definitions: {
772
+ readonly Uint128: {
773
+ 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); ```";
774
+ readonly type: "string";
775
+ };
776
+ };
777
+ };
778
+ readonly download_logo: {
779
+ readonly description: "When we download an embedded logo, we get this response type. We expect a SPA to be able to accept this info and display it.";
780
+ readonly type: "object";
781
+ readonly required: readonly ["data", "mime_type"];
782
+ readonly properties: {
783
+ readonly data: {
784
+ readonly $ref: "#/definitions/Binary";
785
+ };
786
+ readonly mime_type: {
787
+ readonly type: "string";
788
+ };
789
+ };
790
+ readonly additionalProperties: false;
791
+ readonly definitions: {
792
+ readonly Binary: {
793
+ 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>.";
794
+ readonly type: "string";
795
+ };
796
+ };
797
+ };
798
+ readonly marketing_info: {
799
+ readonly type: "object";
800
+ readonly properties: {
801
+ readonly description: {
802
+ readonly description: "A longer description of the token and it's utility. Designed for tooltips or such";
803
+ readonly type: readonly ["string", "null"];
804
+ };
805
+ readonly logo: {
806
+ readonly description: "A link to the logo, or a comment there is an on-chain logo stored";
807
+ readonly anyOf: readonly [{
808
+ readonly $ref: "#/definitions/LogoInfo";
809
+ }, {
810
+ readonly type: "null";
811
+ }];
812
+ };
813
+ readonly marketing: {
814
+ readonly description: "The address (if any) who can update this data structure";
815
+ readonly anyOf: readonly [{
816
+ readonly $ref: "#/definitions/Addr";
817
+ }, {
818
+ readonly type: "null";
819
+ }];
820
+ };
821
+ readonly project: {
822
+ readonly description: "A URL pointing to the project behind this token.";
823
+ readonly type: readonly ["string", "null"];
824
+ };
825
+ };
826
+ readonly definitions: {
827
+ readonly Addr: {
828
+ 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.";
829
+ readonly type: "string";
830
+ };
831
+ readonly LogoInfo: {
832
+ readonly description: "This is used to display logo info, provide a link or inform there is one that can be downloaded from the blockchain itself";
833
+ readonly oneOf: readonly [{
834
+ readonly description: "A reference to an externally hosted logo. Must be a valid HTTP or HTTPS URL.";
835
+ readonly type: "object";
836
+ readonly required: readonly ["url"];
837
+ readonly properties: {
838
+ readonly url: {
839
+ readonly type: "string";
840
+ };
841
+ };
842
+ readonly additionalProperties: false;
843
+ }, {
844
+ readonly description: "There is an embedded logo on the chain, make another call to download it.";
845
+ readonly type: "string";
846
+ readonly enum: readonly ["embedded"];
847
+ }];
848
+ };
849
+ };
850
+ };
851
+ readonly minter: {
852
+ readonly type: "object";
853
+ readonly required: readonly ["minter"];
854
+ readonly properties: {
855
+ readonly cap: {
856
+ readonly description: "cap is a hard cap on total supply that can be achieved by minting. Note that this refers to total_supply. If None, there is unlimited cap.";
857
+ readonly anyOf: readonly [{
858
+ readonly $ref: "#/definitions/Uint128";
859
+ }, {
860
+ readonly type: "null";
861
+ }];
862
+ };
863
+ readonly minter: {
864
+ readonly type: "string";
865
+ };
866
+ };
867
+ readonly additionalProperties: false;
868
+ readonly definitions: {
869
+ readonly Uint128: {
870
+ 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); ```";
871
+ readonly type: "string";
872
+ };
873
+ };
874
+ };
875
+ readonly token_info: {
876
+ readonly type: "object";
877
+ readonly required: readonly ["decimals", "name", "symbol", "total_supply"];
878
+ readonly properties: {
879
+ readonly decimals: {
880
+ readonly type: "integer";
881
+ readonly format: "uint8";
882
+ readonly minimum: 0;
883
+ };
884
+ readonly name: {
885
+ readonly type: "string";
886
+ };
887
+ readonly symbol: {
888
+ readonly type: "string";
889
+ };
890
+ readonly total_supply: {
891
+ readonly $ref: "#/definitions/Uint128";
892
+ };
893
+ };
894
+ readonly additionalProperties: false;
895
+ readonly definitions: {
896
+ readonly Uint128: {
897
+ 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); ```";
898
+ readonly type: "string";
899
+ };
900
+ };
901
+ };
902
+ };
903
+ };
904
+ export { cw20ExecuteSchema, cw20QuerySchema, cw20ResponseSchemas };
905
+ //# sourceMappingURL=index.d.ts.map