@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.
Files changed (57) hide show
  1. package/LICENSE +21 -0
  2. package/dist/typescript/AbiTypeToSchemaType.d.ts +4 -0
  3. package/dist/typescript/AbiTypeToSchemaType.js +3 -0
  4. package/dist/typescript/AbiTypeToSchemaType.js.map +1 -0
  5. package/dist/typescript/AbiTypes.d.ts +4 -0
  6. package/dist/typescript/AbiTypes.js +3 -0
  7. package/dist/typescript/AbiTypes.js.map +1 -0
  8. package/dist/typescript/ArraySchemaType.d.ts +2 -0
  9. package/dist/typescript/ArraySchemaType.js +2 -0
  10. package/dist/typescript/ArraySchemaType.js.map +1 -0
  11. package/dist/typescript/DynamicSchemaType.d.ts +3 -0
  12. package/dist/typescript/DynamicSchemaType.js +2 -0
  13. package/dist/typescript/DynamicSchemaType.js.map +1 -0
  14. package/dist/typescript/SchemaType.d.ts +0 -204
  15. package/dist/typescript/SchemaType.js +0 -324
  16. package/dist/typescript/SchemaType.js.map +1 -1
  17. package/dist/typescript/SchemaTypeArrayToElement.d.ts +201 -0
  18. package/dist/typescript/SchemaTypeArrayToElement.js +102 -0
  19. package/dist/typescript/SchemaTypeArrayToElement.js.map +1 -0
  20. package/dist/typescript/SchemaTypeId.d.ts +2 -0
  21. package/dist/typescript/SchemaTypeId.js +202 -0
  22. package/dist/typescript/SchemaTypeId.js.map +1 -0
  23. package/dist/typescript/SchemaTypeToAbiType.d.ts +200 -0
  24. package/dist/typescript/SchemaTypeToAbiType.js +202 -0
  25. package/dist/typescript/SchemaTypeToAbiType.js.map +1 -0
  26. package/dist/typescript/SchemaTypeToPrimitive.d.ts +201 -0
  27. package/dist/typescript/SchemaTypeToPrimitive.js +2 -0
  28. package/dist/typescript/SchemaTypeToPrimitive.js.map +1 -0
  29. package/dist/typescript/StaticAbiTypes.d.ts +4 -0
  30. package/dist/typescript/StaticAbiTypes.js +5 -0
  31. package/dist/typescript/StaticAbiTypes.js.map +1 -0
  32. package/dist/typescript/StaticSchemaType.d.ts +3 -0
  33. package/dist/typescript/StaticSchemaType.js +2 -0
  34. package/dist/typescript/StaticSchemaType.js.map +1 -0
  35. package/dist/typescript/encodeSchema.d.ts +8 -0
  36. package/dist/typescript/encodeSchema.js +43 -0
  37. package/dist/typescript/encodeSchema.js.map +1 -0
  38. package/dist/typescript/getStaticByteLength.d.ts +2 -0
  39. package/dist/typescript/getStaticByteLength.js +26 -0
  40. package/dist/typescript/getStaticByteLength.js.map +1 -0
  41. package/dist/typescript/index.d.ts +14 -0
  42. package/dist/typescript/index.js +9 -0
  43. package/dist/typescript/index.js.map +1 -0
  44. package/package.json +4 -4
  45. package/src/typescript/AbiTypeToSchemaType.ts +6 -0
  46. package/src/typescript/AbiTypes.ts +5 -0
  47. package/src/typescript/ArraySchemaType.ts +101 -0
  48. package/src/typescript/DynamicSchemaType.ts +4 -0
  49. package/src/typescript/SchemaType.ts +0 -441
  50. package/src/typescript/SchemaTypeArrayToElement.ts +109 -0
  51. package/src/typescript/SchemaTypeToAbiType.ts +210 -0
  52. package/src/typescript/SchemaTypeToPrimitive.ts +210 -0
  53. package/src/typescript/StaticAbiTypes.ts +10 -0
  54. package/src/typescript/StaticSchemaType.ts +4 -0
  55. package/src/typescript/encodeSchema.ts +47 -0
  56. package/src/typescript/getStaticByteLength.ts +25 -0
  57. package/src/typescript/index.ts +15 -0
