@zoralabs/protocol-deployments 0.6.4-PRE.0 → 0.6.4
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 +50 -53
- package/CHANGELOG.md +5 -2
- package/LICENSE +21 -0
- package/dist/{_esm-OJM6GREZ.js → _esm-AN6HMJZC.js} +131 -138
- package/dist/_esm-AN6HMJZC.js.map +1 -0
- package/dist/{ccip-4Y6T462U.js → ccip-3JNBGYOD.js} +2 -3
- package/dist/{chunk-KMBLRPCX.js → chunk-4DQDZNUA.js} +577 -980
- package/dist/chunk-4DQDZNUA.js.map +1 -0
- package/dist/index.cjs +180 -168
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/{secp256k1-XP7IUONI.js → secp256k1-QZA5SALG.js} +746 -438
- package/dist/secp256k1-QZA5SALG.js.map +1 -0
- package/package.json +12 -12
- package/dist/_esm-OJM6GREZ.js.map +0 -1
- package/dist/chunk-BYTNVMX7.js +0 -408
- package/dist/chunk-BYTNVMX7.js.map +0 -1
- package/dist/chunk-KMBLRPCX.js.map +0 -1
- package/dist/secp256k1-XP7IUONI.js.map +0 -1
- /package/dist/{ccip-4Y6T462U.js.map → ccip-3JNBGYOD.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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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) {
|
|
@@ -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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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.0.7_typescript@5.8.3_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/version.js"() {
|
|
171
171
|
"use strict";
|
|
172
|
-
version = "2.
|
|
172
|
+
version = "2.22.12";
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
176
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/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.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js"() {
|
|
271
271
|
"use strict";
|
|
272
272
|
init_formatAbiItem2();
|
|
273
273
|
init_size();
|
|
@@ -382,10 +382,10 @@ var init_abi = __esm({
|
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
384
|
|
|
385
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
385
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/data.js
|
|
386
386
|
var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
|
387
387
|
var init_data = __esm({
|
|
388
|
-
"../../node_modules/.pnpm/viem@2.
|
|
388
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/data.js"() {
|
|
389
389
|
"use strict";
|
|
390
390
|
init_base();
|
|
391
391
|
SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
@@ -401,7 +401,7 @@ var init_data = __esm({
|
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
403
|
|
|
404
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
404
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/pad.js
|
|
405
405
|
function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
|
|
406
406
|
if (typeof hexOrBytes === "string")
|
|
407
407
|
return padHex(hexOrBytes, { dir, size: size2 });
|
|
@@ -436,16 +436,16 @@ function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
|
|
|
436
436
|
return paddedBytes;
|
|
437
437
|
}
|
|
438
438
|
var init_pad = __esm({
|
|
439
|
-
"../../node_modules/.pnpm/viem@2.
|
|
439
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/pad.js"() {
|
|
440
440
|
"use strict";
|
|
441
441
|
init_data();
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
|
|
445
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
445
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/encoding.js
|
|
446
446
|
var IntegerOutOfRangeError, InvalidBytesBooleanError, SizeOverflowError;
|
|
447
447
|
var init_encoding = __esm({
|
|
448
|
-
"../../node_modules/.pnpm/viem@2.
|
|
448
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/encoding.js"() {
|
|
449
449
|
"use strict";
|
|
450
450
|
init_base();
|
|
451
451
|
IntegerOutOfRangeError = class extends BaseError {
|
|
@@ -468,7 +468,7 @@ var init_encoding = __esm({
|
|
|
468
468
|
}
|
|
469
469
|
});
|
|
470
470
|
|
|
471
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
471
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/trim.js
|
|
472
472
|
function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
473
473
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
474
474
|
let sliceLength = 0;
|
|
@@ -487,12 +487,12 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
|
487
487
|
return data;
|
|
488
488
|
}
|
|
489
489
|
var init_trim = __esm({
|
|
490
|
-
"../../node_modules/.pnpm/viem@2.
|
|
490
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/trim.js"() {
|
|
491
491
|
"use strict";
|
|
492
492
|
}
|
|
493
493
|
});
|
|
494
494
|
|
|
495
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
495
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
496
496
|
function assertSize(hexOrBytes, { size: size2 }) {
|
|
497
497
|
if (size(hexOrBytes) > size2)
|
|
498
498
|
throw new SizeOverflowError({
|
|
@@ -517,14 +517,14 @@ function hexToNumber(hex, opts = {}) {
|
|
|
517
517
|
return Number(hexToBigInt(hex, opts));
|
|
518
518
|
}
|
|
519
519
|
var init_fromHex = __esm({
|
|
520
|
-
"../../node_modules/.pnpm/viem@2.
|
|
520
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
|
|
521
521
|
"use strict";
|
|
522
522
|
init_encoding();
|
|
523
523
|
init_size();
|
|
524
524
|
}
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
527
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
528
528
|
function toHex(value, opts = {}) {
|
|
529
529
|
if (typeof value === "number" || typeof value === "bigint")
|
|
530
530
|
return numberToHex(value, opts);
|
|
@@ -589,7 +589,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
589
589
|
}
|
|
590
590
|
var hexes, encoder;
|
|
591
591
|
var init_toHex = __esm({
|
|
592
|
-
"../../node_modules/.pnpm/viem@2.
|
|
592
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toHex.js"() {
|
|
593
593
|
"use strict";
|
|
594
594
|
init_encoding();
|
|
595
595
|
init_pad();
|
|
@@ -599,7 +599,7 @@ var init_toHex = __esm({
|
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
|
|
602
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
602
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
603
603
|
function toBytes(value, opts = {}) {
|
|
604
604
|
if (typeof value === "number" || typeof value === "bigint")
|
|
605
605
|
return numberToBytes(value, opts);
|
|
@@ -662,7 +662,7 @@ function stringToBytes(value, opts = {}) {
|
|
|
662
662
|
}
|
|
663
663
|
var encoder2, charCodeMap;
|
|
664
664
|
var init_toBytes = __esm({
|
|
665
|
-
"../../node_modules/.pnpm/viem@2.
|
|
665
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
|
|
666
666
|
"use strict";
|
|
667
667
|
init_base();
|
|
668
668
|
init_isHex();
|
|
@@ -681,43 +681,14 @@ var init_toBytes = __esm({
|
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
|
|
684
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
685
|
-
function fromBig(n, le = false) {
|
|
686
|
-
if (le)
|
|
687
|
-
return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
|
|
688
|
-
return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
|
|
689
|
-
}
|
|
690
|
-
function split(lst, le = false) {
|
|
691
|
-
const len = lst.length;
|
|
692
|
-
let Ah = new Uint32Array(len);
|
|
693
|
-
let Al = new Uint32Array(len);
|
|
694
|
-
for (let i = 0; i < len; i++) {
|
|
695
|
-
const { h, l } = fromBig(lst[i], le);
|
|
696
|
-
[Ah[i], Al[i]] = [h, l];
|
|
697
|
-
}
|
|
698
|
-
return [Ah, Al];
|
|
699
|
-
}
|
|
700
|
-
var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
|
|
701
|
-
var init_u64 = __esm({
|
|
702
|
-
"../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js"() {
|
|
703
|
-
"use strict";
|
|
704
|
-
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
705
|
-
_32n = /* @__PURE__ */ BigInt(32);
|
|
706
|
-
rotlSH = (h, l, s) => h << s | l >>> 32 - s;
|
|
707
|
-
rotlSL = (h, l, s) => l << s | h >>> 32 - s;
|
|
708
|
-
rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
|
|
709
|
-
rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
|
|
710
|
-
}
|
|
711
|
-
});
|
|
712
|
-
|
|
713
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
|
|
714
|
-
function isBytes(a) {
|
|
715
|
-
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
716
|
-
}
|
|
684
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js
|
|
717
685
|
function anumber(n) {
|
|
718
686
|
if (!Number.isSafeInteger(n) || n < 0)
|
|
719
687
|
throw new Error("positive integer expected, got " + n);
|
|
720
688
|
}
|
|
689
|
+
function isBytes(a) {
|
|
690
|
+
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
|
|
691
|
+
}
|
|
721
692
|
function abytes(b, ...lengths) {
|
|
722
693
|
if (!isBytes(b))
|
|
723
694
|
throw new Error("Uint8Array expected");
|
|
@@ -737,26 +708,49 @@ function aoutput(out, instance) {
|
|
|
737
708
|
throw new Error("digestInto() expects output buffer of length at least " + min);
|
|
738
709
|
}
|
|
739
710
|
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
function clean(...arrays) {
|
|
744
|
-
for (let i = 0; i < arrays.length; i++) {
|
|
745
|
-
arrays[i].fill(0);
|
|
711
|
+
var init_assert = __esm({
|
|
712
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js"() {
|
|
713
|
+
"use strict";
|
|
746
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 };
|
|
747
722
|
}
|
|
748
|
-
function
|
|
749
|
-
|
|
723
|
+
function split(lst, le = false) {
|
|
724
|
+
let Ah = new Uint32Array(lst.length);
|
|
725
|
+
let Al = new Uint32Array(lst.length);
|
|
726
|
+
for (let i = 0; i < lst.length; i++) {
|
|
727
|
+
const { h, l } = fromBig(lst[i], le);
|
|
728
|
+
[Ah[i], Al[i]] = [h, l];
|
|
729
|
+
}
|
|
730
|
+
return [Ah, Al];
|
|
750
731
|
}
|
|
732
|
+
var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
|
|
733
|
+
var init_u64 = __esm({
|
|
734
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js"() {
|
|
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
|
|
751
746
|
function byteSwap32(arr) {
|
|
752
747
|
for (let i = 0; i < arr.length; i++) {
|
|
753
748
|
arr[i] = byteSwap(arr[i]);
|
|
754
749
|
}
|
|
755
|
-
return arr;
|
|
756
750
|
}
|
|
757
751
|
function utf8ToBytes(str) {
|
|
758
752
|
if (typeof str !== "string")
|
|
759
|
-
throw new Error("string
|
|
753
|
+
throw new Error("utf8ToBytes expected string, got " + typeof str);
|
|
760
754
|
return new Uint8Array(new TextEncoder().encode(str));
|
|
761
755
|
}
|
|
762
756
|
function toBytes2(data) {
|
|
@@ -765,7 +759,7 @@ function toBytes2(data) {
|
|
|
765
759
|
abytes(data);
|
|
766
760
|
return data;
|
|
767
761
|
}
|
|
768
|
-
function
|
|
762
|
+
function wrapConstructor(hashCons) {
|
|
769
763
|
const hashC = (msg) => hashCons().update(toBytes2(msg)).digest();
|
|
770
764
|
const tmp = hashCons();
|
|
771
765
|
hashC.outputLen = tmp.outputLen;
|
|
@@ -773,18 +767,32 @@ function createHasher(hashCons) {
|
|
|
773
767
|
hashC.create = () => hashCons();
|
|
774
768
|
return hashC;
|
|
775
769
|
}
|
|
776
|
-
|
|
770
|
+
function wrapXOFConstructorWithOpts(hashCons) {
|
|
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;
|
|
777
779
|
var init_utils = __esm({
|
|
778
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
780
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js"() {
|
|
779
781
|
"use strict";
|
|
782
|
+
init_assert();
|
|
783
|
+
u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
|
780
784
|
isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
|
781
|
-
|
|
785
|
+
byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
|
|
782
786
|
Hash = class {
|
|
787
|
+
// Safe version that clones internal state
|
|
788
|
+
clone() {
|
|
789
|
+
return this._cloneInto();
|
|
790
|
+
}
|
|
783
791
|
};
|
|
784
792
|
}
|
|
785
793
|
});
|
|
786
794
|
|
|
787
|
-
// ../../node_modules/.pnpm/@noble+hashes@1.
|
|
795
|
+
// ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js
|
|
788
796
|
function keccakP(s, rounds = 24) {
|
|
789
797
|
const B = new Uint32Array(5 * 2);
|
|
790
798
|
for (let round = 24 - rounds; round < 24; round++) {
|
|
@@ -823,23 +831,24 @@ function keccakP(s, rounds = 24) {
|
|
|
823
831
|
s[0] ^= SHA3_IOTA_H[round];
|
|
824
832
|
s[1] ^= SHA3_IOTA_L[round];
|
|
825
833
|
}
|
|
826
|
-
|
|
834
|
+
B.fill(0);
|
|
827
835
|
}
|
|
828
|
-
var _0n, _1n, _2n, _7n, _256n, _0x71n,
|
|
836
|
+
var SHA3_PI, SHA3_ROTL, _SHA3_IOTA, _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_IOTA_H, SHA3_IOTA_L, rotlH, rotlL, Keccak, gen, sha3_224, sha3_256, sha3_384, sha3_512, keccak_224, keccak_256, keccak_384, keccak_512, genShake, shake128, shake256;
|
|
829
837
|
var init_sha3 = __esm({
|
|
830
|
-
"../../node_modules/.pnpm/@noble+hashes@1.
|
|
838
|
+
"../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js"() {
|
|
831
839
|
"use strict";
|
|
840
|
+
init_assert();
|
|
832
841
|
init_u64();
|
|
833
842
|
init_utils();
|
|
834
|
-
_0n = BigInt(0);
|
|
835
|
-
_1n = BigInt(1);
|
|
836
|
-
_2n = BigInt(2);
|
|
837
|
-
_7n = BigInt(7);
|
|
838
|
-
_256n = BigInt(256);
|
|
839
|
-
_0x71n = BigInt(113);
|
|
840
843
|
SHA3_PI = [];
|
|
841
844
|
SHA3_ROTL = [];
|
|
842
845
|
_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);
|
|
843
852
|
for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
844
853
|
[x, y] = [y, (2 * x + 3 * y) % 5];
|
|
845
854
|
SHA3_PI.push(2 * (5 * y + x));
|
|
@@ -852,46 +861,41 @@ var init_sha3 = __esm({
|
|
|
852
861
|
}
|
|
853
862
|
_SHA3_IOTA.push(t);
|
|
854
863
|
}
|
|
855
|
-
|
|
856
|
-
SHA3_IOTA_H = IOTAS[0];
|
|
857
|
-
SHA3_IOTA_L = IOTAS[1];
|
|
864
|
+
[SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
|
|
858
865
|
rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
|
|
859
866
|
rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
|
|
860
867
|
Keccak = class _Keccak extends Hash {
|
|
861
868
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
862
869
|
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
|
863
870
|
super();
|
|
864
|
-
this.pos = 0;
|
|
865
|
-
this.posOut = 0;
|
|
866
|
-
this.finished = false;
|
|
867
|
-
this.destroyed = false;
|
|
868
|
-
this.enableXOF = false;
|
|
869
871
|
this.blockLen = blockLen;
|
|
870
872
|
this.suffix = suffix;
|
|
871
873
|
this.outputLen = outputLen;
|
|
872
874
|
this.enableXOF = enableXOF;
|
|
873
875
|
this.rounds = rounds;
|
|
876
|
+
this.pos = 0;
|
|
877
|
+
this.posOut = 0;
|
|
878
|
+
this.finished = false;
|
|
879
|
+
this.destroyed = false;
|
|
874
880
|
anumber(outputLen);
|
|
875
|
-
if (
|
|
876
|
-
throw new Error("only keccak-f1600 function
|
|
881
|
+
if (0 >= this.blockLen || this.blockLen >= 200)
|
|
882
|
+
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
877
883
|
this.state = new Uint8Array(200);
|
|
878
884
|
this.state32 = u32(this.state);
|
|
879
885
|
}
|
|
880
|
-
clone() {
|
|
881
|
-
return this._cloneInto();
|
|
882
|
-
}
|
|
883
886
|
keccak() {
|
|
884
|
-
|
|
887
|
+
if (!isLE)
|
|
888
|
+
byteSwap32(this.state32);
|
|
885
889
|
keccakP(this.state32, this.rounds);
|
|
886
|
-
|
|
890
|
+
if (!isLE)
|
|
891
|
+
byteSwap32(this.state32);
|
|
887
892
|
this.posOut = 0;
|
|
888
893
|
this.pos = 0;
|
|
889
894
|
}
|
|
890
895
|
update(data) {
|
|
891
896
|
aexists(this);
|
|
892
|
-
data = toBytes2(data);
|
|
893
|
-
abytes(data);
|
|
894
897
|
const { blockLen, state } = this;
|
|
898
|
+
data = toBytes2(data);
|
|
895
899
|
const len = data.length;
|
|
896
900
|
for (let pos = 0; pos < len; ) {
|
|
897
901
|
const take = Math.min(blockLen - this.pos, len - pos);
|
|
@@ -951,7 +955,7 @@ var init_sha3 = __esm({
|
|
|
951
955
|
}
|
|
952
956
|
destroy() {
|
|
953
957
|
this.destroyed = true;
|
|
954
|
-
|
|
958
|
+
this.state.fill(0);
|
|
955
959
|
}
|
|
956
960
|
_cloneInto(to) {
|
|
957
961
|
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
@@ -968,12 +972,22 @@ var init_sha3 = __esm({
|
|
|
968
972
|
return to;
|
|
969
973
|
}
|
|
970
974
|
};
|
|
971
|
-
gen = (suffix, blockLen, outputLen) =>
|
|
972
|
-
|
|
975
|
+
gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
|
|
976
|
+
sha3_224 = /* @__PURE__ */ gen(6, 144, 224 / 8);
|
|
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);
|
|
973
987
|
}
|
|
974
988
|
});
|
|
975
989
|
|
|
976
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
990
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
977
991
|
function keccak256(value, to_) {
|
|
978
992
|
const to = to_ || "hex";
|
|
979
993
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
@@ -982,7 +996,7 @@ function keccak256(value, to_) {
|
|
|
982
996
|
return toHex(bytes);
|
|
983
997
|
}
|
|
984
998
|
var init_keccak256 = __esm({
|
|
985
|
-
"../../node_modules/.pnpm/viem@2.
|
|
999
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/keccak256.js"() {
|
|
986
1000
|
"use strict";
|
|
987
1001
|
init_sha3();
|
|
988
1002
|
init_isHex();
|
|
@@ -991,13 +1005,13 @@ var init_keccak256 = __esm({
|
|
|
991
1005
|
}
|
|
992
1006
|
});
|
|
993
1007
|
|
|
994
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1008
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
995
1009
|
function hashSignature(sig) {
|
|
996
1010
|
return hash(sig);
|
|
997
1011
|
}
|
|
998
1012
|
var hash;
|
|
999
1013
|
var init_hashSignature = __esm({
|
|
1000
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1014
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
|
|
1001
1015
|
"use strict";
|
|
1002
1016
|
init_toBytes();
|
|
1003
1017
|
init_keccak256();
|
|
@@ -1005,7 +1019,7 @@ var init_hashSignature = __esm({
|
|
|
1005
1019
|
}
|
|
1006
1020
|
});
|
|
1007
1021
|
|
|
1008
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1022
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
1009
1023
|
function normalizeSignature(signature) {
|
|
1010
1024
|
let active = true;
|
|
1011
1025
|
let current = "";
|
|
@@ -1049,16 +1063,16 @@ function normalizeSignature(signature) {
|
|
|
1049
1063
|
return result;
|
|
1050
1064
|
}
|
|
1051
1065
|
var init_normalizeSignature = __esm({
|
|
1052
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1066
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
|
|
1053
1067
|
"use strict";
|
|
1054
1068
|
init_base();
|
|
1055
1069
|
}
|
|
1056
1070
|
});
|
|
1057
1071
|
|
|
1058
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1072
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
1059
1073
|
var toSignature;
|
|
1060
1074
|
var init_toSignature = __esm({
|
|
1061
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1075
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignature.js"() {
|
|
1062
1076
|
"use strict";
|
|
1063
1077
|
init_exports();
|
|
1064
1078
|
init_normalizeSignature();
|
|
@@ -1073,32 +1087,32 @@ var init_toSignature = __esm({
|
|
|
1073
1087
|
}
|
|
1074
1088
|
});
|
|
1075
1089
|
|
|
1076
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1090
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
1077
1091
|
function toSignatureHash(fn) {
|
|
1078
1092
|
return hashSignature(toSignature(fn));
|
|
1079
1093
|
}
|
|
1080
1094
|
var init_toSignatureHash = __esm({
|
|
1081
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1095
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
|
|
1082
1096
|
"use strict";
|
|
1083
1097
|
init_hashSignature();
|
|
1084
1098
|
init_toSignature();
|
|
1085
1099
|
}
|
|
1086
1100
|
});
|
|
1087
1101
|
|
|
1088
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1102
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
1089
1103
|
var toEventSelector;
|
|
1090
1104
|
var init_toEventSelector = __esm({
|
|
1091
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1105
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
|
|
1092
1106
|
"use strict";
|
|
1093
1107
|
init_toSignatureHash();
|
|
1094
1108
|
toEventSelector = toSignatureHash;
|
|
1095
1109
|
}
|
|
1096
1110
|
});
|
|
1097
1111
|
|
|
1098
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1112
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/address.js
|
|
1099
1113
|
var InvalidAddressError;
|
|
1100
1114
|
var init_address = __esm({
|
|
1101
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1115
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/address.js"() {
|
|
1102
1116
|
"use strict";
|
|
1103
1117
|
init_base();
|
|
1104
1118
|
InvalidAddressError = class extends BaseError {
|
|
@@ -1115,10 +1129,10 @@ var init_address = __esm({
|
|
|
1115
1129
|
}
|
|
1116
1130
|
});
|
|
1117
1131
|
|
|
1118
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1132
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/lru.js
|
|
1119
1133
|
var LruMap;
|
|
1120
1134
|
var init_lru = __esm({
|
|
1121
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1135
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/lru.js"() {
|
|
1122
1136
|
"use strict";
|
|
1123
1137
|
LruMap = class extends Map {
|
|
1124
1138
|
constructor(size2) {
|
|
@@ -1152,7 +1166,7 @@ var init_lru = __esm({
|
|
|
1152
1166
|
}
|
|
1153
1167
|
});
|
|
1154
1168
|
|
|
1155
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1169
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/getAddress.js
|
|
1156
1170
|
function checksumAddress(address_, chainId) {
|
|
1157
1171
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
1158
1172
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
@@ -1173,7 +1187,7 @@ function checksumAddress(address_, chainId) {
|
|
|
1173
1187
|
}
|
|
1174
1188
|
var checksumAddressCache;
|
|
1175
1189
|
var init_getAddress = __esm({
|
|
1176
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1190
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/getAddress.js"() {
|
|
1177
1191
|
"use strict";
|
|
1178
1192
|
init_toBytes();
|
|
1179
1193
|
init_keccak256();
|
|
@@ -1182,7 +1196,7 @@ var init_getAddress = __esm({
|
|
|
1182
1196
|
}
|
|
1183
1197
|
});
|
|
1184
1198
|
|
|
1185
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1199
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddress.js
|
|
1186
1200
|
function isAddress(address, options) {
|
|
1187
1201
|
const { strict = true } = options ?? {};
|
|
1188
1202
|
const cacheKey = `${address}.${strict}`;
|
|
@@ -1202,7 +1216,7 @@ function isAddress(address, options) {
|
|
|
1202
1216
|
}
|
|
1203
1217
|
var addressRegex, isAddressCache;
|
|
1204
1218
|
var init_isAddress = __esm({
|
|
1205
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1219
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddress.js"() {
|
|
1206
1220
|
"use strict";
|
|
1207
1221
|
init_lru();
|
|
1208
1222
|
init_getAddress();
|
|
@@ -1211,7 +1225,7 @@ var init_isAddress = __esm({
|
|
|
1211
1225
|
}
|
|
1212
1226
|
});
|
|
1213
1227
|
|
|
1214
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1228
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/concat.js
|
|
1215
1229
|
function concat(values) {
|
|
1216
1230
|
if (typeof values[0] === "string")
|
|
1217
1231
|
return concatHex(values);
|
|
@@ -1234,12 +1248,12 @@ function concatHex(values) {
|
|
|
1234
1248
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
1235
1249
|
}
|
|
1236
1250
|
var init_concat = __esm({
|
|
1237
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1251
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/concat.js"() {
|
|
1238
1252
|
"use strict";
|
|
1239
1253
|
}
|
|
1240
1254
|
});
|
|
1241
1255
|
|
|
1242
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1256
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/slice.js
|
|
1243
1257
|
function slice(value, start, end, { strict } = {}) {
|
|
1244
1258
|
if (isHex(value, { strict: false }))
|
|
1245
1259
|
return sliceHex(value, start, end, {
|
|
@@ -1281,7 +1295,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1281
1295
|
return value;
|
|
1282
1296
|
}
|
|
1283
1297
|
var init_slice = __esm({
|
|
1284
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1298
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/slice.js"() {
|
|
1285
1299
|
"use strict";
|
|
1286
1300
|
init_data();
|
|
1287
1301
|
init_isHex();
|
|
@@ -1289,16 +1303,16 @@ var init_slice = __esm({
|
|
|
1289
1303
|
}
|
|
1290
1304
|
});
|
|
1291
1305
|
|
|
1292
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1306
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/regex.js
|
|
1293
1307
|
var integerRegex;
|
|
1294
1308
|
var init_regex2 = __esm({
|
|
1295
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1309
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/regex.js"() {
|
|
1296
1310
|
"use strict";
|
|
1297
1311
|
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)?$/;
|
|
1298
1312
|
}
|
|
1299
1313
|
});
|
|
1300
1314
|
|
|
1301
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1315
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
1302
1316
|
function encodeAbiParameters(params, values) {
|
|
1303
1317
|
if (params.length !== values.length)
|
|
1304
1318
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -1435,9 +1449,9 @@ function encodeBytes(value, { param }) {
|
|
|
1435
1449
|
encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
|
|
1436
1450
|
};
|
|
1437
1451
|
}
|
|
1438
|
-
if (bytesSize !== Number.parseInt(paramSize
|
|
1452
|
+
if (bytesSize !== Number.parseInt(paramSize))
|
|
1439
1453
|
throw new AbiEncodingBytesSizeMismatchError({
|
|
1440
|
-
expectedSize: Number.parseInt(paramSize
|
|
1454
|
+
expectedSize: Number.parseInt(paramSize),
|
|
1441
1455
|
value
|
|
1442
1456
|
});
|
|
1443
1457
|
return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
|
|
@@ -1512,7 +1526,7 @@ function getArrayComponents(type) {
|
|
|
1512
1526
|
) : void 0;
|
|
1513
1527
|
}
|
|
1514
1528
|
var init_encodeAbiParameters = __esm({
|
|
1515
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1529
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
|
|
1516
1530
|
"use strict";
|
|
1517
1531
|
init_abi();
|
|
1518
1532
|
init_address();
|
|
@@ -1528,10 +1542,10 @@ var init_encodeAbiParameters = __esm({
|
|
|
1528
1542
|
}
|
|
1529
1543
|
});
|
|
1530
1544
|
|
|
1531
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1545
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
1532
1546
|
var toFunctionSelector;
|
|
1533
1547
|
var init_toFunctionSelector = __esm({
|
|
1534
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1548
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
|
|
1535
1549
|
"use strict";
|
|
1536
1550
|
init_slice();
|
|
1537
1551
|
init_toSignatureHash();
|
|
@@ -1539,7 +1553,7 @@ var init_toFunctionSelector = __esm({
|
|
|
1539
1553
|
}
|
|
1540
1554
|
});
|
|
1541
1555
|
|
|
1542
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1556
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
1543
1557
|
function getAbiItem(parameters) {
|
|
1544
1558
|
const { abi, args = [], name } = parameters;
|
|
1545
1559
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -1557,7 +1571,7 @@ function getAbiItem(parameters) {
|
|
|
1557
1571
|
return void 0;
|
|
1558
1572
|
if (abiItems.length === 1)
|
|
1559
1573
|
return abiItems[0];
|
|
1560
|
-
let matchedAbiItem;
|
|
1574
|
+
let matchedAbiItem = void 0;
|
|
1561
1575
|
for (const abiItem of abiItems) {
|
|
1562
1576
|
if (!("inputs" in abiItem))
|
|
1563
1577
|
continue;
|
|
@@ -1651,7 +1665,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
1651
1665
|
return;
|
|
1652
1666
|
}
|
|
1653
1667
|
var init_getAbiItem = __esm({
|
|
1654
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1668
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
|
|
1655
1669
|
"use strict";
|
|
1656
1670
|
init_abi();
|
|
1657
1671
|
init_isHex();
|
|
@@ -1661,10 +1675,10 @@ var init_getAbiItem = __esm({
|
|
|
1661
1675
|
}
|
|
1662
1676
|
});
|
|
1663
1677
|
|
|
1664
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1678
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/cursor.js
|
|
1665
1679
|
var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
|
|
1666
1680
|
var init_cursor = __esm({
|
|
1667
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1681
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/cursor.js"() {
|
|
1668
1682
|
"use strict";
|
|
1669
1683
|
init_base();
|
|
1670
1684
|
NegativeOffsetError = class extends BaseError {
|
|
@@ -1687,7 +1701,7 @@ var init_cursor = __esm({
|
|
|
1687
1701
|
}
|
|
1688
1702
|
});
|
|
1689
1703
|
|
|
1690
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1704
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/cursor.js
|
|
1691
1705
|
function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
1692
1706
|
const cursor = Object.create(staticCursor);
|
|
1693
1707
|
cursor.bytes = bytes;
|
|
@@ -1698,7 +1712,7 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
1698
1712
|
}
|
|
1699
1713
|
var staticCursor;
|
|
1700
1714
|
var init_cursor2 = __esm({
|
|
1701
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1715
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/cursor.js"() {
|
|
1702
1716
|
"use strict";
|
|
1703
1717
|
init_cursor();
|
|
1704
1718
|
staticCursor = {
|
|
@@ -1863,7 +1877,7 @@ var init_cursor2 = __esm({
|
|
|
1863
1877
|
}
|
|
1864
1878
|
});
|
|
1865
1879
|
|
|
1866
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1880
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
1867
1881
|
function bytesToBigInt(bytes, opts = {}) {
|
|
1868
1882
|
if (typeof opts.size !== "undefined")
|
|
1869
1883
|
assertSize(bytes, { size: opts.size });
|
|
@@ -1895,7 +1909,7 @@ function bytesToString(bytes_, opts = {}) {
|
|
|
1895
1909
|
return new TextDecoder().decode(bytes);
|
|
1896
1910
|
}
|
|
1897
1911
|
var init_fromBytes = __esm({
|
|
1898
|
-
"../../node_modules/.pnpm/viem@2.
|
|
1912
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromBytes.js"() {
|
|
1899
1913
|
"use strict";
|
|
1900
1914
|
init_encoding();
|
|
1901
1915
|
init_trim();
|
|
@@ -1904,7 +1918,7 @@ var init_fromBytes = __esm({
|
|
|
1904
1918
|
}
|
|
1905
1919
|
});
|
|
1906
1920
|
|
|
1907
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
1921
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
1908
1922
|
function decodeAbiParameters(params, data) {
|
|
1909
1923
|
const bytes = typeof data === "string" ? hexToBytes(data) : data;
|
|
1910
1924
|
const cursor = createCursor(bytes);
|
|
@@ -2018,12 +2032,12 @@ function decodeBytes(cursor, param, { staticPosition }) {
|
|
|
2018
2032
|
cursor.setPosition(staticPosition + 32);
|
|
2019
2033
|
return [bytesToHex(data), 32];
|
|
2020
2034
|
}
|
|
2021
|
-
const value = bytesToHex(cursor.readBytes(Number.parseInt(size2
|
|
2035
|
+
const value = bytesToHex(cursor.readBytes(Number.parseInt(size2), 32));
|
|
2022
2036
|
return [value, 32];
|
|
2023
2037
|
}
|
|
2024
2038
|
function decodeNumber(cursor, param) {
|
|
2025
2039
|
const signed = param.type.startsWith("int");
|
|
2026
|
-
const size2 = Number.parseInt(param.type.split("int")[1] || "256"
|
|
2040
|
+
const size2 = Number.parseInt(param.type.split("int")[1] || "256");
|
|
2027
2041
|
const value = cursor.readBytes(32);
|
|
2028
2042
|
return [
|
|
2029
2043
|
size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
|
|
@@ -2090,7 +2104,7 @@ function hasDynamicChild(param) {
|
|
|
2090
2104
|
}
|
|
2091
2105
|
var sizeOfLength, sizeOfOffset;
|
|
2092
2106
|
var init_decodeAbiParameters = __esm({
|
|
2093
|
-
"../../node_modules/.pnpm/viem@2.
|
|
2107
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js"() {
|
|
2094
2108
|
"use strict";
|
|
2095
2109
|
init_abi();
|
|
2096
2110
|
init_getAddress();
|
|
@@ -2107,10 +2121,10 @@ var init_decodeAbiParameters = __esm({
|
|
|
2107
2121
|
}
|
|
2108
2122
|
});
|
|
2109
2123
|
|
|
2110
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
2124
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/unit.js
|
|
2111
2125
|
var etherUnits;
|
|
2112
2126
|
var init_unit = __esm({
|
|
2113
|
-
"../../node_modules/.pnpm/viem@2.
|
|
2127
|
+
"../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/unit.js"() {
|
|
2114
2128
|
"use strict";
|
|
2115
2129
|
etherUnits = {
|
|
2116
2130
|
gwei: 9,
|
|
@@ -20236,10 +20250,7 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
20236
20250
|
abi: zoraTimedSaleStrategyABI
|
|
20237
20251
|
};
|
|
20238
20252
|
|
|
20239
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
20240
|
-
init_unit();
|
|
20241
|
-
|
|
20242
|
-
// ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/unit.js
|
|
20253
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/unit.js
|
|
20243
20254
|
init_base();
|
|
20244
20255
|
var InvalidDecimalNumberError = class extends BaseError {
|
|
20245
20256
|
constructor({ value }) {
|
|
@@ -20249,7 +20260,7 @@ var InvalidDecimalNumberError = class extends BaseError {
|
|
|
20249
20260
|
}
|
|
20250
20261
|
};
|
|
20251
20262
|
|
|
20252
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
20263
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
20253
20264
|
function parseUnits(value, decimals) {
|
|
20254
20265
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
|
|
20255
20266
|
throw new InvalidDecimalNumberError({ value });
|
|
@@ -20284,12 +20295,13 @@ function parseUnits(value, decimals) {
|
|
|
20284
20295
|
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
20285
20296
|
}
|
|
20286
20297
|
|
|
20287
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
20298
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseEther.js
|
|
20299
|
+
init_unit();
|
|
20288
20300
|
function parseEther(ether, unit = "wei") {
|
|
20289
20301
|
return parseUnits(ether, etherUnits[unit]);
|
|
20290
20302
|
}
|
|
20291
20303
|
|
|
20292
|
-
// ../../node_modules/.pnpm/viem@2.
|
|
20304
|
+
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/index.js
|
|
20293
20305
|
init_decodeAbiParameters();
|
|
20294
20306
|
init_encodeAbiParameters();
|
|
20295
20307
|
init_getAbiItem();
|