@latticexyz/schema-type 2.2.18-9fa07c8489f1fbf167d0db01cd9aaa645a29c8e2 → 2.2.18-c44207f620a38653497b78db0b71f5de7bc1a940

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,650 +0,0 @@
1
- import { AbiType as AbiType$1, AbiTypeToPrimitiveType as AbiTypeToPrimitiveType$1 } from 'abitype';
2
-
3
- declare enum SchemaType {
4
- UINT8 = 0,
5
- UINT16 = 1,
6
- UINT24 = 2,
7
- UINT32 = 3,
8
- UINT40 = 4,
9
- UINT48 = 5,
10
- UINT56 = 6,
11
- UINT64 = 7,
12
- UINT72 = 8,
13
- UINT80 = 9,
14
- UINT88 = 10,
15
- UINT96 = 11,
16
- UINT104 = 12,
17
- UINT112 = 13,
18
- UINT120 = 14,
19
- UINT128 = 15,
20
- UINT136 = 16,
21
- UINT144 = 17,
22
- UINT152 = 18,
23
- UINT160 = 19,
24
- UINT168 = 20,
25
- UINT176 = 21,
26
- UINT184 = 22,
27
- UINT192 = 23,
28
- UINT200 = 24,
29
- UINT208 = 25,
30
- UINT216 = 26,
31
- UINT224 = 27,
32
- UINT232 = 28,
33
- UINT240 = 29,
34
- UINT248 = 30,
35
- UINT256 = 31,
36
- INT8 = 32,
37
- INT16 = 33,
38
- INT24 = 34,
39
- INT32 = 35,
40
- INT40 = 36,
41
- INT48 = 37,
42
- INT56 = 38,
43
- INT64 = 39,
44
- INT72 = 40,
45
- INT80 = 41,
46
- INT88 = 42,
47
- INT96 = 43,
48
- INT104 = 44,
49
- INT112 = 45,
50
- INT120 = 46,
51
- INT128 = 47,
52
- INT136 = 48,
53
- INT144 = 49,
54
- INT152 = 50,
55
- INT160 = 51,
56
- INT168 = 52,
57
- INT176 = 53,
58
- INT184 = 54,
59
- INT192 = 55,
60
- INT200 = 56,
61
- INT208 = 57,
62
- INT216 = 58,
63
- INT224 = 59,
64
- INT232 = 60,
65
- INT240 = 61,
66
- INT248 = 62,
67
- INT256 = 63,
68
- BYTES1 = 64,
69
- BYTES2 = 65,
70
- BYTES3 = 66,
71
- BYTES4 = 67,
72
- BYTES5 = 68,
73
- BYTES6 = 69,
74
- BYTES7 = 70,
75
- BYTES8 = 71,
76
- BYTES9 = 72,
77
- BYTES10 = 73,
78
- BYTES11 = 74,
79
- BYTES12 = 75,
80
- BYTES13 = 76,
81
- BYTES14 = 77,
82
- BYTES15 = 78,
83
- BYTES16 = 79,
84
- BYTES17 = 80,
85
- BYTES18 = 81,
86
- BYTES19 = 82,
87
- BYTES20 = 83,
88
- BYTES21 = 84,
89
- BYTES22 = 85,
90
- BYTES23 = 86,
91
- BYTES24 = 87,
92
- BYTES25 = 88,
93
- BYTES26 = 89,
94
- BYTES27 = 90,
95
- BYTES28 = 91,
96
- BYTES29 = 92,
97
- BYTES30 = 93,
98
- BYTES31 = 94,
99
- BYTES32 = 95,
100
- BOOL = 96,
101
- ADDRESS = 97,
102
- UINT8_ARRAY = 98,
103
- UINT16_ARRAY = 99,
104
- UINT24_ARRAY = 100,
105
- UINT32_ARRAY = 101,
106
- UINT40_ARRAY = 102,
107
- UINT48_ARRAY = 103,
108
- UINT56_ARRAY = 104,
109
- UINT64_ARRAY = 105,
110
- UINT72_ARRAY = 106,
111
- UINT80_ARRAY = 107,
112
- UINT88_ARRAY = 108,
113
- UINT96_ARRAY = 109,
114
- UINT104_ARRAY = 110,
115
- UINT112_ARRAY = 111,
116
- UINT120_ARRAY = 112,
117
- UINT128_ARRAY = 113,
118
- UINT136_ARRAY = 114,
119
- UINT144_ARRAY = 115,
120
- UINT152_ARRAY = 116,
121
- UINT160_ARRAY = 117,
122
- UINT168_ARRAY = 118,
123
- UINT176_ARRAY = 119,
124
- UINT184_ARRAY = 120,
125
- UINT192_ARRAY = 121,
126
- UINT200_ARRAY = 122,
127
- UINT208_ARRAY = 123,
128
- UINT216_ARRAY = 124,
129
- UINT224_ARRAY = 125,
130
- UINT232_ARRAY = 126,
131
- UINT240_ARRAY = 127,
132
- UINT248_ARRAY = 128,
133
- UINT256_ARRAY = 129,
134
- INT8_ARRAY = 130,
135
- INT16_ARRAY = 131,
136
- INT24_ARRAY = 132,
137
- INT32_ARRAY = 133,
138
- INT40_ARRAY = 134,
139
- INT48_ARRAY = 135,
140
- INT56_ARRAY = 136,
141
- INT64_ARRAY = 137,
142
- INT72_ARRAY = 138,
143
- INT80_ARRAY = 139,
144
- INT88_ARRAY = 140,
145
- INT96_ARRAY = 141,
146
- INT104_ARRAY = 142,
147
- INT112_ARRAY = 143,
148
- INT120_ARRAY = 144,
149
- INT128_ARRAY = 145,
150
- INT136_ARRAY = 146,
151
- INT144_ARRAY = 147,
152
- INT152_ARRAY = 148,
153
- INT160_ARRAY = 149,
154
- INT168_ARRAY = 150,
155
- INT176_ARRAY = 151,
156
- INT184_ARRAY = 152,
157
- INT192_ARRAY = 153,
158
- INT200_ARRAY = 154,
159
- INT208_ARRAY = 155,
160
- INT216_ARRAY = 156,
161
- INT224_ARRAY = 157,
162
- INT232_ARRAY = 158,
163
- INT240_ARRAY = 159,
164
- INT248_ARRAY = 160,
165
- INT256_ARRAY = 161,
166
- BYTES1_ARRAY = 162,
167
- BYTES2_ARRAY = 163,
168
- BYTES3_ARRAY = 164,
169
- BYTES4_ARRAY = 165,
170
- BYTES5_ARRAY = 166,
171
- BYTES6_ARRAY = 167,
172
- BYTES7_ARRAY = 168,
173
- BYTES8_ARRAY = 169,
174
- BYTES9_ARRAY = 170,
175
- BYTES10_ARRAY = 171,
176
- BYTES11_ARRAY = 172,
177
- BYTES12_ARRAY = 173,
178
- BYTES13_ARRAY = 174,
179
- BYTES14_ARRAY = 175,
180
- BYTES15_ARRAY = 176,
181
- BYTES16_ARRAY = 177,
182
- BYTES17_ARRAY = 178,
183
- BYTES18_ARRAY = 179,
184
- BYTES19_ARRAY = 180,
185
- BYTES20_ARRAY = 181,
186
- BYTES21_ARRAY = 182,
187
- BYTES22_ARRAY = 183,
188
- BYTES23_ARRAY = 184,
189
- BYTES24_ARRAY = 185,
190
- BYTES25_ARRAY = 186,
191
- BYTES26_ARRAY = 187,
192
- BYTES27_ARRAY = 188,
193
- BYTES28_ARRAY = 189,
194
- BYTES29_ARRAY = 190,
195
- BYTES30_ARRAY = 191,
196
- BYTES31_ARRAY = 192,
197
- BYTES32_ARRAY = 193,
198
- BOOL_ARRAY = 194,
199
- ADDRESS_ARRAY = 195,
200
- BYTES = 196,
201
- STRING = 197
202
- }
203
-
204
- declare const SchemaTypeToAbiType: {
205
- readonly 0: "uint8";
206
- readonly 1: "uint16";
207
- readonly 2: "uint24";
208
- readonly 3: "uint32";
209
- readonly 4: "uint40";
210
- readonly 5: "uint48";
211
- readonly 6: "uint56";
212
- readonly 7: "uint64";
213
- readonly 8: "uint72";
214
- readonly 9: "uint80";
215
- readonly 10: "uint88";
216
- readonly 11: "uint96";
217
- readonly 12: "uint104";
218
- readonly 13: "uint112";
219
- readonly 14: "uint120";
220
- readonly 15: "uint128";
221
- readonly 16: "uint136";
222
- readonly 17: "uint144";
223
- readonly 18: "uint152";
224
- readonly 19: "uint160";
225
- readonly 20: "uint168";
226
- readonly 21: "uint176";
227
- readonly 22: "uint184";
228
- readonly 23: "uint192";
229
- readonly 24: "uint200";
230
- readonly 25: "uint208";
231
- readonly 26: "uint216";
232
- readonly 27: "uint224";
233
- readonly 28: "uint232";
234
- readonly 29: "uint240";
235
- readonly 30: "uint248";
236
- readonly 31: "uint256";
237
- readonly 32: "int8";
238
- readonly 33: "int16";
239
- readonly 34: "int24";
240
- readonly 35: "int32";
241
- readonly 36: "int40";
242
- readonly 37: "int48";
243
- readonly 38: "int56";
244
- readonly 39: "int64";
245
- readonly 40: "int72";
246
- readonly 41: "int80";
247
- readonly 42: "int88";
248
- readonly 43: "int96";
249
- readonly 44: "int104";
250
- readonly 45: "int112";
251
- readonly 46: "int120";
252
- readonly 47: "int128";
253
- readonly 48: "int136";
254
- readonly 49: "int144";
255
- readonly 50: "int152";
256
- readonly 51: "int160";
257
- readonly 52: "int168";
258
- readonly 53: "int176";
259
- readonly 54: "int184";
260
- readonly 55: "int192";
261
- readonly 56: "int200";
262
- readonly 57: "int208";
263
- readonly 58: "int216";
264
- readonly 59: "int224";
265
- readonly 60: "int232";
266
- readonly 61: "int240";
267
- readonly 62: "int248";
268
- readonly 63: "int256";
269
- readonly 64: "bytes1";
270
- readonly 65: "bytes2";
271
- readonly 66: "bytes3";
272
- readonly 67: "bytes4";
273
- readonly 68: "bytes5";
274
- readonly 69: "bytes6";
275
- readonly 70: "bytes7";
276
- readonly 71: "bytes8";
277
- readonly 72: "bytes9";
278
- readonly 73: "bytes10";
279
- readonly 74: "bytes11";
280
- readonly 75: "bytes12";
281
- readonly 76: "bytes13";
282
- readonly 77: "bytes14";
283
- readonly 78: "bytes15";
284
- readonly 79: "bytes16";
285
- readonly 80: "bytes17";
286
- readonly 81: "bytes18";
287
- readonly 82: "bytes19";
288
- readonly 83: "bytes20";
289
- readonly 84: "bytes21";
290
- readonly 85: "bytes22";
291
- readonly 86: "bytes23";
292
- readonly 87: "bytes24";
293
- readonly 88: "bytes25";
294
- readonly 89: "bytes26";
295
- readonly 90: "bytes27";
296
- readonly 91: "bytes28";
297
- readonly 92: "bytes29";
298
- readonly 93: "bytes30";
299
- readonly 94: "bytes31";
300
- readonly 95: "bytes32";
301
- readonly 96: "bool";
302
- readonly 97: "address";
303
- readonly 98: "uint8[]";
304
- readonly 99: "uint16[]";
305
- readonly 100: "uint24[]";
306
- readonly 101: "uint32[]";
307
- readonly 102: "uint40[]";
308
- readonly 103: "uint48[]";
309
- readonly 104: "uint56[]";
310
- readonly 105: "uint64[]";
311
- readonly 106: "uint72[]";
312
- readonly 107: "uint80[]";
313
- readonly 108: "uint88[]";
314
- readonly 109: "uint96[]";
315
- readonly 110: "uint104[]";
316
- readonly 111: "uint112[]";
317
- readonly 112: "uint120[]";
318
- readonly 113: "uint128[]";
319
- readonly 114: "uint136[]";
320
- readonly 115: "uint144[]";
321
- readonly 116: "uint152[]";
322
- readonly 117: "uint160[]";
323
- readonly 118: "uint168[]";
324
- readonly 119: "uint176[]";
325
- readonly 120: "uint184[]";
326
- readonly 121: "uint192[]";
327
- readonly 122: "uint200[]";
328
- readonly 123: "uint208[]";
329
- readonly 124: "uint216[]";
330
- readonly 125: "uint224[]";
331
- readonly 126: "uint232[]";
332
- readonly 127: "uint240[]";
333
- readonly 128: "uint248[]";
334
- readonly 129: "uint256[]";
335
- readonly 130: "int8[]";
336
- readonly 131: "int16[]";
337
- readonly 132: "int24[]";
338
- readonly 133: "int32[]";
339
- readonly 134: "int40[]";
340
- readonly 135: "int48[]";
341
- readonly 136: "int56[]";
342
- readonly 137: "int64[]";
343
- readonly 138: "int72[]";
344
- readonly 139: "int80[]";
345
- readonly 140: "int88[]";
346
- readonly 141: "int96[]";
347
- readonly 142: "int104[]";
348
- readonly 143: "int112[]";
349
- readonly 144: "int120[]";
350
- readonly 145: "int128[]";
351
- readonly 146: "int136[]";
352
- readonly 147: "int144[]";
353
- readonly 148: "int152[]";
354
- readonly 149: "int160[]";
355
- readonly 150: "int168[]";
356
- readonly 151: "int176[]";
357
- readonly 152: "int184[]";
358
- readonly 153: "int192[]";
359
- readonly 154: "int200[]";
360
- readonly 155: "int208[]";
361
- readonly 156: "int216[]";
362
- readonly 157: "int224[]";
363
- readonly 158: "int232[]";
364
- readonly 159: "int240[]";
365
- readonly 160: "int248[]";
366
- readonly 161: "int256[]";
367
- readonly 162: "bytes1[]";
368
- readonly 163: "bytes2[]";
369
- readonly 164: "bytes3[]";
370
- readonly 165: "bytes4[]";
371
- readonly 166: "bytes5[]";
372
- readonly 167: "bytes6[]";
373
- readonly 168: "bytes7[]";
374
- readonly 169: "bytes8[]";
375
- readonly 170: "bytes9[]";
376
- readonly 171: "bytes10[]";
377
- readonly 172: "bytes11[]";
378
- readonly 173: "bytes12[]";
379
- readonly 174: "bytes13[]";
380
- readonly 175: "bytes14[]";
381
- readonly 176: "bytes15[]";
382
- readonly 177: "bytes16[]";
383
- readonly 178: "bytes17[]";
384
- readonly 179: "bytes18[]";
385
- readonly 180: "bytes19[]";
386
- readonly 181: "bytes20[]";
387
- readonly 182: "bytes21[]";
388
- readonly 183: "bytes22[]";
389
- readonly 184: "bytes23[]";
390
- readonly 185: "bytes24[]";
391
- readonly 186: "bytes25[]";
392
- readonly 187: "bytes26[]";
393
- readonly 188: "bytes27[]";
394
- readonly 189: "bytes28[]";
395
- readonly 190: "bytes29[]";
396
- readonly 191: "bytes30[]";
397
- readonly 192: "bytes31[]";
398
- readonly 193: "bytes32[]";
399
- readonly 194: "bool[]";
400
- readonly 195: "address[]";
401
- readonly 196: "bytes";
402
- readonly 197: "string";
403
- };
404
-
405
- type AbiType = (typeof SchemaTypeToAbiType)[SchemaType];
406
- declare const AbiTypes: ("string" | "address" | "bool" | "bytes" | "bytes2" | "bytes1" | "bytes3" | "bytes4" | "bytes5" | "bytes6" | "bytes7" | "bytes8" | "bytes9" | "bytes10" | "bytes11" | "bytes12" | "bytes13" | "bytes14" | "bytes15" | "bytes16" | "bytes17" | "bytes18" | "bytes19" | "bytes20" | "bytes21" | "bytes22" | "bytes23" | "bytes24" | "bytes25" | "bytes26" | "bytes27" | "bytes28" | "bytes29" | "bytes30" | "bytes31" | "bytes32" | "int8" | "int16" | "int24" | "int32" | "int40" | "int48" | "int56" | "int64" | "int72" | "int80" | "int88" | "int96" | "int104" | "int112" | "int120" | "int128" | "int136" | "int144" | "int152" | "int160" | "int168" | "int176" | "int184" | "int192" | "int200" | "int208" | "int216" | "int224" | "int232" | "int240" | "int248" | "int256" | "uint8" | "uint16" | "uint24" | "uint32" | "uint40" | "uint48" | "uint56" | "uint64" | "uint72" | "uint80" | "uint88" | "uint96" | "uint104" | "uint112" | "uint120" | "uint128" | "uint136" | "uint144" | "uint152" | "uint160" | "uint168" | "uint176" | "uint184" | "uint192" | "uint200" | "uint208" | "uint216" | "uint224" | "uint232" | "uint240" | "uint248" | "uint256" | "uint8[]" | "uint16[]" | "uint24[]" | "uint32[]" | "uint40[]" | "uint48[]" | "uint56[]" | "uint64[]" | "uint72[]" | "uint80[]" | "uint88[]" | "uint96[]" | "uint104[]" | "uint112[]" | "uint120[]" | "uint128[]" | "uint136[]" | "uint144[]" | "uint152[]" | "uint160[]" | "uint168[]" | "uint176[]" | "uint184[]" | "uint192[]" | "uint200[]" | "uint208[]" | "uint216[]" | "uint224[]" | "uint232[]" | "uint240[]" | "uint248[]" | "uint256[]" | "int8[]" | "int16[]" | "int24[]" | "int32[]" | "int40[]" | "int48[]" | "int56[]" | "int64[]" | "int72[]" | "int80[]" | "int88[]" | "int96[]" | "int104[]" | "int112[]" | "int120[]" | "int128[]" | "int136[]" | "int144[]" | "int152[]" | "int160[]" | "int168[]" | "int176[]" | "int184[]" | "int192[]" | "int200[]" | "int208[]" | "int216[]" | "int224[]" | "int232[]" | "int240[]" | "int248[]" | "int256[]" | "bytes1[]" | "bytes2[]" | "bytes3[]" | "bytes4[]" | "bytes5[]" | "bytes6[]" | "bytes7[]" | "bytes8[]" | "bytes9[]" | "bytes10[]" | "bytes11[]" | "bytes12[]" | "bytes13[]" | "bytes14[]" | "bytes15[]" | "bytes16[]" | "bytes17[]" | "bytes18[]" | "bytes19[]" | "bytes20[]" | "bytes21[]" | "bytes22[]" | "bytes23[]" | "bytes24[]" | "bytes25[]" | "bytes26[]" | "bytes27[]" | "bytes28[]" | "bytes29[]" | "bytes30[]" | "bytes31[]" | "bytes32[]" | "bool[]" | "address[]")[];
407
-
408
- type ArraySchemaType = SchemaType.UINT8_ARRAY | SchemaType.UINT16_ARRAY | SchemaType.UINT24_ARRAY | SchemaType.UINT32_ARRAY | SchemaType.UINT40_ARRAY | SchemaType.UINT48_ARRAY | SchemaType.UINT56_ARRAY | SchemaType.UINT64_ARRAY | SchemaType.UINT72_ARRAY | SchemaType.UINT80_ARRAY | SchemaType.UINT88_ARRAY | SchemaType.UINT96_ARRAY | SchemaType.UINT104_ARRAY | SchemaType.UINT112_ARRAY | SchemaType.UINT120_ARRAY | SchemaType.UINT128_ARRAY | SchemaType.UINT136_ARRAY | SchemaType.UINT144_ARRAY | SchemaType.UINT152_ARRAY | SchemaType.UINT160_ARRAY | SchemaType.UINT168_ARRAY | SchemaType.UINT176_ARRAY | SchemaType.UINT184_ARRAY | SchemaType.UINT192_ARRAY | SchemaType.UINT200_ARRAY | SchemaType.UINT208_ARRAY | SchemaType.UINT216_ARRAY | SchemaType.UINT224_ARRAY | SchemaType.UINT232_ARRAY | SchemaType.UINT240_ARRAY | SchemaType.UINT248_ARRAY | SchemaType.UINT256_ARRAY | SchemaType.INT8_ARRAY | SchemaType.INT16_ARRAY | SchemaType.INT24_ARRAY | SchemaType.INT32_ARRAY | SchemaType.INT40_ARRAY | SchemaType.INT48_ARRAY | SchemaType.INT56_ARRAY | SchemaType.INT64_ARRAY | SchemaType.INT72_ARRAY | SchemaType.INT80_ARRAY | SchemaType.INT88_ARRAY | SchemaType.INT96_ARRAY | SchemaType.INT104_ARRAY | SchemaType.INT112_ARRAY | SchemaType.INT120_ARRAY | SchemaType.INT128_ARRAY | SchemaType.INT136_ARRAY | SchemaType.INT144_ARRAY | SchemaType.INT152_ARRAY | SchemaType.INT160_ARRAY | SchemaType.INT168_ARRAY | SchemaType.INT176_ARRAY | SchemaType.INT184_ARRAY | SchemaType.INT192_ARRAY | SchemaType.INT200_ARRAY | SchemaType.INT208_ARRAY | SchemaType.INT216_ARRAY | SchemaType.INT224_ARRAY | SchemaType.INT232_ARRAY | SchemaType.INT240_ARRAY | SchemaType.INT248_ARRAY | SchemaType.INT256_ARRAY | SchemaType.BYTES1_ARRAY | SchemaType.BYTES2_ARRAY | SchemaType.BYTES3_ARRAY | SchemaType.BYTES4_ARRAY | SchemaType.BYTES5_ARRAY | SchemaType.BYTES6_ARRAY | SchemaType.BYTES7_ARRAY | SchemaType.BYTES8_ARRAY | SchemaType.BYTES9_ARRAY | SchemaType.BYTES10_ARRAY | SchemaType.BYTES11_ARRAY | SchemaType.BYTES12_ARRAY | SchemaType.BYTES13_ARRAY | SchemaType.BYTES14_ARRAY | SchemaType.BYTES15_ARRAY | SchemaType.BYTES16_ARRAY | SchemaType.BYTES17_ARRAY | SchemaType.BYTES18_ARRAY | SchemaType.BYTES19_ARRAY | SchemaType.BYTES20_ARRAY | SchemaType.BYTES21_ARRAY | SchemaType.BYTES22_ARRAY | SchemaType.BYTES23_ARRAY | SchemaType.BYTES24_ARRAY | SchemaType.BYTES25_ARRAY | SchemaType.BYTES26_ARRAY | SchemaType.BYTES27_ARRAY | SchemaType.BYTES28_ARRAY | SchemaType.BYTES29_ARRAY | SchemaType.BYTES30_ARRAY | SchemaType.BYTES31_ARRAY | SchemaType.BYTES32_ARRAY | SchemaType.BOOL_ARRAY | SchemaType.ADDRESS_ARRAY;
409
-
410
- type DynamicSchemaType = ArraySchemaType | SchemaType.BYTES | SchemaType.STRING;
411
-
412
- type StaticSchemaType = Exclude<SchemaType, DynamicSchemaType>;
413
-
414
- type StaticAbiType = (typeof SchemaTypeToAbiType)[StaticSchemaType];
415
- declare const StaticAbiTypes: StaticAbiType[];
416
-
417
- type StaticArray = `${StaticAbiType}[${number}]`;
418
-
419
- declare const AbiTypeToSchemaType: {
420
- [k: string]: SchemaType;
421
- };
422
-
423
- declare const SchemaTypeArrayToElement: {
424
- 0: never;
425
- 1: never;
426
- 2: never;
427
- 3: never;
428
- 4: never;
429
- 5: never;
430
- 6: never;
431
- 7: never;
432
- 8: never;
433
- 9: never;
434
- 10: never;
435
- 11: never;
436
- 12: never;
437
- 13: never;
438
- 14: never;
439
- 15: never;
440
- 16: never;
441
- 17: never;
442
- 18: never;
443
- 19: never;
444
- 20: never;
445
- 21: never;
446
- 22: never;
447
- 23: never;
448
- 24: never;
449
- 25: never;
450
- 26: never;
451
- 27: never;
452
- 28: never;
453
- 29: never;
454
- 30: never;
455
- 31: never;
456
- 32: never;
457
- 33: never;
458
- 34: never;
459
- 35: never;
460
- 36: never;
461
- 37: never;
462
- 38: never;
463
- 39: never;
464
- 40: never;
465
- 41: never;
466
- 42: never;
467
- 43: never;
468
- 44: never;
469
- 45: never;
470
- 46: never;
471
- 47: never;
472
- 48: never;
473
- 49: never;
474
- 50: never;
475
- 51: never;
476
- 52: never;
477
- 53: never;
478
- 54: never;
479
- 55: never;
480
- 56: never;
481
- 57: never;
482
- 58: never;
483
- 59: never;
484
- 60: never;
485
- 61: never;
486
- 62: never;
487
- 63: never;
488
- 64: never;
489
- 65: never;
490
- 66: never;
491
- 67: never;
492
- 68: never;
493
- 69: never;
494
- 70: never;
495
- 71: never;
496
- 72: never;
497
- 73: never;
498
- 74: never;
499
- 75: never;
500
- 76: never;
501
- 77: never;
502
- 78: never;
503
- 79: never;
504
- 80: never;
505
- 81: never;
506
- 82: never;
507
- 83: never;
508
- 84: never;
509
- 85: never;
510
- 86: never;
511
- 87: never;
512
- 88: never;
513
- 89: never;
514
- 90: never;
515
- 91: never;
516
- 92: never;
517
- 93: never;
518
- 94: never;
519
- 95: never;
520
- 96: never;
521
- 97: never;
522
- 98: StaticSchemaType;
523
- 99: StaticSchemaType;
524
- 100: StaticSchemaType;
525
- 101: StaticSchemaType;
526
- 102: StaticSchemaType;
527
- 103: StaticSchemaType;
528
- 104: StaticSchemaType;
529
- 105: StaticSchemaType;
530
- 106: StaticSchemaType;
531
- 107: StaticSchemaType;
532
- 108: StaticSchemaType;
533
- 109: StaticSchemaType;
534
- 110: StaticSchemaType;
535
- 111: StaticSchemaType;
536
- 112: StaticSchemaType;
537
- 113: StaticSchemaType;
538
- 114: StaticSchemaType;
539
- 115: StaticSchemaType;
540
- 116: StaticSchemaType;
541
- 117: StaticSchemaType;
542
- 118: StaticSchemaType;
543
- 119: StaticSchemaType;
544
- 120: StaticSchemaType;
545
- 121: StaticSchemaType;
546
- 122: StaticSchemaType;
547
- 123: StaticSchemaType;
548
- 124: StaticSchemaType;
549
- 125: StaticSchemaType;
550
- 126: StaticSchemaType;
551
- 127: StaticSchemaType;
552
- 128: StaticSchemaType;
553
- 129: StaticSchemaType;
554
- 130: StaticSchemaType;
555
- 131: StaticSchemaType;
556
- 132: StaticSchemaType;
557
- 133: StaticSchemaType;
558
- 134: StaticSchemaType;
559
- 135: StaticSchemaType;
560
- 136: StaticSchemaType;
561
- 137: StaticSchemaType;
562
- 138: StaticSchemaType;
563
- 139: StaticSchemaType;
564
- 140: StaticSchemaType;
565
- 141: StaticSchemaType;
566
- 142: StaticSchemaType;
567
- 143: StaticSchemaType;
568
- 144: StaticSchemaType;
569
- 145: StaticSchemaType;
570
- 146: StaticSchemaType;
571
- 147: StaticSchemaType;
572
- 148: StaticSchemaType;
573
- 149: StaticSchemaType;
574
- 150: StaticSchemaType;
575
- 151: StaticSchemaType;
576
- 152: StaticSchemaType;
577
- 153: StaticSchemaType;
578
- 154: StaticSchemaType;
579
- 155: StaticSchemaType;
580
- 156: StaticSchemaType;
581
- 157: StaticSchemaType;
582
- 158: StaticSchemaType;
583
- 159: StaticSchemaType;
584
- 160: StaticSchemaType;
585
- 161: StaticSchemaType;
586
- 162: StaticSchemaType;
587
- 163: StaticSchemaType;
588
- 164: StaticSchemaType;
589
- 165: StaticSchemaType;
590
- 166: StaticSchemaType;
591
- 167: StaticSchemaType;
592
- 168: StaticSchemaType;
593
- 169: StaticSchemaType;
594
- 170: StaticSchemaType;
595
- 171: StaticSchemaType;
596
- 172: StaticSchemaType;
597
- 173: StaticSchemaType;
598
- 174: StaticSchemaType;
599
- 175: StaticSchemaType;
600
- 176: StaticSchemaType;
601
- 177: StaticSchemaType;
602
- 178: StaticSchemaType;
603
- 179: StaticSchemaType;
604
- 180: StaticSchemaType;
605
- 181: StaticSchemaType;
606
- 182: StaticSchemaType;
607
- 183: StaticSchemaType;
608
- 184: StaticSchemaType;
609
- 185: StaticSchemaType;
610
- 186: StaticSchemaType;
611
- 187: StaticSchemaType;
612
- 188: StaticSchemaType;
613
- 189: StaticSchemaType;
614
- 190: StaticSchemaType;
615
- 191: StaticSchemaType;
616
- 192: StaticSchemaType;
617
- 193: StaticSchemaType;
618
- 194: StaticSchemaType;
619
- 195: StaticSchemaType;
620
- 196: never;
621
- 197: never;
622
- };
623
-
624
- /**
625
- * Like abitype's AbiTypeToPrimitiveType but adding support for arrays and using strings as input
626
- */
627
- type AbiTypeToPrimitiveType<T extends string> = T extends `${infer StaticAbiType}[${string}]` ? StaticAbiType extends AbiType$1 ? AbiTypeToPrimitiveType$1<StaticAbiType>[] : never : T extends AbiType$1 ? AbiTypeToPrimitiveType$1<T> : never;
628
-
629
- type SchemaTypeToPrimitiveType<S extends SchemaType> = SchemaTypeToPrimitiveTypeLookup[S];
630
- type SchemaTypeToPrimitiveTypeLookup = {
631
- [SchemaType in keyof typeof SchemaTypeToAbiType]: AbiTypeToPrimitiveType<(typeof SchemaTypeToAbiType)[SchemaType]>;
632
- };
633
-
634
- /**
635
- * Encode a table schema into a bytes32 hex string
636
- * Port of `Schema.sol` from `@latticexyz/store`
637
- * @param schema The schema to encode SchemaType[]
638
- * @returns The encoded schema as a 32 byte hex string
639
- * @deprecated use `schemaToHex` from `protocol-parser` instead
640
- */
641
- declare function encodeSchema(schema: SchemaType[]): Uint8Array;
642
-
643
- declare function getStaticByteLength(schemaType: SchemaType): number;
644
-
645
- /**
646
- * Return a value corresponding to the Solidity default value for a given abi type
647
- */
648
- declare function getAbiTypeDefaultValue<T extends string>(abiType: T): AbiTypeToPrimitiveType<T>;
649
-
650
- export { type AbiType, type AbiTypeToPrimitiveType, AbiTypeToSchemaType, AbiTypes, type ArraySchemaType, type DynamicSchemaType, SchemaType, SchemaTypeArrayToElement, SchemaTypeToAbiType, type SchemaTypeToPrimitiveType, type StaticAbiType, StaticAbiTypes, type StaticArray, type StaticSchemaType, encodeSchema, getAbiTypeDefaultValue, getStaticByteLength };
package/dist/index.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.d.cts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }