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