@inco/js 0.1.19 → 0.1.21
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/dist/encryption/{index.js → index.cjs} +47 -34
- package/dist/encryption/index.mjs +24092 -0
- package/dist/fhevm/index.mjs +90 -0
- package/dist/generated/abis/index.mjs +12485 -0
- package/dist/generated/lightning.d.ts +252 -6
- package/dist/{index.js → index.cjs} +47 -34
- package/dist/index.mjs +24019 -0
- package/dist/lite/{index.js → index.cjs} +341 -57
- package/dist/lite/index.mjs +69723 -0
- package/dist/local/index.cjs +21930 -0
- package/dist/local/index.mjs +40378 -0
- package/dist/local/local-node.d.ts +1 -2
- package/dist/reencryption/{index.js → index.cjs} +311 -40
- package/dist/{local/index.js → reencryption/index.mjs} +610 -398
- package/dist/viem.d.ts +53 -52
- package/package.json +16 -23
- /package/dist/fhevm/{index.js → index.cjs} +0 -0
- /package/dist/generated/abis/{index.js → index.cjs} +0 -0
@@ -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
|
-
//
|
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,18 +50,19 @@ 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
|
-
//
|
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 = () => {
|
59
|
+
var init_size = () => {
|
60
|
+
};
|
60
61
|
|
61
|
-
//
|
62
|
-
var version = "2.
|
62
|
+
// node_modules/viem/_esm/errors/version.js
|
63
|
+
var version = "2.22.23";
|
63
64
|
|
64
|
-
//
|
65
|
+
// node_modules/viem/_esm/errors/base.js
|
65
66
|
function walk(err, fn) {
|
66
67
|
if (fn?.(err))
|
67
68
|
return err;
|
@@ -149,7 +150,7 @@ var init_base = __esm(() => {
|
|
149
150
|
};
|
150
151
|
});
|
151
152
|
|
152
|
-
//
|
153
|
+
// node_modules/viem/_esm/errors/abi.js
|
153
154
|
var AbiEncodingLengthMismatchError, BytesSizeMismatchError, UnsupportedPackedAbiType;
|
154
155
|
var init_abi = __esm(() => {
|
155
156
|
init_base();
|
@@ -179,7 +180,7 @@ var init_abi = __esm(() => {
|
|
179
180
|
};
|
180
181
|
});
|
181
182
|
|
182
|
-
//
|
183
|
+
// node_modules/viem/_esm/errors/data.js
|
183
184
|
var SizeExceedsPaddingSizeError;
|
184
185
|
var init_data = __esm(() => {
|
185
186
|
init_base();
|
@@ -190,7 +191,7 @@ var init_data = __esm(() => {
|
|
190
191
|
};
|
191
192
|
});
|
192
193
|
|
193
|
-
//
|
194
|
+
// node_modules/viem/_esm/utils/data/pad.js
|
194
195
|
function pad(hexOrBytes, { dir: dir2, size: size22 = 32 } = {}) {
|
195
196
|
if (typeof hexOrBytes === "string")
|
196
197
|
return padHex(hexOrBytes, { dir: dir2, size: size22 });
|
@@ -228,7 +229,7 @@ var init_pad = __esm(() => {
|
|
228
229
|
init_data();
|
229
230
|
});
|
230
231
|
|
231
|
-
//
|
232
|
+
// node_modules/viem/_esm/errors/encoding.js
|
232
233
|
var IntegerOutOfRangeError, SizeOverflowError;
|
233
234
|
var init_encoding = __esm(() => {
|
234
235
|
init_base();
|
@@ -244,7 +245,7 @@ var init_encoding = __esm(() => {
|
|
244
245
|
};
|
245
246
|
});
|
246
247
|
|
247
|
-
//
|
248
|
+
// node_modules/viem/_esm/utils/encoding/fromHex.js
|
248
249
|
function assertSize(hexOrBytes, { size: size22 }) {
|
249
250
|
if (size21(hexOrBytes) > size22)
|
250
251
|
throw new SizeOverflowError({
|
@@ -257,7 +258,7 @@ var init_fromHex = __esm(() => {
|
|
257
258
|
init_size();
|
258
259
|
});
|
259
260
|
|
260
|
-
//
|
261
|
+
// node_modules/viem/_esm/utils/encoding/toHex.js
|
261
262
|
function toHex(value6, opts = {}) {
|
262
263
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
263
264
|
return numberToHex(value6, opts);
|
@@ -329,7 +330,7 @@ var init_toHex = __esm(() => {
|
|
329
330
|
encoder2 = /* @__PURE__ */ new TextEncoder;
|
330
331
|
});
|
331
332
|
|
332
|
-
//
|
333
|
+
// node_modules/viem/_esm/utils/encoding/toBytes.js
|
333
334
|
function toBytes(value6, opts = {}) {
|
334
335
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
335
336
|
return numberToBytes(value6, opts);
|
@@ -434,7 +435,8 @@ function aoutput(out, instance) {
|
|
434
435
|
throw new Error("digestInto() expects output buffer of length at least " + min4);
|
435
436
|
}
|
436
437
|
}
|
437
|
-
var init__assert = () => {
|
438
|
+
var init__assert = () => {
|
439
|
+
};
|
438
440
|
|
439
441
|
// ../node_modules/@noble/hashes/esm/_u64.js
|
440
442
|
function fromBig(n, le = false) {
|
@@ -696,7 +698,7 @@ var init_sha3 = __esm(() => {
|
|
696
698
|
shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
697
699
|
});
|
698
700
|
|
699
|
-
//
|
701
|
+
// node_modules/viem/_esm/utils/hash/keccak256.js
|
700
702
|
function keccak256(value6, to_) {
|
701
703
|
const to = to_ || "hex";
|
702
704
|
const bytes = keccak_256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
|
@@ -710,7 +712,7 @@ var init_keccak256 = __esm(() => {
|
|
710
712
|
init_toHex();
|
711
713
|
});
|
712
714
|
|
713
|
-
//
|
715
|
+
// node_modules/viem/_esm/errors/address.js
|
714
716
|
var InvalidAddressError;
|
715
717
|
var init_address = __esm(() => {
|
716
718
|
init_base();
|
@@ -727,7 +729,7 @@ var init_address = __esm(() => {
|
|
727
729
|
};
|
728
730
|
});
|
729
731
|
|
730
|
-
//
|
732
|
+
// node_modules/viem/_esm/utils/lru.js
|
731
733
|
var LruMap;
|
732
734
|
var init_lru = __esm(() => {
|
733
735
|
LruMap = class LruMap extends Map {
|
@@ -761,7 +763,7 @@ var init_lru = __esm(() => {
|
|
761
763
|
};
|
762
764
|
});
|
763
765
|
|
764
|
-
//
|
766
|
+
// node_modules/viem/_esm/utils/address/getAddress.js
|
765
767
|
function checksumAddress(address_, chainId) {
|
766
768
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
767
769
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
@@ -788,7 +790,7 @@ var init_getAddress = __esm(() => {
|
|
788
790
|
checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
789
791
|
});
|
790
792
|
|
791
|
-
//
|
793
|
+
// node_modules/viem/_esm/utils/address/isAddress.js
|
792
794
|
function isAddress(address, options) {
|
793
795
|
const { strict: strict2 = true } = options ?? {};
|
794
796
|
const cacheKey = `${address}.${strict2}`;
|
@@ -814,12 +816,12 @@ var init_isAddress = __esm(() => {
|
|
814
816
|
isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
815
817
|
});
|
816
818
|
|
817
|
-
//
|
819
|
+
// node_modules/viem/_esm/utils/data/concat.js
|
818
820
|
function concatHex(values7) {
|
819
821
|
return `0x${values7.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
820
822
|
}
|
821
823
|
|
822
|
-
//
|
824
|
+
// node_modules/viem/_esm/utils/regex.js
|
823
825
|
var arrayRegex, bytesRegex, integerRegex;
|
824
826
|
var init_regex = __esm(() => {
|
825
827
|
arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
@@ -1501,7 +1503,8 @@ var tracingFunction = (name) => {
|
|
1501
1503
|
};
|
1502
1504
|
};
|
1503
1505
|
var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
|
1504
|
-
var genConstructor = function* () {
|
1506
|
+
var genConstructor = function* () {
|
1507
|
+
}.constructor;
|
1505
1508
|
|
1506
1509
|
// ../node_modules/effect/dist/esm/Hash.js
|
1507
1510
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
|
@@ -1848,7 +1851,8 @@ var StructuralCommitPrototype = {
|
|
1848
1851
|
...StructuralPrototype
|
1849
1852
|
};
|
1850
1853
|
var Base = /* @__PURE__ */ function() {
|
1851
|
-
function Base2() {
|
1854
|
+
function Base2() {
|
1855
|
+
}
|
1852
1856
|
Base2.prototype = CommitPrototype;
|
1853
1857
|
return Base2;
|
1854
1858
|
}();
|
@@ -5351,7 +5355,8 @@ var Reference = () => (id, options) => {
|
|
5351
5355
|
Error.stackTraceLimit = 2;
|
5352
5356
|
const creationError = new Error;
|
5353
5357
|
Error.stackTraceLimit = limit;
|
5354
|
-
function ReferenceClass() {
|
5358
|
+
function ReferenceClass() {
|
5359
|
+
}
|
5355
5360
|
Object.setPrototypeOf(ReferenceClass, ReferenceProto);
|
5356
5361
|
ReferenceClass.key = id;
|
5357
5362
|
ReferenceClass.defaultValue = options.defaultValue;
|
@@ -8291,7 +8296,8 @@ var prettyErrorMessage = (u) => {
|
|
8291
8296
|
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
|
8292
8297
|
return u["toString"]();
|
8293
8298
|
}
|
8294
|
-
} catch {
|
8299
|
+
} catch {
|
8300
|
+
}
|
8295
8301
|
return stringifyCircular(u);
|
8296
8302
|
};
|
8297
8303
|
var locationRegex = /\((.*)\)/g;
|
@@ -8865,7 +8871,8 @@ var zip2 = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => map9(th
|
|
8865
8871
|
var zipLeft = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => as(that, a)));
|
8866
8872
|
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, () => that));
|
8867
8873
|
var never = /* @__PURE__ */ asyncInterrupt(() => {
|
8868
|
-
const interval = setInterval(() => {
|
8874
|
+
const interval = setInterval(() => {
|
8875
|
+
}, 2 ** 31 - 1);
|
8869
8876
|
return sync(() => clearInterval(interval));
|
8870
8877
|
});
|
8871
8878
|
var interruptFiber = (self) => flatMap6(fiberId, (fiberId2) => pipe(self, interruptAsFiber(fiberId2)));
|
@@ -12685,11 +12692,16 @@ class Const {
|
|
12685
12692
|
get value() {
|
12686
12693
|
return this.effect;
|
12687
12694
|
}
|
12688
|
-
onStart(_context, _effect, _parent, _fiber) {
|
12689
|
-
|
12690
|
-
|
12691
|
-
|
12692
|
-
|
12695
|
+
onStart(_context, _effect, _parent, _fiber) {
|
12696
|
+
}
|
12697
|
+
onEnd(_value, _fiber) {
|
12698
|
+
}
|
12699
|
+
onEffect(_fiber, _effect) {
|
12700
|
+
}
|
12701
|
+
onSuspend(_fiber) {
|
12702
|
+
}
|
12703
|
+
onResume(_fiber) {
|
12704
|
+
}
|
12693
12705
|
map(f) {
|
12694
12706
|
return new ProxySupervisor(this, pipe(this.value, map9(f)));
|
12695
12707
|
}
|
@@ -13163,7 +13175,8 @@ class FiberRuntime extends Class {
|
|
13163
13175
|
return whileLoop({
|
13164
13176
|
while: () => !isDone3,
|
13165
13177
|
body,
|
13166
|
-
step: () => {
|
13178
|
+
step: () => {
|
13179
|
+
}
|
13167
13180
|
});
|
13168
13181
|
}
|
13169
13182
|
return null;
|
@@ -22693,7 +22706,7 @@ class TrieIterator {
|
|
22693
22706
|
}
|
22694
22707
|
}
|
22695
22708
|
var isTrie = (u) => hasProperty(u, TrieTypeId);
|
22696
|
-
//
|
22709
|
+
// node_modules/viem/_esm/utils/abi/encodePacked.js
|
22697
22710
|
init_abi();
|
22698
22711
|
init_address();
|
22699
22712
|
init_isAddress();
|
@@ -22762,7 +22775,7 @@ function encode6(type2, value6, isArray2 = false) {
|
|
22762
22775
|
throw new UnsupportedPackedAbiType(type2);
|
22763
22776
|
}
|
22764
22777
|
|
22765
|
-
//
|
22778
|
+
// node_modules/viem/_esm/index.js
|
22766
22779
|
init_toBytes();
|
22767
22780
|
init_toHex();
|
22768
22781
|
// src/schema.ts
|