@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,253 @@
1
+ [
2
+ {
3
+ "info": "Plain",
4
+ "lookupIndex": 0,
5
+ "type": "u128",
6
+ "docs": [],
7
+ "namespace": ""
8
+ },
9
+ {
10
+ "info": "Result",
11
+ "lookupIndex": 1,
12
+ "type": "Result<Null, InkPrimitivesLangError>",
13
+ "docs": [],
14
+ "namespace": "Result",
15
+ "sub": [
16
+ {
17
+ "name": "Ok",
18
+ "info": "Null",
19
+ "lookupIndex": 2,
20
+ "type": "Null",
21
+ "docs": [],
22
+ "namespace": ""
23
+ },
24
+ {
25
+ "name": "Error",
26
+ "docs": [],
27
+ "info": "Si",
28
+ "lookupIndex": 3,
29
+ "lookupName": "InkPrimitivesLangError",
30
+ "type": "Lookup3"
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ "info": "Null",
36
+ "lookupIndex": 2,
37
+ "type": "Null",
38
+ "docs": [],
39
+ "namespace": ""
40
+ },
41
+ {
42
+ "info": "Enum",
43
+ "lookupIndex": 3,
44
+ "lookupName": "InkPrimitivesLangError",
45
+ "type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
46
+ "docs": [],
47
+ "namespace": "ink_primitives::LangError",
48
+ "sub": [
49
+ {
50
+ "index": 0,
51
+ "info": "Null",
52
+ "name": "__Unused0",
53
+ "type": "Null"
54
+ },
55
+ {
56
+ "info": "Null",
57
+ "type": "Null",
58
+ "index": 1,
59
+ "name": "CouldNotReadInput"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "info": "Result",
65
+ "lookupIndex": 4,
66
+ "type": "Result<u128, InkPrimitivesLangError>",
67
+ "docs": [],
68
+ "namespace": "Result",
69
+ "sub": [
70
+ {
71
+ "name": "Ok",
72
+ "info": "Plain",
73
+ "lookupIndex": 0,
74
+ "type": "u128",
75
+ "docs": [],
76
+ "namespace": ""
77
+ },
78
+ {
79
+ "name": "Error",
80
+ "docs": [],
81
+ "info": "Si",
82
+ "lookupIndex": 3,
83
+ "lookupName": "InkPrimitivesLangError",
84
+ "type": "Lookup3"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "info": "Plain",
90
+ "lookupIndex": 5,
91
+ "type": "AccountId",
92
+ "docs": [],
93
+ "namespace": "ink_primitives::types::AccountId",
94
+ "lookupNameRoot": "InkPrimitivesAccountId"
95
+ },
96
+ {
97
+ "info": "VecFixed",
98
+ "lookupIndex": 6,
99
+ "type": "[u8;32]",
100
+ "docs": [],
101
+ "namespace": "",
102
+ "length": 32,
103
+ "sub": {
104
+ "info": "Plain",
105
+ "lookupIndex": 7,
106
+ "type": "u8",
107
+ "docs": [],
108
+ "namespace": ""
109
+ }
110
+ },
111
+ {
112
+ "info": "Plain",
113
+ "lookupIndex": 7,
114
+ "type": "u8",
115
+ "docs": [],
116
+ "namespace": ""
117
+ },
118
+ {
119
+ "info": "Result",
120
+ "lookupIndex": 8,
121
+ "type": "Result<Result<Null, Erc20Error>, InkPrimitivesLangError>",
122
+ "docs": [],
123
+ "namespace": "Result",
124
+ "sub": [
125
+ {
126
+ "name": "Ok",
127
+ "info": "Result",
128
+ "lookupIndex": 9,
129
+ "type": "Result<Null, Erc20Error>",
130
+ "docs": [],
131
+ "namespace": "Result",
132
+ "sub": [
133
+ {
134
+ "name": "Ok",
135
+ "info": "Null",
136
+ "lookupIndex": 2,
137
+ "type": "Null",
138
+ "docs": [],
139
+ "namespace": ""
140
+ },
141
+ {
142
+ "name": "Error",
143
+ "docs": [],
144
+ "info": "Si",
145
+ "lookupIndex": 10,
146
+ "lookupName": "Erc20Error",
147
+ "type": "Lookup10"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "name": "Error",
153
+ "docs": [],
154
+ "info": "Si",
155
+ "lookupIndex": 3,
156
+ "lookupName": "InkPrimitivesLangError",
157
+ "type": "Lookup3"
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "info": "Result",
163
+ "lookupIndex": 9,
164
+ "type": "Result<Null, Erc20Error>",
165
+ "docs": [],
166
+ "namespace": "Result",
167
+ "sub": [
168
+ {
169
+ "name": "Ok",
170
+ "info": "Null",
171
+ "lookupIndex": 2,
172
+ "type": "Null",
173
+ "docs": [],
174
+ "namespace": ""
175
+ },
176
+ {
177
+ "name": "Error",
178
+ "docs": [],
179
+ "info": "Si",
180
+ "lookupIndex": 10,
181
+ "lookupName": "Erc20Error",
182
+ "type": "Lookup10"
183
+ }
184
+ ]
185
+ },
186
+ {
187
+ "info": "Enum",
188
+ "lookupIndex": 10,
189
+ "lookupName": "Erc20Error",
190
+ "type": "{\"_enum\":[\"InsufficientBalance\",\"InsufficientAllowance\"]}",
191
+ "docs": [],
192
+ "namespace": "erc20::erc20::Error",
193
+ "sub": [
194
+ {
195
+ "info": "Null",
196
+ "type": "Null",
197
+ "index": 0,
198
+ "name": "InsufficientBalance"
199
+ },
200
+ {
201
+ "info": "Null",
202
+ "type": "Null",
203
+ "index": 1,
204
+ "name": "InsufficientAllowance"
205
+ }
206
+ ]
207
+ },
208
+ {
209
+ "info": "Option",
210
+ "lookupIndex": 11,
211
+ "type": "Option<AccountId>",
212
+ "docs": [],
213
+ "namespace": "Option",
214
+ "sub": {
215
+ "info": "Plain",
216
+ "lookupIndex": 5,
217
+ "type": "AccountId",
218
+ "docs": [],
219
+ "namespace": "ink_primitives::types::AccountId",
220
+ "lookupNameRoot": "InkPrimitivesAccountId"
221
+ }
222
+ },
223
+ {
224
+ "info": "Plain",
225
+ "lookupIndex": 12,
226
+ "type": "Hash",
227
+ "docs": [],
228
+ "namespace": "ink_primitives::types::Hash",
229
+ "lookupNameRoot": "InkPrimitivesHash"
230
+ },
231
+ {
232
+ "info": "Plain",
233
+ "lookupIndex": 13,
234
+ "type": "u64",
235
+ "docs": [],
236
+ "namespace": ""
237
+ },
238
+ {
239
+ "info": "Plain",
240
+ "lookupIndex": 14,
241
+ "type": "u32",
242
+ "docs": [],
243
+ "namespace": ""
244
+ },
245
+ {
246
+ "info": "Plain",
247
+ "lookupIndex": 15,
248
+ "type": "NoChainExtension",
249
+ "docs": [],
250
+ "namespace": "ink_env::types::NoChainExtension",
251
+ "lookupNameRoot": "InkEnvNoChainExtension"
252
+ }
253
+ ]
@@ -0,0 +1,155 @@
1
+ [
2
+ {
3
+ "info": "Plain",
4
+ "lookupIndex": 0,
5
+ "type": "bool",
6
+ "docs": [],
7
+ "namespace": ""
8
+ },
9
+ {
10
+ "info": "Result",
11
+ "lookupIndex": 1,
12
+ "type": "Result<Null, InkPrimitivesLangError>",
13
+ "docs": [],
14
+ "namespace": "Result",
15
+ "sub": [
16
+ {
17
+ "name": "Ok",
18
+ "info": "Null",
19
+ "lookupIndex": 2,
20
+ "type": "Null",
21
+ "docs": [],
22
+ "namespace": ""
23
+ },
24
+ {
25
+ "name": "Error",
26
+ "docs": [],
27
+ "info": "Si",
28
+ "lookupIndex": 3,
29
+ "lookupName": "InkPrimitivesLangError",
30
+ "type": "Lookup3"
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ "info": "Null",
36
+ "lookupIndex": 2,
37
+ "type": "Null",
38
+ "docs": [],
39
+ "namespace": ""
40
+ },
41
+ {
42
+ "info": "Enum",
43
+ "lookupIndex": 3,
44
+ "lookupName": "InkPrimitivesLangError",
45
+ "type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
46
+ "docs": [],
47
+ "namespace": "ink_primitives::LangError",
48
+ "sub": [
49
+ {
50
+ "index": 0,
51
+ "info": "Null",
52
+ "name": "__Unused0",
53
+ "type": "Null"
54
+ },
55
+ {
56
+ "info": "Null",
57
+ "type": "Null",
58
+ "index": 1,
59
+ "name": "CouldNotReadInput"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "info": "Result",
65
+ "lookupIndex": 4,
66
+ "type": "Result<bool, InkPrimitivesLangError>",
67
+ "docs": [],
68
+ "namespace": "Result",
69
+ "sub": [
70
+ {
71
+ "name": "Ok",
72
+ "info": "Plain",
73
+ "lookupIndex": 0,
74
+ "type": "bool",
75
+ "docs": [],
76
+ "namespace": ""
77
+ },
78
+ {
79
+ "name": "Error",
80
+ "docs": [],
81
+ "info": "Si",
82
+ "lookupIndex": 3,
83
+ "lookupName": "InkPrimitivesLangError",
84
+ "type": "Lookup3"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "info": "Plain",
90
+ "lookupIndex": 5,
91
+ "type": "AccountId",
92
+ "docs": [],
93
+ "namespace": "ink_primitives::types::AccountId",
94
+ "lookupNameRoot": "InkPrimitivesAccountId"
95
+ },
96
+ {
97
+ "info": "VecFixed",
98
+ "lookupIndex": 6,
99
+ "type": "[u8;32]",
100
+ "docs": [],
101
+ "namespace": "",
102
+ "length": 32,
103
+ "sub": {
104
+ "info": "Plain",
105
+ "lookupIndex": 7,
106
+ "type": "u8",
107
+ "docs": [],
108
+ "namespace": ""
109
+ }
110
+ },
111
+ {
112
+ "info": "Plain",
113
+ "lookupIndex": 7,
114
+ "type": "u8",
115
+ "docs": [],
116
+ "namespace": ""
117
+ },
118
+ {
119
+ "info": "Plain",
120
+ "lookupIndex": 8,
121
+ "type": "u128",
122
+ "docs": [],
123
+ "namespace": ""
124
+ },
125
+ {
126
+ "info": "Plain",
127
+ "lookupIndex": 9,
128
+ "type": "Hash",
129
+ "docs": [],
130
+ "namespace": "ink_primitives::types::Hash",
131
+ "lookupNameRoot": "InkPrimitivesHash"
132
+ },
133
+ {
134
+ "info": "Plain",
135
+ "lookupIndex": 10,
136
+ "type": "u64",
137
+ "docs": [],
138
+ "namespace": ""
139
+ },
140
+ {
141
+ "info": "Plain",
142
+ "lookupIndex": 11,
143
+ "type": "u32",
144
+ "docs": [],
145
+ "namespace": ""
146
+ },
147
+ {
148
+ "info": "Plain",
149
+ "lookupIndex": 12,
150
+ "type": "NoChainExtension",
151
+ "docs": [],
152
+ "namespace": "ink_env::types::NoChainExtension",
153
+ "lookupNameRoot": "InkEnvNoChainExtension"
154
+ }
155
+ ]
@@ -0,0 +1,155 @@
1
+ [
2
+ {
3
+ "info": "Plain",
4
+ "lookupIndex": 0,
5
+ "type": "bool",
6
+ "docs": [],
7
+ "namespace": ""
8
+ },
9
+ {
10
+ "info": "Result",
11
+ "lookupIndex": 1,
12
+ "type": "Result<Null, InkPrimitivesLangError>",
13
+ "docs": [],
14
+ "namespace": "Result",
15
+ "sub": [
16
+ {
17
+ "name": "Ok",
18
+ "info": "Null",
19
+ "lookupIndex": 2,
20
+ "type": "Null",
21
+ "docs": [],
22
+ "namespace": ""
23
+ },
24
+ {
25
+ "name": "Error",
26
+ "docs": [],
27
+ "info": "Si",
28
+ "lookupIndex": 3,
29
+ "lookupName": "InkPrimitivesLangError",
30
+ "type": "Lookup3"
31
+ }
32
+ ]
33
+ },
34
+ {
35
+ "info": "Null",
36
+ "lookupIndex": 2,
37
+ "type": "Null",
38
+ "docs": [],
39
+ "namespace": ""
40
+ },
41
+ {
42
+ "info": "Enum",
43
+ "lookupIndex": 3,
44
+ "lookupName": "InkPrimitivesLangError",
45
+ "type": "{\"_enum\":[\"__Unused0\",\"CouldNotReadInput\"]}",
46
+ "docs": [],
47
+ "namespace": "ink_primitives::LangError",
48
+ "sub": [
49
+ {
50
+ "index": 0,
51
+ "info": "Null",
52
+ "name": "__Unused0",
53
+ "type": "Null"
54
+ },
55
+ {
56
+ "info": "Null",
57
+ "type": "Null",
58
+ "index": 1,
59
+ "name": "CouldNotReadInput"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "info": "Result",
65
+ "lookupIndex": 4,
66
+ "type": "Result<bool, InkPrimitivesLangError>",
67
+ "docs": [],
68
+ "namespace": "Result",
69
+ "sub": [
70
+ {
71
+ "name": "Ok",
72
+ "info": "Plain",
73
+ "lookupIndex": 0,
74
+ "type": "bool",
75
+ "docs": [],
76
+ "namespace": ""
77
+ },
78
+ {
79
+ "name": "Error",
80
+ "docs": [],
81
+ "info": "Si",
82
+ "lookupIndex": 3,
83
+ "lookupName": "InkPrimitivesLangError",
84
+ "type": "Lookup3"
85
+ }
86
+ ]
87
+ },
88
+ {
89
+ "info": "Plain",
90
+ "lookupIndex": 5,
91
+ "type": "AccountId",
92
+ "docs": [],
93
+ "namespace": "ink_primitives::types::AccountId",
94
+ "lookupNameRoot": "InkPrimitivesAccountId"
95
+ },
96
+ {
97
+ "info": "VecFixed",
98
+ "lookupIndex": 6,
99
+ "type": "[u8;32]",
100
+ "docs": [],
101
+ "namespace": "",
102
+ "length": 32,
103
+ "sub": {
104
+ "info": "Plain",
105
+ "lookupIndex": 7,
106
+ "type": "u8",
107
+ "docs": [],
108
+ "namespace": ""
109
+ }
110
+ },
111
+ {
112
+ "info": "Plain",
113
+ "lookupIndex": 7,
114
+ "type": "u8",
115
+ "docs": [],
116
+ "namespace": ""
117
+ },
118
+ {
119
+ "info": "Plain",
120
+ "lookupIndex": 8,
121
+ "type": "u128",
122
+ "docs": [],
123
+ "namespace": ""
124
+ },
125
+ {
126
+ "info": "Plain",
127
+ "lookupIndex": 9,
128
+ "type": "Hash",
129
+ "docs": [],
130
+ "namespace": "ink_primitives::types::Hash",
131
+ "lookupNameRoot": "InkPrimitivesHash"
132
+ },
133
+ {
134
+ "info": "Plain",
135
+ "lookupIndex": 10,
136
+ "type": "u64",
137
+ "docs": [],
138
+ "namespace": ""
139
+ },
140
+ {
141
+ "info": "Plain",
142
+ "lookupIndex": 11,
143
+ "type": "u32",
144
+ "docs": [],
145
+ "namespace": ""
146
+ },
147
+ {
148
+ "info": "Plain",
149
+ "lookupIndex": 12,
150
+ "type": "NoChainExtension",
151
+ "docs": [],
152
+ "namespace": "ink_env::types::NoChainExtension",
153
+ "lookupNameRoot": "InkEnvNoChainExtension"
154
+ }
155
+ ]