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,367 @@
1
+ /**
2
+ * CW20 ExecuteMsg schema.
3
+ * Generated from cw-plus v2.0.0 cw20-base cargo schema output.
4
+ */
5
+ export declare const cw20ExecuteSchema: {
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
+ //# sourceMappingURL=execute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.d.ts","sourceRoot":"","sources":["../../../src/schemas/cw20/execute.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgapB,CAAA"}