@latticexyz/schema-type 1.40.0 → 2.0.0-alpha.0
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/LICENSE +21 -0
- package/dist/typescript/AbiTypeToSchemaType.d.ts +4 -0
- package/dist/typescript/AbiTypeToSchemaType.js +3 -0
- package/dist/typescript/AbiTypeToSchemaType.js.map +1 -0
- package/dist/typescript/AbiTypes.d.ts +4 -0
- package/dist/typescript/AbiTypes.js +3 -0
- package/dist/typescript/AbiTypes.js.map +1 -0
- package/dist/typescript/ArraySchemaType.d.ts +2 -0
- package/dist/typescript/ArraySchemaType.js +2 -0
- package/dist/typescript/ArraySchemaType.js.map +1 -0
- package/dist/typescript/DynamicSchemaType.d.ts +3 -0
- package/dist/typescript/DynamicSchemaType.js +2 -0
- package/dist/typescript/DynamicSchemaType.js.map +1 -0
- package/dist/typescript/SchemaType.d.ts +0 -204
- package/dist/typescript/SchemaType.js +0 -324
- package/dist/typescript/SchemaType.js.map +1 -1
- package/dist/typescript/SchemaTypeArrayToElement.d.ts +201 -0
- package/dist/typescript/SchemaTypeArrayToElement.js +102 -0
- package/dist/typescript/SchemaTypeArrayToElement.js.map +1 -0
- package/dist/typescript/SchemaTypeId.d.ts +2 -0
- package/dist/typescript/SchemaTypeId.js +202 -0
- package/dist/typescript/SchemaTypeId.js.map +1 -0
- package/dist/typescript/SchemaTypeToAbiType.d.ts +200 -0
- package/dist/typescript/SchemaTypeToAbiType.js +202 -0
- package/dist/typescript/SchemaTypeToAbiType.js.map +1 -0
- package/dist/typescript/SchemaTypeToPrimitive.d.ts +201 -0
- package/dist/typescript/SchemaTypeToPrimitive.js +2 -0
- package/dist/typescript/SchemaTypeToPrimitive.js.map +1 -0
- package/dist/typescript/StaticAbiTypes.d.ts +4 -0
- package/dist/typescript/StaticAbiTypes.js +5 -0
- package/dist/typescript/StaticAbiTypes.js.map +1 -0
- package/dist/typescript/StaticSchemaType.d.ts +3 -0
- package/dist/typescript/StaticSchemaType.js +2 -0
- package/dist/typescript/StaticSchemaType.js.map +1 -0
- package/dist/typescript/encodeSchema.d.ts +8 -0
- package/dist/typescript/encodeSchema.js +43 -0
- package/dist/typescript/encodeSchema.js.map +1 -0
- package/dist/typescript/getStaticByteLength.d.ts +2 -0
- package/dist/typescript/getStaticByteLength.js +26 -0
- package/dist/typescript/getStaticByteLength.js.map +1 -0
- package/dist/typescript/index.d.ts +14 -0
- package/dist/typescript/index.js +9 -0
- package/dist/typescript/index.js.map +1 -0
- package/package.json +4 -4
- package/src/typescript/AbiTypeToSchemaType.ts +6 -0
- package/src/typescript/AbiTypes.ts +5 -0
- package/src/typescript/ArraySchemaType.ts +101 -0
- package/src/typescript/DynamicSchemaType.ts +4 -0
- package/src/typescript/SchemaType.ts +0 -441
- package/src/typescript/SchemaTypeArrayToElement.ts +109 -0
- package/src/typescript/SchemaTypeToAbiType.ts +210 -0
- package/src/typescript/SchemaTypeToPrimitive.ts +210 -0
- package/src/typescript/StaticAbiTypes.ts +10 -0
- package/src/typescript/StaticSchemaType.ts +4 -0
- package/src/typescript/encodeSchema.ts +47 -0
- package/src/typescript/getStaticByteLength.ts +25 -0
- package/src/typescript/index.ts +15 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-present Lattice Labs Ltd.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiTypeToSchemaType.js","sourceRoot":"","sources":["../../src/typescript/AbiTypeToSchemaType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,WAAW,CACnD,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAe,CAAC,CAAC,CAC7E,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SchemaType } from "./SchemaType.js";
|
|
2
|
+
import { SchemaTypeToAbiType } from "./SchemaTypeToAbiType.js";
|
|
3
|
+
export type AbiType = (typeof SchemaTypeToAbiType)[SchemaType];
|
|
4
|
+
export declare const AbiTypes: ("string" | "address" | "bytes" | "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" | "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[]")[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbiTypes.js","sourceRoot":"","sources":["../../src/typescript/AbiTypes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SchemaType } from "./SchemaType.js";
|
|
2
|
+
export 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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArraySchemaType.js","sourceRoot":"","sources":["../../src/typescript/ArraySchemaType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicSchemaType.js","sourceRoot":"","sources":["../../src/typescript/DynamicSchemaType.ts"],"names":[],"mappings":""}
|
|
@@ -198,207 +198,3 @@ export declare enum SchemaType {
|
|
|
198
198
|
BYTES = 196,
|
|
199
199
|
STRING = 197
|
|
200
200
|
}
|
|
201
|
-
export declare function getStaticByteLength(schemaType: SchemaType): number;
|
|
202
|
-
export declare const SchemaTypeId: Record<SchemaType, string>;
|
|
203
|
-
export 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;
|
|
204
|
-
export declare const SchemaTypeArrayToElement: {
|
|
205
|
-
0: undefined;
|
|
206
|
-
1: undefined;
|
|
207
|
-
2: undefined;
|
|
208
|
-
3: undefined;
|
|
209
|
-
4: undefined;
|
|
210
|
-
5: undefined;
|
|
211
|
-
6: undefined;
|
|
212
|
-
7: undefined;
|
|
213
|
-
8: undefined;
|
|
214
|
-
9: undefined;
|
|
215
|
-
10: undefined;
|
|
216
|
-
11: undefined;
|
|
217
|
-
12: undefined;
|
|
218
|
-
13: undefined;
|
|
219
|
-
14: undefined;
|
|
220
|
-
15: undefined;
|
|
221
|
-
16: undefined;
|
|
222
|
-
17: undefined;
|
|
223
|
-
18: undefined;
|
|
224
|
-
19: undefined;
|
|
225
|
-
20: undefined;
|
|
226
|
-
21: undefined;
|
|
227
|
-
22: undefined;
|
|
228
|
-
23: undefined;
|
|
229
|
-
24: undefined;
|
|
230
|
-
25: undefined;
|
|
231
|
-
26: undefined;
|
|
232
|
-
27: undefined;
|
|
233
|
-
28: undefined;
|
|
234
|
-
29: undefined;
|
|
235
|
-
30: undefined;
|
|
236
|
-
31: undefined;
|
|
237
|
-
32: undefined;
|
|
238
|
-
33: undefined;
|
|
239
|
-
34: undefined;
|
|
240
|
-
35: undefined;
|
|
241
|
-
36: undefined;
|
|
242
|
-
37: undefined;
|
|
243
|
-
38: undefined;
|
|
244
|
-
39: undefined;
|
|
245
|
-
40: undefined;
|
|
246
|
-
41: undefined;
|
|
247
|
-
42: undefined;
|
|
248
|
-
43: undefined;
|
|
249
|
-
44: undefined;
|
|
250
|
-
45: undefined;
|
|
251
|
-
46: undefined;
|
|
252
|
-
47: undefined;
|
|
253
|
-
48: undefined;
|
|
254
|
-
49: undefined;
|
|
255
|
-
50: undefined;
|
|
256
|
-
51: undefined;
|
|
257
|
-
52: undefined;
|
|
258
|
-
53: undefined;
|
|
259
|
-
54: undefined;
|
|
260
|
-
55: undefined;
|
|
261
|
-
56: undefined;
|
|
262
|
-
57: undefined;
|
|
263
|
-
58: undefined;
|
|
264
|
-
59: undefined;
|
|
265
|
-
60: undefined;
|
|
266
|
-
61: undefined;
|
|
267
|
-
62: undefined;
|
|
268
|
-
63: undefined;
|
|
269
|
-
64: undefined;
|
|
270
|
-
65: undefined;
|
|
271
|
-
66: undefined;
|
|
272
|
-
67: undefined;
|
|
273
|
-
68: undefined;
|
|
274
|
-
69: undefined;
|
|
275
|
-
70: undefined;
|
|
276
|
-
71: undefined;
|
|
277
|
-
72: undefined;
|
|
278
|
-
73: undefined;
|
|
279
|
-
74: undefined;
|
|
280
|
-
75: undefined;
|
|
281
|
-
76: undefined;
|
|
282
|
-
77: undefined;
|
|
283
|
-
78: undefined;
|
|
284
|
-
79: undefined;
|
|
285
|
-
80: undefined;
|
|
286
|
-
81: undefined;
|
|
287
|
-
82: undefined;
|
|
288
|
-
83: undefined;
|
|
289
|
-
84: undefined;
|
|
290
|
-
85: undefined;
|
|
291
|
-
86: undefined;
|
|
292
|
-
87: undefined;
|
|
293
|
-
88: undefined;
|
|
294
|
-
89: undefined;
|
|
295
|
-
90: undefined;
|
|
296
|
-
91: undefined;
|
|
297
|
-
92: undefined;
|
|
298
|
-
93: undefined;
|
|
299
|
-
94: undefined;
|
|
300
|
-
95: undefined;
|
|
301
|
-
96: undefined;
|
|
302
|
-
97: undefined;
|
|
303
|
-
98: SchemaType;
|
|
304
|
-
99: SchemaType;
|
|
305
|
-
100: SchemaType;
|
|
306
|
-
101: SchemaType;
|
|
307
|
-
102: SchemaType;
|
|
308
|
-
103: SchemaType;
|
|
309
|
-
104: SchemaType;
|
|
310
|
-
105: SchemaType;
|
|
311
|
-
106: SchemaType;
|
|
312
|
-
107: SchemaType;
|
|
313
|
-
108: SchemaType;
|
|
314
|
-
109: SchemaType;
|
|
315
|
-
110: SchemaType;
|
|
316
|
-
111: SchemaType;
|
|
317
|
-
112: SchemaType;
|
|
318
|
-
113: SchemaType;
|
|
319
|
-
114: SchemaType;
|
|
320
|
-
115: SchemaType;
|
|
321
|
-
116: SchemaType;
|
|
322
|
-
117: SchemaType;
|
|
323
|
-
118: SchemaType;
|
|
324
|
-
119: SchemaType;
|
|
325
|
-
120: SchemaType;
|
|
326
|
-
121: SchemaType;
|
|
327
|
-
122: SchemaType;
|
|
328
|
-
123: SchemaType;
|
|
329
|
-
124: SchemaType;
|
|
330
|
-
125: SchemaType;
|
|
331
|
-
126: SchemaType;
|
|
332
|
-
127: SchemaType;
|
|
333
|
-
128: SchemaType;
|
|
334
|
-
129: SchemaType;
|
|
335
|
-
130: SchemaType;
|
|
336
|
-
131: SchemaType;
|
|
337
|
-
132: SchemaType;
|
|
338
|
-
133: SchemaType;
|
|
339
|
-
134: SchemaType;
|
|
340
|
-
135: SchemaType;
|
|
341
|
-
136: SchemaType;
|
|
342
|
-
137: SchemaType;
|
|
343
|
-
138: SchemaType;
|
|
344
|
-
139: SchemaType;
|
|
345
|
-
140: SchemaType;
|
|
346
|
-
141: SchemaType;
|
|
347
|
-
142: SchemaType;
|
|
348
|
-
143: SchemaType;
|
|
349
|
-
144: SchemaType;
|
|
350
|
-
145: SchemaType;
|
|
351
|
-
146: SchemaType;
|
|
352
|
-
147: SchemaType;
|
|
353
|
-
148: SchemaType;
|
|
354
|
-
149: SchemaType;
|
|
355
|
-
150: SchemaType;
|
|
356
|
-
151: SchemaType;
|
|
357
|
-
152: SchemaType;
|
|
358
|
-
153: SchemaType;
|
|
359
|
-
154: SchemaType;
|
|
360
|
-
155: SchemaType;
|
|
361
|
-
156: SchemaType;
|
|
362
|
-
157: SchemaType;
|
|
363
|
-
158: SchemaType;
|
|
364
|
-
159: SchemaType;
|
|
365
|
-
160: SchemaType;
|
|
366
|
-
161: SchemaType;
|
|
367
|
-
162: SchemaType;
|
|
368
|
-
163: SchemaType;
|
|
369
|
-
164: SchemaType;
|
|
370
|
-
165: SchemaType;
|
|
371
|
-
166: SchemaType;
|
|
372
|
-
167: SchemaType;
|
|
373
|
-
168: SchemaType;
|
|
374
|
-
169: SchemaType;
|
|
375
|
-
170: SchemaType;
|
|
376
|
-
171: SchemaType;
|
|
377
|
-
172: SchemaType;
|
|
378
|
-
173: SchemaType;
|
|
379
|
-
174: SchemaType;
|
|
380
|
-
175: SchemaType;
|
|
381
|
-
176: SchemaType;
|
|
382
|
-
177: SchemaType;
|
|
383
|
-
178: SchemaType;
|
|
384
|
-
179: SchemaType;
|
|
385
|
-
180: SchemaType;
|
|
386
|
-
181: SchemaType;
|
|
387
|
-
182: SchemaType;
|
|
388
|
-
183: SchemaType;
|
|
389
|
-
184: SchemaType;
|
|
390
|
-
185: SchemaType;
|
|
391
|
-
186: SchemaType;
|
|
392
|
-
187: SchemaType;
|
|
393
|
-
188: SchemaType;
|
|
394
|
-
189: SchemaType;
|
|
395
|
-
190: SchemaType;
|
|
396
|
-
191: SchemaType;
|
|
397
|
-
192: SchemaType;
|
|
398
|
-
193: SchemaType;
|
|
399
|
-
194: SchemaType;
|
|
400
|
-
195: SchemaType;
|
|
401
|
-
196: undefined;
|
|
402
|
-
197: undefined;
|
|
403
|
-
};
|
|
404
|
-
export type DynamicSchemaType = ArraySchemaType | SchemaType.BYTES | SchemaType.STRING;
|
|
@@ -201,328 +201,4 @@ export var SchemaType;
|
|
|
201
201
|
SchemaType[SchemaType["BYTES"] = 196] = "BYTES";
|
|
202
202
|
SchemaType[SchemaType["STRING"] = 197] = "STRING";
|
|
203
203
|
})(SchemaType || (SchemaType = {}));
|
|
204
|
-
export function getStaticByteLength(schemaType) {
|
|
205
|
-
const val = schemaType.valueOf();
|
|
206
|
-
if (val < 32) {
|
|
207
|
-
// uint8-256
|
|
208
|
-
return val + 1;
|
|
209
|
-
}
|
|
210
|
-
else if (val < 64) {
|
|
211
|
-
// int8-256, offset by 32
|
|
212
|
-
return val + 1 - 32;
|
|
213
|
-
}
|
|
214
|
-
else if (val < 96) {
|
|
215
|
-
// bytes1-32, offset by 64
|
|
216
|
-
return val + 1 - 64;
|
|
217
|
-
}
|
|
218
|
-
// Other static types
|
|
219
|
-
if (schemaType == SchemaType.BOOL) {
|
|
220
|
-
return 1;
|
|
221
|
-
}
|
|
222
|
-
else if (schemaType == SchemaType.ADDRESS) {
|
|
223
|
-
return 20;
|
|
224
|
-
}
|
|
225
|
-
// Return 0 for all dynamic types
|
|
226
|
-
return 0;
|
|
227
|
-
}
|
|
228
|
-
export const SchemaTypeId = {
|
|
229
|
-
[SchemaType.UINT8]: "uint8",
|
|
230
|
-
[SchemaType.UINT16]: "uint16",
|
|
231
|
-
[SchemaType.UINT24]: "uint24",
|
|
232
|
-
[SchemaType.UINT32]: "uint32",
|
|
233
|
-
[SchemaType.UINT40]: "uint40",
|
|
234
|
-
[SchemaType.UINT48]: "uint48",
|
|
235
|
-
[SchemaType.UINT56]: "uint56",
|
|
236
|
-
[SchemaType.UINT64]: "uint64",
|
|
237
|
-
[SchemaType.UINT72]: "uint72",
|
|
238
|
-
[SchemaType.UINT80]: "uint80",
|
|
239
|
-
[SchemaType.UINT88]: "uint88",
|
|
240
|
-
[SchemaType.UINT96]: "uint96",
|
|
241
|
-
[SchemaType.UINT104]: "uint104",
|
|
242
|
-
[SchemaType.UINT112]: "uint112",
|
|
243
|
-
[SchemaType.UINT120]: "uint120",
|
|
244
|
-
[SchemaType.UINT128]: "uint128",
|
|
245
|
-
[SchemaType.UINT136]: "uint136",
|
|
246
|
-
[SchemaType.UINT144]: "uint144",
|
|
247
|
-
[SchemaType.UINT152]: "uint152",
|
|
248
|
-
[SchemaType.UINT160]: "uint160",
|
|
249
|
-
[SchemaType.UINT168]: "uint168",
|
|
250
|
-
[SchemaType.UINT176]: "uint176",
|
|
251
|
-
[SchemaType.UINT184]: "uint184",
|
|
252
|
-
[SchemaType.UINT192]: "uint192",
|
|
253
|
-
[SchemaType.UINT200]: "uint200",
|
|
254
|
-
[SchemaType.UINT208]: "uint208",
|
|
255
|
-
[SchemaType.UINT216]: "uint216",
|
|
256
|
-
[SchemaType.UINT224]: "uint224",
|
|
257
|
-
[SchemaType.UINT232]: "uint232",
|
|
258
|
-
[SchemaType.UINT240]: "uint240",
|
|
259
|
-
[SchemaType.UINT248]: "uint248",
|
|
260
|
-
[SchemaType.UINT256]: "uint256",
|
|
261
|
-
[SchemaType.INT8]: "int8",
|
|
262
|
-
[SchemaType.INT16]: "int16",
|
|
263
|
-
[SchemaType.INT24]: "int24",
|
|
264
|
-
[SchemaType.INT32]: "int32",
|
|
265
|
-
[SchemaType.INT40]: "int40",
|
|
266
|
-
[SchemaType.INT48]: "int48",
|
|
267
|
-
[SchemaType.INT56]: "int56",
|
|
268
|
-
[SchemaType.INT64]: "int64",
|
|
269
|
-
[SchemaType.INT72]: "int72",
|
|
270
|
-
[SchemaType.INT80]: "int80",
|
|
271
|
-
[SchemaType.INT88]: "int88",
|
|
272
|
-
[SchemaType.INT96]: "int96",
|
|
273
|
-
[SchemaType.INT104]: "int104",
|
|
274
|
-
[SchemaType.INT112]: "int112",
|
|
275
|
-
[SchemaType.INT120]: "int120",
|
|
276
|
-
[SchemaType.INT128]: "int128",
|
|
277
|
-
[SchemaType.INT136]: "int136",
|
|
278
|
-
[SchemaType.INT144]: "int144",
|
|
279
|
-
[SchemaType.INT152]: "int152",
|
|
280
|
-
[SchemaType.INT160]: "int160",
|
|
281
|
-
[SchemaType.INT168]: "int168",
|
|
282
|
-
[SchemaType.INT176]: "int176",
|
|
283
|
-
[SchemaType.INT184]: "int184",
|
|
284
|
-
[SchemaType.INT192]: "int192",
|
|
285
|
-
[SchemaType.INT200]: "int200",
|
|
286
|
-
[SchemaType.INT208]: "int208",
|
|
287
|
-
[SchemaType.INT216]: "int216",
|
|
288
|
-
[SchemaType.INT224]: "int224",
|
|
289
|
-
[SchemaType.INT232]: "int232",
|
|
290
|
-
[SchemaType.INT240]: "int240",
|
|
291
|
-
[SchemaType.INT248]: "int248",
|
|
292
|
-
[SchemaType.INT256]: "int256",
|
|
293
|
-
[SchemaType.BYTES1]: "bytes1",
|
|
294
|
-
[SchemaType.BYTES2]: "bytes2",
|
|
295
|
-
[SchemaType.BYTES3]: "bytes3",
|
|
296
|
-
[SchemaType.BYTES4]: "bytes4",
|
|
297
|
-
[SchemaType.BYTES5]: "bytes5",
|
|
298
|
-
[SchemaType.BYTES6]: "bytes6",
|
|
299
|
-
[SchemaType.BYTES7]: "bytes7",
|
|
300
|
-
[SchemaType.BYTES8]: "bytes8",
|
|
301
|
-
[SchemaType.BYTES9]: "bytes9",
|
|
302
|
-
[SchemaType.BYTES10]: "bytes10",
|
|
303
|
-
[SchemaType.BYTES11]: "bytes11",
|
|
304
|
-
[SchemaType.BYTES12]: "bytes12",
|
|
305
|
-
[SchemaType.BYTES13]: "bytes13",
|
|
306
|
-
[SchemaType.BYTES14]: "bytes14",
|
|
307
|
-
[SchemaType.BYTES15]: "bytes15",
|
|
308
|
-
[SchemaType.BYTES16]: "bytes16",
|
|
309
|
-
[SchemaType.BYTES17]: "bytes17",
|
|
310
|
-
[SchemaType.BYTES18]: "bytes18",
|
|
311
|
-
[SchemaType.BYTES19]: "bytes19",
|
|
312
|
-
[SchemaType.BYTES20]: "bytes20",
|
|
313
|
-
[SchemaType.BYTES21]: "bytes21",
|
|
314
|
-
[SchemaType.BYTES22]: "bytes22",
|
|
315
|
-
[SchemaType.BYTES23]: "bytes23",
|
|
316
|
-
[SchemaType.BYTES24]: "bytes24",
|
|
317
|
-
[SchemaType.BYTES25]: "bytes25",
|
|
318
|
-
[SchemaType.BYTES26]: "bytes26",
|
|
319
|
-
[SchemaType.BYTES27]: "bytes27",
|
|
320
|
-
[SchemaType.BYTES28]: "bytes28",
|
|
321
|
-
[SchemaType.BYTES29]: "bytes29",
|
|
322
|
-
[SchemaType.BYTES30]: "bytes30",
|
|
323
|
-
[SchemaType.BYTES31]: "bytes31",
|
|
324
|
-
[SchemaType.BYTES32]: "bytes32",
|
|
325
|
-
[SchemaType.BOOL]: "bool",
|
|
326
|
-
[SchemaType.ADDRESS]: "address",
|
|
327
|
-
[SchemaType.UINT8_ARRAY]: "uint8[]",
|
|
328
|
-
[SchemaType.UINT16_ARRAY]: "uint16[]",
|
|
329
|
-
[SchemaType.UINT24_ARRAY]: "uint24[]",
|
|
330
|
-
[SchemaType.UINT32_ARRAY]: "uint32[]",
|
|
331
|
-
[SchemaType.UINT40_ARRAY]: "uint40[]",
|
|
332
|
-
[SchemaType.UINT48_ARRAY]: "uint48[]",
|
|
333
|
-
[SchemaType.UINT56_ARRAY]: "uint56[]",
|
|
334
|
-
[SchemaType.UINT64_ARRAY]: "uint64[]",
|
|
335
|
-
[SchemaType.UINT72_ARRAY]: "uint72[]",
|
|
336
|
-
[SchemaType.UINT80_ARRAY]: "uint80[]",
|
|
337
|
-
[SchemaType.UINT88_ARRAY]: "uint88[]",
|
|
338
|
-
[SchemaType.UINT96_ARRAY]: "uint96[]",
|
|
339
|
-
[SchemaType.UINT104_ARRAY]: "uint104[]",
|
|
340
|
-
[SchemaType.UINT112_ARRAY]: "uint112[]",
|
|
341
|
-
[SchemaType.UINT120_ARRAY]: "uint120[]",
|
|
342
|
-
[SchemaType.UINT128_ARRAY]: "uint128[]",
|
|
343
|
-
[SchemaType.UINT136_ARRAY]: "uint136[]",
|
|
344
|
-
[SchemaType.UINT144_ARRAY]: "uint144[]",
|
|
345
|
-
[SchemaType.UINT152_ARRAY]: "uint152[]",
|
|
346
|
-
[SchemaType.UINT160_ARRAY]: "uint160[]",
|
|
347
|
-
[SchemaType.UINT168_ARRAY]: "uint168[]",
|
|
348
|
-
[SchemaType.UINT176_ARRAY]: "uint176[]",
|
|
349
|
-
[SchemaType.UINT184_ARRAY]: "uint184[]",
|
|
350
|
-
[SchemaType.UINT192_ARRAY]: "uint192[]",
|
|
351
|
-
[SchemaType.UINT200_ARRAY]: "uint200[]",
|
|
352
|
-
[SchemaType.UINT208_ARRAY]: "uint208[]",
|
|
353
|
-
[SchemaType.UINT216_ARRAY]: "uint216[]",
|
|
354
|
-
[SchemaType.UINT224_ARRAY]: "uint224[]",
|
|
355
|
-
[SchemaType.UINT232_ARRAY]: "uint232[]",
|
|
356
|
-
[SchemaType.UINT240_ARRAY]: "uint240[]",
|
|
357
|
-
[SchemaType.UINT248_ARRAY]: "uint248[]",
|
|
358
|
-
[SchemaType.UINT256_ARRAY]: "uint256[]",
|
|
359
|
-
[SchemaType.INT8_ARRAY]: "int8[]",
|
|
360
|
-
[SchemaType.INT16_ARRAY]: "int16[]",
|
|
361
|
-
[SchemaType.INT24_ARRAY]: "int24[]",
|
|
362
|
-
[SchemaType.INT32_ARRAY]: "int32[]",
|
|
363
|
-
[SchemaType.INT40_ARRAY]: "int40[]",
|
|
364
|
-
[SchemaType.INT48_ARRAY]: "int48[]",
|
|
365
|
-
[SchemaType.INT56_ARRAY]: "int56[]",
|
|
366
|
-
[SchemaType.INT64_ARRAY]: "int64[]",
|
|
367
|
-
[SchemaType.INT72_ARRAY]: "int72[]",
|
|
368
|
-
[SchemaType.INT80_ARRAY]: "int80[]",
|
|
369
|
-
[SchemaType.INT88_ARRAY]: "int88[]",
|
|
370
|
-
[SchemaType.INT96_ARRAY]: "int96[]",
|
|
371
|
-
[SchemaType.INT104_ARRAY]: "int104[]",
|
|
372
|
-
[SchemaType.INT112_ARRAY]: "int112[]",
|
|
373
|
-
[SchemaType.INT120_ARRAY]: "int120[]",
|
|
374
|
-
[SchemaType.INT128_ARRAY]: "int128[]",
|
|
375
|
-
[SchemaType.INT136_ARRAY]: "int136[]",
|
|
376
|
-
[SchemaType.INT144_ARRAY]: "int144[]",
|
|
377
|
-
[SchemaType.INT152_ARRAY]: "int152[]",
|
|
378
|
-
[SchemaType.INT160_ARRAY]: "int160[]",
|
|
379
|
-
[SchemaType.INT168_ARRAY]: "int168[]",
|
|
380
|
-
[SchemaType.INT176_ARRAY]: "int176[]",
|
|
381
|
-
[SchemaType.INT184_ARRAY]: "int184[]",
|
|
382
|
-
[SchemaType.INT192_ARRAY]: "int192[]",
|
|
383
|
-
[SchemaType.INT200_ARRAY]: "int200[]",
|
|
384
|
-
[SchemaType.INT208_ARRAY]: "int208[]",
|
|
385
|
-
[SchemaType.INT216_ARRAY]: "int216[]",
|
|
386
|
-
[SchemaType.INT224_ARRAY]: "int224[]",
|
|
387
|
-
[SchemaType.INT232_ARRAY]: "int232[]",
|
|
388
|
-
[SchemaType.INT240_ARRAY]: "int240[]",
|
|
389
|
-
[SchemaType.INT248_ARRAY]: "int248[]",
|
|
390
|
-
[SchemaType.INT256_ARRAY]: "int256[]",
|
|
391
|
-
[SchemaType.BYTES1_ARRAY]: "bytes1[]",
|
|
392
|
-
[SchemaType.BYTES2_ARRAY]: "bytes2[]",
|
|
393
|
-
[SchemaType.BYTES3_ARRAY]: "bytes3[]",
|
|
394
|
-
[SchemaType.BYTES4_ARRAY]: "bytes4[]",
|
|
395
|
-
[SchemaType.BYTES5_ARRAY]: "bytes5[]",
|
|
396
|
-
[SchemaType.BYTES6_ARRAY]: "bytes6[]",
|
|
397
|
-
[SchemaType.BYTES7_ARRAY]: "bytes7[]",
|
|
398
|
-
[SchemaType.BYTES8_ARRAY]: "bytes8[]",
|
|
399
|
-
[SchemaType.BYTES9_ARRAY]: "bytes9[]",
|
|
400
|
-
[SchemaType.BYTES10_ARRAY]: "bytes10[]",
|
|
401
|
-
[SchemaType.BYTES11_ARRAY]: "bytes11[]",
|
|
402
|
-
[SchemaType.BYTES12_ARRAY]: "bytes12[]",
|
|
403
|
-
[SchemaType.BYTES13_ARRAY]: "bytes13[]",
|
|
404
|
-
[SchemaType.BYTES14_ARRAY]: "bytes14[]",
|
|
405
|
-
[SchemaType.BYTES15_ARRAY]: "bytes15[]",
|
|
406
|
-
[SchemaType.BYTES16_ARRAY]: "bytes16[]",
|
|
407
|
-
[SchemaType.BYTES17_ARRAY]: "bytes17[]",
|
|
408
|
-
[SchemaType.BYTES18_ARRAY]: "bytes18[]",
|
|
409
|
-
[SchemaType.BYTES19_ARRAY]: "bytes19[]",
|
|
410
|
-
[SchemaType.BYTES20_ARRAY]: "bytes20[]",
|
|
411
|
-
[SchemaType.BYTES21_ARRAY]: "bytes21[]",
|
|
412
|
-
[SchemaType.BYTES22_ARRAY]: "bytes22[]",
|
|
413
|
-
[SchemaType.BYTES23_ARRAY]: "bytes23[]",
|
|
414
|
-
[SchemaType.BYTES24_ARRAY]: "bytes24[]",
|
|
415
|
-
[SchemaType.BYTES25_ARRAY]: "bytes25[]",
|
|
416
|
-
[SchemaType.BYTES26_ARRAY]: "bytes26[]",
|
|
417
|
-
[SchemaType.BYTES27_ARRAY]: "bytes27[]",
|
|
418
|
-
[SchemaType.BYTES28_ARRAY]: "bytes28[]",
|
|
419
|
-
[SchemaType.BYTES29_ARRAY]: "bytes29[]",
|
|
420
|
-
[SchemaType.BYTES30_ARRAY]: "bytes30[]",
|
|
421
|
-
[SchemaType.BYTES31_ARRAY]: "bytes31[]",
|
|
422
|
-
[SchemaType.BYTES32_ARRAY]: "bytes32[]",
|
|
423
|
-
[SchemaType.BOOL_ARRAY]: "bool[]",
|
|
424
|
-
[SchemaType.ADDRESS_ARRAY]: "address[]",
|
|
425
|
-
[SchemaType.BYTES]: "bytes",
|
|
426
|
-
[SchemaType.STRING]: "string",
|
|
427
|
-
};
|
|
428
|
-
export const SchemaTypeArrayToElement = {
|
|
429
|
-
[SchemaType.UINT8_ARRAY]: SchemaType.UINT8,
|
|
430
|
-
[SchemaType.UINT16_ARRAY]: SchemaType.UINT16,
|
|
431
|
-
[SchemaType.UINT24_ARRAY]: SchemaType.UINT24,
|
|
432
|
-
[SchemaType.UINT32_ARRAY]: SchemaType.UINT32,
|
|
433
|
-
[SchemaType.UINT40_ARRAY]: SchemaType.UINT40,
|
|
434
|
-
[SchemaType.UINT48_ARRAY]: SchemaType.UINT48,
|
|
435
|
-
[SchemaType.UINT56_ARRAY]: SchemaType.UINT56,
|
|
436
|
-
[SchemaType.UINT64_ARRAY]: SchemaType.UINT64,
|
|
437
|
-
[SchemaType.UINT72_ARRAY]: SchemaType.UINT72,
|
|
438
|
-
[SchemaType.UINT80_ARRAY]: SchemaType.UINT80,
|
|
439
|
-
[SchemaType.UINT88_ARRAY]: SchemaType.UINT88,
|
|
440
|
-
[SchemaType.UINT96_ARRAY]: SchemaType.UINT96,
|
|
441
|
-
[SchemaType.UINT104_ARRAY]: SchemaType.UINT104,
|
|
442
|
-
[SchemaType.UINT112_ARRAY]: SchemaType.UINT112,
|
|
443
|
-
[SchemaType.UINT120_ARRAY]: SchemaType.UINT120,
|
|
444
|
-
[SchemaType.UINT128_ARRAY]: SchemaType.UINT128,
|
|
445
|
-
[SchemaType.UINT136_ARRAY]: SchemaType.UINT136,
|
|
446
|
-
[SchemaType.UINT144_ARRAY]: SchemaType.UINT144,
|
|
447
|
-
[SchemaType.UINT152_ARRAY]: SchemaType.UINT152,
|
|
448
|
-
[SchemaType.UINT160_ARRAY]: SchemaType.UINT160,
|
|
449
|
-
[SchemaType.UINT168_ARRAY]: SchemaType.UINT168,
|
|
450
|
-
[SchemaType.UINT176_ARRAY]: SchemaType.UINT176,
|
|
451
|
-
[SchemaType.UINT184_ARRAY]: SchemaType.UINT184,
|
|
452
|
-
[SchemaType.UINT192_ARRAY]: SchemaType.UINT192,
|
|
453
|
-
[SchemaType.UINT200_ARRAY]: SchemaType.UINT200,
|
|
454
|
-
[SchemaType.UINT208_ARRAY]: SchemaType.UINT208,
|
|
455
|
-
[SchemaType.UINT216_ARRAY]: SchemaType.UINT216,
|
|
456
|
-
[SchemaType.UINT224_ARRAY]: SchemaType.UINT224,
|
|
457
|
-
[SchemaType.UINT232_ARRAY]: SchemaType.UINT232,
|
|
458
|
-
[SchemaType.UINT240_ARRAY]: SchemaType.UINT240,
|
|
459
|
-
[SchemaType.UINT248_ARRAY]: SchemaType.UINT248,
|
|
460
|
-
[SchemaType.UINT256_ARRAY]: SchemaType.UINT256,
|
|
461
|
-
[SchemaType.INT8_ARRAY]: SchemaType.INT8,
|
|
462
|
-
[SchemaType.INT16_ARRAY]: SchemaType.INT16,
|
|
463
|
-
[SchemaType.INT24_ARRAY]: SchemaType.INT24,
|
|
464
|
-
[SchemaType.INT32_ARRAY]: SchemaType.INT32,
|
|
465
|
-
[SchemaType.INT40_ARRAY]: SchemaType.INT40,
|
|
466
|
-
[SchemaType.INT48_ARRAY]: SchemaType.INT48,
|
|
467
|
-
[SchemaType.INT56_ARRAY]: SchemaType.INT56,
|
|
468
|
-
[SchemaType.INT64_ARRAY]: SchemaType.INT64,
|
|
469
|
-
[SchemaType.INT72_ARRAY]: SchemaType.INT72,
|
|
470
|
-
[SchemaType.INT80_ARRAY]: SchemaType.INT80,
|
|
471
|
-
[SchemaType.INT88_ARRAY]: SchemaType.INT88,
|
|
472
|
-
[SchemaType.INT96_ARRAY]: SchemaType.INT96,
|
|
473
|
-
[SchemaType.INT104_ARRAY]: SchemaType.INT104,
|
|
474
|
-
[SchemaType.INT112_ARRAY]: SchemaType.INT112,
|
|
475
|
-
[SchemaType.INT120_ARRAY]: SchemaType.INT120,
|
|
476
|
-
[SchemaType.INT128_ARRAY]: SchemaType.INT128,
|
|
477
|
-
[SchemaType.INT136_ARRAY]: SchemaType.INT136,
|
|
478
|
-
[SchemaType.INT144_ARRAY]: SchemaType.INT144,
|
|
479
|
-
[SchemaType.INT152_ARRAY]: SchemaType.INT152,
|
|
480
|
-
[SchemaType.INT160_ARRAY]: SchemaType.INT160,
|
|
481
|
-
[SchemaType.INT168_ARRAY]: SchemaType.INT168,
|
|
482
|
-
[SchemaType.INT176_ARRAY]: SchemaType.INT176,
|
|
483
|
-
[SchemaType.INT184_ARRAY]: SchemaType.INT184,
|
|
484
|
-
[SchemaType.INT192_ARRAY]: SchemaType.INT192,
|
|
485
|
-
[SchemaType.INT200_ARRAY]: SchemaType.INT200,
|
|
486
|
-
[SchemaType.INT208_ARRAY]: SchemaType.INT208,
|
|
487
|
-
[SchemaType.INT216_ARRAY]: SchemaType.INT216,
|
|
488
|
-
[SchemaType.INT224_ARRAY]: SchemaType.INT224,
|
|
489
|
-
[SchemaType.INT232_ARRAY]: SchemaType.INT232,
|
|
490
|
-
[SchemaType.INT240_ARRAY]: SchemaType.INT240,
|
|
491
|
-
[SchemaType.INT248_ARRAY]: SchemaType.INT248,
|
|
492
|
-
[SchemaType.INT256_ARRAY]: SchemaType.INT256,
|
|
493
|
-
[SchemaType.BYTES1_ARRAY]: SchemaType.BYTES1,
|
|
494
|
-
[SchemaType.BYTES2_ARRAY]: SchemaType.BYTES2,
|
|
495
|
-
[SchemaType.BYTES3_ARRAY]: SchemaType.BYTES3,
|
|
496
|
-
[SchemaType.BYTES4_ARRAY]: SchemaType.BYTES4,
|
|
497
|
-
[SchemaType.BYTES5_ARRAY]: SchemaType.BYTES5,
|
|
498
|
-
[SchemaType.BYTES6_ARRAY]: SchemaType.BYTES6,
|
|
499
|
-
[SchemaType.BYTES7_ARRAY]: SchemaType.BYTES7,
|
|
500
|
-
[SchemaType.BYTES8_ARRAY]: SchemaType.BYTES8,
|
|
501
|
-
[SchemaType.BYTES9_ARRAY]: SchemaType.BYTES9,
|
|
502
|
-
[SchemaType.BYTES10_ARRAY]: SchemaType.BYTES10,
|
|
503
|
-
[SchemaType.BYTES11_ARRAY]: SchemaType.BYTES11,
|
|
504
|
-
[SchemaType.BYTES12_ARRAY]: SchemaType.BYTES12,
|
|
505
|
-
[SchemaType.BYTES13_ARRAY]: SchemaType.BYTES13,
|
|
506
|
-
[SchemaType.BYTES14_ARRAY]: SchemaType.BYTES14,
|
|
507
|
-
[SchemaType.BYTES15_ARRAY]: SchemaType.BYTES15,
|
|
508
|
-
[SchemaType.BYTES16_ARRAY]: SchemaType.BYTES16,
|
|
509
|
-
[SchemaType.BYTES17_ARRAY]: SchemaType.BYTES17,
|
|
510
|
-
[SchemaType.BYTES18_ARRAY]: SchemaType.BYTES18,
|
|
511
|
-
[SchemaType.BYTES19_ARRAY]: SchemaType.BYTES19,
|
|
512
|
-
[SchemaType.BYTES20_ARRAY]: SchemaType.BYTES20,
|
|
513
|
-
[SchemaType.BYTES21_ARRAY]: SchemaType.BYTES21,
|
|
514
|
-
[SchemaType.BYTES22_ARRAY]: SchemaType.BYTES22,
|
|
515
|
-
[SchemaType.BYTES23_ARRAY]: SchemaType.BYTES23,
|
|
516
|
-
[SchemaType.BYTES24_ARRAY]: SchemaType.BYTES24,
|
|
517
|
-
[SchemaType.BYTES25_ARRAY]: SchemaType.BYTES25,
|
|
518
|
-
[SchemaType.BYTES26_ARRAY]: SchemaType.BYTES26,
|
|
519
|
-
[SchemaType.BYTES27_ARRAY]: SchemaType.BYTES27,
|
|
520
|
-
[SchemaType.BYTES28_ARRAY]: SchemaType.BYTES28,
|
|
521
|
-
[SchemaType.BYTES29_ARRAY]: SchemaType.BYTES29,
|
|
522
|
-
[SchemaType.BYTES30_ARRAY]: SchemaType.BYTES30,
|
|
523
|
-
[SchemaType.BYTES31_ARRAY]: SchemaType.BYTES31,
|
|
524
|
-
[SchemaType.BYTES32_ARRAY]: SchemaType.BYTES32,
|
|
525
|
-
[SchemaType.BOOL_ARRAY]: SchemaType.BOOL,
|
|
526
|
-
[SchemaType.ADDRESS_ARRAY]: SchemaType.ADDRESS,
|
|
527
|
-
};
|
|
528
204
|
//# sourceMappingURL=SchemaType.js.map
|