@@ -0,0 +1,200 @@
1
+ export declare const SchemaTypeToAbiType: {
2
+ readonly 0: "uint8";
3
+ readonly 1: "uint16";
4
+ readonly 2: "uint24";
5
+ readonly 3: "uint32";
6
+ readonly 4: "uint40";
7
+ readonly 5: "uint48";
8
+ readonly 6: "uint56";
9
+ readonly 7: "uint64";
10
+ readonly 8: "uint72";
11
+ readonly 9: "uint80";
12
+ readonly 10: "uint88";
13
+ readonly 11: "uint96";
14
+ readonly 12: "uint104";
15
+ readonly 13: "uint112";
16
+ readonly 14: "uint120";
17
+ readonly 15: "uint128";
18
+ readonly 16: "uint136";
19
+ readonly 17: "uint144";
20
+ readonly 18: "uint152";
21
+ readonly 19: "uint160";
22
+ readonly 20: "uint168";
23
+ readonly 21: "uint176";
24
+ readonly 22: "uint184";
25
+ readonly 23: "uint192";
26
+ readonly 24: "uint200";
27
+ readonly 25: "uint208";
28
+ readonly 26: "uint216";
29
+ readonly 27: "uint224";
30
+ readonly 28: "uint232";
31
+ readonly 29: "uint240";
32
+ readonly 30: "uint248";
33
+ readonly 31: "uint256";
34
+ readonly 32: "int8";
35
+ readonly 33: "int16";
36
+ readonly 34: "int24";
37
+ readonly 35: "int32";
38
+ readonly 36: "int40";
39
+ readonly 37: "int48";
40
+ readonly 38: "int56";
41
+ readonly 39: "int64";
42
+ readonly 40: "int72";
43
+ readonly 41: "int80";
44
+ readonly 42: "int88";
45
+ readonly 43: "int96";
46
+ readonly 44: "int104";
47
+ readonly 45: "int112";
48
+ readonly 46: "int120";
49
+ readonly 47: "int128";
50
+ readonly 48: "int136";
51
+ readonly 49: "int144";
52
+ readonly 50: "int152";
53
+ readonly 51: "int160";
54
+ readonly 52: "int168";
55
+ readonly 53: "int176";
56
+ readonly 54: "int184";
57
+ readonly 55: "int192";
58
+ readonly 56: "int200";
59
+ readonly 57: "int208";
60
+ readonly 58: "int216";
61
+ readonly 59: "int224";
62
+ readonly 60: "int232";
63
+ readonly 61: "int240";
64
+ readonly 62: "int248";
65
+ readonly 63: "int256";
66
+ readonly 64: "bytes1";
67
+ readonly 65: "bytes2";
68
+ readonly 66: "bytes3";
69
+ readonly 67: "bytes4";
70
+ readonly 68: "bytes5";
71
+ readonly 69: "bytes6";
72
+ readonly 70: "bytes7";
73
+ readonly 71: "bytes8";
74
+ readonly 72: "bytes9";
75
+ readonly 73: "bytes10";
76
+ readonly 74: "bytes11";
77
+ readonly 75: "bytes12";
78
+ readonly 76: "bytes13";
79
+ readonly 77: "bytes14";
80
+ readonly 78: "bytes15";
81
+ readonly 79: "bytes16";
82
+ readonly 80: "bytes17";
83
+ readonly 81: "bytes18";
84
+ readonly 82: "bytes19";
85
+ readonly 83: "bytes20";
86
+ readonly 84: "bytes21";
87
+ readonly 85: "bytes22";
88
+ readonly 86: "bytes23";
89
+ readonly 87: "bytes24";
90
+ readonly 88: "bytes25";
91
+ readonly 89: "bytes26";
92
+ readonly 90: "bytes27";
93
+ readonly 91: "bytes28";
94
+ readonly 92: "bytes29";
95
+ readonly 93: "bytes30";
96
+ readonly 94: "bytes31";
97
+ readonly 95: "bytes32";
98
+ readonly 96: "bool";
99
+ readonly 97: "address";
100
+ readonly 98: "uint8[]";
101
+ readonly 99: "uint16[]";
102
+ readonly 100: "uint24[]";
103
+ readonly 101: "uint32[]";
104
+ readonly 102: "uint40[]";
105
+ readonly 103: "uint48[]";
106
+ readonly 104: "uint56[]";
107
+ readonly 105: "uint64[]";
108
+ readonly 106: "uint72[]";
109
+ readonly 107: "uint80[]";
110
+ readonly 108: "uint88[]";
111
+ readonly 109: "uint96[]";
112
+ readonly 110: "uint104[]";
113
+ readonly 111: "uint112[]";
114
+ readonly 112: "uint120[]";
115
+ readonly 113: "uint128[]";
116
+ readonly 114: "uint136[]";
117
+ readonly 115: "uint144[]";
118
+ readonly 116: "uint152[]";
119
+ readonly 117: "uint160[]";
120
+ readonly 118: "uint168[]";
121
+ readonly 119: "uint176[]";
122
+ readonly 120: "uint184[]";
123
+ readonly 121: "uint192[]";
124
+ readonly 122: "uint200[]";
125
+ readonly 123: "uint208[]";
126
+ readonly 124: "uint216[]";
127
+ readonly 125: "uint224[]";
128
+ readonly 126: "uint232[]";
129
+ readonly 127: "uint240[]";
130
+ readonly 128: "uint248[]";
131
+ readonly 129: "uint256[]";
132
+ readonly 130: "int8[]";
133
+ readonly 131: "int16[]";
134
+ readonly 132: "int24[]";
135
+ readonly 133: "int32[]";
136
+ readonly 134: "int40[]";
137
+ readonly 135: "int48[]";
138
+ readonly 136: "int56[]";
139
+ readonly 137: "int64[]";
140
+ readonly 138: "int72[]";
141
+ readonly 139: "int80[]";
142
+ readonly 140: "int88[]";
143
+ readonly 141: "int96[]";
144
+ readonly 142: "int104[]";
145
+ readonly 143: "int112[]";
146
+ readonly 144: "int120[]";
147
+ readonly 145: "int128[]";
148
+ readonly 146: "int136[]";
149
+ readonly 147: "int144[]";
150
+ readonly 148: "int152[]";
151
+ readonly 149: "int160[]";
152
+ readonly 150: "int168[]";
153
+ readonly 151: "int176[]";
154
+ readonly 152: "int184[]";
155
+ readonly 153: "int192[]";
156
+ readonly 154: "int200[]";
157
+ readonly 155: "int208[]";
158
+ readonly 156: "int216[]";
159
+ readonly 157: "int224[]";
160
+ readonly 158: "int232[]";
161
+ readonly 159: "int240[]";
162
+ readonly 160: "int248[]";
163
+ readonly 161: "int256[]";
164
+ readonly 162: "bytes1[]";
165
+ readonly 163: "bytes2[]";
166
+ readonly 164: "bytes3[]";
167
+ readonly 165: "bytes4[]";
168
+ readonly 166: "bytes5[]";
169
+ readonly 167: "bytes6[]";
170
+ readonly 168: "bytes7[]";
171
+ readonly 169: "bytes8[]";
172
+ readonly 170: "bytes9[]";
173
+ readonly 171: "bytes10[]";
174
+ readonly 172: "bytes11[]";
175
+ readonly 173: "bytes12[]";
176
+ readonly 174: "bytes13[]";
177
+ readonly 175: "bytes14[]";
178
+ readonly 176: "bytes15[]";
179
+ readonly 177: "bytes16[]";
180
+ readonly 178: "bytes17[]";
181
+ readonly 179: "bytes18[]";
182
+ readonly 180: "bytes19[]";
183
+ readonly 181: "bytes20[]";
184
+ readonly 182: "bytes21[]";
185
+ readonly 183: "bytes22[]";
186
+ readonly 184: "bytes23[]";
187
+ readonly 185: "bytes24[]";
188
+ readonly 186: "bytes25[]";
189
+ readonly 187: "bytes26[]";
190
+ readonly 188: "bytes27[]";
191
+ readonly 189: "bytes28[]";
192
+ readonly 190: "bytes29[]";
193
+ readonly 191: "bytes30[]";
194
+ readonly 192: "bytes31[]";
195
+ readonly 193: "bytes32[]";
196
+ readonly 194: "bool[]";
197
+ readonly 195: "address[]";
198
+ readonly 196: "bytes";
199
+ readonly 197: "string";
200
+ };
@@ -0,0 +1,202 @@
1
+ import { SchemaType } from "./SchemaType.js";
2
+ export const SchemaTypeToAbiType = {
3
+ [SchemaType.UINT8]: "uint8",
4
+ [SchemaType.UINT16]: "uint16",
5
+ [SchemaType.UINT24]: "uint24",
6
+ [SchemaType.UINT32]: "uint32",
7
+ [SchemaType.UINT40]: "uint40",
8
+ [SchemaType.UINT48]: "uint48",
9
+ [SchemaType.UINT56]: "uint56",
10
+ [SchemaType.UINT64]: "uint64",
11
+ [SchemaType.UINT72]: "uint72",
12
+ [SchemaType.UINT80]: "uint80",
13
+ [SchemaType.UINT88]: "uint88",
14
+ [SchemaType.UINT96]: "uint96",
15
+ [SchemaType.UINT104]: "uint104",
16
+ [SchemaType.UINT112]: "uint112",
17
+ [SchemaType.UINT120]: "uint120",
18
+ [SchemaType.UINT128]: "uint128",
19
+ [SchemaType.UINT136]: "uint136",
20
+ [SchemaType.UINT144]: "uint144",
21
+ [SchemaType.UINT152]: "uint152",
22
+ [SchemaType.UINT160]: "uint160",
23
+ [SchemaType.UINT168]: "uint168",
24
+ [SchemaType.UINT176]: "uint176",
25
+ [SchemaType.UINT184]: "uint184",
26
+ [SchemaType.UINT192]: "uint192",
27
+ [SchemaType.UINT200]: "uint200",
28
+ [SchemaType.UINT208]: "uint208",
29
+ [SchemaType.UINT216]: "uint216",
30
+ [SchemaType.UINT224]: "uint224",
31
+ [SchemaType.UINT232]: "uint232",
32
+ [SchemaType.UINT240]: "uint240",
33
+ [SchemaType.UINT248]: "uint248",
34
+ [SchemaType.UINT256]: "uint256",
35
+ [SchemaType.INT8]: "int8",
36
+ [SchemaType.INT16]: "int16",
37
+ [SchemaType.INT24]: "int24",
38
+ [SchemaType.INT32]: "int32",
39
+ [SchemaType.INT40]: "int40",
40
+ [SchemaType.INT48]: "int48",
41
+ [SchemaType.INT56]: "int56",
42
+ [SchemaType.INT64]: "int64",
43
+ [SchemaType.INT72]: "int72",
44
+ [SchemaType.INT80]: "int80",
45
+ [SchemaType.INT88]: "int88",
46
+ [SchemaType.INT96]: "int96",
47
+ [SchemaType.INT104]: "int104",
48
+ [SchemaType.INT112]: "int112",
49
+ [SchemaType.INT120]: "int120",
50
+ [SchemaType.INT128]: "int128",
51
+ [SchemaType.INT136]: "int136",
52
+ [SchemaType.INT144]: "int144",
53
+ [SchemaType.INT152]: "int152",
54
+ [SchemaType.INT160]: "int160",
55
+ [SchemaType.INT168]: "int168",
56
+ [SchemaType.INT176]: "int176",
57
+ [SchemaType.INT184]: "int184",
58
+ [SchemaType.INT192]: "int192",
59
+ [SchemaType.INT200]: "int200",
60
+ [SchemaType.INT208]: "int208",
61
+ [SchemaType.INT216]: "int216",
62
+ [SchemaType.INT224]: "int224",
63
+ [SchemaType.INT232]: "int232",
64
+ [SchemaType.INT240]: "int240",
65
+ [SchemaType.INT248]: "int248",
66
+ [SchemaType.INT256]: "int256",
67
+ [SchemaType.BYTES1]: "bytes1",
68
+ [SchemaType.BYTES2]: "bytes2",
69
+ [SchemaType.BYTES3]: "bytes3",
70
+ [SchemaType.BYTES4]: "bytes4",
71
+ [SchemaType.BYTES5]: "bytes5",
72
+ [SchemaType.BYTES6]: "bytes6",
73
+ [SchemaType.BYTES7]: "bytes7",
74
+ [SchemaType.BYTES8]: "bytes8",
75
+ [SchemaType.BYTES9]: "bytes9",
76
+ [SchemaType.BYTES10]: "bytes10",
77
+ [SchemaType.BYTES11]: "bytes11",
78
+ [SchemaType.BYTES12]: "bytes12",
79
+ [SchemaType.BYTES13]: "bytes13",
80
+ [SchemaType.BYTES14]: "bytes14",
81
+ [SchemaType.BYTES15]: "bytes15",
82
+ [SchemaType.BYTES16]: "bytes16",
83
+ [SchemaType.BYTES17]: "bytes17",
84
+ [SchemaType.BYTES18]: "bytes18",
85
+ [SchemaType.BYTES19]: "bytes19",
86
+ [SchemaType.BYTES20]: "bytes20",
87
+ [SchemaType.BYTES21]: "bytes21",
88
+ [SchemaType.BYTES22]: "bytes22",
89
+ [SchemaType.BYTES23]: "bytes23",
90
+ [SchemaType.BYTES24]: "bytes24",
91
+ [SchemaType.BYTES25]: "bytes25",
92
+ [SchemaType.BYTES26]: "bytes26",
93
+ [SchemaType.BYTES27]: "bytes27",
94
+ [SchemaType.BYTES28]: "bytes28",
95
+ [SchemaType.BYTES29]: "bytes29",
96
+ [SchemaType.BYTES30]: "bytes30",
97
+ [SchemaType.BYTES31]: "bytes31",
98
+ [SchemaType.BYTES32]: "bytes32",
99
+ [SchemaType.BOOL]: "bool",
100
+ [SchemaType.ADDRESS]: "address",
101
+ [SchemaType.UINT8_ARRAY]: "uint8[]",
102
+ [SchemaType.UINT16_ARRAY]: "uint16[]",
103
+ [SchemaType.UINT24_ARRAY]: "uint24[]",
104
+ [SchemaType.UINT32_ARRAY]: "uint32[]",
105
+ [SchemaType.UINT40_ARRAY]: "uint40[]",
106
+ [SchemaType.UINT48_ARRAY]: "uint48[]",
107
+ [SchemaType.UINT56_ARRAY]: "uint56[]",
108
+ [SchemaType.UINT64_ARRAY]: "uint64[]",
109
+ [SchemaType.UINT72_ARRAY]: "uint72[]",
110
+ [SchemaType.UINT80_ARRAY]: "uint80[]",
111
+ [SchemaType.UINT88_ARRAY]: "uint88[]",
112
+ [SchemaType.UINT96_ARRAY]: "uint96[]",
113
+ [SchemaType.UINT104_ARRAY]: "uint104[]",
114
+ [SchemaType.UINT112_ARRAY]: "uint112[]",
115
+ [SchemaType.UINT120_ARRAY]: "uint120[]",
116
+ [SchemaType.UINT128_ARRAY]: "uint128[]",
117
+ [SchemaType.UINT136_ARRAY]: "uint136[]",
118
+ [SchemaType.UINT144_ARRAY]: "uint144[]",
119
+ [SchemaType.UINT152_ARRAY]: "uint152[]",
120
+ [SchemaType.UINT160_ARRAY]: "uint160[]",
121
+ [SchemaType.UINT168_ARRAY]: "uint168[]",
122
+ [SchemaType.UINT176_ARRAY]: "uint176[]",
123
+ [SchemaType.UINT184_ARRAY]: "uint184[]",
124
+ [SchemaType.UINT192_ARRAY]: "uint192[]",
125
+ [SchemaType.UINT200_ARRAY]: "uint200[]",
126
+ [SchemaType.UINT208_ARRAY]: "uint208[]",
127
+ [SchemaType.UINT216_ARRAY]: "uint216[]",
128
+ [SchemaType.UINT224_ARRAY]: "uint224[]",
129
+ [SchemaType.UINT232_ARRAY]: "uint232[]",
130
+ [SchemaType.UINT240_ARRAY]: "uint240[]",
131
+ [SchemaType.UINT248_ARRAY]: "uint248[]",
132
+ [SchemaType.UINT256_ARRAY]: "uint256[]",
133
+ [SchemaType.INT8_ARRAY]: "int8[]",
134
+ [SchemaType.INT16_ARRAY]: "int16[]",
135
+ [SchemaType.INT24_ARRAY]: "int24[]",
136
+ [SchemaType.INT32_ARRAY]: "int32[]",
137
+ [SchemaType.INT40_ARRAY]: "int40[]",
138
+ [SchemaType.INT48_ARRAY]: "int48[]",
139
+ [SchemaType.INT56_ARRAY]: "int56[]",
140
+ [SchemaType.INT64_ARRAY]: "int64[]",
141
+ [SchemaType.INT72_ARRAY]: "int72[]",
142
+ [SchemaType.INT80_ARRAY]: "int80[]",
143
+ [SchemaType.INT88_ARRAY]: "int88[]",
144
+ [SchemaType.INT96_ARRAY]: "int96[]",
145
+ [SchemaType.INT104_ARRAY]: "int104[]",
146
+ [SchemaType.INT112_ARRAY]: "int112[]",
147
+ [SchemaType.INT120_ARRAY]: "int120[]",
148
+ [SchemaType.INT128_ARRAY]: "int128[]",
149
+ [SchemaType.INT136_ARRAY]: "int136[]",
150
+ [SchemaType.INT144_ARRAY]: "int144[]",
151
+ [SchemaType.INT152_ARRAY]: "int152[]",
152
+ [SchemaType.INT160_ARRAY]: "int160[]",
153
+ [SchemaType.INT168_ARRAY]: "int168[]",
154
+ [SchemaType.INT176_ARRAY]: "int176[]",
155
+ [SchemaType.INT184_ARRAY]: "int184[]",
156
+ [SchemaType.INT192_ARRAY]: "int192[]",
157
+ [SchemaType.INT200_ARRAY]: "int200[]",
158
+ [SchemaType.INT208_ARRAY]: "int208[]",
159
+ [SchemaType.INT216_ARRAY]: "int216[]",
160
+ [SchemaType.INT224_ARRAY]: "int224[]",
161
+ [SchemaType.INT232_ARRAY]: "int232[]",
162
+ [SchemaType.INT240_ARRAY]: "int240[]",
163
+ [SchemaType.INT248_ARRAY]: "int248[]",
164
+ [SchemaType.INT256_ARRAY]: "int256[]",
165
+ [SchemaType.BYTES1_ARRAY]: "bytes1[]",
166
+ [SchemaType.BYTES2_ARRAY]: "bytes2[]",
167
+ [SchemaType.BYTES3_ARRAY]: "bytes3[]",
168
+ [SchemaType.BYTES4_ARRAY]: "bytes4[]",
169
+ [SchemaType.BYTES5_ARRAY]: "bytes5[]",
170
+ [SchemaType.BYTES6_ARRAY]: "bytes6[]",
171
+ [SchemaType.BYTES7_ARRAY]: "bytes7[]",
172
+ [SchemaType.BYTES8_ARRAY]: "bytes8[]",
173
+ [SchemaType.BYTES9_ARRAY]: "bytes9[]",
174
+ [SchemaType.BYTES10_ARRAY]: "bytes10[]",
175
+ [SchemaType.BYTES11_ARRAY]: "bytes11[]",
176
+ [SchemaType.BYTES12_ARRAY]: "bytes12[]",
177
+ [SchemaType.BYTES13_ARRAY]: "bytes13[]",
178
+ [SchemaType.BYTES14_ARRAY]: "bytes14[]",
179
+ [SchemaType.BYTES15_ARRAY]: "bytes15[]",
180
+ [SchemaType.BYTES16_ARRAY]: "bytes16[]",
181
+ [SchemaType.BYTES17_ARRAY]: "bytes17[]",
182
+ [SchemaType.BYTES18_ARRAY]: "bytes18[]",
183
+ [SchemaType.BYTES19_ARRAY]: "bytes19[]",
184
+ [SchemaType.BYTES20_ARRAY]: "bytes20[]",
185
+ [SchemaType.BYTES21_ARRAY]: "bytes21[]",
186
+ [SchemaType.BYTES22_ARRAY]: "bytes22[]",
187
+ [SchemaType.BYTES23_ARRAY]: "bytes23[]",
188
+ [SchemaType.BYTES24_ARRAY]: "bytes24[]",
189
+ [SchemaType.BYTES25_ARRAY]: "bytes25[]",
190
+ [SchemaType.BYTES26_ARRAY]: "bytes26[]",
191
+ [SchemaType.BYTES27_ARRAY]: "bytes27[]",
192
+ [SchemaType.BYTES28_ARRAY]: "bytes28[]",
193
+ [SchemaType.BYTES29_ARRAY]: "bytes29[]",
194
+ [SchemaType.BYTES30_ARRAY]: "bytes30[]",
195
+ [SchemaType.BYTES31_ARRAY]: "bytes31[]",
196
+ [SchemaType.BYTES32_ARRAY]: "bytes32[]",
197
+ [SchemaType.BOOL_ARRAY]: "bool[]",
198
+ [SchemaType.ADDRESS_ARRAY]: "address[]",
199
+ [SchemaType.BYTES]: "bytes",
200
+ [SchemaType.STRING]: "string",
201
+ };
202
+ //# sourceMappingURL=SchemaTypeToAbiType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaTypeToAbiType.js","sourceRoot":"","sources":["../../src/typescript/SchemaTypeToAbiType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,OAAO;IAC3B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,UAAU,CAAC,MAAM,CA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W;IACvC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW;IACvC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW;IACvC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW;IACvC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW;IACvC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW;IACvC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW;IAEvC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,QAAQ;IACjC,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,WAAW;IAEvC,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,OAAO;IAC3B,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;CACgB,CAAC"}
@@ -0,0 +1,201 @@
1
+ import { SchemaType } from "./SchemaType.js";
2
+ export type SchemaTypeToPrimitive = {
3
+ [SchemaType.UINT8]: number;
4
+ [SchemaType.UINT16]: number;
5
+ [SchemaType.UINT24]: number;
6
+ [SchemaType.UINT32]: number;
7
+ [SchemaType.UINT40]: number;
8
+ [SchemaType.UINT48]: number;
9
+ [SchemaType.UINT56]: bigint;
10
+ [SchemaType.UINT64]: bigint;
11
+ [SchemaType.UINT72]: bigint;
12
+ [SchemaType.UINT80]: bigint;
13
+ [SchemaType.UINT88]: bigint;
14
+ [SchemaType.UINT96]: bigint;
15
+ [SchemaType.UINT104]: bigint;
16
+ [SchemaType.UINT112]: bigint;
17
+ [SchemaType.UINT120]: bigint;
18
+ [SchemaType.UINT128]: bigint;
19
+ [SchemaType.UINT136]: bigint;
20
+ [SchemaType.UINT144]: bigint;
21
+ [SchemaType.UINT152]: bigint;
22
+ [SchemaType.UINT160]: bigint;
23
+ [SchemaType.UINT168]: bigint;
24
+ [SchemaType.UINT176]: bigint;
25
+ [SchemaType.UINT184]: bigint;
26
+ [SchemaType.UINT192]: bigint;
27
+ [SchemaType.UINT200]: bigint;
28
+ [SchemaType.UINT208]: bigint;
29
+ [SchemaType.UINT216]: bigint;
30
+ [SchemaType.UINT224]: bigint;
31
+ [SchemaType.UINT232]: bigint;
32
+ [SchemaType.UINT240]: bigint;
33
+ [SchemaType.UINT248]: bigint;
34
+ [SchemaType.UINT256]: bigint;
35
+ [SchemaType.INT8]: number;
36
+ [SchemaType.INT16]: number;
37
+ [SchemaType.INT24]: number;
38
+ [SchemaType.INT32]: number;
39
+ [SchemaType.INT40]: number;
40
+ [SchemaType.INT48]: number;
41
+ [SchemaType.INT56]: bigint;
42
+ [SchemaType.INT64]: bigint;
43
+ [SchemaType.INT72]: bigint;
44
+ [SchemaType.INT80]: bigint;
45
+ [SchemaType.INT88]: bigint;
46
+ [SchemaType.INT96]: bigint;
47
+ [SchemaType.INT104]: bigint;
48
+ [SchemaType.INT112]: bigint;
49
+ [SchemaType.INT120]: bigint;
50
+ [SchemaType.INT128]: bigint;
51
+ [SchemaType.INT136]: bigint;
52
+ [SchemaType.INT144]: bigint;
53
+ [SchemaType.INT152]: bigint;
54
+ [SchemaType.INT160]: bigint;
55
+ [SchemaType.INT168]: bigint;
56
+ [SchemaType.INT176]: bigint;
57
+ [SchemaType.INT184]: bigint;
58
+ [SchemaType.INT192]: bigint;
59
+ [SchemaType.INT200]: bigint;
60
+ [SchemaType.INT208]: bigint;
61
+ [SchemaType.INT216]: bigint;
62
+ [SchemaType.INT224]: bigint;
63
+ [SchemaType.INT232]: bigint;
64
+ [SchemaType.INT240]: bigint;
65
+ [SchemaType.INT248]: bigint;
66
+ [SchemaType.INT256]: bigint;
67
+ [SchemaType.BYTES1]: string;
68
+ [SchemaType.BYTES2]: string;
69
+ [SchemaType.BYTES3]: string;
70
+ [SchemaType.BYTES4]: string;
71
+ [SchemaType.BYTES5]: string;
72
+ [SchemaType.BYTES6]: string;
73
+ [SchemaType.BYTES7]: string;
74
+ [SchemaType.BYTES8]: string;
75
+ [SchemaType.BYTES9]: string;
76
+ [SchemaType.BYTES10]: string;
77
+ [SchemaType.BYTES11]: string;
78
+ [SchemaType.BYTES12]: string;
79
+ [SchemaType.BYTES13]: string;
80
+ [SchemaType.BYTES14]: string;
81
+ [SchemaType.BYTES15]: string;
82
+ [SchemaType.BYTES16]: string;
83
+ [SchemaType.BYTES17]: string;
84
+ [SchemaType.BYTES18]: string;
85
+ [SchemaType.BYTES19]: string;
86
+ [SchemaType.BYTES20]: string;
87
+ [SchemaType.BYTES21]: string;
88
+ [SchemaType.BYTES22]: string;
89
+ [SchemaType.BYTES23]: string;
90
+ [SchemaType.BYTES24]: string;
91
+ [SchemaType.BYTES25]: string;
92
+ [SchemaType.BYTES26]: string;
93
+ [SchemaType.BYTES27]: string;
94
+ [SchemaType.BYTES28]: string;
95
+ [SchemaType.BYTES29]: string;
96
+ [SchemaType.BYTES30]: string;
97
+ [SchemaType.BYTES31]: string;
98
+ [SchemaType.BYTES32]: string;
99
+ [SchemaType.BOOL]: boolean;
100
+ [SchemaType.ADDRESS]: string;
101
+ [SchemaType.UINT8_ARRAY]: number[];
102
+ [SchemaType.UINT16_ARRAY]: number[];
103
+ [SchemaType.UINT24_ARRAY]: number[];
104
+ [SchemaType.UINT32_ARRAY]: number[];
105
+ [SchemaType.UINT40_ARRAY]: number[];
106
+ [SchemaType.UINT48_ARRAY]: number[];
107
+ [SchemaType.UINT56_ARRAY]: bigint[];
108
+ [SchemaType.UINT64_ARRAY]: bigint[];
109
+ [SchemaType.UINT72_ARRAY]: bigint[];
110
+ [SchemaType.UINT80_ARRAY]: bigint[];
111
+ [SchemaType.UINT88_ARRAY]: bigint[];
112
+ [SchemaType.UINT96_ARRAY]: bigint[];
113
+ [SchemaType.UINT104_ARRAY]: bigint[];
114
+ [SchemaType.UINT112_ARRAY]: bigint[];
115
+ [SchemaType.UINT120_ARRAY]: bigint[];
116
+ [SchemaType.UINT128_ARRAY]: bigint[];
117
+ [SchemaType.UINT136_ARRAY]: bigint[];
118
+ [SchemaType.UINT144_ARRAY]: bigint[];
119
+ [SchemaType.UINT152_ARRAY]: bigint[];
120
+ [SchemaType.UINT160_ARRAY]: bigint[];
121
+ [SchemaType.UINT168_ARRAY]: bigint[];
122
+ [SchemaType.UINT176_ARRAY]: bigint[];
123
+ [SchemaType.UINT184_ARRAY]: bigint[];
124
+ [SchemaType.UINT192_ARRAY]: bigint[];
125
+ [SchemaType.UINT200_ARRAY]: bigint[];
126
+ [SchemaType.UINT208_ARRAY]: bigint[];
127
+ [SchemaType.UINT216_ARRAY]: bigint[];
128
+ [SchemaType.UINT224_ARRAY]: bigint[];
129
+ [SchemaType.UINT232_ARRAY]: bigint[];
130
+ [SchemaType.UINT240_ARRAY]: bigint[];
131
+ [SchemaType.UINT248_ARRAY]: bigint[];
132
+ [SchemaType.UINT256_ARRAY]: bigint[];
133
+ [SchemaType.INT8_ARRAY]: number[];
134
+ [SchemaType.INT16_ARRAY]: number[];
135
+ [SchemaType.INT24_ARRAY]: number[];
136
+ [SchemaType.INT32_ARRAY]: number[];
137
+ [SchemaType.INT40_ARRAY]: number[];
138
+ [SchemaType.INT48_ARRAY]: number[];
139
+ [SchemaType.INT56_ARRAY]: bigint[];
140
+ [SchemaType.INT64_ARRAY]: bigint[];
141
+ [SchemaType.INT72_ARRAY]: bigint[];
142
+ [SchemaType.INT80_ARRAY]: bigint[];
143
+ [SchemaType.INT88_ARRAY]: bigint[];
144
+ [SchemaType.INT96_ARRAY]: bigint[];
145
+ [SchemaType.INT104_ARRAY]: bigint[];
146
+ [SchemaType.INT112_ARRAY]: bigint[];
147
+ [SchemaType.INT120_ARRAY]: bigint[];
148
+ [SchemaType.INT128_ARRAY]: bigint[];
149
+ [SchemaType.INT136_ARRAY]: bigint[];
150
+ [SchemaType.INT144_ARRAY]: bigint[];
151
+ [SchemaType.INT152_ARRAY]: bigint[];
152
+ [SchemaType.INT160_ARRAY]: bigint[];
153
+ [SchemaType.INT168_ARRAY]: bigint[];
154
+ [SchemaType.INT176_ARRAY]: bigint[];
155
+ [SchemaType.INT184_ARRAY]: bigint[];
156
+ [SchemaType.INT192_ARRAY]: bigint[];
157
+ [SchemaType.INT200_ARRAY]: bigint[];
158
+ [SchemaType.INT208_ARRAY]: bigint[];
159
+ [SchemaType.INT216_ARRAY]: bigint[];
160
+ [SchemaType.INT224_ARRAY]: bigint[];
161
+ [SchemaType.INT232_ARRAY]: bigint[];
162
+ [SchemaType.INT240_ARRAY]: bigint[];
163
+ [SchemaType.INT248_ARRAY]: bigint[];
164
+ [SchemaType.INT256_ARRAY]: bigint[];
165
+ [SchemaType.BYTES1_ARRAY]: string[];
166
+ [SchemaType.BYTES2_ARRAY]: string[];
167
+ [SchemaType.BYTES3_ARRAY]: string[];
168
+ [SchemaType.BYTES4_ARRAY]: string[];
169
+ [SchemaType.BYTES5_ARRAY]: string[];
170
+ [SchemaType.BYTES6_ARRAY]: string[];
171
+ [SchemaType.BYTES7_ARRAY]: string[];
172
+ [SchemaType.BYTES8_ARRAY]: string[];
173
+ [SchemaType.BYTES9_ARRAY]: string[];
174
+ [SchemaType.BYTES10_ARRAY]: string[];
175
+ [SchemaType.BYTES11_ARRAY]: string[];
176
+ [SchemaType.BYTES12_ARRAY]: string[];
177
+ [SchemaType.BYTES13_ARRAY]: string[];
178
+ [SchemaType.BYTES14_ARRAY]: string[];
179
+ [SchemaType.BYTES15_ARRAY]: string[];
180
+ [SchemaType.BYTES16_ARRAY]: string[];
181
+ [SchemaType.BYTES17_ARRAY]: string[];
182
+ [SchemaType.BYTES18_ARRAY]: string[];
183
+ [SchemaType.BYTES19_ARRAY]: string[];
184
+ [SchemaType.BYTES20_ARRAY]: string[];
185
+ [SchemaType.BYTES21_ARRAY]: string[];
186
+ [SchemaType.BYTES22_ARRAY]: string[];
187
+ [SchemaType.BYTES23_ARRAY]: string[];
188
+ [SchemaType.BYTES24_ARRAY]: string[];
189
+ [SchemaType.BYTES25_ARRAY]: string[];
190
+ [SchemaType.BYTES26_ARRAY]: string[];
191
+ [SchemaType.BYTES27_ARRAY]: string[];
192
+ [SchemaType.BYTES28_ARRAY]: string[];
193
+ [SchemaType.BYTES29_ARRAY]: string[];
194
+ [SchemaType.BYTES30_ARRAY]: string[];
195
+ [SchemaType.BYTES31_ARRAY]: string[];
196
+ [SchemaType.BYTES32_ARRAY]: string[];
197
+ [SchemaType.BOOL_ARRAY]: boolean[];
198
+ [SchemaType.ADDRESS_ARRAY]: string[];
199
+ [SchemaType.BYTES]: string;
200
+ [SchemaType.STRING]: string;
201
+ };
@@ -0,0 +1,2 @@
1
+ import { SchemaType } from "./SchemaType.js";
2
+ //# sourceMappingURL=SchemaTypeToPrimitive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaTypeToPrimitive.js","sourceRoot":"","sources":["../../src/typescript/SchemaTypeToPrimitive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { SchemaTypeToAbiType } from "./SchemaTypeToAbiType.js";
2
+ import { StaticSchemaType } from "./StaticSchemaType.js";
3
+ export type StaticAbiType = (typeof SchemaTypeToAbiType)[StaticSchemaType];
4
+ export declare const StaticAbiTypes: StaticAbiType[];
@@ -0,0 +1,5 @@
1
+ import { AbiTypes } from "./AbiTypes.js";
2
+ import { AbiTypeToSchemaType } from "./AbiTypeToSchemaType.js";
3
+ import { getStaticByteLength } from "./getStaticByteLength.js";
4
+ export const StaticAbiTypes = AbiTypes.filter((abiType) => getStaticByteLength(AbiTypeToSchemaType[abiType]) > 0);
5
+ //# sourceMappingURL=StaticAbiTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticAbiTypes.js","sourceRoot":"","sources":["../../src/typescript/StaticAbiTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAK/D,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAC3C,CAAC,OAAO,EAAE,EAAE,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAChD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SchemaType } from "./SchemaType.js";
2
+ import { DynamicSchemaType } from "./DynamicSchemaType.js";
3
+ export type StaticSchemaType = Exclude<SchemaType, DynamicSchemaType>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=StaticSchemaType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticSchemaType.js","sourceRoot":"","sources":["../../src/typescript/StaticSchemaType.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { SchemaType } from "./SchemaType.js";
2
+ /**
3
+ * Encode a table schema into a bytes32 hex string
4
+ * Port of `Schema.sol` from `@latticexyz/store`
5
+ * @param schema The schema to encode SchemaType[]
6
+ * @returns The encoded schema as a 32 byte hex string
7
+ */
8
+ export declare function encodeSchema(schema: SchemaType[]): Uint8Array;