@inco/js 0.1.21 → 0.1.23
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/README.md +86 -30
- package/dist/binary.d.ts +3 -0
- package/dist/encryption/index.cjs +38 -47
- package/dist/encryption/index.mjs +38 -47
- package/dist/index.cjs +41 -48
- package/dist/index.mjs +41 -48
- package/dist/lite/ecies.d.ts +1 -1
- package/dist/lite/index.cjs +55 -77
- package/dist/lite/index.mjs +3692 -3776
- package/dist/lite/lightning.d.ts +99 -0
- package/dist/local/index.cjs +872 -25
- package/dist/local/index.mjs +6136 -5352
- package/dist/reencryption/index.cjs +38 -47
- package/dist/reencryption/index.mjs +38 -47
- package/dist/viem.d.ts +52 -53
- package/package.json +1 -1
@@ -41,7 +41,7 @@ var __export = (target, all) => {
|
|
41
41
|
};
|
42
42
|
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
43
43
|
|
44
|
-
// node_modules/viem/_esm/utils/data/isHex.js
|
44
|
+
// ../node_modules/viem/_esm/utils/data/isHex.js
|
45
45
|
function isHex(value6, { strict: strict2 = true } = {}) {
|
46
46
|
if (!value6)
|
47
47
|
return false;
|
@@ -50,19 +50,18 @@ function isHex(value6, { strict: strict2 = true } = {}) {
|
|
50
50
|
return strict2 ? /^0x[0-9a-fA-F]*$/.test(value6) : value6.startsWith("0x");
|
51
51
|
}
|
52
52
|
|
53
|
-
// node_modules/viem/_esm/utils/data/size.js
|
53
|
+
// ../node_modules/viem/_esm/utils/data/size.js
|
54
54
|
function size21(value6) {
|
55
55
|
if (isHex(value6, { strict: false }))
|
56
56
|
return Math.ceil((value6.length - 2) / 2);
|
57
57
|
return value6.length;
|
58
58
|
}
|
59
|
-
var init_size = () => {
|
60
|
-
};
|
59
|
+
var init_size = () => {};
|
61
60
|
|
62
|
-
// node_modules/viem/_esm/errors/version.js
|
63
|
-
var version = "2.
|
61
|
+
// ../node_modules/viem/_esm/errors/version.js
|
62
|
+
var version = "2.24.3";
|
64
63
|
|
65
|
-
// node_modules/viem/_esm/errors/base.js
|
64
|
+
// ../node_modules/viem/_esm/errors/base.js
|
66
65
|
function walk(err, fn) {
|
67
66
|
if (fn?.(err))
|
68
67
|
return err;
|
@@ -150,7 +149,7 @@ var init_base = __esm(() => {
|
|
150
149
|
};
|
151
150
|
});
|
152
151
|
|
153
|
-
// node_modules/viem/_esm/errors/abi.js
|
152
|
+
// ../node_modules/viem/_esm/errors/abi.js
|
154
153
|
var AbiEncodingLengthMismatchError, BytesSizeMismatchError, UnsupportedPackedAbiType;
|
155
154
|
var init_abi = __esm(() => {
|
156
155
|
init_base();
|
@@ -180,7 +179,7 @@ var init_abi = __esm(() => {
|
|
180
179
|
};
|
181
180
|
});
|
182
181
|
|
183
|
-
// node_modules/viem/_esm/errors/data.js
|
182
|
+
// ../node_modules/viem/_esm/errors/data.js
|
184
183
|
var SizeExceedsPaddingSizeError;
|
185
184
|
var init_data = __esm(() => {
|
186
185
|
init_base();
|
@@ -191,7 +190,7 @@ var init_data = __esm(() => {
|
|
191
190
|
};
|
192
191
|
});
|
193
192
|
|
194
|
-
// node_modules/viem/_esm/utils/data/pad.js
|
193
|
+
// ../node_modules/viem/_esm/utils/data/pad.js
|
195
194
|
function pad(hexOrBytes, { dir: dir2, size: size22 = 32 } = {}) {
|
196
195
|
if (typeof hexOrBytes === "string")
|
197
196
|
return padHex(hexOrBytes, { dir: dir2, size: size22 });
|
@@ -229,7 +228,7 @@ var init_pad = __esm(() => {
|
|
229
228
|
init_data();
|
230
229
|
});
|
231
230
|
|
232
|
-
// node_modules/viem/_esm/errors/encoding.js
|
231
|
+
// ../node_modules/viem/_esm/errors/encoding.js
|
233
232
|
var IntegerOutOfRangeError, SizeOverflowError;
|
234
233
|
var init_encoding = __esm(() => {
|
235
234
|
init_base();
|
@@ -245,7 +244,7 @@ var init_encoding = __esm(() => {
|
|
245
244
|
};
|
246
245
|
});
|
247
246
|
|
248
|
-
// node_modules/viem/_esm/utils/encoding/fromHex.js
|
247
|
+
// ../node_modules/viem/_esm/utils/encoding/fromHex.js
|
249
248
|
function assertSize(hexOrBytes, { size: size22 }) {
|
250
249
|
if (size21(hexOrBytes) > size22)
|
251
250
|
throw new SizeOverflowError({
|
@@ -258,7 +257,7 @@ var init_fromHex = __esm(() => {
|
|
258
257
|
init_size();
|
259
258
|
});
|
260
259
|
|
261
|
-
// node_modules/viem/_esm/utils/encoding/toHex.js
|
260
|
+
// ../node_modules/viem/_esm/utils/encoding/toHex.js
|
262
261
|
function toHex(value6, opts = {}) {
|
263
262
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
264
263
|
return numberToHex(value6, opts);
|
@@ -330,7 +329,7 @@ var init_toHex = __esm(() => {
|
|
330
329
|
encoder2 = /* @__PURE__ */ new TextEncoder;
|
331
330
|
});
|
332
331
|
|
333
|
-
// node_modules/viem/_esm/utils/encoding/toBytes.js
|
332
|
+
// ../node_modules/viem/_esm/utils/encoding/toBytes.js
|
334
333
|
function toBytes(value6, opts = {}) {
|
335
334
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
336
335
|
return numberToBytes(value6, opts);
|
@@ -435,8 +434,7 @@ function aoutput(out, instance) {
|
|
435
434
|
throw new Error("digestInto() expects output buffer of length at least " + min4);
|
436
435
|
}
|
437
436
|
}
|
438
|
-
var init__assert = () => {
|
439
|
-
};
|
437
|
+
var init__assert = () => {};
|
440
438
|
|
441
439
|
// ../node_modules/@noble/hashes/esm/_u64.js
|
442
440
|
function fromBig(n, le = false) {
|
@@ -698,7 +696,7 @@ var init_sha3 = __esm(() => {
|
|
698
696
|
shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
699
697
|
});
|
700
698
|
|
701
|
-
// node_modules/viem/_esm/utils/hash/keccak256.js
|
699
|
+
// ../node_modules/viem/_esm/utils/hash/keccak256.js
|
702
700
|
function keccak256(value6, to_) {
|
703
701
|
const to = to_ || "hex";
|
704
702
|
const bytes = keccak_256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
|
@@ -712,7 +710,7 @@ var init_keccak256 = __esm(() => {
|
|
712
710
|
init_toHex();
|
713
711
|
});
|
714
712
|
|
715
|
-
// node_modules/viem/_esm/errors/address.js
|
713
|
+
// ../node_modules/viem/_esm/errors/address.js
|
716
714
|
var InvalidAddressError;
|
717
715
|
var init_address = __esm(() => {
|
718
716
|
init_base();
|
@@ -729,7 +727,7 @@ var init_address = __esm(() => {
|
|
729
727
|
};
|
730
728
|
});
|
731
729
|
|
732
|
-
// node_modules/viem/_esm/utils/lru.js
|
730
|
+
// ../node_modules/viem/_esm/utils/lru.js
|
733
731
|
var LruMap;
|
734
732
|
var init_lru = __esm(() => {
|
735
733
|
LruMap = class LruMap extends Map {
|
@@ -763,7 +761,7 @@ var init_lru = __esm(() => {
|
|
763
761
|
};
|
764
762
|
});
|
765
763
|
|
766
|
-
// node_modules/viem/_esm/utils/address/getAddress.js
|
764
|
+
// ../node_modules/viem/_esm/utils/address/getAddress.js
|
767
765
|
function checksumAddress(address_, chainId) {
|
768
766
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
769
767
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
@@ -790,7 +788,7 @@ var init_getAddress = __esm(() => {
|
|
790
788
|
checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
791
789
|
});
|
792
790
|
|
793
|
-
// node_modules/viem/_esm/utils/address/isAddress.js
|
791
|
+
// ../node_modules/viem/_esm/utils/address/isAddress.js
|
794
792
|
function isAddress(address, options) {
|
795
793
|
const { strict: strict2 = true } = options ?? {};
|
796
794
|
const cacheKey = `${address}.${strict2}`;
|
@@ -816,12 +814,12 @@ var init_isAddress = __esm(() => {
|
|
816
814
|
isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
817
815
|
});
|
818
816
|
|
819
|
-
// node_modules/viem/_esm/utils/data/concat.js
|
817
|
+
// ../node_modules/viem/_esm/utils/data/concat.js
|
820
818
|
function concatHex(values7) {
|
821
819
|
return `0x${values7.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
822
820
|
}
|
823
821
|
|
824
|
-
// node_modules/viem/_esm/utils/regex.js
|
822
|
+
// ../node_modules/viem/_esm/utils/regex.js
|
825
823
|
var arrayRegex, bytesRegex, integerRegex;
|
826
824
|
var init_regex = __esm(() => {
|
827
825
|
arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
@@ -1154,8 +1152,7 @@ var tracingFunction = (name) => {
|
|
1154
1152
|
};
|
1155
1153
|
};
|
1156
1154
|
var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
|
1157
|
-
var genConstructor = function* () {
|
1158
|
-
}.constructor;
|
1155
|
+
var genConstructor = function* () {}.constructor;
|
1159
1156
|
|
1160
1157
|
// ../node_modules/effect/dist/esm/Hash.js
|
1161
1158
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
|
@@ -1502,8 +1499,7 @@ var StructuralCommitPrototype = {
|
|
1502
1499
|
...StructuralPrototype
|
1503
1500
|
};
|
1504
1501
|
var Base = /* @__PURE__ */ function() {
|
1505
|
-
function Base2() {
|
1506
|
-
}
|
1502
|
+
function Base2() {}
|
1507
1503
|
Base2.prototype = CommitPrototype;
|
1508
1504
|
return Base2;
|
1509
1505
|
}();
|
@@ -5006,8 +5002,7 @@ var Reference = () => (id, options) => {
|
|
5006
5002
|
Error.stackTraceLimit = 2;
|
5007
5003
|
const creationError = new Error;
|
5008
5004
|
Error.stackTraceLimit = limit;
|
5009
|
-
function ReferenceClass() {
|
5010
|
-
}
|
5005
|
+
function ReferenceClass() {}
|
5011
5006
|
Object.setPrototypeOf(ReferenceClass, ReferenceProto);
|
5012
5007
|
ReferenceClass.key = id;
|
5013
5008
|
ReferenceClass.defaultValue = options.defaultValue;
|
@@ -7947,8 +7942,7 @@ var prettyErrorMessage = (u) => {
|
|
7947
7942
|
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
|
7948
7943
|
return u["toString"]();
|
7949
7944
|
}
|
7950
|
-
} catch {
|
7951
|
-
}
|
7945
|
+
} catch {}
|
7952
7946
|
return stringifyCircular(u);
|
7953
7947
|
};
|
7954
7948
|
var locationRegex = /\((.*)\)/g;
|
@@ -8522,8 +8516,7 @@ var zip2 = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => map9(th
|
|
8522
8516
|
var zipLeft = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => as(that, a)));
|
8523
8517
|
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, () => that));
|
8524
8518
|
var never = /* @__PURE__ */ asyncInterrupt(() => {
|
8525
|
-
const interval = setInterval(() => {
|
8526
|
-
}, 2 ** 31 - 1);
|
8519
|
+
const interval = setInterval(() => {}, 2 ** 31 - 1);
|
8527
8520
|
return sync(() => clearInterval(interval));
|
8528
8521
|
});
|
8529
8522
|
var interruptFiber = (self) => flatMap6(fiberId, (fiberId2) => pipe(self, interruptAsFiber(fiberId2)));
|
@@ -12343,16 +12336,11 @@ class Const {
|
|
12343
12336
|
get value() {
|
12344
12337
|
return this.effect;
|
12345
12338
|
}
|
12346
|
-
onStart(_context, _effect, _parent, _fiber) {
|
12347
|
-
}
|
12348
|
-
|
12349
|
-
}
|
12350
|
-
|
12351
|
-
}
|
12352
|
-
onSuspend(_fiber) {
|
12353
|
-
}
|
12354
|
-
onResume(_fiber) {
|
12355
|
-
}
|
12339
|
+
onStart(_context, _effect, _parent, _fiber) {}
|
12340
|
+
onEnd(_value, _fiber) {}
|
12341
|
+
onEffect(_fiber, _effect) {}
|
12342
|
+
onSuspend(_fiber) {}
|
12343
|
+
onResume(_fiber) {}
|
12356
12344
|
map(f) {
|
12357
12345
|
return new ProxySupervisor(this, pipe(this.value, map9(f)));
|
12358
12346
|
}
|
@@ -12826,8 +12814,7 @@ class FiberRuntime extends Class {
|
|
12826
12814
|
return whileLoop({
|
12827
12815
|
while: () => !isDone3,
|
12828
12816
|
body,
|
12829
|
-
step: () => {
|
12830
|
-
}
|
12817
|
+
step: () => {}
|
12831
12818
|
});
|
12832
12819
|
}
|
12833
12820
|
return null;
|
@@ -22357,7 +22344,7 @@ class TrieIterator {
|
|
22357
22344
|
}
|
22358
22345
|
}
|
22359
22346
|
var isTrie = (u) => hasProperty(u, TrieTypeId);
|
22360
|
-
// node_modules/viem/_esm/utils/abi/encodePacked.js
|
22347
|
+
// ../node_modules/viem/_esm/utils/abi/encodePacked.js
|
22361
22348
|
init_abi();
|
22362
22349
|
init_address();
|
22363
22350
|
init_isAddress();
|
@@ -22426,7 +22413,7 @@ function encode6(type2, value6, isArray2 = false) {
|
|
22426
22413
|
throw new UnsupportedPackedAbiType(type2);
|
22427
22414
|
}
|
22428
22415
|
|
22429
|
-
// node_modules/viem/_esm/index.js
|
22416
|
+
// ../node_modules/viem/_esm/index.js
|
22430
22417
|
init_toBytes();
|
22431
22418
|
init_toHex();
|
22432
22419
|
// src/schema.ts
|
@@ -22488,6 +22475,10 @@ var Bytes32 = BytesToHex.pipe(exports_Schema.filter((x) => x.length === 66 || `E
|
|
22488
22475
|
function asBytes32(x) {
|
22489
22476
|
return parse3(Bytes32, x);
|
22490
22477
|
}
|
22478
|
+
var Address = HexString.pipe(exports_Schema.filter((s) => s.length === 42 || `Address must be a 20-byte '0x'-prefixed hex string, but got: ${s}`), exports_Schema.brand("Address"));
|
22479
|
+
function parseAddress(address) {
|
22480
|
+
return parse3(Address, address);
|
22481
|
+
}
|
22491
22482
|
|
22492
22483
|
// src/chain.ts
|
22493
22484
|
var supportedChains = {
|
@@ -48,7 +48,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
48
48
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
49
49
|
});
|
50
50
|
|
51
|
-
// node_modules/viem/_esm/utils/data/isHex.js
|
51
|
+
// ../node_modules/viem/_esm/utils/data/isHex.js
|
52
52
|
function isHex(value6, { strict: strict2 = true } = {}) {
|
53
53
|
if (!value6)
|
54
54
|
return false;
|
@@ -57,19 +57,18 @@ function isHex(value6, { strict: strict2 = true } = {}) {
|
|
57
57
|
return strict2 ? /^0x[0-9a-fA-F]*$/.test(value6) : value6.startsWith("0x");
|
58
58
|
}
|
59
59
|
|
60
|
-
// node_modules/viem/_esm/utils/data/size.js
|
60
|
+
// ../node_modules/viem/_esm/utils/data/size.js
|
61
61
|
function size21(value6) {
|
62
62
|
if (isHex(value6, { strict: false }))
|
63
63
|
return Math.ceil((value6.length - 2) / 2);
|
64
64
|
return value6.length;
|
65
65
|
}
|
66
|
-
var init_size = () => {
|
67
|
-
};
|
66
|
+
var init_size = () => {};
|
68
67
|
|
69
|
-
// node_modules/viem/_esm/errors/version.js
|
70
|
-
var version = "2.
|
68
|
+
// ../node_modules/viem/_esm/errors/version.js
|
69
|
+
var version = "2.24.3";
|
71
70
|
|
72
|
-
// node_modules/viem/_esm/errors/base.js
|
71
|
+
// ../node_modules/viem/_esm/errors/base.js
|
73
72
|
function walk(err, fn) {
|
74
73
|
if (fn?.(err))
|
75
74
|
return err;
|
@@ -157,7 +156,7 @@ var init_base = __esm(() => {
|
|
157
156
|
};
|
158
157
|
});
|
159
158
|
|
160
|
-
// node_modules/viem/_esm/errors/abi.js
|
159
|
+
// ../node_modules/viem/_esm/errors/abi.js
|
161
160
|
var AbiEncodingLengthMismatchError, BytesSizeMismatchError, UnsupportedPackedAbiType;
|
162
161
|
var init_abi = __esm(() => {
|
163
162
|
init_base();
|
@@ -187,7 +186,7 @@ var init_abi = __esm(() => {
|
|
187
186
|
};
|
188
187
|
});
|
189
188
|
|
190
|
-
// node_modules/viem/_esm/errors/data.js
|
189
|
+
// ../node_modules/viem/_esm/errors/data.js
|
191
190
|
var SizeExceedsPaddingSizeError;
|
192
191
|
var init_data = __esm(() => {
|
193
192
|
init_base();
|
@@ -198,7 +197,7 @@ var init_data = __esm(() => {
|
|
198
197
|
};
|
199
198
|
});
|
200
199
|
|
201
|
-
// node_modules/viem/_esm/utils/data/pad.js
|
200
|
+
// ../node_modules/viem/_esm/utils/data/pad.js
|
202
201
|
function pad(hexOrBytes, { dir: dir2, size: size22 = 32 } = {}) {
|
203
202
|
if (typeof hexOrBytes === "string")
|
204
203
|
return padHex(hexOrBytes, { dir: dir2, size: size22 });
|
@@ -236,7 +235,7 @@ var init_pad = __esm(() => {
|
|
236
235
|
init_data();
|
237
236
|
});
|
238
237
|
|
239
|
-
// node_modules/viem/_esm/errors/encoding.js
|
238
|
+
// ../node_modules/viem/_esm/errors/encoding.js
|
240
239
|
var IntegerOutOfRangeError, SizeOverflowError;
|
241
240
|
var init_encoding = __esm(() => {
|
242
241
|
init_base();
|
@@ -252,7 +251,7 @@ var init_encoding = __esm(() => {
|
|
252
251
|
};
|
253
252
|
});
|
254
253
|
|
255
|
-
// node_modules/viem/_esm/utils/encoding/fromHex.js
|
254
|
+
// ../node_modules/viem/_esm/utils/encoding/fromHex.js
|
256
255
|
function assertSize(hexOrBytes, { size: size22 }) {
|
257
256
|
if (size21(hexOrBytes) > size22)
|
258
257
|
throw new SizeOverflowError({
|
@@ -265,7 +264,7 @@ var init_fromHex = __esm(() => {
|
|
265
264
|
init_size();
|
266
265
|
});
|
267
266
|
|
268
|
-
// node_modules/viem/_esm/utils/encoding/toHex.js
|
267
|
+
// ../node_modules/viem/_esm/utils/encoding/toHex.js
|
269
268
|
function toHex(value6, opts = {}) {
|
270
269
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
271
270
|
return numberToHex(value6, opts);
|
@@ -337,7 +336,7 @@ var init_toHex = __esm(() => {
|
|
337
336
|
encoder2 = /* @__PURE__ */ new TextEncoder;
|
338
337
|
});
|
339
338
|
|
340
|
-
// node_modules/viem/_esm/utils/encoding/toBytes.js
|
339
|
+
// ../node_modules/viem/_esm/utils/encoding/toBytes.js
|
341
340
|
function toBytes(value6, opts = {}) {
|
342
341
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
343
342
|
return numberToBytes(value6, opts);
|
@@ -442,8 +441,7 @@ function aoutput(out, instance) {
|
|
442
441
|
throw new Error("digestInto() expects output buffer of length at least " + min4);
|
443
442
|
}
|
444
443
|
}
|
445
|
-
var init__assert = () => {
|
446
|
-
};
|
444
|
+
var init__assert = () => {};
|
447
445
|
|
448
446
|
// ../node_modules/@noble/hashes/esm/_u64.js
|
449
447
|
function fromBig(n, le = false) {
|
@@ -705,7 +703,7 @@ var init_sha3 = __esm(() => {
|
|
705
703
|
shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
706
704
|
});
|
707
705
|
|
708
|
-
// node_modules/viem/_esm/utils/hash/keccak256.js
|
706
|
+
// ../node_modules/viem/_esm/utils/hash/keccak256.js
|
709
707
|
function keccak256(value6, to_) {
|
710
708
|
const to = to_ || "hex";
|
711
709
|
const bytes = keccak_256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
|
@@ -719,7 +717,7 @@ var init_keccak256 = __esm(() => {
|
|
719
717
|
init_toHex();
|
720
718
|
});
|
721
719
|
|
722
|
-
// node_modules/viem/_esm/errors/address.js
|
720
|
+
// ../node_modules/viem/_esm/errors/address.js
|
723
721
|
var InvalidAddressError;
|
724
722
|
var init_address = __esm(() => {
|
725
723
|
init_base();
|
@@ -736,7 +734,7 @@ var init_address = __esm(() => {
|
|
736
734
|
};
|
737
735
|
});
|
738
736
|
|
739
|
-
// node_modules/viem/_esm/utils/lru.js
|
737
|
+
// ../node_modules/viem/_esm/utils/lru.js
|
740
738
|
var LruMap;
|
741
739
|
var init_lru = __esm(() => {
|
742
740
|
LruMap = class LruMap extends Map {
|
@@ -770,7 +768,7 @@ var init_lru = __esm(() => {
|
|
770
768
|
};
|
771
769
|
});
|
772
770
|
|
773
|
-
// node_modules/viem/_esm/utils/address/getAddress.js
|
771
|
+
// ../node_modules/viem/_esm/utils/address/getAddress.js
|
774
772
|
function checksumAddress(address_, chainId) {
|
775
773
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
776
774
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
@@ -797,7 +795,7 @@ var init_getAddress = __esm(() => {
|
|
797
795
|
checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
798
796
|
});
|
799
797
|
|
800
|
-
// node_modules/viem/_esm/utils/address/isAddress.js
|
798
|
+
// ../node_modules/viem/_esm/utils/address/isAddress.js
|
801
799
|
function isAddress(address, options) {
|
802
800
|
const { strict: strict2 = true } = options ?? {};
|
803
801
|
const cacheKey = `${address}.${strict2}`;
|
@@ -823,12 +821,12 @@ var init_isAddress = __esm(() => {
|
|
823
821
|
isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
824
822
|
});
|
825
823
|
|
826
|
-
// node_modules/viem/_esm/utils/data/concat.js
|
824
|
+
// ../node_modules/viem/_esm/utils/data/concat.js
|
827
825
|
function concatHex(values7) {
|
828
826
|
return `0x${values7.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
829
827
|
}
|
830
828
|
|
831
|
-
// node_modules/viem/_esm/utils/regex.js
|
829
|
+
// ../node_modules/viem/_esm/utils/regex.js
|
832
830
|
var arrayRegex, bytesRegex, integerRegex;
|
833
831
|
var init_regex = __esm(() => {
|
834
832
|
arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
@@ -1154,8 +1152,7 @@ var tracingFunction = (name) => {
|
|
1154
1152
|
};
|
1155
1153
|
};
|
1156
1154
|
var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
|
1157
|
-
var genConstructor = function* () {
|
1158
|
-
}.constructor;
|
1155
|
+
var genConstructor = function* () {}.constructor;
|
1159
1156
|
|
1160
1157
|
// ../node_modules/effect/dist/esm/Hash.js
|
1161
1158
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
|
@@ -1502,8 +1499,7 @@ var StructuralCommitPrototype = {
|
|
1502
1499
|
...StructuralPrototype
|
1503
1500
|
};
|
1504
1501
|
var Base = /* @__PURE__ */ function() {
|
1505
|
-
function Base2() {
|
1506
|
-
}
|
1502
|
+
function Base2() {}
|
1507
1503
|
Base2.prototype = CommitPrototype;
|
1508
1504
|
return Base2;
|
1509
1505
|
}();
|
@@ -5006,8 +5002,7 @@ var Reference = () => (id, options) => {
|
|
5006
5002
|
Error.stackTraceLimit = 2;
|
5007
5003
|
const creationError = new Error;
|
5008
5004
|
Error.stackTraceLimit = limit;
|
5009
|
-
function ReferenceClass() {
|
5010
|
-
}
|
5005
|
+
function ReferenceClass() {}
|
5011
5006
|
Object.setPrototypeOf(ReferenceClass, ReferenceProto);
|
5012
5007
|
ReferenceClass.key = id;
|
5013
5008
|
ReferenceClass.defaultValue = options.defaultValue;
|
@@ -7947,8 +7942,7 @@ var prettyErrorMessage = (u) => {
|
|
7947
7942
|
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
|
7948
7943
|
return u["toString"]();
|
7949
7944
|
}
|
7950
|
-
} catch {
|
7951
|
-
}
|
7945
|
+
} catch {}
|
7952
7946
|
return stringifyCircular(u);
|
7953
7947
|
};
|
7954
7948
|
var locationRegex = /\((.*)\)/g;
|
@@ -8522,8 +8516,7 @@ var zip2 = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => map9(th
|
|
8522
8516
|
var zipLeft = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => as(that, a)));
|
8523
8517
|
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, () => that));
|
8524
8518
|
var never = /* @__PURE__ */ asyncInterrupt(() => {
|
8525
|
-
const interval = setInterval(() => {
|
8526
|
-
}, 2 ** 31 - 1);
|
8519
|
+
const interval = setInterval(() => {}, 2 ** 31 - 1);
|
8527
8520
|
return sync(() => clearInterval(interval));
|
8528
8521
|
});
|
8529
8522
|
var interruptFiber = (self) => flatMap6(fiberId, (fiberId2) => pipe(self, interruptAsFiber(fiberId2)));
|
@@ -12343,16 +12336,11 @@ class Const {
|
|
12343
12336
|
get value() {
|
12344
12337
|
return this.effect;
|
12345
12338
|
}
|
12346
|
-
onStart(_context, _effect, _parent, _fiber) {
|
12347
|
-
}
|
12348
|
-
|
12349
|
-
}
|
12350
|
-
|
12351
|
-
}
|
12352
|
-
onSuspend(_fiber) {
|
12353
|
-
}
|
12354
|
-
onResume(_fiber) {
|
12355
|
-
}
|
12339
|
+
onStart(_context, _effect, _parent, _fiber) {}
|
12340
|
+
onEnd(_value, _fiber) {}
|
12341
|
+
onEffect(_fiber, _effect) {}
|
12342
|
+
onSuspend(_fiber) {}
|
12343
|
+
onResume(_fiber) {}
|
12356
12344
|
map(f) {
|
12357
12345
|
return new ProxySupervisor(this, pipe(this.value, map9(f)));
|
12358
12346
|
}
|
@@ -12826,8 +12814,7 @@ class FiberRuntime extends Class {
|
|
12826
12814
|
return whileLoop({
|
12827
12815
|
while: () => !isDone3,
|
12828
12816
|
body,
|
12829
|
-
step: () => {
|
12830
|
-
}
|
12817
|
+
step: () => {}
|
12831
12818
|
});
|
12832
12819
|
}
|
12833
12820
|
return null;
|
@@ -22357,7 +22344,7 @@ class TrieIterator {
|
|
22357
22344
|
}
|
22358
22345
|
}
|
22359
22346
|
var isTrie = (u) => hasProperty(u, TrieTypeId);
|
22360
|
-
// node_modules/viem/_esm/utils/abi/encodePacked.js
|
22347
|
+
// ../node_modules/viem/_esm/utils/abi/encodePacked.js
|
22361
22348
|
init_abi();
|
22362
22349
|
init_address();
|
22363
22350
|
init_isAddress();
|
@@ -22426,7 +22413,7 @@ function encode6(type2, value6, isArray2 = false) {
|
|
22426
22413
|
throw new UnsupportedPackedAbiType(type2);
|
22427
22414
|
}
|
22428
22415
|
|
22429
|
-
// node_modules/viem/_esm/index.js
|
22416
|
+
// ../node_modules/viem/_esm/index.js
|
22430
22417
|
init_toBytes();
|
22431
22418
|
init_toHex();
|
22432
22419
|
// src/schema.ts
|
@@ -22488,6 +22475,10 @@ var Bytes32 = BytesToHex.pipe(exports_Schema.filter((x) => x.length === 66 || `E
|
|
22488
22475
|
function asBytes32(x) {
|
22489
22476
|
return parse3(Bytes32, x);
|
22490
22477
|
}
|
22478
|
+
var Address = HexString.pipe(exports_Schema.filter((s) => s.length === 42 || `Address must be a 20-byte '0x'-prefixed hex string, but got: ${s}`), exports_Schema.brand("Address"));
|
22479
|
+
function parseAddress(address) {
|
22480
|
+
return parse3(Address, address);
|
22481
|
+
}
|
22491
22482
|
|
22492
22483
|
// src/chain.ts
|
22493
22484
|
var supportedChains = {
|