quantumcoin 7.0.3 → 7.0.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.
- package/.github/workflows/publish-npmjs.yaml +22 -22
- package/.gitignore +15 -15
- package/LICENSE +21 -21
- package/README-SDK.md +758 -754
- package/README.md +165 -150
- package/SPEC.md +3845 -3843
- package/config.d.ts +50 -50
- package/config.js +115 -115
- package/examples/AllSolidityTypes.sol +184 -184
- package/examples/SimpleIERC20.sol +74 -74
- package/examples/events.js +41 -35
- package/examples/events.ts +35 -0
- package/examples/example-generator-sdk-js.js +100 -95
- package/examples/example-generator-sdk-js.ts +77 -0
- package/examples/example-generator-sdk-ts.js +100 -95
- package/examples/example-generator-sdk-ts.ts +77 -0
- package/examples/example.js +72 -61
- package/examples/example.ts +61 -0
- package/examples/offline-signing.js +79 -73
- package/examples/offline-signing.ts +66 -0
- package/examples/package-lock.json +596 -57
- package/examples/package.json +32 -16
- package/examples/read-operations.js +32 -27
- package/examples/read-operations.ts +31 -0
- package/examples/sdk-generator-erc20.inline.json +251 -251
- package/examples/solidity-types.ts +43 -43
- package/examples/wallet-offline.js +35 -29
- package/examples/wallet-offline.ts +34 -0
- package/generate-sdk.js +1824 -1490
- package/index.js +12 -12
- package/package.json +95 -75
- package/scripts/copy-declarations.js +31 -0
- package/scripts/run-all-one-by-one.js +151 -0
- package/src/abi/fragments.d.ts +42 -42
- package/src/abi/fragments.js +63 -63
- package/src/abi/index.d.ts +13 -13
- package/src/abi/index.js +9 -9
- package/src/abi/interface.d.ts +128 -132
- package/src/abi/interface.js +590 -590
- package/src/abi/js-abi-coder.d.ts +8 -0
- package/src/abi/js-abi-coder.js +474 -474
- package/src/constants.d.ts +66 -61
- package/src/constants.js +101 -94
- package/src/contract/contract-factory.d.ts +28 -28
- package/src/contract/contract-factory.js +105 -105
- package/src/contract/contract.d.ts +113 -114
- package/src/contract/contract.js +354 -354
- package/src/contract/index.d.ts +9 -9
- package/src/contract/index.js +9 -9
- package/src/errors/index.d.ts +92 -92
- package/src/errors/index.js +188 -188
- package/src/generator/index.d.ts +74 -0
- package/src/generator/index.js +1404 -1404
- package/src/index.d.ts +125 -127
- package/src/index.js +41 -41
- package/src/internal/hex.d.ts +61 -61
- package/src/internal/hex.js +144 -144
- package/src/providers/extra-providers.d.ts +139 -128
- package/src/providers/extra-providers.js +600 -575
- package/src/providers/index.d.ts +17 -16
- package/src/providers/index.js +10 -10
- package/src/providers/json-rpc-provider.d.ts +12 -12
- package/src/providers/json-rpc-provider.js +79 -79
- package/src/providers/provider.d.ts +208 -203
- package/src/providers/provider.js +393 -371
- package/src/types/index.d.ts +214 -462
- package/src/types/index.js +9 -9
- package/src/utils/address.d.ts +72 -72
- package/src/utils/address.js +181 -182
- package/src/utils/encoding.d.ts +120 -120
- package/src/utils/encoding.js +306 -306
- package/src/utils/hashing.d.ts +82 -76
- package/src/utils/hashing.js +313 -298
- package/src/utils/index.d.ts +65 -55
- package/src/utils/index.js +13 -13
- package/src/utils/result.d.ts +57 -57
- package/src/utils/result.js +128 -128
- package/src/utils/rlp.d.ts +12 -12
- package/src/utils/rlp.js +200 -200
- package/src/utils/units.d.ts +29 -29
- package/src/utils/units.js +107 -107
- package/src/wallet/index.d.ts +10 -10
- package/src/wallet/index.js +8 -8
- package/src/wallet/wallet.d.ts +168 -160
- package/src/wallet/wallet.js +500 -489
- package/test/e2e/all-solidity-types.dynamic.test.js +207 -200
- package/test/e2e/all-solidity-types.dynamic.test.ts +191 -0
- package/test/e2e/all-solidity-types.fixtures.js +231 -231
- package/test/e2e/all-solidity-types.generated-sdks.e2e.test.js +387 -368
- package/test/e2e/all-solidity-types.generated-sdks.e2e.test.ts +350 -0
- package/test/e2e/helpers.js +59 -47
- package/test/e2e/signing-context-and-fee.e2e.test.js +141 -0
- package/test/e2e/signing-context-and-fee.e2e.test.ts +128 -0
- package/test/e2e/simple-erc20.generated-sdks.e2e.test.js +168 -151
- package/test/e2e/simple-erc20.generated-sdks.e2e.test.ts +141 -0
- package/test/e2e/transactional.test.js +245 -191
- package/test/e2e/transactional.test.ts +208 -0
- package/test/e2e/typed-generator.e2e.test.js +407 -404
- package/test/e2e/typed-generator.e2e.test.ts +337 -0
- package/test/fixtures/ConstructorParam.sol +23 -23
- package/test/fixtures/MultiContracts.sol +37 -37
- package/test/fixtures/SimpleStorage.sol +18 -18
- package/test/fixtures/StakingContract.abi.json +1 -1
- package/test/integration/ipc-provider.test.js +49 -44
- package/test/integration/ipc-provider.test.ts +44 -0
- package/test/integration/provider.test.js +88 -72
- package/test/integration/provider.test.ts +85 -0
- package/test/integration/ws-provider.test.js +41 -33
- package/test/integration/ws-provider.test.ts +38 -0
- package/test/security/malformed-input.test.js +37 -31
- package/test/security/malformed-input.test.ts +35 -0
- package/test/unit/_encrypted-output.txt +6 -0
- package/test/unit/_log-encrypted-jsons.js +45 -0
- package/test/unit/_write-keystore-fixture.js +16 -0
- package/test/unit/abi-interface.test.js +103 -98
- package/test/unit/abi-interface.test.ts +102 -0
- package/test/unit/address-wallet.test.js +392 -257
- package/test/unit/address-wallet.test.ts +379 -0
- package/test/unit/browser-provider.test.js +85 -82
- package/test/unit/browser-provider.test.ts +79 -0
- package/test/unit/contract.test.js +85 -82
- package/test/unit/contract.test.ts +83 -0
- package/test/unit/encoding-units-rlp.test.js +92 -89
- package/test/unit/encoding-units-rlp.test.ts +91 -0
- package/test/unit/errors.test.js +77 -74
- package/test/unit/errors.test.ts +76 -0
- package/test/unit/filter-by-blockhash.test.js +55 -52
- package/test/unit/filter-by-blockhash.test.ts +54 -0
- package/test/unit/fixtures/encrypted-keystores-48-32-36.js +9 -0
- package/test/unit/generate-contract-cli.test.js +42 -39
- package/test/unit/generate-contract-cli.test.ts +41 -0
- package/test/unit/generate-sdk-artifacts-json.test.js +113 -110
- package/test/unit/generate-sdk-artifacts-json.test.ts +110 -0
- package/test/unit/generator.test.js +102 -99
- package/test/unit/generator.test.ts +101 -0
- package/test/unit/hashing.test.js +68 -54
- package/test/unit/hashing.test.ts +67 -0
- package/test/unit/init.test.js +39 -36
- package/test/unit/init.test.ts +38 -0
- package/test/unit/interface.test.js +56 -53
- package/test/unit/interface.test.ts +54 -0
- package/test/unit/internal-hex.test.js +50 -47
- package/test/unit/internal-hex.test.ts +49 -0
- package/test/unit/populate-transaction.test.js +65 -62
- package/test/unit/populate-transaction.test.ts +64 -0
- package/test/unit/providers.test.js +200 -144
- package/test/unit/providers.test.ts +196 -0
- package/test/unit/result.test.js +80 -77
- package/test/unit/result.test.ts +79 -0
- package/test/unit/solidity-types.test.js +49 -46
- package/test/unit/solidity-types.test.ts +39 -0
- package/test/unit/utils.test.js +57 -54
- package/test/unit/utils.test.ts +56 -0
- package/test/verbose-logger.js +74 -0
- package/tsconfig.build.json +14 -0
package/src/types/index.d.ts
CHANGED
|
@@ -1,462 +1,214 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export type
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export type
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
export type
|
|
51
|
-
export type
|
|
52
|
-
export type
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
export type
|
|
56
|
-
export type
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
export type
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export type
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
export type
|
|
66
|
-
export type
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export type
|
|
70
|
-
export type
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export type
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
export type
|
|
85
|
-
export type
|
|
86
|
-
export type
|
|
87
|
-
export type
|
|
88
|
-
export type
|
|
89
|
-
export type
|
|
90
|
-
export type
|
|
91
|
-
export type
|
|
92
|
-
export type
|
|
93
|
-
export type
|
|
94
|
-
export type
|
|
95
|
-
export type
|
|
96
|
-
export type
|
|
97
|
-
export type
|
|
98
|
-
export type
|
|
99
|
-
export type
|
|
100
|
-
export type
|
|
101
|
-
export type
|
|
102
|
-
export type
|
|
103
|
-
export type
|
|
104
|
-
export type
|
|
105
|
-
export type
|
|
106
|
-
export type
|
|
107
|
-
export type
|
|
108
|
-
export type
|
|
109
|
-
export type
|
|
110
|
-
export type
|
|
111
|
-
export type
|
|
112
|
-
export type
|
|
113
|
-
export type
|
|
114
|
-
export type
|
|
115
|
-
export type
|
|
116
|
-
|
|
117
|
-
export type
|
|
118
|
-
export type
|
|
119
|
-
export type
|
|
120
|
-
export type
|
|
121
|
-
export type
|
|
122
|
-
export type
|
|
123
|
-
export type
|
|
124
|
-
export type
|
|
125
|
-
export type
|
|
126
|
-
export type
|
|
127
|
-
export type
|
|
128
|
-
export type
|
|
129
|
-
export type
|
|
130
|
-
export type
|
|
131
|
-
export type
|
|
132
|
-
export type
|
|
133
|
-
export type
|
|
134
|
-
export type
|
|
135
|
-
export type
|
|
136
|
-
export type
|
|
137
|
-
export type
|
|
138
|
-
export type
|
|
139
|
-
export type
|
|
140
|
-
export type
|
|
141
|
-
export type
|
|
142
|
-
export type
|
|
143
|
-
|
|
144
|
-
export type
|
|
145
|
-
export type
|
|
146
|
-
export type
|
|
147
|
-
export type
|
|
148
|
-
export type
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
export type
|
|
157
|
-
export type
|
|
158
|
-
export type
|
|
159
|
-
export type
|
|
160
|
-
export type
|
|
161
|
-
export type
|
|
162
|
-
export type
|
|
163
|
-
export type
|
|
164
|
-
export type
|
|
165
|
-
export type
|
|
166
|
-
export type
|
|
167
|
-
export type Int96Like =
|
|
168
|
-
export type
|
|
169
|
-
export type
|
|
170
|
-
export type
|
|
171
|
-
export type
|
|
172
|
-
export type
|
|
173
|
-
export type
|
|
174
|
-
export type
|
|
175
|
-
export type
|
|
176
|
-
export type
|
|
177
|
-
export type
|
|
178
|
-
export type
|
|
179
|
-
export type
|
|
180
|
-
export type
|
|
181
|
-
export type
|
|
182
|
-
export type
|
|
183
|
-
export type
|
|
184
|
-
export type
|
|
185
|
-
export type
|
|
186
|
-
export type
|
|
187
|
-
export type
|
|
188
|
-
|
|
189
|
-
export type
|
|
190
|
-
export type
|
|
191
|
-
export type
|
|
192
|
-
export type
|
|
193
|
-
export type
|
|
194
|
-
export type
|
|
195
|
-
export type
|
|
196
|
-
export type
|
|
197
|
-
export type
|
|
198
|
-
export type
|
|
199
|
-
export type
|
|
200
|
-
export type
|
|
201
|
-
export type
|
|
202
|
-
export type
|
|
203
|
-
export type
|
|
204
|
-
export type
|
|
205
|
-
export type
|
|
206
|
-
export type
|
|
207
|
-
export type
|
|
208
|
-
|
|
209
|
-
export type
|
|
210
|
-
export type
|
|
211
|
-
|
|
212
|
-
export type
|
|
213
|
-
export type
|
|
214
|
-
export type
|
|
215
|
-
export type Uint216Like = BigNumberish;
|
|
216
|
-
export type Uint224Like = BigNumberish;
|
|
217
|
-
export type Uint232Like = BigNumberish;
|
|
218
|
-
export type Uint240Like = BigNumberish;
|
|
219
|
-
export type Uint248Like = BigNumberish;
|
|
220
|
-
export type Uint256Like = BigNumberish;
|
|
221
|
-
|
|
222
|
-
export type Int8 = bigint;
|
|
223
|
-
export type Int16 = bigint;
|
|
224
|
-
export type Int24 = bigint;
|
|
225
|
-
export type Int32 = bigint;
|
|
226
|
-
export type Int40 = bigint;
|
|
227
|
-
export type Int48 = bigint;
|
|
228
|
-
export type Int56 = bigint;
|
|
229
|
-
export type Int64 = bigint;
|
|
230
|
-
export type Int72 = bigint;
|
|
231
|
-
export type Int80 = bigint;
|
|
232
|
-
export type Int88 = bigint;
|
|
233
|
-
export type Int96 = bigint;
|
|
234
|
-
export type Int104 = bigint;
|
|
235
|
-
export type Int112 = bigint;
|
|
236
|
-
export type Int120 = bigint;
|
|
237
|
-
export type Int128 = bigint;
|
|
238
|
-
export type Int136 = bigint;
|
|
239
|
-
export type Int144 = bigint;
|
|
240
|
-
export type Int152 = bigint;
|
|
241
|
-
export type Int160 = bigint;
|
|
242
|
-
export type Int168 = bigint;
|
|
243
|
-
export type Int176 = bigint;
|
|
244
|
-
export type Int184 = bigint;
|
|
245
|
-
export type Int192 = bigint;
|
|
246
|
-
export type Int200 = bigint;
|
|
247
|
-
export type Int208 = bigint;
|
|
248
|
-
export type Int216 = bigint;
|
|
249
|
-
export type Int224 = bigint;
|
|
250
|
-
export type Int232 = bigint;
|
|
251
|
-
export type Int240 = bigint;
|
|
252
|
-
export type Int248 = bigint;
|
|
253
|
-
export type Int256 = bigint;
|
|
254
|
-
|
|
255
|
-
export type Uint8 = bigint;
|
|
256
|
-
export type Uint16 = bigint;
|
|
257
|
-
export type Uint24 = bigint;
|
|
258
|
-
export type Uint32 = bigint;
|
|
259
|
-
export type Uint40 = bigint;
|
|
260
|
-
export type Uint48 = bigint;
|
|
261
|
-
export type Uint56 = bigint;
|
|
262
|
-
export type Uint64 = bigint;
|
|
263
|
-
export type Uint72 = bigint;
|
|
264
|
-
export type Uint80 = bigint;
|
|
265
|
-
export type Uint88 = bigint;
|
|
266
|
-
export type Uint96 = bigint;
|
|
267
|
-
export type Uint104 = bigint;
|
|
268
|
-
export type Uint112 = bigint;
|
|
269
|
-
export type Uint120 = bigint;
|
|
270
|
-
export type Uint128 = bigint;
|
|
271
|
-
export type Uint136 = bigint;
|
|
272
|
-
export type Uint144 = bigint;
|
|
273
|
-
export type Uint152 = bigint;
|
|
274
|
-
export type Uint160 = bigint;
|
|
275
|
-
export type Uint168 = bigint;
|
|
276
|
-
export type Uint176 = bigint;
|
|
277
|
-
export type Uint184 = bigint;
|
|
278
|
-
export type Uint192 = bigint;
|
|
279
|
-
export type Uint200 = bigint;
|
|
280
|
-
export type Uint208 = bigint;
|
|
281
|
-
export type Uint216 = bigint;
|
|
282
|
-
export type Uint224 = bigint;
|
|
283
|
-
export type Uint232 = bigint;
|
|
284
|
-
export type Uint240 = bigint;
|
|
285
|
-
export type Uint248 = bigint;
|
|
286
|
-
export type Uint256 = bigint;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* ---------------------------------------------------------------------------
|
|
290
|
-
* ABI type names + value mapping (ABI specification)
|
|
291
|
-
* ---------------------------------------------------------------------------
|
|
292
|
-
*/
|
|
293
|
-
|
|
294
|
-
export type SolidityFixedBytesTypeName =
|
|
295
|
-
| "bytes1"
|
|
296
|
-
| "bytes2"
|
|
297
|
-
| "bytes3"
|
|
298
|
-
| "bytes4"
|
|
299
|
-
| "bytes5"
|
|
300
|
-
| "bytes6"
|
|
301
|
-
| "bytes7"
|
|
302
|
-
| "bytes8"
|
|
303
|
-
| "bytes9"
|
|
304
|
-
| "bytes10"
|
|
305
|
-
| "bytes11"
|
|
306
|
-
| "bytes12"
|
|
307
|
-
| "bytes13"
|
|
308
|
-
| "bytes14"
|
|
309
|
-
| "bytes15"
|
|
310
|
-
| "bytes16"
|
|
311
|
-
| "bytes17"
|
|
312
|
-
| "bytes18"
|
|
313
|
-
| "bytes19"
|
|
314
|
-
| "bytes20"
|
|
315
|
-
| "bytes21"
|
|
316
|
-
| "bytes22"
|
|
317
|
-
| "bytes23"
|
|
318
|
-
| "bytes24"
|
|
319
|
-
| "bytes25"
|
|
320
|
-
| "bytes26"
|
|
321
|
-
| "bytes27"
|
|
322
|
-
| "bytes28"
|
|
323
|
-
| "bytes29"
|
|
324
|
-
| "bytes30"
|
|
325
|
-
| "bytes31"
|
|
326
|
-
| "bytes32";
|
|
327
|
-
|
|
328
|
-
export type SolidityIntTypeName =
|
|
329
|
-
| "int"
|
|
330
|
-
| "int8"
|
|
331
|
-
| "int16"
|
|
332
|
-
| "int24"
|
|
333
|
-
| "int32"
|
|
334
|
-
| "int40"
|
|
335
|
-
| "int48"
|
|
336
|
-
| "int56"
|
|
337
|
-
| "int64"
|
|
338
|
-
| "int72"
|
|
339
|
-
| "int80"
|
|
340
|
-
| "int88"
|
|
341
|
-
| "int96"
|
|
342
|
-
| "int104"
|
|
343
|
-
| "int112"
|
|
344
|
-
| "int120"
|
|
345
|
-
| "int128"
|
|
346
|
-
| "int136"
|
|
347
|
-
| "int144"
|
|
348
|
-
| "int152"
|
|
349
|
-
| "int160"
|
|
350
|
-
| "int168"
|
|
351
|
-
| "int176"
|
|
352
|
-
| "int184"
|
|
353
|
-
| "int192"
|
|
354
|
-
| "int200"
|
|
355
|
-
| "int208"
|
|
356
|
-
| "int216"
|
|
357
|
-
| "int224"
|
|
358
|
-
| "int232"
|
|
359
|
-
| "int240"
|
|
360
|
-
| "int248"
|
|
361
|
-
| "int256";
|
|
362
|
-
|
|
363
|
-
export type SolidityUintTypeName =
|
|
364
|
-
| "uint"
|
|
365
|
-
| "uint8"
|
|
366
|
-
| "uint16"
|
|
367
|
-
| "uint24"
|
|
368
|
-
| "uint32"
|
|
369
|
-
| "uint40"
|
|
370
|
-
| "uint48"
|
|
371
|
-
| "uint56"
|
|
372
|
-
| "uint64"
|
|
373
|
-
| "uint72"
|
|
374
|
-
| "uint80"
|
|
375
|
-
| "uint88"
|
|
376
|
-
| "uint96"
|
|
377
|
-
| "uint104"
|
|
378
|
-
| "uint112"
|
|
379
|
-
| "uint120"
|
|
380
|
-
| "uint128"
|
|
381
|
-
| "uint136"
|
|
382
|
-
| "uint144"
|
|
383
|
-
| "uint152"
|
|
384
|
-
| "uint160"
|
|
385
|
-
| "uint168"
|
|
386
|
-
| "uint176"
|
|
387
|
-
| "uint184"
|
|
388
|
-
| "uint192"
|
|
389
|
-
| "uint200"
|
|
390
|
-
| "uint208"
|
|
391
|
-
| "uint216"
|
|
392
|
-
| "uint224"
|
|
393
|
-
| "uint232"
|
|
394
|
-
| "uint240"
|
|
395
|
-
| "uint248"
|
|
396
|
-
| "uint256";
|
|
397
|
-
|
|
398
|
-
export type SolidityElementaryTypeName =
|
|
399
|
-
| "address"
|
|
400
|
-
| "bool"
|
|
401
|
-
| "string"
|
|
402
|
-
| "bytes"
|
|
403
|
-
| SolidityFixedBytesTypeName
|
|
404
|
-
| SolidityIntTypeName
|
|
405
|
-
| SolidityUintTypeName
|
|
406
|
-
| "tuple";
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* Solidity ABI type string (commonly used in ABI coder APIs).
|
|
410
|
-
*
|
|
411
|
-
* This is intentionally broad, but still provides useful narrowing for common types.
|
|
412
|
-
*/
|
|
413
|
-
export type SolidityTypeName =
|
|
414
|
-
| SolidityElementaryTypeName
|
|
415
|
-
| `${SolidityTypeName}[]`
|
|
416
|
-
| `${SolidityTypeName}[${number}]`;
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Values accepted as ABI *inputs* for a given Solidity type.
|
|
420
|
-
*/
|
|
421
|
-
export type SolidityInputValue<T extends SolidityTypeName> = T extends `${infer Inner}[]`
|
|
422
|
-
? SolidityInputValue<Extract<Inner, SolidityTypeName>>[]
|
|
423
|
-
: T extends `${infer Inner}[${number}]`
|
|
424
|
-
? SolidityInputValue<Extract<Inner, SolidityTypeName>>[]
|
|
425
|
-
: T extends "address"
|
|
426
|
-
? AddressLike
|
|
427
|
-
: T extends "bool"
|
|
428
|
-
? boolean
|
|
429
|
-
: T extends "string"
|
|
430
|
-
? string
|
|
431
|
-
: T extends "bytes" | SolidityFixedBytesTypeName
|
|
432
|
-
? BytesLike
|
|
433
|
-
: T extends SolidityUintTypeName | SolidityIntTypeName
|
|
434
|
-
? BigNumberish
|
|
435
|
-
: any;
|
|
436
|
-
|
|
437
|
-
/**
|
|
438
|
-
* Values returned as ABI *outputs* for a given Solidity type.
|
|
439
|
-
*/
|
|
440
|
-
export type SolidityOutputValue<T extends SolidityTypeName> = T extends `${infer Inner}[]`
|
|
441
|
-
? SolidityOutputValue<Extract<Inner, SolidityTypeName>>[]
|
|
442
|
-
: T extends `${infer Inner}[${number}]`
|
|
443
|
-
? SolidityOutputValue<Extract<Inner, SolidityTypeName>>[]
|
|
444
|
-
: T extends "address"
|
|
445
|
-
? string
|
|
446
|
-
: T extends "bool"
|
|
447
|
-
? boolean
|
|
448
|
-
: T extends "string"
|
|
449
|
-
? string
|
|
450
|
-
: T extends "bytes" | SolidityFixedBytesTypeName
|
|
451
|
-
? string
|
|
452
|
-
: T extends SolidityUintTypeName | SolidityIntTypeName
|
|
453
|
-
? bigint
|
|
454
|
-
: any;
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Generic tuple/struct placeholders (used when the ABI contains tuples).
|
|
458
|
-
* Generated contract wrappers may refine these further.
|
|
459
|
-
*/
|
|
460
|
-
export type SolidityTuple = SolTuple;
|
|
461
|
-
export type SolidityStruct = SolStruct;
|
|
462
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Solidity / ABI type aliases for SDK contract generation.
|
|
3
|
+
* Used by generated SDKs via "quantumcoin/types".
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export type BigNumberish = string | number | bigint;
|
|
7
|
+
export type AddressLike = string;
|
|
8
|
+
export type SolAddress = string;
|
|
9
|
+
|
|
10
|
+
export type BytesLike = string | Uint8Array;
|
|
11
|
+
export type HexString = string;
|
|
12
|
+
|
|
13
|
+
export type Bytes32Like = string | Uint8Array;
|
|
14
|
+
export type Bytes32 = string;
|
|
15
|
+
|
|
16
|
+
export type Bytes1Like = string | Uint8Array;
|
|
17
|
+
export type Bytes1 = string;
|
|
18
|
+
export type Bytes2Like = string | Uint8Array;
|
|
19
|
+
export type Bytes2 = string;
|
|
20
|
+
export type Bytes3Like = string | Uint8Array;
|
|
21
|
+
export type Bytes3 = string;
|
|
22
|
+
export type Bytes4Like = string | Uint8Array;
|
|
23
|
+
export type Bytes4 = string;
|
|
24
|
+
export type Bytes5Like = string | Uint8Array;
|
|
25
|
+
export type Bytes5 = string;
|
|
26
|
+
export type Bytes6Like = string | Uint8Array;
|
|
27
|
+
export type Bytes6 = string;
|
|
28
|
+
export type Bytes7Like = string | Uint8Array;
|
|
29
|
+
export type Bytes7 = string;
|
|
30
|
+
export type Bytes8Like = string | Uint8Array;
|
|
31
|
+
export type Bytes8 = string;
|
|
32
|
+
export type Bytes9Like = string | Uint8Array;
|
|
33
|
+
export type Bytes9 = string;
|
|
34
|
+
export type Bytes10Like = string | Uint8Array;
|
|
35
|
+
export type Bytes10 = string;
|
|
36
|
+
export type Bytes11Like = string | Uint8Array;
|
|
37
|
+
export type Bytes11 = string;
|
|
38
|
+
export type Bytes12Like = string | Uint8Array;
|
|
39
|
+
export type Bytes12 = string;
|
|
40
|
+
export type Bytes13Like = string | Uint8Array;
|
|
41
|
+
export type Bytes13 = string;
|
|
42
|
+
export type Bytes14Like = string | Uint8Array;
|
|
43
|
+
export type Bytes14 = string;
|
|
44
|
+
export type Bytes15Like = string | Uint8Array;
|
|
45
|
+
export type Bytes15 = string;
|
|
46
|
+
export type Bytes16Like = string | Uint8Array;
|
|
47
|
+
export type Bytes16 = string;
|
|
48
|
+
export type Bytes17Like = string | Uint8Array;
|
|
49
|
+
export type Bytes17 = string;
|
|
50
|
+
export type Bytes18Like = string | Uint8Array;
|
|
51
|
+
export type Bytes18 = string;
|
|
52
|
+
export type Bytes19Like = string | Uint8Array;
|
|
53
|
+
export type Bytes19 = string;
|
|
54
|
+
export type Bytes20Like = string | Uint8Array;
|
|
55
|
+
export type Bytes20 = string;
|
|
56
|
+
export type Bytes21Like = string | Uint8Array;
|
|
57
|
+
export type Bytes21 = string;
|
|
58
|
+
export type Bytes22Like = string | Uint8Array;
|
|
59
|
+
export type Bytes22 = string;
|
|
60
|
+
export type Bytes23Like = string | Uint8Array;
|
|
61
|
+
export type Bytes23 = string;
|
|
62
|
+
export type Bytes24Like = string | Uint8Array;
|
|
63
|
+
export type Bytes24 = string;
|
|
64
|
+
export type Bytes25Like = string | Uint8Array;
|
|
65
|
+
export type Bytes25 = string;
|
|
66
|
+
export type Bytes26Like = string | Uint8Array;
|
|
67
|
+
export type Bytes26 = string;
|
|
68
|
+
export type Bytes27Like = string | Uint8Array;
|
|
69
|
+
export type Bytes27 = string;
|
|
70
|
+
export type Bytes28Like = string | Uint8Array;
|
|
71
|
+
export type Bytes28 = string;
|
|
72
|
+
export type Bytes29Like = string | Uint8Array;
|
|
73
|
+
export type Bytes29 = string;
|
|
74
|
+
export type Bytes30Like = string | Uint8Array;
|
|
75
|
+
export type Bytes30 = string;
|
|
76
|
+
export type Bytes31Like = string | Uint8Array;
|
|
77
|
+
export type Bytes31 = string;
|
|
78
|
+
|
|
79
|
+
export type Uint8 = bigint;
|
|
80
|
+
export type Uint8Like = string | number | bigint;
|
|
81
|
+
export type Uint16 = bigint;
|
|
82
|
+
export type Uint16Like = string | number | bigint;
|
|
83
|
+
export type Uint24 = bigint;
|
|
84
|
+
export type Uint24Like = string | number | bigint;
|
|
85
|
+
export type Uint32 = bigint;
|
|
86
|
+
export type Uint32Like = string | number | bigint;
|
|
87
|
+
export type Uint40 = bigint;
|
|
88
|
+
export type Uint40Like = string | number | bigint;
|
|
89
|
+
export type Uint48 = bigint;
|
|
90
|
+
export type Uint48Like = string | number | bigint;
|
|
91
|
+
export type Uint56 = bigint;
|
|
92
|
+
export type Uint56Like = string | number | bigint;
|
|
93
|
+
export type Uint64 = bigint;
|
|
94
|
+
export type Uint64Like = string | number | bigint;
|
|
95
|
+
export type Uint72 = bigint;
|
|
96
|
+
export type Uint72Like = string | number | bigint;
|
|
97
|
+
export type Uint80 = bigint;
|
|
98
|
+
export type Uint80Like = string | number | bigint;
|
|
99
|
+
export type Uint88 = bigint;
|
|
100
|
+
export type Uint88Like = string | number | bigint;
|
|
101
|
+
export type Uint96 = bigint;
|
|
102
|
+
export type Uint96Like = string | number | bigint;
|
|
103
|
+
export type Uint104 = bigint;
|
|
104
|
+
export type Uint104Like = string | number | bigint;
|
|
105
|
+
export type Uint112 = bigint;
|
|
106
|
+
export type Uint112Like = string | number | bigint;
|
|
107
|
+
export type Uint120 = bigint;
|
|
108
|
+
export type Uint120Like = string | number | bigint;
|
|
109
|
+
export type Uint128 = bigint;
|
|
110
|
+
export type Uint128Like = string | number | bigint;
|
|
111
|
+
export type Uint136 = bigint;
|
|
112
|
+
export type Uint136Like = string | number | bigint;
|
|
113
|
+
export type Uint144 = bigint;
|
|
114
|
+
export type Uint144Like = string | number | bigint;
|
|
115
|
+
export type Uint152 = bigint;
|
|
116
|
+
export type Uint152Like = string | number | bigint;
|
|
117
|
+
export type Uint160 = bigint;
|
|
118
|
+
export type Uint160Like = string | number | bigint;
|
|
119
|
+
export type Uint168 = bigint;
|
|
120
|
+
export type Uint168Like = string | number | bigint;
|
|
121
|
+
export type Uint176 = bigint;
|
|
122
|
+
export type Uint176Like = string | number | bigint;
|
|
123
|
+
export type Uint184 = bigint;
|
|
124
|
+
export type Uint184Like = string | number | bigint;
|
|
125
|
+
export type Uint192 = bigint;
|
|
126
|
+
export type Uint192Like = string | number | bigint;
|
|
127
|
+
export type Uint200 = bigint;
|
|
128
|
+
export type Uint200Like = string | number | bigint;
|
|
129
|
+
export type Uint208 = bigint;
|
|
130
|
+
export type Uint208Like = string | number | bigint;
|
|
131
|
+
export type Uint216 = bigint;
|
|
132
|
+
export type Uint216Like = string | number | bigint;
|
|
133
|
+
export type Uint224 = bigint;
|
|
134
|
+
export type Uint224Like = string | number | bigint;
|
|
135
|
+
export type Uint232 = bigint;
|
|
136
|
+
export type Uint232Like = string | number | bigint;
|
|
137
|
+
export type Uint240 = bigint;
|
|
138
|
+
export type Uint240Like = string | number | bigint;
|
|
139
|
+
export type Uint248 = bigint;
|
|
140
|
+
export type Uint248Like = string | number | bigint;
|
|
141
|
+
export type Uint256 = bigint;
|
|
142
|
+
export type Uint256Like = string | number | bigint;
|
|
143
|
+
|
|
144
|
+
export type Int8 = bigint;
|
|
145
|
+
export type Int8Like = string | number | bigint;
|
|
146
|
+
export type Int16 = bigint;
|
|
147
|
+
export type Int16Like = string | number | bigint;
|
|
148
|
+
export type Int24 = bigint;
|
|
149
|
+
export type Int24Like = string | number | bigint;
|
|
150
|
+
export type Int32 = bigint;
|
|
151
|
+
export type Int32Like = string | number | bigint;
|
|
152
|
+
export type Int40 = bigint;
|
|
153
|
+
export type Int40Like = string | number | bigint;
|
|
154
|
+
export type Int48 = bigint;
|
|
155
|
+
export type Int48Like = string | number | bigint;
|
|
156
|
+
export type Int56 = bigint;
|
|
157
|
+
export type Int56Like = string | number | bigint;
|
|
158
|
+
export type Int64 = bigint;
|
|
159
|
+
export type Int64Like = string | number | bigint;
|
|
160
|
+
export type Int72 = bigint;
|
|
161
|
+
export type Int72Like = string | number | bigint;
|
|
162
|
+
export type Int80 = bigint;
|
|
163
|
+
export type Int80Like = string | number | bigint;
|
|
164
|
+
export type Int88 = bigint;
|
|
165
|
+
export type Int88Like = string | number | bigint;
|
|
166
|
+
export type Int96 = bigint;
|
|
167
|
+
export type Int96Like = string | number | bigint;
|
|
168
|
+
export type Int104 = bigint;
|
|
169
|
+
export type Int104Like = string | number | bigint;
|
|
170
|
+
export type Int112 = bigint;
|
|
171
|
+
export type Int112Like = string | number | bigint;
|
|
172
|
+
export type Int120 = bigint;
|
|
173
|
+
export type Int120Like = string | number | bigint;
|
|
174
|
+
export type Int128 = bigint;
|
|
175
|
+
export type Int128Like = string | number | bigint;
|
|
176
|
+
export type Int136 = bigint;
|
|
177
|
+
export type Int136Like = string | number | bigint;
|
|
178
|
+
export type Int144 = bigint;
|
|
179
|
+
export type Int144Like = string | number | bigint;
|
|
180
|
+
export type Int152 = bigint;
|
|
181
|
+
export type Int152Like = string | number | bigint;
|
|
182
|
+
export type Int160 = bigint;
|
|
183
|
+
export type Int160Like = string | number | bigint;
|
|
184
|
+
export type Int168 = bigint;
|
|
185
|
+
export type Int168Like = string | number | bigint;
|
|
186
|
+
export type Int176 = bigint;
|
|
187
|
+
export type Int176Like = string | number | bigint;
|
|
188
|
+
export type Int184 = bigint;
|
|
189
|
+
export type Int184Like = string | number | bigint;
|
|
190
|
+
export type Int192 = bigint;
|
|
191
|
+
export type Int192Like = string | number | bigint;
|
|
192
|
+
export type Int200 = bigint;
|
|
193
|
+
export type Int200Like = string | number | bigint;
|
|
194
|
+
export type Int208 = bigint;
|
|
195
|
+
export type Int208Like = string | number | bigint;
|
|
196
|
+
export type Int216 = bigint;
|
|
197
|
+
export type Int216Like = string | number | bigint;
|
|
198
|
+
export type Int224 = bigint;
|
|
199
|
+
export type Int224Like = string | number | bigint;
|
|
200
|
+
export type Int232 = bigint;
|
|
201
|
+
export type Int232Like = string | number | bigint;
|
|
202
|
+
export type Int240 = bigint;
|
|
203
|
+
export type Int240Like = string | number | bigint;
|
|
204
|
+
export type Int248 = bigint;
|
|
205
|
+
export type Int248Like = string | number | bigint;
|
|
206
|
+
export type Int256 = bigint;
|
|
207
|
+
export type Int256Like = string | number | bigint;
|
|
208
|
+
|
|
209
|
+
export type SolArray<T> = T[];
|
|
210
|
+
export type SolFixedArray<T, N extends number> = T[];
|
|
211
|
+
|
|
212
|
+
export type SolidityTypeName = string;
|
|
213
|
+
export type SolidityInputValue = unknown;
|
|
214
|
+
export type SolidityOutputValue = unknown;
|