@zoralabs/protocol-deployments 0.7.5 → 0.7.6
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/.turbo/turbo-build$colon$js.log +25 -23
- package/CHANGELOG.md +8 -0
- package/dist/{_esm-7WTTA2BK.js → _esm-IDF567EZ.js} +214 -188
- package/dist/_esm-IDF567EZ.js.map +1 -0
- package/dist/{ccip-Y2GC34UW.js → ccip-TMLJ3HRN.js} +3 -2
- package/dist/chunk-BYTNVMX7.js +408 -0
- package/dist/chunk-BYTNVMX7.js.map +1 -0
- package/dist/{chunk-TP53IMLY.js → chunk-G6JVDOS5.js} +1187 -633
- package/dist/chunk-G6JVDOS5.js.map +1 -0
- package/dist/generated/wagmi.d.ts +48 -16
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +198 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/dist/{secp256k1-VMQNAPXV.js → secp256k1-XP7IUONI.js} +438 -736
- package/dist/secp256k1-XP7IUONI.js.map +1 -0
- package/package.json +2 -2
- package/src/generated/wagmi.ts +6 -2
- package/dist/_esm-7WTTA2BK.js.map +0 -1
- package/dist/chunk-TP53IMLY.js.map +0 -1
- package/dist/secp256k1-VMQNAPXV.js.map +0 -1
- /package/dist/{ccip-Y2GC34UW.js.map → ccip-TMLJ3HRN.js.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -20,18 +20,18 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
};
|
|
21
21
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
22
|
|
|
23
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
23
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/regex.js
|
|
24
24
|
function execTyped(regex, string) {
|
|
25
25
|
const match = regex.exec(string);
|
|
26
26
|
return match?.groups;
|
|
27
27
|
}
|
|
28
28
|
var init_regex = __esm({
|
|
29
|
-
"../../node_modules/.pnpm/abitype@1.
|
|
29
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/regex.js"() {
|
|
30
30
|
"use strict";
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
34
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
35
35
|
function formatAbiParameter(abiParameter) {
|
|
36
36
|
let type = abiParameter.type;
|
|
37
37
|
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
@@ -44,7 +44,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
44
44
|
type += ", ";
|
|
45
45
|
}
|
|
46
46
|
const result = execTyped(tupleRegex, abiParameter.type);
|
|
47
|
-
type += `)${result?.array
|
|
47
|
+
type += `)${result?.array || ""}`;
|
|
48
48
|
return formatAbiParameter({
|
|
49
49
|
...abiParameter,
|
|
50
50
|
type
|
|
@@ -58,14 +58,14 @@ function formatAbiParameter(abiParameter) {
|
|
|
58
58
|
}
|
|
59
59
|
var tupleRegex;
|
|
60
60
|
var init_formatAbiParameter = __esm({
|
|
61
|
-
"../../node_modules/.pnpm/abitype@1.
|
|
61
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
|
|
62
62
|
"use strict";
|
|
63
63
|
init_regex();
|
|
64
64
|
tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
68
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
69
69
|
function formatAbiParameters(abiParameters) {
|
|
70
70
|
let params = "";
|
|
71
71
|
const length = abiParameters.length;
|
|
@@ -78,13 +78,13 @@ function formatAbiParameters(abiParameters) {
|
|
|
78
78
|
return params;
|
|
79
79
|
}
|
|
80
80
|
var init_formatAbiParameters = __esm({
|
|
81
|
-
"../../node_modules/.pnpm/abitype@1.
|
|
81
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
|
|
82
82
|
"use strict";
|
|
83
83
|
init_formatAbiParameter();
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
87
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
88
88
|
function formatAbiItem(abiItem) {
|
|
89
89
|
if (abiItem.type === "function")
|
|
90
90
|
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
@@ -99,21 +99,21 @@ function formatAbiItem(abiItem) {
|
|
|
99
99
|
return "receive() external payable";
|
|
100
100
|
}
|
|
101
101
|
var init_formatAbiItem = __esm({
|
|
102
|
-
"../../node_modules/.pnpm/abitype@1.
|
|
102
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
|
|
103
103
|
"use strict";
|
|
104
104
|
init_formatAbiParameters();
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
// ../../node_modules/.pnpm/abitype@1.
|
|
108
|
+
// ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/exports/index.js
|
|
109
109
|
var init_exports = __esm({
|
|
110
|
-
"../../node_modules/.pnpm/abitype@1.
|
|
110
|
+
"../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/exports/index.js"() {
|
|
111
111
|
"use strict";
|
|
112
112
|
init_formatAbiItem();
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
|
|
116
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
116
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
117
117
|
function formatAbiItem2(abiItem, { includeName = false } = {}) {
|
|
118
118
|
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
119
119
|
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
@@ -131,13 +131,13 @@ function formatAbiParam(param, { includeName }) {
|
|
|
131
131
|
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
132
132
|
}
|
|
133
133
|
var init_formatAbiItem2 = __esm({
|
|
134
|
-
"../../node_modules/.pnpm/viem@2.
|
|
134
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/formatAbiItem.js"() {
|
|
135
135
|
"use strict";
|
|
136
136
|
init_abi();
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
140
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js
|
|
141
141
|
function isHex(value, { strict = true } = {}) {
|
|
142
142
|
if (!value)
|
|
143
143
|
return false;
|
|
@@ -146,34 +146,34 @@ function isHex(value, { strict = true } = {}) {
|
|
|
146
146
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
147
147
|
}
|
|
148
148
|
var init_isHex = __esm({
|
|
149
|
-
"../../node_modules/.pnpm/viem@2.
|
|
149
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js"() {
|
|
150
150
|
"use strict";
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
154
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js
|
|
155
155
|
function size(value) {
|
|
156
156
|
if (isHex(value, { strict: false }))
|
|
157
157
|
return Math.ceil((value.length - 2) / 2);
|
|
158
158
|
return value.length;
|
|
159
159
|
}
|
|
160
160
|
var init_size = __esm({
|
|
161
|
-
"../../node_modules/.pnpm/viem@2.
|
|
161
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js"() {
|
|
162
162
|
"use strict";
|
|
163
163
|
init_isHex();
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
167
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/version.js
|
|
168
168
|
var version;
|
|
169
169
|
var init_version = __esm({
|
|
170
|
-
"../../node_modules/.pnpm/viem@2.
|
|
170
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/version.js"() {
|
|
171
171
|
"use strict";
|
|
172
|
-
version = "2.
|
|
172
|
+
version = "2.53.1";
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
176
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/base.js
|
|
177
177
|
function walk(err, fn) {
|
|
178
178
|
if (fn?.(err))
|
|
179
179
|
return err;
|
|
@@ -183,7 +183,7 @@ function walk(err, fn) {
|
|
|
183
183
|
}
|
|
184
184
|
var errorConfig, BaseError;
|
|
185
185
|
var init_base = __esm({
|
|
186
|
-
"../../node_modules/.pnpm/viem@2.
|
|
186
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/base.js"() {
|
|
187
187
|
"use strict";
|
|
188
188
|
init_version();
|
|
189
189
|
errorConfig = {
|
|
@@ -264,10 +264,10 @@ var init_base = __esm({
|
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
|
|
267
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
267
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/abi.js
|
|
268
268
|
var AbiDecodingDataSizeTooSmallError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError, AbiItemAmbiguityError, InvalidAbiEncodingTypeError, InvalidAbiDecodingTypeError, InvalidArrayError, InvalidDefinitionTypeError;
|
|
269
269
|
var init_abi = __esm({
|
|
270
|
-
"../../node_modules/.pnpm/viem@2.
|
|
270
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/abi.js"() {
|
|
271
271
|
"use strict";
|
|
272
272
|
init_formatAbiItem2();
|
|
273
273
|
init_size();
|
|
@@ -305,9 +305,10 @@ var init_abi = __esm({
|
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
AbiDecodingZeroDataError = class extends BaseError {
|
|
308
|
-
constructor() {
|
|
308
|
+
constructor({ cause } = {}) {
|
|
309
309
|
super('Cannot decode zero data ("0x") with ABI parameters.', {
|
|
310
|
-
name: "AbiDecodingZeroDataError"
|
|
310
|
+
name: "AbiDecodingZeroDataError",
|
|
311
|
+
cause
|
|
311
312
|
});
|
|
312
313
|
}
|
|
313
314
|
};
|
|
@@ -382,10 +383,10 @@ var init_abi = __esm({
|
|
|
382
383
|
}
|
|
383
384
|
});
|
|
384
385
|
|
|
385
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
386
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/data.js
|
|
386
387
|
var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
|
387
388
|
var init_data = __esm({
|
|
388
|
-
"../../node_modules/.pnpm/viem@2.
|
|
389
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/data.js"() {
|
|
389
390
|
"use strict";
|
|
390
391
|
init_base();
|
|
391
392
|
SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
@@ -401,7 +402,7 @@ var init_data = __esm({
|
|
|
401
402
|
}
|
|
402
403
|
});
|
|
403
404
|
|
|
404
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
405
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js
|
|
405
406
|
function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
|
|
406
407
|
if (typeof hexOrBytes === "string")
|
|
407
408
|
return padHex(hexOrBytes, { dir, size: size2 });
|
|
@@ -436,16 +437,16 @@ function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
|
|
|
436
437
|
return paddedBytes;
|
|
437
438
|
}
|
|
438
439
|
var init_pad = __esm({
|
|
439
|
-
"../../node_modules/.pnpm/viem@2.
|
|
440
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js"() {
|
|
440
441
|
"use strict";
|
|
441
442
|
init_data();
|
|
442
443
|
}
|
|
443
444
|
});
|
|
444
445
|
|
|
445
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
446
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js
|
|
446
447
|
var IntegerOutOfRangeError, InvalidBytesBooleanError, SizeOverflowError;
|
|
447
448
|
var init_encoding = __esm({
|
|
448
|
-
"../../node_modules/.pnpm/viem@2.
|
|
449
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js"() {
|
|
449
450
|
"use strict";
|
|
450
451
|
init_base();
|
|
451
452
|
IntegerOutOfRangeError = class extends BaseError {
|
|
@@ -468,7 +469,7 @@ var init_encoding = __esm({
|
|
|
468
469
|
}
|
|
469
470
|
});
|
|
470
471
|
|
|
471
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
472
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js
|
|
472
473
|
function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
473
474
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
474
475
|
let sliceLength = 0;
|
|
@@ -487,12 +488,12 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
|
487
488
|
return data;
|
|
488
489
|
}
|
|
489
490
|
var init_trim = __esm({
|
|
490
|
-
"../../node_modules/.pnpm/viem@2.
|
|
491
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js"() {
|
|
491
492
|
"use strict";
|
|
492
493
|
}
|
|
493
494
|
});
|
|
494
495
|
|
|
495
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
496
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
496
497
|
function assertSize(hexOrBytes, { size: size2 }) {
|
|
497
498
|
if (size(hexOrBytes) > size2)
|
|
498
499
|
throw new SizeOverflowError({
|
|
@@ -514,17 +515,27 @@ function hexToBigInt(hex, opts = {}) {
|
|
|
514
515
|
return value - BigInt(`0x${"f".padStart(size2 * 2, "f")}`) - 1n;
|
|
515
516
|
}
|
|
516
517
|
function hexToNumber(hex, opts = {}) {
|
|
517
|
-
|
|
518
|
+
const value = hexToBigInt(hex, opts);
|
|
519
|
+
const number = Number(value);
|
|
520
|
+
if (!Number.isSafeInteger(number))
|
|
521
|
+
throw new IntegerOutOfRangeError({
|
|
522
|
+
max: `${Number.MAX_SAFE_INTEGER}`,
|
|
523
|
+
min: `${Number.MIN_SAFE_INTEGER}`,
|
|
524
|
+
signed: opts.signed,
|
|
525
|
+
size: opts.size,
|
|
526
|
+
value: `${value}n`
|
|
527
|
+
});
|
|
528
|
+
return number;
|
|
518
529
|
}
|
|
519
530
|
var init_fromHex = __esm({
|
|
520
|
-
"../../node_modules/.pnpm/viem@2.
|
|
531
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
|
|
521
532
|
"use strict";
|
|
522
533
|
init_encoding();
|
|
523
534
|
init_size();
|
|
524
535
|
}
|
|
525
536
|
});
|
|
526
537
|
|
|
527
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
538
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
528
539
|
function toHex(value, opts = {}) {
|
|
529
540
|
if (typeof value === "number" || typeof value === "bigint")
|
|
530
541
|
return numberToHex(value, opts);
|
|
@@ -589,7 +600,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
589
600
|
}
|
|
590
601
|
var hexes, encoder;
|
|
591
602
|
var init_toHex = __esm({
|
|
592
|
-
"../../node_modules/.pnpm/viem@2.
|
|
603
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js"() {
|
|
593
604
|
"use strict";
|
|
594
605
|
init_encoding();
|
|
595
606
|
init_pad();
|
|
@@ -599,7 +610,7 @@ var init_toHex = __esm({
|
|
|
599
610
|
}
|
|
600
611
|
});
|
|
601
612
|
|
|
602
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
613
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
603
614
|
function toBytes(value, opts = {}) {
|
|
604
615
|
if (typeof value === "number" || typeof value === "bigint")
|
|
605
616
|
return numberToBytes(value, opts);
|
|
@@ -662,7 +673,7 @@ function stringToBytes(value, opts = {}) {
|
|
|
662
673
|
}
|
|
663
674
|
var encoder2, charCodeMap;
|
|
664
675
|
var init_toBytes = __esm({
|
|
665
|
-
"../../node_modules/.pnpm/viem@2.
|
|
676
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
|
|
666
677
|
"use strict";
|
|
667
678
|
init_base();
|
|
668
679
|
init_isHex();
|
|
@@ -681,14 +692,43 @@ var init_toBytes = __esm({
|
|
|
681
692
|
}
|
|
682
693
|
});
|
|
683
694
|
|
|
684
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
685
|
-
function
|
|
686
|
-
if (
|
|
687
|
-
|
|
695
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
|
|
696
|
+
function fromBig(n, le = false) {
|
|
697
|
+
if (le)
|
|
698
|
+
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
699
|
+
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
700
|
+
}
|
|
701
|
+
function split(lst, le = false) {
|
|
702
|
+
const len = lst.length;
|
|
703
|
+
let Ah = new Uint32Array(len);
|
|
704
|
+
let Al = new Uint32Array(len);
|
|
705
|
+
for (let i = 0; i < len; i++) {
|
|
706
|
+
const { h, l } = fromBig(lst[i], le);
|
|
707
|
+
[Ah[i], Al[i]] = [h, l];
|
|
708
|
+
}
|
|
709
|
+
return [Ah, Al];
|
|
688
710
|
}
|
|
711
|
+
var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
|
|
712
|
+
var init_u64 = __esm({
|
|
713
|
+
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js"() {
|
|
714
|
+
"use strict";
|
|
715
|
+
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
716
|
+
_32n = /* @__PURE__ */ BigInt(32);
|
|
717
|
+
rotlSH = (h, l, s) => h << s | l >>> 32 - s;
|
|
718
|
+
rotlSL = (h, l, s) => l << s | h >>> 32 - s;
|
|
719
|
+
rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
|
|
720
|
+
rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
|
|
724
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
|
|
689
725
|
function isBytes(a) {
|
|
690
726
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
691
727
|
}
|
|
728
|
+
function anumber(n) {
|
|
729
|
+
if (!Number.isSafeInteger(n) || n < 0)
|
|
730
|
+
throw new Error("positive integer expected, got " + n);
|
|
731
|
+
}
|
|
692
732
|
function abytes(b, ...lengths) {
|
|
693
733
|
if (!isBytes(b))
|
|
694
734
|
throw new Error("Uint8Array expected");
|
|
@@ -708,49 +748,26 @@ function aoutput(out, instance) {
|
|
|
708
748
|
throw new Error("digestInto() expects output buffer of length at least " + min);
|
|
709
749
|
}
|
|
710
750
|
}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
"use strict";
|
|
714
|
-
}
|
|
715
|
-
});
|
|
716
|
-
|
|
717
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js
|
|
718
|
-
function fromBig(n, le = false) {
|
|
719
|
-
if (le)
|
|
720
|
-
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
721
|
-
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
751
|
+
function u32(arr) {
|
|
752
|
+
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
722
753
|
}
|
|
723
|
-
function
|
|
724
|
-
let
|
|
725
|
-
|
|
726
|
-
for (let i = 0; i < lst.length; i++) {
|
|
727
|
-
const { h, l } = fromBig(lst[i], le);
|
|
728
|
-
[Ah[i], Al[i]] = [h, l];
|
|
754
|
+
function clean(...arrays) {
|
|
755
|
+
for (let i = 0; i < arrays.length; i++) {
|
|
756
|
+
arrays[i].fill(0);
|
|
729
757
|
}
|
|
730
|
-
return [Ah, Al];
|
|
731
758
|
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
"use strict";
|
|
736
|
-
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
737
|
-
_32n = /* @__PURE__ */ BigInt(32);
|
|
738
|
-
rotlSH = (h, l, s) => h << s | l >>> 32 - s;
|
|
739
|
-
rotlSL = (h, l, s) => l << s | h >>> 32 - s;
|
|
740
|
-
rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
|
|
741
|
-
rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
|
|
742
|
-
}
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js
|
|
759
|
+
function byteSwap(word) {
|
|
760
|
+
return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
|
761
|
+
}
|
|
746
762
|
function byteSwap32(arr) {
|
|
747
763
|
for (let i = 0; i < arr.length; i++) {
|
|
748
764
|
arr[i] = byteSwap(arr[i]);
|
|
749
765
|
}
|
|
766
|
+
return arr;
|
|
750
767
|
}
|
|
751
768
|
function utf8ToBytes(str) {
|
|
752
769
|
if (typeof str !== "string")
|
|
753
|
-
throw new Error("
|
|
770
|
+
throw new Error("string expected");
|
|
754
771
|
return new Uint8Array(new TextEncoder().encode(str));
|
|
755
772
|
}
|
|
756
773
|
function toBytes2(data) {
|
|
@@ -759,7 +776,7 @@ function toBytes2(data) {
|
|
|
759
776
|
abytes(data);
|
|
760
777
|
return data;
|
|
761
778
|
}
|
|
762
|
-
function
|
|
779
|
+
function createHasher(hashCons) {
|
|
763
780
|
const hashC = (msg) => hashCons().update(toBytes2(msg)).digest();
|
|
764
781
|
const tmp = hashCons();
|
|
765
782
|
hashC.outputLen = tmp.outputLen;
|
|
@@ -767,32 +784,18 @@ function wrapConstructor(hashCons) {
|
|
|
767
784
|
hashC.create = () => hashCons();
|
|
768
785
|
return hashC;
|
|
769
786
|
}
|
|
770
|
-
|
|
771
|
-
const hashC = (msg, opts) => hashCons(opts).update(toBytes2(msg)).digest();
|
|
772
|
-
const tmp = hashCons({});
|
|
773
|
-
hashC.outputLen = tmp.outputLen;
|
|
774
|
-
hashC.blockLen = tmp.blockLen;
|
|
775
|
-
hashC.create = (opts) => hashCons(opts);
|
|
776
|
-
return hashC;
|
|
777
|
-
}
|
|
778
|
-
var u32, isLE, byteSwap, Hash;
|
|
787
|
+
var isLE, swap32IfBE, Hash;
|
|
779
788
|
var init_utils = __esm({
|
|
780
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
789
|
+
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js"() {
|
|
781
790
|
"use strict";
|
|
782
|
-
init_assert();
|
|
783
|
-
u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
784
791
|
isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
785
|
-
|
|
792
|
+
swap32IfBE = isLE ? (u) => u : byteSwap32;
|
|
786
793
|
Hash = class {
|
|
787
|
-
// Safe version that clones internal state
|
|
788
|
-
clone() {
|
|
789
|
-
return this._cloneInto();
|
|
790
|
-
}
|
|
791
794
|
};
|
|
792
795
|
}
|
|
793
796
|
});
|
|
794
797
|
|
|
795
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
798
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js
|
|
796
799
|
function keccakP(s, rounds = 24) {
|
|
797
800
|
const B = new Uint32Array(5 * 2);
|
|
798
801
|
for (let round = 24 - rounds; round < 24; round++) {
|
|
@@ -831,24 +834,23 @@ function keccakP(s, rounds = 24) {
|
|
|
831
834
|
s[0] ^= SHA3_IOTA_H[round];
|
|
832
835
|
s[1] ^= SHA3_IOTA_L[round];
|
|
833
836
|
}
|
|
834
|
-
B
|
|
837
|
+
clean(B);
|
|
835
838
|
}
|
|
836
|
-
var
|
|
839
|
+
var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, rotlH, rotlL, Keccak, gen, keccak_256;
|
|
837
840
|
var init_sha3 = __esm({
|
|
838
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
841
|
+
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js"() {
|
|
839
842
|
"use strict";
|
|
840
|
-
init_assert();
|
|
841
843
|
init_u64();
|
|
842
844
|
init_utils();
|
|
845
|
+
_0n = BigInt(0);
|
|
846
|
+
_1n = BigInt(1);
|
|
847
|
+
_2n = BigInt(2);
|
|
848
|
+
_7n = BigInt(7);
|
|
849
|
+
_256n = BigInt(256);
|
|
850
|
+
_0x71n = BigInt(113);
|
|
843
851
|
SHA3_PI = [];
|
|
844
852
|
SHA3_ROTL = [];
|
|
845
853
|
_SHA3_IOTA = [];
|
|
846
|
-
_0n = /* @__PURE__ */ BigInt(0);
|
|
847
|
-
_1n = /* @__PURE__ */ BigInt(1);
|
|
848
|
-
_2n = /* @__PURE__ */ BigInt(2);
|
|
849
|
-
_7n = /* @__PURE__ */ BigInt(7);
|
|
850
|
-
_256n = /* @__PURE__ */ BigInt(256);
|
|
851
|
-
_0x71n = /* @__PURE__ */ BigInt(113);
|
|
852
854
|
for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
853
855
|
[x, y] = [y, (2 * x + 3 * y) % 5];
|
|
854
856
|
SHA3_PI.push(2 * (5 * y + x));
|
|
@@ -861,41 +863,46 @@ var init_sha3 = __esm({
|
|
|
861
863
|
}
|
|
862
864
|
_SHA3_IOTA.push(t);
|
|
863
865
|
}
|
|
864
|
-
|
|
866
|
+
IOTAS = split(_SHA3_IOTA, true);
|
|
867
|
+
SHA3_IOTA_H = IOTAS[0];
|
|
868
|
+
SHA3_IOTA_L = IOTAS[1];
|
|
865
869
|
rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
|
|
866
870
|
rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
|
|
867
871
|
Keccak = class _Keccak extends Hash {
|
|
868
872
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
869
873
|
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
|
870
874
|
super();
|
|
875
|
+
this.pos = 0;
|
|
876
|
+
this.posOut = 0;
|
|
877
|
+
this.finished = false;
|
|
878
|
+
this.destroyed = false;
|
|
879
|
+
this.enableXOF = false;
|
|
871
880
|
this.blockLen = blockLen;
|
|
872
881
|
this.suffix = suffix;
|
|
873
882
|
this.outputLen = outputLen;
|
|
874
883
|
this.enableXOF = enableXOF;
|
|
875
884
|
this.rounds = rounds;
|
|
876
|
-
this.pos = 0;
|
|
877
|
-
this.posOut = 0;
|
|
878
|
-
this.finished = false;
|
|
879
|
-
this.destroyed = false;
|
|
880
885
|
anumber(outputLen);
|
|
881
|
-
if (0
|
|
882
|
-
throw new Error("
|
|
886
|
+
if (!(0 < blockLen && blockLen < 200))
|
|
887
|
+
throw new Error("only keccak-f1600 function is supported");
|
|
883
888
|
this.state = new Uint8Array(200);
|
|
884
889
|
this.state32 = u32(this.state);
|
|
885
890
|
}
|
|
891
|
+
clone() {
|
|
892
|
+
return this._cloneInto();
|
|
893
|
+
}
|
|
886
894
|
keccak() {
|
|
887
|
-
|
|
888
|
-
byteSwap32(this.state32);
|
|
895
|
+
swap32IfBE(this.state32);
|
|
889
896
|
keccakP(this.state32, this.rounds);
|
|
890
|
-
|
|
891
|
-
byteSwap32(this.state32);
|
|
897
|
+
swap32IfBE(this.state32);
|
|
892
898
|
this.posOut = 0;
|
|
893
899
|
this.pos = 0;
|
|
894
900
|
}
|
|
895
901
|
update(data) {
|
|
896
902
|
aexists(this);
|
|
897
|
-
const { blockLen, state } = this;
|
|
898
903
|
data = toBytes2(data);
|
|
904
|
+
abytes(data);
|
|
905
|
+
const { blockLen, state } = this;
|
|
899
906
|
const len = data.length;
|
|
900
907
|
for (let pos = 0; pos < len; ) {
|
|
901
908
|
const take = Math.min(blockLen - this.pos, len - pos);
|
|
@@ -955,7 +962,7 @@ var init_sha3 = __esm({
|
|
|
955
962
|
}
|
|
956
963
|
destroy() {
|
|
957
964
|
this.destroyed = true;
|
|
958
|
-
this.state
|
|
965
|
+
clean(this.state);
|
|
959
966
|
}
|
|
960
967
|
_cloneInto(to) {
|
|
961
968
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
@@ -972,22 +979,12 @@ var init_sha3 = __esm({
|
|
|
972
979
|
return to;
|
|
973
980
|
}
|
|
974
981
|
};
|
|
975
|
-
gen = (suffix, blockLen, outputLen) =>
|
|
976
|
-
|
|
977
|
-
sha3_256 = /* @__PURE__ */ gen(6, 136, 256 / 8);
|
|
978
|
-
sha3_384 = /* @__PURE__ */ gen(6, 104, 384 / 8);
|
|
979
|
-
sha3_512 = /* @__PURE__ */ gen(6, 72, 512 / 8);
|
|
980
|
-
keccak_224 = /* @__PURE__ */ gen(1, 144, 224 / 8);
|
|
981
|
-
keccak_256 = /* @__PURE__ */ gen(1, 136, 256 / 8);
|
|
982
|
-
keccak_384 = /* @__PURE__ */ gen(1, 104, 384 / 8);
|
|
983
|
-
keccak_512 = /* @__PURE__ */ gen(1, 72, 512 / 8);
|
|
984
|
-
genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true));
|
|
985
|
-
shake128 = /* @__PURE__ */ genShake(31, 168, 128 / 8);
|
|
986
|
-
shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
|
982
|
+
gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
983
|
+
keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
|
|
987
984
|
}
|
|
988
985
|
});
|
|
989
986
|
|
|
990
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
987
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
991
988
|
function keccak256(value, to_) {
|
|
992
989
|
const to = to_ || "hex";
|
|
993
990
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
@@ -996,7 +993,7 @@ function keccak256(value, to_) {
|
|
|
996
993
|
return toHex(bytes);
|
|
997
994
|
}
|
|
998
995
|
var init_keccak256 = __esm({
|
|
999
|
-
"../../node_modules/.pnpm/viem@2.
|
|
996
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js"() {
|
|
1000
997
|
"use strict";
|
|
1001
998
|
init_sha3();
|
|
1002
999
|
init_isHex();
|
|
@@ -1005,13 +1002,13 @@ var init_keccak256 = __esm({
|
|
|
1005
1002
|
}
|
|
1006
1003
|
});
|
|
1007
1004
|
|
|
1008
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1005
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
1009
1006
|
function hashSignature(sig) {
|
|
1010
1007
|
return hash(sig);
|
|
1011
1008
|
}
|
|
1012
1009
|
var hash;
|
|
1013
1010
|
var init_hashSignature = __esm({
|
|
1014
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1011
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
|
|
1015
1012
|
"use strict";
|
|
1016
1013
|
init_toBytes();
|
|
1017
1014
|
init_keccak256();
|
|
@@ -1019,7 +1016,7 @@ var init_hashSignature = __esm({
|
|
|
1019
1016
|
}
|
|
1020
1017
|
});
|
|
1021
1018
|
|
|
1022
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1019
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
1023
1020
|
function normalizeSignature(signature) {
|
|
1024
1021
|
let active = true;
|
|
1025
1022
|
let current = "";
|
|
@@ -1063,16 +1060,16 @@ function normalizeSignature(signature) {
|
|
|
1063
1060
|
return result;
|
|
1064
1061
|
}
|
|
1065
1062
|
var init_normalizeSignature = __esm({
|
|
1066
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1063
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
|
|
1067
1064
|
"use strict";
|
|
1068
1065
|
init_base();
|
|
1069
1066
|
}
|
|
1070
1067
|
});
|
|
1071
1068
|
|
|
1072
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1069
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1073
1070
|
var toSignature;
|
|
1074
1071
|
var init_toSignature = __esm({
|
|
1075
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1072
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignature.js"() {
|
|
1076
1073
|
"use strict";
|
|
1077
1074
|
init_exports();
|
|
1078
1075
|
init_normalizeSignature();
|
|
@@ -1087,32 +1084,32 @@ var init_toSignature = __esm({
|
|
|
1087
1084
|
}
|
|
1088
1085
|
});
|
|
1089
1086
|
|
|
1090
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1087
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
1091
1088
|
function toSignatureHash(fn) {
|
|
1092
1089
|
return hashSignature(toSignature(fn));
|
|
1093
1090
|
}
|
|
1094
1091
|
var init_toSignatureHash = __esm({
|
|
1095
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1092
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
|
|
1096
1093
|
"use strict";
|
|
1097
1094
|
init_hashSignature();
|
|
1098
1095
|
init_toSignature();
|
|
1099
1096
|
}
|
|
1100
1097
|
});
|
|
1101
1098
|
|
|
1102
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1099
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
1103
1100
|
var toEventSelector;
|
|
1104
1101
|
var init_toEventSelector = __esm({
|
|
1105
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1102
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
|
|
1106
1103
|
"use strict";
|
|
1107
1104
|
init_toSignatureHash();
|
|
1108
1105
|
toEventSelector = toSignatureHash;
|
|
1109
1106
|
}
|
|
1110
1107
|
});
|
|
1111
1108
|
|
|
1112
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1109
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/address.js
|
|
1113
1110
|
var InvalidAddressError;
|
|
1114
1111
|
var init_address = __esm({
|
|
1115
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1112
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/address.js"() {
|
|
1116
1113
|
"use strict";
|
|
1117
1114
|
init_base();
|
|
1118
1115
|
InvalidAddressError = class extends BaseError {
|
|
@@ -1129,10 +1126,10 @@ var init_address = __esm({
|
|
|
1129
1126
|
}
|
|
1130
1127
|
});
|
|
1131
1128
|
|
|
1132
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1129
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/lru.js
|
|
1133
1130
|
var LruMap;
|
|
1134
1131
|
var init_lru = __esm({
|
|
1135
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1132
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/lru.js"() {
|
|
1136
1133
|
"use strict";
|
|
1137
1134
|
LruMap = class extends Map {
|
|
1138
1135
|
constructor(size2) {
|
|
@@ -1147,18 +1144,20 @@ var init_lru = __esm({
|
|
|
1147
1144
|
}
|
|
1148
1145
|
get(key) {
|
|
1149
1146
|
const value = super.get(key);
|
|
1150
|
-
if (super.has(key)
|
|
1151
|
-
|
|
1147
|
+
if (super.has(key)) {
|
|
1148
|
+
super.delete(key);
|
|
1152
1149
|
super.set(key, value);
|
|
1153
1150
|
}
|
|
1154
1151
|
return value;
|
|
1155
1152
|
}
|
|
1156
1153
|
set(key, value) {
|
|
1154
|
+
if (super.has(key))
|
|
1155
|
+
super.delete(key);
|
|
1157
1156
|
super.set(key, value);
|
|
1158
1157
|
if (this.maxSize && this.size > this.maxSize) {
|
|
1159
|
-
const firstKey =
|
|
1160
|
-
if (firstKey)
|
|
1161
|
-
|
|
1158
|
+
const firstKey = super.keys().next().value;
|
|
1159
|
+
if (firstKey !== void 0)
|
|
1160
|
+
super.delete(firstKey);
|
|
1162
1161
|
}
|
|
1163
1162
|
return this;
|
|
1164
1163
|
}
|
|
@@ -1166,7 +1165,7 @@ var init_lru = __esm({
|
|
|
1166
1165
|
}
|
|
1167
1166
|
});
|
|
1168
1167
|
|
|
1169
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1168
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js
|
|
1170
1169
|
function checksumAddress(address_, chainId) {
|
|
1171
1170
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
1172
1171
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
@@ -1187,7 +1186,7 @@ function checksumAddress(address_, chainId) {
|
|
|
1187
1186
|
}
|
|
1188
1187
|
var checksumAddressCache;
|
|
1189
1188
|
var init_getAddress = __esm({
|
|
1190
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1189
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js"() {
|
|
1191
1190
|
"use strict";
|
|
1192
1191
|
init_toBytes();
|
|
1193
1192
|
init_keccak256();
|
|
@@ -1196,7 +1195,7 @@ var init_getAddress = __esm({
|
|
|
1196
1195
|
}
|
|
1197
1196
|
});
|
|
1198
1197
|
|
|
1199
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1198
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js
|
|
1200
1199
|
function isAddress(address, options) {
|
|
1201
1200
|
const { strict = true } = options ?? {};
|
|
1202
1201
|
const cacheKey = `${address}.${strict}`;
|
|
@@ -1216,7 +1215,7 @@ function isAddress(address, options) {
|
|
|
1216
1215
|
}
|
|
1217
1216
|
var addressRegex, isAddressCache;
|
|
1218
1217
|
var init_isAddress = __esm({
|
|
1219
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1218
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js"() {
|
|
1220
1219
|
"use strict";
|
|
1221
1220
|
init_lru();
|
|
1222
1221
|
init_getAddress();
|
|
@@ -1225,7 +1224,7 @@ var init_isAddress = __esm({
|
|
|
1225
1224
|
}
|
|
1226
1225
|
});
|
|
1227
1226
|
|
|
1228
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1227
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js
|
|
1229
1228
|
function concat(values) {
|
|
1230
1229
|
if (typeof values[0] === "string")
|
|
1231
1230
|
return concatHex(values);
|
|
@@ -1248,12 +1247,12 @@ function concatHex(values) {
|
|
|
1248
1247
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
1249
1248
|
}
|
|
1250
1249
|
var init_concat = __esm({
|
|
1251
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1250
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js"() {
|
|
1252
1251
|
"use strict";
|
|
1253
1252
|
}
|
|
1254
1253
|
});
|
|
1255
1254
|
|
|
1256
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1255
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js
|
|
1257
1256
|
function slice(value, start, end, { strict } = {}) {
|
|
1258
1257
|
if (isHex(value, { strict: false }))
|
|
1259
1258
|
return sliceHex(value, start, end, {
|
|
@@ -1295,7 +1294,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1295
1294
|
return value;
|
|
1296
1295
|
}
|
|
1297
1296
|
var init_slice = __esm({
|
|
1298
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1297
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js"() {
|
|
1299
1298
|
"use strict";
|
|
1300
1299
|
init_data();
|
|
1301
1300
|
init_isHex();
|
|
@@ -1303,16 +1302,16 @@ var init_slice = __esm({
|
|
|
1303
1302
|
}
|
|
1304
1303
|
});
|
|
1305
1304
|
|
|
1306
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1305
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/regex.js
|
|
1307
1306
|
var integerRegex;
|
|
1308
1307
|
var init_regex2 = __esm({
|
|
1309
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1308
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/regex.js"() {
|
|
1310
1309
|
"use strict";
|
|
1311
1310
|
integerRegex = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
1312
1311
|
}
|
|
1313
1312
|
});
|
|
1314
1313
|
|
|
1315
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1314
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
1316
1315
|
function encodeAbiParameters(params, values) {
|
|
1317
1316
|
if (params.length !== values.length)
|
|
1318
1317
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -1449,9 +1448,9 @@ function encodeBytes(value, { param }) {
|
|
|
1449
1448
|
encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
|
|
1450
1449
|
};
|
|
1451
1450
|
}
|
|
1452
|
-
if (bytesSize !== Number.parseInt(paramSize))
|
|
1451
|
+
if (bytesSize !== Number.parseInt(paramSize, 10))
|
|
1453
1452
|
throw new AbiEncodingBytesSizeMismatchError({
|
|
1454
|
-
expectedSize: Number.parseInt(paramSize),
|
|
1453
|
+
expectedSize: Number.parseInt(paramSize, 10),
|
|
1455
1454
|
value
|
|
1456
1455
|
});
|
|
1457
1456
|
return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
|
|
@@ -1526,7 +1525,7 @@ function getArrayComponents(type) {
|
|
|
1526
1525
|
) : void 0;
|
|
1527
1526
|
}
|
|
1528
1527
|
var init_encodeAbiParameters = __esm({
|
|
1529
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1528
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
|
|
1530
1529
|
"use strict";
|
|
1531
1530
|
init_abi();
|
|
1532
1531
|
init_address();
|
|
@@ -1542,10 +1541,10 @@ var init_encodeAbiParameters = __esm({
|
|
|
1542
1541
|
}
|
|
1543
1542
|
});
|
|
1544
1543
|
|
|
1545
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1544
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1546
1545
|
var toFunctionSelector;
|
|
1547
1546
|
var init_toFunctionSelector = __esm({
|
|
1548
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1547
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
|
|
1549
1548
|
"use strict";
|
|
1550
1549
|
init_slice();
|
|
1551
1550
|
init_toSignatureHash();
|
|
@@ -1553,7 +1552,7 @@ var init_toFunctionSelector = __esm({
|
|
|
1553
1552
|
}
|
|
1554
1553
|
});
|
|
1555
1554
|
|
|
1556
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1555
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
1557
1556
|
function getAbiItem(parameters) {
|
|
1558
1557
|
const { abi, args = [], name } = parameters;
|
|
1559
1558
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -1571,7 +1570,7 @@ function getAbiItem(parameters) {
|
|
|
1571
1570
|
return void 0;
|
|
1572
1571
|
if (abiItems.length === 1)
|
|
1573
1572
|
return abiItems[0];
|
|
1574
|
-
let matchedAbiItem
|
|
1573
|
+
let matchedAbiItem;
|
|
1575
1574
|
for (const abiItem of abiItems) {
|
|
1576
1575
|
if (!("inputs" in abiItem))
|
|
1577
1576
|
continue;
|
|
@@ -1626,7 +1625,7 @@ function isArgOfType(arg, abiParameter) {
|
|
|
1626
1625
|
default: {
|
|
1627
1626
|
if (abiParameterType === "tuple" && "components" in abiParameter)
|
|
1628
1627
|
return Object.values(abiParameter.components).every((component, index) => {
|
|
1629
|
-
return isArgOfType(Object.values(arg)[index], component);
|
|
1628
|
+
return argType === "object" && isArgOfType(Object.values(arg)[index], component);
|
|
1630
1629
|
});
|
|
1631
1630
|
if (/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(abiParameterType))
|
|
1632
1631
|
return argType === "number" || argType === "bigint";
|
|
@@ -1665,7 +1664,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
1665
1664
|
return;
|
|
1666
1665
|
}
|
|
1667
1666
|
var init_getAbiItem = __esm({
|
|
1668
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1667
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
|
|
1669
1668
|
"use strict";
|
|
1670
1669
|
init_abi();
|
|
1671
1670
|
init_isHex();
|
|
@@ -1675,10 +1674,10 @@ var init_getAbiItem = __esm({
|
|
|
1675
1674
|
}
|
|
1676
1675
|
});
|
|
1677
1676
|
|
|
1678
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1677
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js
|
|
1679
1678
|
var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
|
|
1680
1679
|
var init_cursor = __esm({
|
|
1681
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1680
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js"() {
|
|
1682
1681
|
"use strict";
|
|
1683
1682
|
init_base();
|
|
1684
1683
|
NegativeOffsetError = class extends BaseError {
|
|
@@ -1701,18 +1700,18 @@ var init_cursor = __esm({
|
|
|
1701
1700
|
}
|
|
1702
1701
|
});
|
|
1703
1702
|
|
|
1704
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1703
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js
|
|
1705
1704
|
function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
1706
1705
|
const cursor = Object.create(staticCursor);
|
|
1707
1706
|
cursor.bytes = bytes;
|
|
1708
|
-
cursor.dataView = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
1707
|
+
cursor.dataView = new DataView(bytes.buffer ?? bytes, bytes.byteOffset, bytes.byteLength);
|
|
1709
1708
|
cursor.positionReadCount = /* @__PURE__ */ new Map();
|
|
1710
1709
|
cursor.recursiveReadLimit = recursiveReadLimit;
|
|
1711
1710
|
return cursor;
|
|
1712
1711
|
}
|
|
1713
1712
|
var staticCursor;
|
|
1714
1713
|
var init_cursor2 = __esm({
|
|
1715
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1714
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js"() {
|
|
1716
1715
|
"use strict";
|
|
1717
1716
|
init_cursor();
|
|
1718
1717
|
staticCursor = {
|
|
@@ -1877,7 +1876,7 @@ var init_cursor2 = __esm({
|
|
|
1877
1876
|
}
|
|
1878
1877
|
});
|
|
1879
1878
|
|
|
1880
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1879
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
1881
1880
|
function bytesToBigInt(bytes, opts = {}) {
|
|
1882
1881
|
if (typeof opts.size !== "undefined")
|
|
1883
1882
|
assertSize(bytes, { size: opts.size });
|
|
@@ -1909,7 +1908,7 @@ function bytesToString(bytes_, opts = {}) {
|
|
|
1909
1908
|
return new TextDecoder().decode(bytes);
|
|
1910
1909
|
}
|
|
1911
1910
|
var init_fromBytes = __esm({
|
|
1912
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1911
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromBytes.js"() {
|
|
1913
1912
|
"use strict";
|
|
1914
1913
|
init_encoding();
|
|
1915
1914
|
init_trim();
|
|
@@ -1918,7 +1917,7 @@ var init_fromBytes = __esm({
|
|
|
1918
1917
|
}
|
|
1919
1918
|
});
|
|
1920
1919
|
|
|
1921
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1920
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
1922
1921
|
function decodeAbiParameters(params, data) {
|
|
1923
1922
|
const bytes = typeof data === "string" ? hexToBytes(data) : data;
|
|
1924
1923
|
const cursor = createCursor(bytes);
|
|
@@ -2032,12 +2031,12 @@ function decodeBytes(cursor, param, { staticPosition }) {
|
|
|
2032
2031
|
cursor.setPosition(staticPosition + 32);
|
|
2033
2032
|
return [bytesToHex(data), 32];
|
|
2034
2033
|
}
|
|
2035
|
-
const value = bytesToHex(cursor.readBytes(Number.parseInt(size2), 32));
|
|
2034
|
+
const value = bytesToHex(cursor.readBytes(Number.parseInt(size2, 10), 32));
|
|
2036
2035
|
return [value, 32];
|
|
2037
2036
|
}
|
|
2038
2037
|
function decodeNumber(cursor, param) {
|
|
2039
2038
|
const signed = param.type.startsWith("int");
|
|
2040
|
-
const size2 = Number.parseInt(param.type.split("int")[1] || "256");
|
|
2039
|
+
const size2 = Number.parseInt(param.type.split("int")[1] || "256", 10);
|
|
2041
2040
|
const value = cursor.readBytes(32);
|
|
2042
2041
|
return [
|
|
2043
2042
|
size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
|
|
@@ -2104,7 +2103,7 @@ function hasDynamicChild(param) {
|
|
|
2104
2103
|
}
|
|
2105
2104
|
var sizeOfLength, sizeOfOffset;
|
|
2106
2105
|
var init_decodeAbiParameters = __esm({
|
|
2107
|
-
"../../node_modules/.pnpm/viem@2.
|
|
2106
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js"() {
|
|
2108
2107
|
"use strict";
|
|
2109
2108
|
init_abi();
|
|
2110
2109
|
init_getAddress();
|
|
@@ -2121,10 +2120,10 @@ var init_decodeAbiParameters = __esm({
|
|
|
2121
2120
|
}
|
|
2122
2121
|
});
|
|
2123
2122
|
|
|
2124
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2123
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/unit.js
|
|
2125
2124
|
var etherUnits;
|
|
2126
2125
|
var init_unit = __esm({
|
|
2127
|
-
"../../node_modules/.pnpm/viem@2.
|
|
2126
|
+
"../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/unit.js"() {
|
|
2128
2127
|
"use strict";
|
|
2129
2128
|
etherUnits = {
|
|
2130
2129
|
gwei: 9,
|
|
@@ -5397,7 +5396,6 @@ var coinFactoryABI = [
|
|
|
5397
5396
|
],
|
|
5398
5397
|
name: "InvalidTickRangeMisordered"
|
|
5399
5398
|
},
|
|
5400
|
-
{ type: "error", inputs: [], name: "InvalidTickerCharacters" },
|
|
5401
5399
|
{
|
|
5402
5400
|
type: "error",
|
|
5403
5401
|
inputs: [
|
|
@@ -5424,6 +5422,9 @@ var coinFactoryABI = [
|
|
|
5424
5422
|
inputs: [{ name: "symbol", internalType: "string", type: "string" }],
|
|
5425
5423
|
name: "TickerAlreadyUsed"
|
|
5426
5424
|
},
|
|
5425
|
+
{ type: "error", inputs: [], name: "TickerInvalidCharacters" },
|
|
5426
|
+
{ type: "error", inputs: [], name: "TickerTooLong" },
|
|
5427
|
+
{ type: "error", inputs: [], name: "TickerTooShort" },
|
|
5427
5428
|
{ type: "error", inputs: [], name: "TrendCoinPoolConfigNotSet" },
|
|
5428
5429
|
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
5429
5430
|
{
|
|
@@ -9585,7 +9586,6 @@ var devCoinFactoryABI = [
|
|
|
9585
9586
|
],
|
|
9586
9587
|
name: "InvalidTickRangeMisordered"
|
|
9587
9588
|
},
|
|
9588
|
-
{ type: "error", inputs: [], name: "InvalidTickerCharacters" },
|
|
9589
9589
|
{
|
|
9590
9590
|
type: "error",
|
|
9591
9591
|
inputs: [
|
|
@@ -9612,6 +9612,9 @@ var devCoinFactoryABI = [
|
|
|
9612
9612
|
inputs: [{ name: "symbol", internalType: "string", type: "string" }],
|
|
9613
9613
|
name: "TickerAlreadyUsed"
|
|
9614
9614
|
},
|
|
9615
|
+
{ type: "error", inputs: [], name: "TickerInvalidCharacters" },
|
|
9616
|
+
{ type: "error", inputs: [], name: "TickerTooLong" },
|
|
9617
|
+
{ type: "error", inputs: [], name: "TickerTooShort" },
|
|
9615
9618
|
{ type: "error", inputs: [], name: "TrendCoinPoolConfigNotSet" },
|
|
9616
9619
|
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
9617
9620
|
{
|
|
@@ -25312,7 +25315,10 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
25312
25315
|
abi: zoraTimedSaleStrategyABI
|
|
25313
25316
|
};
|
|
25314
25317
|
|
|
25315
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
25318
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseEther.js
|
|
25319
|
+
init_unit();
|
|
25320
|
+
|
|
25321
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
|
|
25316
25322
|
init_base();
|
|
25317
25323
|
var InvalidDecimalNumberError = class extends BaseError {
|
|
25318
25324
|
constructor({ value }) {
|
|
@@ -25322,7 +25328,7 @@ var InvalidDecimalNumberError = class extends BaseError {
|
|
|
25322
25328
|
}
|
|
25323
25329
|
};
|
|
25324
25330
|
|
|
25325
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
25331
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
25326
25332
|
function parseUnits(value, decimals) {
|
|
25327
25333
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
|
|
25328
25334
|
throw new InvalidDecimalNumberError({ value });
|
|
@@ -25357,13 +25363,12 @@ function parseUnits(value, decimals) {
|
|
|
25357
25363
|
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
25358
25364
|
}
|
|
25359
25365
|
|
|
25360
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
25361
|
-
init_unit();
|
|
25366
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseEther.js
|
|
25362
25367
|
function parseEther(ether, unit = "wei") {
|
|
25363
25368
|
return parseUnits(ether, etherUnits[unit]);
|
|
25364
25369
|
}
|
|
25365
25370
|
|
|
25366
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
25371
|
+
// ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/index.js
|
|
25367
25372
|
init_decodeAbiParameters();
|
|
25368
25373
|
init_encodeAbiParameters();
|
|
25369
25374
|
init_getAbiItem();
|