@latticexyz/schema-type 2.2.18-8d0ce55e964e646a1c804c401df01c4deb866f30 → 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2
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/dist/deprecated.cjs +818 -0
- package/dist/deprecated.cjs.map +1 -0
- package/dist/deprecated.d.cts +650 -0
- package/dist/deprecated.js +782 -1
- package/dist/deprecated.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +2 -0
- package/dist/internal.cjs +602 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.cts +537 -0
- package/dist/internal.js +560 -1
- package/dist/internal.js.map +1 -1
- package/package.json +32 -5
package/dist/internal.js
CHANGED
|
@@ -1,2 +1,561 @@
|
|
|
1
|
-
|
|
1
|
+
// src/typescript/schemaAbiTypes.ts
|
|
2
|
+
var schemaAbiTypes = [
|
|
3
|
+
"uint8",
|
|
4
|
+
"uint16",
|
|
5
|
+
"uint24",
|
|
6
|
+
"uint32",
|
|
7
|
+
"uint40",
|
|
8
|
+
"uint48",
|
|
9
|
+
"uint56",
|
|
10
|
+
"uint64",
|
|
11
|
+
"uint72",
|
|
12
|
+
"uint80",
|
|
13
|
+
"uint88",
|
|
14
|
+
"uint96",
|
|
15
|
+
"uint104",
|
|
16
|
+
"uint112",
|
|
17
|
+
"uint120",
|
|
18
|
+
"uint128",
|
|
19
|
+
"uint136",
|
|
20
|
+
"uint144",
|
|
21
|
+
"uint152",
|
|
22
|
+
"uint160",
|
|
23
|
+
"uint168",
|
|
24
|
+
"uint176",
|
|
25
|
+
"uint184",
|
|
26
|
+
"uint192",
|
|
27
|
+
"uint200",
|
|
28
|
+
"uint208",
|
|
29
|
+
"uint216",
|
|
30
|
+
"uint224",
|
|
31
|
+
"uint232",
|
|
32
|
+
"uint240",
|
|
33
|
+
"uint248",
|
|
34
|
+
"uint256",
|
|
35
|
+
"int8",
|
|
36
|
+
"int16",
|
|
37
|
+
"int24",
|
|
38
|
+
"int32",
|
|
39
|
+
"int40",
|
|
40
|
+
"int48",
|
|
41
|
+
"int56",
|
|
42
|
+
"int64",
|
|
43
|
+
"int72",
|
|
44
|
+
"int80",
|
|
45
|
+
"int88",
|
|
46
|
+
"int96",
|
|
47
|
+
"int104",
|
|
48
|
+
"int112",
|
|
49
|
+
"int120",
|
|
50
|
+
"int128",
|
|
51
|
+
"int136",
|
|
52
|
+
"int144",
|
|
53
|
+
"int152",
|
|
54
|
+
"int160",
|
|
55
|
+
"int168",
|
|
56
|
+
"int176",
|
|
57
|
+
"int184",
|
|
58
|
+
"int192",
|
|
59
|
+
"int200",
|
|
60
|
+
"int208",
|
|
61
|
+
"int216",
|
|
62
|
+
"int224",
|
|
63
|
+
"int232",
|
|
64
|
+
"int240",
|
|
65
|
+
"int248",
|
|
66
|
+
"int256",
|
|
67
|
+
"bytes1",
|
|
68
|
+
"bytes2",
|
|
69
|
+
"bytes3",
|
|
70
|
+
"bytes4",
|
|
71
|
+
"bytes5",
|
|
72
|
+
"bytes6",
|
|
73
|
+
"bytes7",
|
|
74
|
+
"bytes8",
|
|
75
|
+
"bytes9",
|
|
76
|
+
"bytes10",
|
|
77
|
+
"bytes11",
|
|
78
|
+
"bytes12",
|
|
79
|
+
"bytes13",
|
|
80
|
+
"bytes14",
|
|
81
|
+
"bytes15",
|
|
82
|
+
"bytes16",
|
|
83
|
+
"bytes17",
|
|
84
|
+
"bytes18",
|
|
85
|
+
"bytes19",
|
|
86
|
+
"bytes20",
|
|
87
|
+
"bytes21",
|
|
88
|
+
"bytes22",
|
|
89
|
+
"bytes23",
|
|
90
|
+
"bytes24",
|
|
91
|
+
"bytes25",
|
|
92
|
+
"bytes26",
|
|
93
|
+
"bytes27",
|
|
94
|
+
"bytes28",
|
|
95
|
+
"bytes29",
|
|
96
|
+
"bytes30",
|
|
97
|
+
"bytes31",
|
|
98
|
+
"bytes32",
|
|
99
|
+
"bool",
|
|
100
|
+
"address",
|
|
101
|
+
"uint8[]",
|
|
102
|
+
"uint16[]",
|
|
103
|
+
"uint24[]",
|
|
104
|
+
"uint32[]",
|
|
105
|
+
"uint40[]",
|
|
106
|
+
"uint48[]",
|
|
107
|
+
"uint56[]",
|
|
108
|
+
"uint64[]",
|
|
109
|
+
"uint72[]",
|
|
110
|
+
"uint80[]",
|
|
111
|
+
"uint88[]",
|
|
112
|
+
"uint96[]",
|
|
113
|
+
"uint104[]",
|
|
114
|
+
"uint112[]",
|
|
115
|
+
"uint120[]",
|
|
116
|
+
"uint128[]",
|
|
117
|
+
"uint136[]",
|
|
118
|
+
"uint144[]",
|
|
119
|
+
"uint152[]",
|
|
120
|
+
"uint160[]",
|
|
121
|
+
"uint168[]",
|
|
122
|
+
"uint176[]",
|
|
123
|
+
"uint184[]",
|
|
124
|
+
"uint192[]",
|
|
125
|
+
"uint200[]",
|
|
126
|
+
"uint208[]",
|
|
127
|
+
"uint216[]",
|
|
128
|
+
"uint224[]",
|
|
129
|
+
"uint232[]",
|
|
130
|
+
"uint240[]",
|
|
131
|
+
"uint248[]",
|
|
132
|
+
"uint256[]",
|
|
133
|
+
"int8[]",
|
|
134
|
+
"int16[]",
|
|
135
|
+
"int24[]",
|
|
136
|
+
"int32[]",
|
|
137
|
+
"int40[]",
|
|
138
|
+
"int48[]",
|
|
139
|
+
"int56[]",
|
|
140
|
+
"int64[]",
|
|
141
|
+
"int72[]",
|
|
142
|
+
"int80[]",
|
|
143
|
+
"int88[]",
|
|
144
|
+
"int96[]",
|
|
145
|
+
"int104[]",
|
|
146
|
+
"int112[]",
|
|
147
|
+
"int120[]",
|
|
148
|
+
"int128[]",
|
|
149
|
+
"int136[]",
|
|
150
|
+
"int144[]",
|
|
151
|
+
"int152[]",
|
|
152
|
+
"int160[]",
|
|
153
|
+
"int168[]",
|
|
154
|
+
"int176[]",
|
|
155
|
+
"int184[]",
|
|
156
|
+
"int192[]",
|
|
157
|
+
"int200[]",
|
|
158
|
+
"int208[]",
|
|
159
|
+
"int216[]",
|
|
160
|
+
"int224[]",
|
|
161
|
+
"int232[]",
|
|
162
|
+
"int240[]",
|
|
163
|
+
"int248[]",
|
|
164
|
+
"int256[]",
|
|
165
|
+
"bytes1[]",
|
|
166
|
+
"bytes2[]",
|
|
167
|
+
"bytes3[]",
|
|
168
|
+
"bytes4[]",
|
|
169
|
+
"bytes5[]",
|
|
170
|
+
"bytes6[]",
|
|
171
|
+
"bytes7[]",
|
|
172
|
+
"bytes8[]",
|
|
173
|
+
"bytes9[]",
|
|
174
|
+
"bytes10[]",
|
|
175
|
+
"bytes11[]",
|
|
176
|
+
"bytes12[]",
|
|
177
|
+
"bytes13[]",
|
|
178
|
+
"bytes14[]",
|
|
179
|
+
"bytes15[]",
|
|
180
|
+
"bytes16[]",
|
|
181
|
+
"bytes17[]",
|
|
182
|
+
"bytes18[]",
|
|
183
|
+
"bytes19[]",
|
|
184
|
+
"bytes20[]",
|
|
185
|
+
"bytes21[]",
|
|
186
|
+
"bytes22[]",
|
|
187
|
+
"bytes23[]",
|
|
188
|
+
"bytes24[]",
|
|
189
|
+
"bytes25[]",
|
|
190
|
+
"bytes26[]",
|
|
191
|
+
"bytes27[]",
|
|
192
|
+
"bytes28[]",
|
|
193
|
+
"bytes29[]",
|
|
194
|
+
"bytes30[]",
|
|
195
|
+
"bytes31[]",
|
|
196
|
+
"bytes32[]",
|
|
197
|
+
"bool[]",
|
|
198
|
+
"address[]",
|
|
199
|
+
"bytes",
|
|
200
|
+
"string"
|
|
201
|
+
];
|
|
202
|
+
var staticAbiTypes = schemaAbiTypes.slice(0, 98);
|
|
203
|
+
var dynamicAbiTypes = schemaAbiTypes.slice(98);
|
|
204
|
+
function isSchemaAbiType(abiType) {
|
|
205
|
+
return schemaAbiTypes.includes(abiType);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// src/typescript/staticAbiTypes.ts
|
|
209
|
+
var staticAbiTypeToDefaultValue = {
|
|
210
|
+
uint8: 0,
|
|
211
|
+
uint16: 0,
|
|
212
|
+
uint24: 0,
|
|
213
|
+
uint32: 0,
|
|
214
|
+
uint40: 0,
|
|
215
|
+
uint48: 0,
|
|
216
|
+
uint56: 0n,
|
|
217
|
+
uint64: 0n,
|
|
218
|
+
uint72: 0n,
|
|
219
|
+
uint80: 0n,
|
|
220
|
+
uint88: 0n,
|
|
221
|
+
uint96: 0n,
|
|
222
|
+
uint104: 0n,
|
|
223
|
+
uint112: 0n,
|
|
224
|
+
uint120: 0n,
|
|
225
|
+
uint128: 0n,
|
|
226
|
+
uint136: 0n,
|
|
227
|
+
uint144: 0n,
|
|
228
|
+
uint152: 0n,
|
|
229
|
+
uint160: 0n,
|
|
230
|
+
uint168: 0n,
|
|
231
|
+
uint176: 0n,
|
|
232
|
+
uint184: 0n,
|
|
233
|
+
uint192: 0n,
|
|
234
|
+
uint200: 0n,
|
|
235
|
+
uint208: 0n,
|
|
236
|
+
uint216: 0n,
|
|
237
|
+
uint224: 0n,
|
|
238
|
+
uint232: 0n,
|
|
239
|
+
uint240: 0n,
|
|
240
|
+
uint248: 0n,
|
|
241
|
+
uint256: 0n,
|
|
242
|
+
int8: 0,
|
|
243
|
+
int16: 0,
|
|
244
|
+
int24: 0,
|
|
245
|
+
int32: 0,
|
|
246
|
+
int40: 0,
|
|
247
|
+
int48: 0,
|
|
248
|
+
int56: 0n,
|
|
249
|
+
int64: 0n,
|
|
250
|
+
int72: 0n,
|
|
251
|
+
int80: 0n,
|
|
252
|
+
int88: 0n,
|
|
253
|
+
int96: 0n,
|
|
254
|
+
int104: 0n,
|
|
255
|
+
int112: 0n,
|
|
256
|
+
int120: 0n,
|
|
257
|
+
int128: 0n,
|
|
258
|
+
int136: 0n,
|
|
259
|
+
int144: 0n,
|
|
260
|
+
int152: 0n,
|
|
261
|
+
int160: 0n,
|
|
262
|
+
int168: 0n,
|
|
263
|
+
int176: 0n,
|
|
264
|
+
int184: 0n,
|
|
265
|
+
int192: 0n,
|
|
266
|
+
int200: 0n,
|
|
267
|
+
int208: 0n,
|
|
268
|
+
int216: 0n,
|
|
269
|
+
int224: 0n,
|
|
270
|
+
int232: 0n,
|
|
271
|
+
int240: 0n,
|
|
272
|
+
int248: 0n,
|
|
273
|
+
int256: 0n,
|
|
274
|
+
bytes1: "0x00",
|
|
275
|
+
bytes2: "0x0000",
|
|
276
|
+
bytes3: "0x000000",
|
|
277
|
+
bytes4: "0x00000000",
|
|
278
|
+
bytes5: "0x0000000000",
|
|
279
|
+
bytes6: "0x000000000000",
|
|
280
|
+
bytes7: "0x00000000000000",
|
|
281
|
+
bytes8: "0x0000000000000000",
|
|
282
|
+
bytes9: "0x000000000000000000",
|
|
283
|
+
bytes10: "0x00000000000000000000",
|
|
284
|
+
bytes11: "0x0000000000000000000000",
|
|
285
|
+
bytes12: "0x000000000000000000000000",
|
|
286
|
+
bytes13: "0x00000000000000000000000000",
|
|
287
|
+
bytes14: "0x0000000000000000000000000000",
|
|
288
|
+
bytes15: "0x000000000000000000000000000000",
|
|
289
|
+
bytes16: "0x00000000000000000000000000000000",
|
|
290
|
+
bytes17: "0x0000000000000000000000000000000000",
|
|
291
|
+
bytes18: "0x000000000000000000000000000000000000",
|
|
292
|
+
bytes19: "0x00000000000000000000000000000000000000",
|
|
293
|
+
bytes20: "0x0000000000000000000000000000000000000000",
|
|
294
|
+
bytes21: "0x000000000000000000000000000000000000000000",
|
|
295
|
+
bytes22: "0x00000000000000000000000000000000000000000000",
|
|
296
|
+
bytes23: "0x0000000000000000000000000000000000000000000000",
|
|
297
|
+
bytes24: "0x000000000000000000000000000000000000000000000000",
|
|
298
|
+
bytes25: "0x00000000000000000000000000000000000000000000000000",
|
|
299
|
+
bytes26: "0x0000000000000000000000000000000000000000000000000000",
|
|
300
|
+
bytes27: "0x000000000000000000000000000000000000000000000000000000",
|
|
301
|
+
bytes28: "0x00000000000000000000000000000000000000000000000000000000",
|
|
302
|
+
bytes29: "0x0000000000000000000000000000000000000000000000000000000000",
|
|
303
|
+
bytes30: "0x000000000000000000000000000000000000000000000000000000000000",
|
|
304
|
+
bytes31: "0x00000000000000000000000000000000000000000000000000000000000000",
|
|
305
|
+
bytes32: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
306
|
+
bool: false,
|
|
307
|
+
address: "0x0000000000000000000000000000000000000000"
|
|
308
|
+
};
|
|
309
|
+
var staticAbiTypeToByteLength = {
|
|
310
|
+
uint8: 1,
|
|
311
|
+
uint16: 2,
|
|
312
|
+
uint24: 3,
|
|
313
|
+
uint32: 4,
|
|
314
|
+
uint40: 5,
|
|
315
|
+
uint48: 6,
|
|
316
|
+
uint56: 7,
|
|
317
|
+
uint64: 8,
|
|
318
|
+
uint72: 9,
|
|
319
|
+
uint80: 10,
|
|
320
|
+
uint88: 11,
|
|
321
|
+
uint96: 12,
|
|
322
|
+
uint104: 13,
|
|
323
|
+
uint112: 14,
|
|
324
|
+
uint120: 15,
|
|
325
|
+
uint128: 16,
|
|
326
|
+
uint136: 17,
|
|
327
|
+
uint144: 18,
|
|
328
|
+
uint152: 19,
|
|
329
|
+
uint160: 20,
|
|
330
|
+
uint168: 21,
|
|
331
|
+
uint176: 22,
|
|
332
|
+
uint184: 23,
|
|
333
|
+
uint192: 24,
|
|
334
|
+
uint200: 25,
|
|
335
|
+
uint208: 26,
|
|
336
|
+
uint216: 27,
|
|
337
|
+
uint224: 28,
|
|
338
|
+
uint232: 29,
|
|
339
|
+
uint240: 30,
|
|
340
|
+
uint248: 31,
|
|
341
|
+
uint256: 32,
|
|
342
|
+
int8: 1,
|
|
343
|
+
int16: 2,
|
|
344
|
+
int24: 3,
|
|
345
|
+
int32: 4,
|
|
346
|
+
int40: 5,
|
|
347
|
+
int48: 6,
|
|
348
|
+
int56: 7,
|
|
349
|
+
int64: 8,
|
|
350
|
+
int72: 9,
|
|
351
|
+
int80: 10,
|
|
352
|
+
int88: 11,
|
|
353
|
+
int96: 12,
|
|
354
|
+
int104: 13,
|
|
355
|
+
int112: 14,
|
|
356
|
+
int120: 15,
|
|
357
|
+
int128: 16,
|
|
358
|
+
int136: 17,
|
|
359
|
+
int144: 18,
|
|
360
|
+
int152: 19,
|
|
361
|
+
int160: 20,
|
|
362
|
+
int168: 21,
|
|
363
|
+
int176: 22,
|
|
364
|
+
int184: 23,
|
|
365
|
+
int192: 24,
|
|
366
|
+
int200: 25,
|
|
367
|
+
int208: 26,
|
|
368
|
+
int216: 27,
|
|
369
|
+
int224: 28,
|
|
370
|
+
int232: 29,
|
|
371
|
+
int240: 30,
|
|
372
|
+
int248: 31,
|
|
373
|
+
int256: 32,
|
|
374
|
+
bytes1: 1,
|
|
375
|
+
bytes2: 2,
|
|
376
|
+
bytes3: 3,
|
|
377
|
+
bytes4: 4,
|
|
378
|
+
bytes5: 5,
|
|
379
|
+
bytes6: 6,
|
|
380
|
+
bytes7: 7,
|
|
381
|
+
bytes8: 8,
|
|
382
|
+
bytes9: 9,
|
|
383
|
+
bytes10: 10,
|
|
384
|
+
bytes11: 11,
|
|
385
|
+
bytes12: 12,
|
|
386
|
+
bytes13: 13,
|
|
387
|
+
bytes14: 14,
|
|
388
|
+
bytes15: 15,
|
|
389
|
+
bytes16: 16,
|
|
390
|
+
bytes17: 17,
|
|
391
|
+
bytes18: 18,
|
|
392
|
+
bytes19: 19,
|
|
393
|
+
bytes20: 20,
|
|
394
|
+
bytes21: 21,
|
|
395
|
+
bytes22: 22,
|
|
396
|
+
bytes23: 23,
|
|
397
|
+
bytes24: 24,
|
|
398
|
+
bytes25: 25,
|
|
399
|
+
bytes26: 26,
|
|
400
|
+
bytes27: 27,
|
|
401
|
+
bytes28: 28,
|
|
402
|
+
bytes29: 29,
|
|
403
|
+
bytes30: 30,
|
|
404
|
+
bytes31: 31,
|
|
405
|
+
bytes32: 32,
|
|
406
|
+
bool: 1,
|
|
407
|
+
address: 20
|
|
408
|
+
};
|
|
409
|
+
function isStaticAbiType(abiType) {
|
|
410
|
+
return staticAbiTypes.includes(abiType);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// src/typescript/arrayAbiTypes.ts
|
|
414
|
+
var arrayPattern = /\[\]$/;
|
|
415
|
+
var fixedArrayPattern = /\[\d+\]$/;
|
|
416
|
+
function isArrayAbiType(abiType) {
|
|
417
|
+
return typeof abiType === "string" && arrayPattern.test(abiType) && isStaticAbiType(abiType.replace(arrayPattern, ""));
|
|
418
|
+
}
|
|
419
|
+
function isFixedArrayAbiType(abiType) {
|
|
420
|
+
return typeof abiType === "string" && fixedArrayPattern.test(abiType) && isStaticAbiType(abiType.replace(fixedArrayPattern, ""));
|
|
421
|
+
}
|
|
422
|
+
function arrayToStaticAbiType(abiType) {
|
|
423
|
+
return abiType.replace(arrayPattern, "");
|
|
424
|
+
}
|
|
425
|
+
function fixedArrayToStaticAbiType(abiType) {
|
|
426
|
+
return abiType.replace(fixedArrayPattern, "");
|
|
427
|
+
}
|
|
428
|
+
function fixedArrayToArray(abiType) {
|
|
429
|
+
return abiType.replace(fixedArrayPattern, "[]");
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
// src/typescript/dynamicAbiTypes.ts
|
|
433
|
+
var dynamicAbiTypeToDefaultValue = {
|
|
434
|
+
"uint8[]": [],
|
|
435
|
+
"uint16[]": [],
|
|
436
|
+
"uint24[]": [],
|
|
437
|
+
"uint32[]": [],
|
|
438
|
+
"uint40[]": [],
|
|
439
|
+
"uint48[]": [],
|
|
440
|
+
"uint56[]": [],
|
|
441
|
+
"uint64[]": [],
|
|
442
|
+
"uint72[]": [],
|
|
443
|
+
"uint80[]": [],
|
|
444
|
+
"uint88[]": [],
|
|
445
|
+
"uint96[]": [],
|
|
446
|
+
"uint104[]": [],
|
|
447
|
+
"uint112[]": [],
|
|
448
|
+
"uint120[]": [],
|
|
449
|
+
"uint128[]": [],
|
|
450
|
+
"uint136[]": [],
|
|
451
|
+
"uint144[]": [],
|
|
452
|
+
"uint152[]": [],
|
|
453
|
+
"uint160[]": [],
|
|
454
|
+
"uint168[]": [],
|
|
455
|
+
"uint176[]": [],
|
|
456
|
+
"uint184[]": [],
|
|
457
|
+
"uint192[]": [],
|
|
458
|
+
"uint200[]": [],
|
|
459
|
+
"uint208[]": [],
|
|
460
|
+
"uint216[]": [],
|
|
461
|
+
"uint224[]": [],
|
|
462
|
+
"uint232[]": [],
|
|
463
|
+
"uint240[]": [],
|
|
464
|
+
"uint248[]": [],
|
|
465
|
+
"uint256[]": [],
|
|
466
|
+
"int8[]": [],
|
|
467
|
+
"int16[]": [],
|
|
468
|
+
"int24[]": [],
|
|
469
|
+
"int32[]": [],
|
|
470
|
+
"int40[]": [],
|
|
471
|
+
"int48[]": [],
|
|
472
|
+
"int56[]": [],
|
|
473
|
+
"int64[]": [],
|
|
474
|
+
"int72[]": [],
|
|
475
|
+
"int80[]": [],
|
|
476
|
+
"int88[]": [],
|
|
477
|
+
"int96[]": [],
|
|
478
|
+
"int104[]": [],
|
|
479
|
+
"int112[]": [],
|
|
480
|
+
"int120[]": [],
|
|
481
|
+
"int128[]": [],
|
|
482
|
+
"int136[]": [],
|
|
483
|
+
"int144[]": [],
|
|
484
|
+
"int152[]": [],
|
|
485
|
+
"int160[]": [],
|
|
486
|
+
"int168[]": [],
|
|
487
|
+
"int176[]": [],
|
|
488
|
+
"int184[]": [],
|
|
489
|
+
"int192[]": [],
|
|
490
|
+
"int200[]": [],
|
|
491
|
+
"int208[]": [],
|
|
492
|
+
"int216[]": [],
|
|
493
|
+
"int224[]": [],
|
|
494
|
+
"int232[]": [],
|
|
495
|
+
"int240[]": [],
|
|
496
|
+
"int248[]": [],
|
|
497
|
+
"int256[]": [],
|
|
498
|
+
"bytes1[]": [],
|
|
499
|
+
"bytes2[]": [],
|
|
500
|
+
"bytes3[]": [],
|
|
501
|
+
"bytes4[]": [],
|
|
502
|
+
"bytes5[]": [],
|
|
503
|
+
"bytes6[]": [],
|
|
504
|
+
"bytes7[]": [],
|
|
505
|
+
"bytes8[]": [],
|
|
506
|
+
"bytes9[]": [],
|
|
507
|
+
"bytes10[]": [],
|
|
508
|
+
"bytes11[]": [],
|
|
509
|
+
"bytes12[]": [],
|
|
510
|
+
"bytes13[]": [],
|
|
511
|
+
"bytes14[]": [],
|
|
512
|
+
"bytes15[]": [],
|
|
513
|
+
"bytes16[]": [],
|
|
514
|
+
"bytes17[]": [],
|
|
515
|
+
"bytes18[]": [],
|
|
516
|
+
"bytes19[]": [],
|
|
517
|
+
"bytes20[]": [],
|
|
518
|
+
"bytes21[]": [],
|
|
519
|
+
"bytes22[]": [],
|
|
520
|
+
"bytes23[]": [],
|
|
521
|
+
"bytes24[]": [],
|
|
522
|
+
"bytes25[]": [],
|
|
523
|
+
"bytes26[]": [],
|
|
524
|
+
"bytes27[]": [],
|
|
525
|
+
"bytes28[]": [],
|
|
526
|
+
"bytes29[]": [],
|
|
527
|
+
"bytes30[]": [],
|
|
528
|
+
"bytes31[]": [],
|
|
529
|
+
"bytes32[]": [],
|
|
530
|
+
"bool[]": [],
|
|
531
|
+
"address[]": [],
|
|
532
|
+
bytes: "0x",
|
|
533
|
+
string: ""
|
|
534
|
+
};
|
|
535
|
+
function isDynamicAbiType(abiType) {
|
|
536
|
+
return dynamicAbiTypes.includes(abiType);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// src/typescript/schemaAbiTypeToDefaultValue.ts
|
|
540
|
+
var schemaAbiTypeToDefaultValue = {
|
|
541
|
+
...staticAbiTypeToDefaultValue,
|
|
542
|
+
...dynamicAbiTypeToDefaultValue
|
|
543
|
+
};
|
|
544
|
+
export {
|
|
545
|
+
arrayToStaticAbiType,
|
|
546
|
+
dynamicAbiTypeToDefaultValue,
|
|
547
|
+
dynamicAbiTypes,
|
|
548
|
+
fixedArrayToArray,
|
|
549
|
+
fixedArrayToStaticAbiType,
|
|
550
|
+
isArrayAbiType,
|
|
551
|
+
isDynamicAbiType,
|
|
552
|
+
isFixedArrayAbiType,
|
|
553
|
+
isSchemaAbiType,
|
|
554
|
+
isStaticAbiType,
|
|
555
|
+
schemaAbiTypeToDefaultValue,
|
|
556
|
+
schemaAbiTypes,
|
|
557
|
+
staticAbiTypeToByteLength,
|
|
558
|
+
staticAbiTypeToDefaultValue,
|
|
559
|
+
staticAbiTypes
|
|
560
|
+
};
|
|
2
561
|
//# sourceMappingURL=internal.js.map
|