@pezkuwi/api-contract 16.5.5

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 (162) hide show
  1. package/README.md +3 -0
  2. package/build/Abi/index.d.ts +31 -0
  3. package/build/Abi/toLatestCompatible.d.ts +15 -0
  4. package/build/Abi/toV1.d.ts +3 -0
  5. package/build/Abi/toV2.d.ts +3 -0
  6. package/build/Abi/toV3.d.ts +3 -0
  7. package/build/Abi/toV4.d.ts +3 -0
  8. package/build/augment.d.ts +1 -0
  9. package/build/base/Base.d.ts +13 -0
  10. package/build/base/Blueprint.d.ts +24 -0
  11. package/build/base/Code.d.ts +22 -0
  12. package/build/base/Contract.d.ts +25 -0
  13. package/build/base/index.d.ts +3 -0
  14. package/build/base/mock.d.ts +3 -0
  15. package/build/base/types.d.ts +25 -0
  16. package/build/base/util.d.ts +16 -0
  17. package/build/bundle.d.ts +4 -0
  18. package/build/index.d.ts +2 -0
  19. package/build/packageDetect.d.ts +1 -0
  20. package/build/packageInfo.d.ts +6 -0
  21. package/build/promise/index.d.ts +13 -0
  22. package/build/promise/types.d.ts +3 -0
  23. package/build/rx/index.d.ts +13 -0
  24. package/build/rx/types.d.ts +3 -0
  25. package/build/types.d.ts +79 -0
  26. package/build/util.d.ts +5 -0
  27. package/package.json +39 -0
  28. package/src/Abi/Abi.spec.ts +235 -0
  29. package/src/Abi/index.ts +477 -0
  30. package/src/Abi/toLatestCompatible.spec.ts +219 -0
  31. package/src/Abi/toLatestCompatible.ts +52 -0
  32. package/src/Abi/toV1.ts +35 -0
  33. package/src/Abi/toV2.ts +58 -0
  34. package/src/Abi/toV3.ts +18 -0
  35. package/src/Abi/toV4.ts +21 -0
  36. package/src/augment.ts +4 -0
  37. package/src/base/Base.ts +52 -0
  38. package/src/base/Blueprint.ts +90 -0
  39. package/src/base/Code.spec.ts +47 -0
  40. package/src/base/Code.ts +142 -0
  41. package/src/base/Contract.ts +197 -0
  42. package/src/base/index.ts +6 -0
  43. package/src/base/mock.ts +48 -0
  44. package/src/base/types.ts +40 -0
  45. package/src/base/util.ts +56 -0
  46. package/src/bundle.ts +10 -0
  47. package/src/checkTypes.manual.ts +45 -0
  48. package/src/index.ts +6 -0
  49. package/src/mod.ts +4 -0
  50. package/src/packageDetect.ts +13 -0
  51. package/src/packageInfo.ts +6 -0
  52. package/src/promise/index.ts +28 -0
  53. package/src/promise/types.ts +7 -0
  54. package/src/rx/index.ts +28 -0
  55. package/src/rx/types.ts +7 -0
  56. package/src/test/compare/ink_v0_delegator.test.json +47 -0
  57. package/src/test/compare/ink_v0_dns.test.json +232 -0
  58. package/src/test/compare/ink_v0_erc20.test.json +253 -0
  59. package/src/test/compare/ink_v0_erc721.test.json +415 -0
  60. package/src/test/compare/ink_v0_flipper.test.json +9 -0
  61. package/src/test/compare/ink_v0_flipperBundle.test.json +9 -0
  62. package/src/test/compare/ink_v0_incrementer.test.json +9 -0
  63. package/src/test/compare/ink_v0_multisigPlain.test.json +562 -0
  64. package/src/test/compare/ink_v1_flipper.test.json +9 -0
  65. package/src/test/compare/ink_v1_psp22.test.json +531 -0
  66. package/src/test/compare/ink_v2_erc20.test.json +205 -0
  67. package/src/test/compare/ink_v2_flipper.test.json +9 -0
  68. package/src/test/compare/ink_v3_flipper.test.json +9 -0
  69. package/src/test/compare/ink_v3_traitErc20.test.json +205 -0
  70. package/src/test/compare/ink_v4_erc20Contract.test.json +253 -0
  71. package/src/test/compare/ink_v4_erc20Metadata.test.json +253 -0
  72. package/src/test/compare/ink_v4_flipperContract.test.json +155 -0
  73. package/src/test/compare/ink_v4_flipperMetadata.test.json +155 -0
  74. package/src/test/compare/ink_v5_erc20.test.json +370 -0
  75. package/src/test/compare/ink_v5_erc20AnonymousTransferMetadata.test.json +370 -0
  76. package/src/test/compare/ink_v5_erc20Contract.test.json +370 -0
  77. package/src/test/compare/ink_v5_erc20Metadata.test.json +370 -0
  78. package/src/test/compare/ink_v5_flipperContract.test.json +174 -0
  79. package/src/test/compare/ink_v5_flipperMetadata.test.json +174 -0
  80. package/src/test/compare/ink_v6_erc20Contract.test.json +418 -0
  81. package/src/test/compare/ink_v6_erc20Metadata.test.json +418 -0
  82. package/src/test/compare/solang_v0_ints256.test.json +9 -0
  83. package/src/test/compare/user_v0_assetTransfer.test.json +54 -0
  84. package/src/test/compare/user_v0_enumExample.test.json +303 -0
  85. package/src/test/compare/user_v0_recursive.test.json +27 -0
  86. package/src/test/compare/user_v0_withString.test.json +260 -0
  87. package/src/test/compare/user_v3_ask.test.json +71 -0
  88. package/src/test/compare/user_v4_events.test.json +1328 -0
  89. package/src/test/contracts/index.ts +20 -0
  90. package/src/test/contracts/ink/index.ts +13 -0
  91. package/src/test/contracts/ink/v0/accumulator.wasm +0 -0
  92. package/src/test/contracts/ink/v0/adder.wasm +0 -0
  93. package/src/test/contracts/ink/v0/delegator.json +252 -0
  94. package/src/test/contracts/ink/v0/delegator.wasm +0 -0
  95. package/src/test/contracts/ink/v0/dns.json +713 -0
  96. package/src/test/contracts/ink/v0/dns.wasm +0 -0
  97. package/src/test/contracts/ink/v0/erc20.json +704 -0
  98. package/src/test/contracts/ink/v0/erc20.wasm +0 -0
  99. package/src/test/contracts/ink/v0/erc721.json +1197 -0
  100. package/src/test/contracts/ink/v0/erc721.wasm +0 -0
  101. package/src/test/contracts/ink/v0/flipper.contract.json +107 -0
  102. package/src/test/contracts/ink/v0/flipper.json +106 -0
  103. package/src/test/contracts/ink/v0/flipper.wasm +0 -0
  104. package/src/test/contracts/ink/v0/incrementer.json +108 -0
  105. package/src/test/contracts/ink/v0/incrementer.wasm +0 -0
  106. package/src/test/contracts/ink/v0/index.ts +11 -0
  107. package/src/test/contracts/ink/v0/multisig_plain.json +1466 -0
  108. package/src/test/contracts/ink/v0/multisig_plain.wasm +0 -0
  109. package/src/test/contracts/ink/v0/subber.wasm +0 -0
  110. package/src/test/contracts/ink/v0/trait-flipper.json +103 -0
  111. package/src/test/contracts/ink/v0/trait-flipper.wasm +0 -0
  112. package/src/test/contracts/ink/v1/flipper.contract.json +111 -0
  113. package/src/test/contracts/ink/v1/index.ts +6 -0
  114. package/src/test/contracts/ink/v1/psp22_minter_pauser.contract.json +1722 -0
  115. package/src/test/contracts/ink/v2/erc20.contract.json +630 -0
  116. package/src/test/contracts/ink/v2/flipper.contract.json +103 -0
  117. package/src/test/contracts/ink/v2/index.ts +5 -0
  118. package/src/test/contracts/ink/v3/flipper.contract.json +105 -0
  119. package/src/test/contracts/ink/v3/index.ts +6 -0
  120. package/src/test/contracts/ink/v3/trait_erc20.contract.json +631 -0
  121. package/src/test/contracts/ink/v4/erc20.contract.json +1 -0
  122. package/src/test/contracts/ink/v4/erc20.json +821 -0
  123. package/src/test/contracts/ink/v4/erc20.wasm +0 -0
  124. package/src/test/contracts/ink/v4/flipper.contract.json +1 -0
  125. package/src/test/contracts/ink/v4/flipper.json +396 -0
  126. package/src/test/contracts/ink/v4/flipper.wasm +0 -0
  127. package/src/test/contracts/ink/v4/index.ts +7 -0
  128. package/src/test/contracts/ink/v5/erc20.contract.json +1 -0
  129. package/src/test/contracts/ink/v5/erc20.json +1025 -0
  130. package/src/test/contracts/ink/v5/erc20.wasm +0 -0
  131. package/src/test/contracts/ink/v5/erc20_anonymous_transfer.json +1025 -0
  132. package/src/test/contracts/ink/v5/flipper.contract.json +1 -0
  133. package/src/test/contracts/ink/v5/flipper.json +420 -0
  134. package/src/test/contracts/ink/v5/flipper.wasm +0 -0
  135. package/src/test/contracts/ink/v5/index.ts +8 -0
  136. package/src/test/contracts/ink/v6/erc20.contract.json +1 -0
  137. package/src/test/contracts/ink/v6/erc20.json +1081 -0
  138. package/src/test/contracts/ink/v6/erc20.polkavm +0 -0
  139. package/src/test/contracts/ink/v6/index.ts +5 -0
  140. package/src/test/contracts/solang/index.ts +7 -0
  141. package/src/test/contracts/solang/v0/index.ts +4 -0
  142. package/src/test/contracts/solang/v0/ints256.json +113 -0
  143. package/src/test/contracts/solang/v0/ints256.sol +13 -0
  144. package/src/test/contracts/solang/v0/ints256.wasm +0 -0
  145. package/src/test/contracts/user/index.ts +9 -0
  146. package/src/test/contracts/user/v0/assetTransfer.json +299 -0
  147. package/src/test/contracts/user/v0/assetTransfer.wasm +0 -0
  148. package/src/test/contracts/user/v0/enumExample.json +528 -0
  149. package/src/test/contracts/user/v0/enumExample.wasm +0 -0
  150. package/src/test/contracts/user/v0/index.ts +7 -0
  151. package/src/test/contracts/user/v0/recursive.contract.json +1 -0
  152. package/src/test/contracts/user/v0/withString.json +777 -0
  153. package/src/test/contracts/user/v3/ask.json +550 -0
  154. package/src/test/contracts/user/v3/index.ts +4 -0
  155. package/src/test/contracts/user/v4/events.contract.json +2990 -0
  156. package/src/test/contracts/user/v4/index.ts +4 -0
  157. package/src/test/contracts/util.ts +14 -0
  158. package/src/types.ts +98 -0
  159. package/src/util.ts +20 -0
  160. package/tsconfig.build.json +22 -0
  161. package/tsconfig.build.tsbuildinfo +1 -0
  162. package/tsconfig.spec.json +26 -0
@@ -0,0 +1,531 @@
1
+ [
2
+ {
3
+ "info": "Plain",
4
+ "lookupIndex": 0,
5
+ "type": "u128",
6
+ "docs": [],
7
+ "namespace": ""
8
+ },
9
+ {
10
+ "info": "Struct",
11
+ "lookupIndex": 1,
12
+ "lookupName": "InkStorageCollectionsStashHeader",
13
+ "type": "{\"lastVacant\":\"u32\",\"len\":\"u32\",\"lenEntries\":\"u32\"}",
14
+ "docs": [],
15
+ "namespace": "ink_storage::collections::stash::Header",
16
+ "sub": [
17
+ {
18
+ "info": "Plain",
19
+ "lookupIndex": 2,
20
+ "type": "u32",
21
+ "docs": [],
22
+ "namespace": "",
23
+ "name": "lastVacant",
24
+ "typeName": "Index"
25
+ },
26
+ {
27
+ "info": "Plain",
28
+ "lookupIndex": 2,
29
+ "type": "u32",
30
+ "docs": [],
31
+ "namespace": "",
32
+ "name": "len",
33
+ "typeName": "u32"
34
+ },
35
+ {
36
+ "info": "Plain",
37
+ "lookupIndex": 2,
38
+ "type": "u32",
39
+ "docs": [],
40
+ "namespace": "",
41
+ "name": "lenEntries",
42
+ "typeName": "u32"
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "info": "Plain",
48
+ "lookupIndex": 2,
49
+ "type": "u32",
50
+ "docs": [],
51
+ "namespace": ""
52
+ },
53
+ {
54
+ "info": "Enum",
55
+ "lookupIndex": 3,
56
+ "type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"AccountId\"}}",
57
+ "docs": [],
58
+ "namespace": "ink_storage::collections::stash::Entry",
59
+ "sub": [
60
+ {
61
+ "docs": [],
62
+ "info": "Si",
63
+ "lookupIndex": 7,
64
+ "lookupName": "InkStorageCollectionsStashVacantEntry",
65
+ "type": "Lookup7",
66
+ "typeName": "VacantEntry",
67
+ "index": 0,
68
+ "name": "Vacant"
69
+ },
70
+ {
71
+ "info": "Plain",
72
+ "lookupIndex": 4,
73
+ "type": "AccountId",
74
+ "docs": [],
75
+ "namespace": "ink_env::types::AccountId",
76
+ "lookupNameRoot": "InkEnvAccountId",
77
+ "typeName": "T",
78
+ "index": 1,
79
+ "name": "Occupied"
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "info": "Plain",
85
+ "lookupIndex": 4,
86
+ "type": "AccountId",
87
+ "docs": [],
88
+ "namespace": "ink_env::types::AccountId",
89
+ "lookupNameRoot": "InkEnvAccountId"
90
+ },
91
+ {
92
+ "info": "VecFixed",
93
+ "lookupIndex": 5,
94
+ "type": "[u8;32]",
95
+ "docs": [],
96
+ "namespace": "",
97
+ "length": 32,
98
+ "sub": {
99
+ "info": "Plain",
100
+ "lookupIndex": 6,
101
+ "type": "u8",
102
+ "docs": [],
103
+ "namespace": ""
104
+ }
105
+ },
106
+ {
107
+ "info": "Plain",
108
+ "lookupIndex": 6,
109
+ "type": "u8",
110
+ "docs": [],
111
+ "namespace": ""
112
+ },
113
+ {
114
+ "info": "Struct",
115
+ "lookupIndex": 7,
116
+ "lookupName": "InkStorageCollectionsStashVacantEntry",
117
+ "type": "{\"next\":\"u32\",\"prev\":\"u32\"}",
118
+ "docs": [],
119
+ "namespace": "ink_storage::collections::stash::VacantEntry",
120
+ "sub": [
121
+ {
122
+ "info": "Plain",
123
+ "lookupIndex": 2,
124
+ "type": "u32",
125
+ "docs": [],
126
+ "namespace": "",
127
+ "name": "next",
128
+ "typeName": "Index"
129
+ },
130
+ {
131
+ "info": "Plain",
132
+ "lookupIndex": 2,
133
+ "type": "u32",
134
+ "docs": [],
135
+ "namespace": "",
136
+ "name": "prev",
137
+ "typeName": "Index"
138
+ }
139
+ ]
140
+ },
141
+ {
142
+ "info": "Struct",
143
+ "lookupIndex": 8,
144
+ "type": "{\"value\":\"u128\",\"keyIndex\":\"u32\"}",
145
+ "docs": [],
146
+ "namespace": "ink_storage::collections::hashmap::ValueEntry",
147
+ "sub": [
148
+ {
149
+ "info": "Plain",
150
+ "lookupIndex": 0,
151
+ "type": "u128",
152
+ "docs": [],
153
+ "namespace": "",
154
+ "name": "value",
155
+ "typeName": "V"
156
+ },
157
+ {
158
+ "info": "Plain",
159
+ "lookupIndex": 2,
160
+ "type": "u32",
161
+ "docs": [],
162
+ "namespace": "",
163
+ "name": "keyIndex",
164
+ "typeName": "KeyIndex"
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "info": "Enum",
170
+ "lookupIndex": 9,
171
+ "type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"(AccountId,AccountId)\"}}",
172
+ "docs": [],
173
+ "namespace": "ink_storage::collections::stash::Entry",
174
+ "sub": [
175
+ {
176
+ "docs": [],
177
+ "info": "Si",
178
+ "lookupIndex": 7,
179
+ "lookupName": "InkStorageCollectionsStashVacantEntry",
180
+ "type": "Lookup7",
181
+ "typeName": "VacantEntry",
182
+ "index": 0,
183
+ "name": "Vacant"
184
+ },
185
+ {
186
+ "info": "Tuple",
187
+ "lookupIndex": 10,
188
+ "type": "(AccountId,AccountId)",
189
+ "docs": [],
190
+ "namespace": "",
191
+ "sub": [
192
+ {
193
+ "info": "Plain",
194
+ "lookupIndex": 4,
195
+ "type": "AccountId",
196
+ "docs": [],
197
+ "namespace": "ink_env::types::AccountId",
198
+ "lookupNameRoot": "InkEnvAccountId"
199
+ },
200
+ {
201
+ "info": "Plain",
202
+ "lookupIndex": 4,
203
+ "type": "AccountId",
204
+ "docs": [],
205
+ "namespace": "ink_env::types::AccountId",
206
+ "lookupNameRoot": "InkEnvAccountId"
207
+ }
208
+ ],
209
+ "typeName": "T",
210
+ "index": 1,
211
+ "name": "Occupied"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ "info": "Tuple",
217
+ "lookupIndex": 10,
218
+ "type": "(AccountId,AccountId)",
219
+ "docs": [],
220
+ "namespace": "",
221
+ "sub": [
222
+ {
223
+ "info": "Plain",
224
+ "lookupIndex": 4,
225
+ "type": "AccountId",
226
+ "docs": [],
227
+ "namespace": "ink_env::types::AccountId",
228
+ "lookupNameRoot": "InkEnvAccountId"
229
+ },
230
+ {
231
+ "info": "Plain",
232
+ "lookupIndex": 4,
233
+ "type": "AccountId",
234
+ "docs": [],
235
+ "namespace": "ink_env::types::AccountId",
236
+ "lookupNameRoot": "InkEnvAccountId"
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ "info": "Plain",
242
+ "lookupIndex": 11,
243
+ "type": "Text",
244
+ "docs": [],
245
+ "namespace": ""
246
+ },
247
+ {
248
+ "info": "Plain",
249
+ "lookupIndex": 12,
250
+ "type": "bool",
251
+ "docs": [],
252
+ "namespace": ""
253
+ },
254
+ {
255
+ "info": "Enum",
256
+ "lookupIndex": 13,
257
+ "type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"u32\"}}",
258
+ "docs": [],
259
+ "namespace": "ink_storage::collections::stash::Entry",
260
+ "sub": [
261
+ {
262
+ "docs": [],
263
+ "info": "Si",
264
+ "lookupIndex": 7,
265
+ "lookupName": "InkStorageCollectionsStashVacantEntry",
266
+ "type": "Lookup7",
267
+ "typeName": "VacantEntry",
268
+ "index": 0,
269
+ "name": "Vacant"
270
+ },
271
+ {
272
+ "info": "Plain",
273
+ "lookupIndex": 2,
274
+ "type": "u32",
275
+ "docs": [],
276
+ "namespace": "",
277
+ "typeName": "T",
278
+ "index": 1,
279
+ "name": "Occupied"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "info": "Struct",
285
+ "lookupIndex": 14,
286
+ "type": "{\"value\":\"u32\",\"keyIndex\":\"u32\"}",
287
+ "docs": [],
288
+ "namespace": "ink_storage::collections::hashmap::ValueEntry",
289
+ "sub": [
290
+ {
291
+ "info": "Plain",
292
+ "lookupIndex": 2,
293
+ "type": "u32",
294
+ "docs": [],
295
+ "namespace": "",
296
+ "name": "value",
297
+ "typeName": "V"
298
+ },
299
+ {
300
+ "info": "Plain",
301
+ "lookupIndex": 2,
302
+ "type": "u32",
303
+ "docs": [],
304
+ "namespace": "",
305
+ "name": "keyIndex",
306
+ "typeName": "KeyIndex"
307
+ }
308
+ ]
309
+ },
310
+ {
311
+ "info": "Enum",
312
+ "lookupIndex": 15,
313
+ "lookupName": "InkStorageCollectionsStashEntry",
314
+ "type": "{\"_enum\":{\"Vacant\":\"InkStorageCollectionsStashVacantEntry\",\"Occupied\":\"(u32,AccountId)\"}}",
315
+ "docs": [],
316
+ "namespace": "ink_storage::collections::stash::Entry",
317
+ "sub": [
318
+ {
319
+ "docs": [],
320
+ "info": "Si",
321
+ "lookupIndex": 7,
322
+ "lookupName": "InkStorageCollectionsStashVacantEntry",
323
+ "type": "Lookup7",
324
+ "typeName": "VacantEntry",
325
+ "index": 0,
326
+ "name": "Vacant"
327
+ },
328
+ {
329
+ "info": "Tuple",
330
+ "lookupIndex": 16,
331
+ "type": "(u32,AccountId)",
332
+ "docs": [],
333
+ "namespace": "",
334
+ "sub": [
335
+ {
336
+ "info": "Plain",
337
+ "lookupIndex": 2,
338
+ "type": "u32",
339
+ "docs": [],
340
+ "namespace": ""
341
+ },
342
+ {
343
+ "info": "Plain",
344
+ "lookupIndex": 4,
345
+ "type": "AccountId",
346
+ "docs": [],
347
+ "namespace": "ink_env::types::AccountId",
348
+ "lookupNameRoot": "InkEnvAccountId"
349
+ }
350
+ ],
351
+ "typeName": "T",
352
+ "index": 1,
353
+ "name": "Occupied"
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "info": "Tuple",
359
+ "lookupIndex": 16,
360
+ "type": "(u32,AccountId)",
361
+ "docs": [],
362
+ "namespace": "",
363
+ "sub": [
364
+ {
365
+ "info": "Plain",
366
+ "lookupIndex": 2,
367
+ "type": "u32",
368
+ "docs": [],
369
+ "namespace": ""
370
+ },
371
+ {
372
+ "info": "Plain",
373
+ "lookupIndex": 4,
374
+ "type": "AccountId",
375
+ "docs": [],
376
+ "namespace": "ink_env::types::AccountId",
377
+ "lookupNameRoot": "InkEnvAccountId"
378
+ }
379
+ ]
380
+ },
381
+ {
382
+ "info": "Struct",
383
+ "lookupIndex": 17,
384
+ "lookupName": "InkStorageCollectionsHashmapValueEntry",
385
+ "type": "{\"value\":\"Null\",\"keyIndex\":\"u32\"}",
386
+ "docs": [],
387
+ "namespace": "ink_storage::collections::hashmap::ValueEntry",
388
+ "sub": [
389
+ {
390
+ "info": "Null",
391
+ "lookupIndex": 18,
392
+ "type": "Null",
393
+ "docs": [],
394
+ "namespace": "",
395
+ "name": "value",
396
+ "typeName": "V"
397
+ },
398
+ {
399
+ "info": "Plain",
400
+ "lookupIndex": 2,
401
+ "type": "u32",
402
+ "docs": [],
403
+ "namespace": "",
404
+ "name": "keyIndex",
405
+ "typeName": "KeyIndex"
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "info": "Null",
411
+ "lookupIndex": 18,
412
+ "type": "Null",
413
+ "docs": [],
414
+ "namespace": ""
415
+ },
416
+ {
417
+ "info": "Option",
418
+ "lookupIndex": 19,
419
+ "type": "Option<Text>",
420
+ "docs": [],
421
+ "namespace": "Option",
422
+ "sub": {
423
+ "info": "Plain",
424
+ "lookupIndex": 11,
425
+ "type": "Text",
426
+ "docs": [],
427
+ "namespace": ""
428
+ }
429
+ },
430
+ {
431
+ "info": "Result",
432
+ "lookupIndex": 20,
433
+ "type": "Result<Null, ContractsErrorsPsp22Psp22Error>",
434
+ "docs": [],
435
+ "namespace": "Result",
436
+ "sub": [
437
+ {
438
+ "name": "Ok",
439
+ "info": "Null",
440
+ "lookupIndex": 18,
441
+ "type": "Null",
442
+ "docs": [],
443
+ "namespace": ""
444
+ },
445
+ {
446
+ "name": "Error",
447
+ "docs": [],
448
+ "info": "Si",
449
+ "lookupIndex": 21,
450
+ "lookupName": "ContractsErrorsPsp22Psp22Error",
451
+ "type": "Lookup21"
452
+ }
453
+ ]
454
+ },
455
+ {
456
+ "info": "Enum",
457
+ "lookupIndex": 21,
458
+ "lookupName": "ContractsErrorsPsp22Psp22Error",
459
+ "type": "{\"_enum\":{\"Custom\":\"Text\",\"InsufficientBalance\":\"Null\",\"InsufficientAllowance\":\"Null\",\"ZeroRecipientAddress\":\"Null\",\"ZeroSenderAddress\":\"Null\",\"SafeTransferCheckFailed\":\"Text\"}}",
460
+ "docs": [],
461
+ "namespace": "contracts::traits::errors::psp22::PSP22Error",
462
+ "sub": [
463
+ {
464
+ "info": "Plain",
465
+ "lookupIndex": 11,
466
+ "type": "Text",
467
+ "docs": [],
468
+ "namespace": "",
469
+ "typeName": "Text",
470
+ "index": 0,
471
+ "name": "Custom"
472
+ },
473
+ {
474
+ "info": "Null",
475
+ "type": "Null",
476
+ "index": 1,
477
+ "name": "InsufficientBalance"
478
+ },
479
+ {
480
+ "info": "Null",
481
+ "type": "Null",
482
+ "index": 2,
483
+ "name": "InsufficientAllowance"
484
+ },
485
+ {
486
+ "info": "Null",
487
+ "type": "Null",
488
+ "index": 3,
489
+ "name": "ZeroRecipientAddress"
490
+ },
491
+ {
492
+ "info": "Null",
493
+ "type": "Null",
494
+ "index": 4,
495
+ "name": "ZeroSenderAddress"
496
+ },
497
+ {
498
+ "info": "Plain",
499
+ "lookupIndex": 11,
500
+ "type": "Text",
501
+ "docs": [],
502
+ "namespace": "",
503
+ "typeName": "Text",
504
+ "index": 5,
505
+ "name": "SafeTransferCheckFailed"
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "info": "Plain",
511
+ "lookupIndex": 22,
512
+ "type": "Bytes",
513
+ "docs": [],
514
+ "namespace": ""
515
+ },
516
+ {
517
+ "info": "Option",
518
+ "lookupIndex": 23,
519
+ "type": "Option<AccountId>",
520
+ "docs": [],
521
+ "namespace": "Option",
522
+ "sub": {
523
+ "info": "Plain",
524
+ "lookupIndex": 4,
525
+ "type": "AccountId",
526
+ "docs": [],
527
+ "namespace": "ink_env::types::AccountId",
528
+ "lookupNameRoot": "InkEnvAccountId"
529
+ }
530
+ }
531
+ ]