@inco/js 0.1.31 → 0.1.33
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 +28 -57
- package/dist/binary.js +67 -0
- package/dist/chain.js +24 -0
- package/dist/encryption/encryption.js +98 -0
- package/dist/encryption/index.cjs +132 -123
- package/dist/encryption/index.js +2 -0
- package/dist/encryption/index.mjs +132 -123
- package/dist/fhevm/fhe-environment.js +8 -0
- package/dist/fhevm/fhevm.js +139 -0
- package/dist/fhevm/index.js +2 -0
- package/dist/fhevm/reencrypt.js +123 -0
- package/dist/fhevm/tfhe.js +324 -0
- package/dist/fhevm/types.js +26 -0
- package/dist/generated/abis/addTwo.js +59 -0
- package/dist/generated/abis/inco-fhevm.js +6242 -0
- package/dist/generated/abis/index.js +3 -0
- package/dist/generated/abis/lightning.js +12489 -0
- package/dist/generated/es/cosmos/ics23/v1/proofs_pb.js +198 -0
- package/dist/generated/es/cosmos/msg/v1/msg_pb.js +33 -0
- package/dist/generated/es/cosmos_proto/cosmos_pb.js +115 -0
- package/dist/generated/es/google/api/annotations_pb.js +27 -0
- package/dist/generated/es/google/api/http_pb.js +34 -0
- package/dist/generated/es/inco/fhe/v1/events_pb.js +21 -0
- package/dist/generated/es/inco/fhe/v1/genesis_pb.js +46 -0
- package/dist/generated/es/inco/fhe/v1/query_pb.js +108 -0
- package/dist/generated/es/inco/fhe/v1/tx_pb.js +108 -0
- package/dist/generated/es/inco/fhe/v1/types_pb.js +133 -0
- package/dist/generated/es/inco/kms/lite/v1/kms_service_pb.js +43 -0
- package/dist/generated/es/inco/kms/lite/v1/types_pb.js +44 -0
- package/dist/generated/es/inco/preflight/v1/genesis_pb.js +20 -0
- package/dist/generated/es/inco/preflight/v1/query_pb.js +38 -0
- package/dist/generated/es/inco/preflight/v1/tx_pb.js +48 -0
- package/dist/generated/es/inco/preflight/v1/types_pb.js +34 -0
- package/dist/generated/es/kms/base_pb.js +238 -0
- package/dist/generated/es/sf/ethereum/type/v2/type_pb.js +571 -0
- package/dist/generated/fhe-environments.js +15 -0
- package/dist/generated/lightning.js +399 -0
- package/dist/generated/local-node.js +8 -0
- package/dist/generated/ts/amino/amino.js +8 -0
- package/dist/generated/ts/cometbft/abci/v1/types.js +5063 -0
- package/dist/generated/ts/cometbft/crypto/v1/keys.js +105 -0
- package/dist/generated/ts/cometbft/crypto/v1/proof.js +430 -0
- package/dist/generated/ts/cometbft/types/v1/params.js +713 -0
- package/dist/generated/ts/cometbft/types/v1/validator.js +353 -0
- package/dist/generated/ts/cosmos/app/v1alpha1/module.js +218 -0
- package/dist/generated/ts/cosmos/msg/v1/msg.js +8 -0
- package/dist/generated/ts/cosmos_proto/cosmos.js +211 -0
- package/dist/generated/ts/gogoproto/gogo.js +8 -0
- package/dist/generated/ts/google/api/annotations.js +8 -0
- package/dist/generated/ts/google/api/http.js +353 -0
- package/dist/generated/ts/google/protobuf/descriptor.js +5070 -0
- package/dist/generated/ts/google/protobuf/duration.js +90 -0
- package/dist/generated/ts/google/protobuf/timestamp.js +90 -0
- package/dist/generated/ts/google/protobuf/wrappers.js +506 -0
- package/dist/generated/ts/inco/abci/v1/types.js +70 -0
- package/dist/generated/ts/inco/fhe/module/v1/module.js +63 -0
- package/dist/generated/ts/inco/fhe/v1/events.js +187 -0
- package/dist/generated/ts/inco/fhe/v1/genesis.js +711 -0
- package/dist/generated/ts/inco/fhe/v1/query.js +1391 -0
- package/dist/generated/ts/inco/fhe/v1/tx.js +1233 -0
- package/dist/generated/ts/inco/fhe/v1/types.js +985 -0
- package/dist/generated/ts/inco/originchain/module/v1/module.js +63 -0
- package/dist/generated/ts/inco/originchain/v1/abci.js +328 -0
- package/dist/generated/ts/inco/originchain/v1/events.js +213 -0
- package/dist/generated/ts/inco/originchain/v1/genesis.js +66 -0
- package/dist/generated/ts/inco/originchain/v1/query.js +277 -0
- package/dist/generated/ts/inco/originchain/v1/tx.js +137 -0
- package/dist/generated/ts/inco/originchain/v1/types.js +200 -0
- package/dist/generated/ts/inco/preflight/module/v1/module.js +63 -0
- package/dist/generated/ts/inco/preflight/v1/genesis.js +182 -0
- package/dist/generated/ts/inco/preflight/v1/query.js +256 -0
- package/dist/generated/ts/inco/preflight/v1/tx.js +445 -0
- package/dist/generated/ts/inco/preflight/v1/types.js +395 -0
- package/dist/handle.js +94 -0
- package/dist/index.cjs +140 -131
- package/dist/index.js +6 -0
- package/dist/index.mjs +140 -131
- package/dist/l1/client.js +93 -0
- package/dist/l1/index.js +3 -0
- package/dist/l1/preflight.js +39 -0
- package/dist/lite/deployments.js +17 -0
- package/dist/lite/ecies.js +124 -0
- package/dist/lite/hadu.js +36 -0
- package/dist/lite/index.cjs +186 -146
- package/dist/lite/index.js +7 -0
- package/dist/lite/index.mjs +3890 -3788
- package/dist/lite/lightning.js +179 -0
- package/dist/lite/reencrypt.d.ts +1 -0
- package/dist/lite/reencrypt.js +148 -0
- package/dist/local/index.cjs +25 -2573
- package/dist/local/index.js +2 -0
- package/dist/local/index.mjs +5352 -7837
- package/dist/local/local-node.js +24 -0
- package/dist/reencryption/eip712.js +81 -0
- package/dist/reencryption/index.cjs +132 -123
- package/dist/reencryption/index.js +3 -0
- package/dist/reencryption/index.mjs +132 -123
- package/dist/reencryption/types.js +2 -0
- package/dist/schema.js +15 -0
- package/dist/viem.d.ts +53 -52
- package/dist/viem.js +8 -0
- package/package.json +11 -48
@@ -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 SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
184
185
|
var init_data = __esm(() => {
|
185
186
|
init_base();
|
@@ -195,7 +196,7 @@ var init_data = __esm(() => {
|
|
195
196
|
};
|
196
197
|
});
|
197
198
|
|
198
|
-
//
|
199
|
+
// node_modules/viem/_esm/utils/data/pad.js
|
199
200
|
function pad(hexOrBytes, { dir: dir2, size: size22 = 32 } = {}) {
|
200
201
|
if (typeof hexOrBytes === "string")
|
201
202
|
return padHex(hexOrBytes, { dir: dir2, size: size22 });
|
@@ -233,7 +234,7 @@ var init_pad = __esm(() => {
|
|
233
234
|
init_data();
|
234
235
|
});
|
235
236
|
|
236
|
-
//
|
237
|
+
// node_modules/viem/_esm/errors/encoding.js
|
237
238
|
var IntegerOutOfRangeError, SizeOverflowError;
|
238
239
|
var init_encoding = __esm(() => {
|
239
240
|
init_base();
|
@@ -249,7 +250,7 @@ var init_encoding = __esm(() => {
|
|
249
250
|
};
|
250
251
|
});
|
251
252
|
|
252
|
-
//
|
253
|
+
// node_modules/viem/_esm/utils/data/trim.js
|
253
254
|
function trim(hexOrBytes, { dir: dir2 = "left" } = {}) {
|
254
255
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
255
256
|
let sliceLength = 0;
|
@@ -268,7 +269,7 @@ function trim(hexOrBytes, { dir: dir2 = "left" } = {}) {
|
|
268
269
|
return data;
|
269
270
|
}
|
270
271
|
|
271
|
-
//
|
272
|
+
// node_modules/viem/_esm/utils/encoding/fromHex.js
|
272
273
|
function assertSize(hexOrBytes, { size: size22 }) {
|
273
274
|
if (size21(hexOrBytes) > size22)
|
274
275
|
throw new SizeOverflowError({
|
@@ -297,7 +298,7 @@ var init_fromHex = __esm(() => {
|
|
297
298
|
init_size();
|
298
299
|
});
|
299
300
|
|
300
|
-
//
|
301
|
+
// node_modules/viem/_esm/utils/encoding/toHex.js
|
301
302
|
function toHex(value6, opts = {}) {
|
302
303
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
303
304
|
return numberToHex(value6, opts);
|
@@ -369,7 +370,7 @@ var init_toHex = __esm(() => {
|
|
369
370
|
encoder2 = /* @__PURE__ */ new TextEncoder;
|
370
371
|
});
|
371
372
|
|
372
|
-
//
|
373
|
+
// node_modules/viem/_esm/utils/encoding/toBytes.js
|
373
374
|
function toBytes(value6, opts = {}) {
|
374
375
|
if (typeof value6 === "number" || typeof value6 === "bigint")
|
375
376
|
return numberToBytes(value6, opts);
|
@@ -474,7 +475,8 @@ function aoutput(out, instance) {
|
|
474
475
|
throw new Error("digestInto() expects output buffer of length at least " + min4);
|
475
476
|
}
|
476
477
|
}
|
477
|
-
var init__assert = () => {
|
478
|
+
var init__assert = () => {
|
479
|
+
};
|
478
480
|
|
479
481
|
// ../node_modules/@noble/hashes/esm/_u64.js
|
480
482
|
function fromBig(n, le = false) {
|
@@ -742,7 +744,7 @@ var init_sha3 = __esm(() => {
|
|
742
744
|
shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
743
745
|
});
|
744
746
|
|
745
|
-
//
|
747
|
+
// node_modules/viem/_esm/utils/hash/keccak256.js
|
746
748
|
function keccak256(value6, to_) {
|
747
749
|
const to = to_ || "hex";
|
748
750
|
const bytes = keccak_256(isHex(value6, { strict: false }) ? toBytes(value6) : value6);
|
@@ -756,7 +758,7 @@ var init_keccak256 = __esm(() => {
|
|
756
758
|
init_toHex();
|
757
759
|
});
|
758
760
|
|
759
|
-
//
|
761
|
+
// node_modules/viem/_esm/errors/address.js
|
760
762
|
var InvalidAddressError;
|
761
763
|
var init_address = __esm(() => {
|
762
764
|
init_base();
|
@@ -773,7 +775,7 @@ var init_address = __esm(() => {
|
|
773
775
|
};
|
774
776
|
});
|
775
777
|
|
776
|
-
//
|
778
|
+
// node_modules/viem/_esm/utils/lru.js
|
777
779
|
var LruMap;
|
778
780
|
var init_lru = __esm(() => {
|
779
781
|
LruMap = class LruMap extends Map {
|
@@ -807,7 +809,7 @@ var init_lru = __esm(() => {
|
|
807
809
|
};
|
808
810
|
});
|
809
811
|
|
810
|
-
//
|
812
|
+
// node_modules/viem/_esm/utils/address/getAddress.js
|
811
813
|
function checksumAddress(address_, chainId) {
|
812
814
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
813
815
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
@@ -834,7 +836,7 @@ var init_getAddress = __esm(() => {
|
|
834
836
|
checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
835
837
|
});
|
836
838
|
|
837
|
-
//
|
839
|
+
// node_modules/viem/_esm/utils/address/isAddress.js
|
838
840
|
function isAddress(address, options) {
|
839
841
|
const { strict: strict2 = true } = options ?? {};
|
840
842
|
const cacheKey = `${address}.${strict2}`;
|
@@ -860,12 +862,12 @@ var init_isAddress = __esm(() => {
|
|
860
862
|
isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
861
863
|
});
|
862
864
|
|
863
|
-
//
|
865
|
+
// node_modules/viem/_esm/utils/data/concat.js
|
864
866
|
function concatHex(values7) {
|
865
867
|
return `0x${values7.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
866
868
|
}
|
867
869
|
|
868
|
-
//
|
870
|
+
// node_modules/viem/_esm/utils/data/slice.js
|
869
871
|
function slice(value6, start5, end6, { strict: strict2 } = {}) {
|
870
872
|
if (isHex(value6, { strict: false }))
|
871
873
|
return sliceHex(value6, start5, end6, {
|
@@ -911,7 +913,7 @@ var init_slice = __esm(() => {
|
|
911
913
|
init_size();
|
912
914
|
});
|
913
915
|
|
914
|
-
//
|
916
|
+
// node_modules/viem/_esm/utils/regex.js
|
915
917
|
var arrayRegex, bytesRegex, integerRegex;
|
916
918
|
var init_regex = __esm(() => {
|
917
919
|
arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
@@ -919,7 +921,7 @@ var init_regex = __esm(() => {
|
|
919
921
|
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)?$/;
|
920
922
|
});
|
921
923
|
|
922
|
-
//
|
924
|
+
// node_modules/viem/_esm/errors/cursor.js
|
923
925
|
var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
|
924
926
|
var init_cursor = __esm(() => {
|
925
927
|
init_base();
|
@@ -942,7 +944,7 @@ var init_cursor = __esm(() => {
|
|
942
944
|
};
|
943
945
|
});
|
944
946
|
|
945
|
-
//
|
947
|
+
// node_modules/viem/_esm/utils/cursor.js
|
946
948
|
function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
947
949
|
const cursor = Object.create(staticCursor);
|
948
950
|
cursor.bytes = bytes;
|
@@ -1115,7 +1117,7 @@ var init_cursor2 = __esm(() => {
|
|
1115
1117
|
};
|
1116
1118
|
});
|
1117
1119
|
|
1118
|
-
//
|
1120
|
+
// node_modules/viem/_esm/constants/unit.js
|
1119
1121
|
var gweiUnits;
|
1120
1122
|
var init_unit = __esm(() => {
|
1121
1123
|
gweiUnits = {
|
@@ -1124,7 +1126,7 @@ var init_unit = __esm(() => {
|
|
1124
1126
|
};
|
1125
1127
|
});
|
1126
1128
|
|
1127
|
-
//
|
1129
|
+
// node_modules/viem/_esm/utils/unit/formatUnits.js
|
1128
1130
|
function formatUnits(value6, decimals) {
|
1129
1131
|
let display = value6.toString();
|
1130
1132
|
const negative2 = display.startsWith("-");
|
@@ -1139,7 +1141,7 @@ function formatUnits(value6, decimals) {
|
|
1139
1141
|
return `${negative2 ? "-" : ""}${integer3 || "0"}${fraction ? `.${fraction}` : ""}`;
|
1140
1142
|
}
|
1141
1143
|
|
1142
|
-
//
|
1144
|
+
// node_modules/viem/_esm/utils/unit/formatGwei.js
|
1143
1145
|
function formatGwei(wei, unit = "wei") {
|
1144
1146
|
return formatUnits(wei, gweiUnits[unit]);
|
1145
1147
|
}
|
@@ -1147,7 +1149,7 @@ var init_formatGwei = __esm(() => {
|
|
1147
1149
|
init_unit();
|
1148
1150
|
});
|
1149
1151
|
|
1150
|
-
//
|
1152
|
+
// node_modules/viem/_esm/errors/transaction.js
|
1151
1153
|
function prettyPrint(args2) {
|
1152
1154
|
const entries3 = Object.entries(args2).map(([key, value6]) => {
|
1153
1155
|
if (value6 === undefined || value6 === false)
|
@@ -1196,7 +1198,7 @@ var init_transaction = __esm(() => {
|
|
1196
1198
|
};
|
1197
1199
|
});
|
1198
1200
|
|
1199
|
-
//
|
1201
|
+
// node_modules/viem/_esm/errors/node.js
|
1200
1202
|
var ExecutionRevertedError, FeeCapTooHighError, FeeCapTooLowError, NonceTooHighError, NonceTooLowError, NonceMaxValueError, InsufficientFundsError, IntrinsicGasTooHighError, IntrinsicGasTooLowError, TransactionTypeNotSupportedError, TipAboveFeeCapError;
|
1201
1203
|
var init_node = __esm(() => {
|
1202
1204
|
init_formatGwei();
|
@@ -1375,7 +1377,7 @@ var init_node = __esm(() => {
|
|
1375
1377
|
});
|
1376
1378
|
});
|
1377
1379
|
|
1378
|
-
//
|
1380
|
+
// node_modules/viem/_esm/utils/formatters/formatter.js
|
1379
1381
|
function defineFormatter(type2, format7) {
|
1380
1382
|
return ({ exclude: exclude3, format: overrides }) => {
|
1381
1383
|
return {
|
@@ -1397,7 +1399,7 @@ function defineFormatter(type2, format7) {
|
|
1397
1399
|
};
|
1398
1400
|
}
|
1399
1401
|
|
1400
|
-
//
|
1402
|
+
// node_modules/viem/_esm/constants/number.js
|
1401
1403
|
var maxInt8, maxInt16, maxInt24, maxInt32, maxInt40, maxInt48, maxInt56, maxInt64, maxInt72, maxInt80, maxInt88, maxInt96, maxInt104, maxInt112, maxInt120, maxInt128, maxInt136, maxInt144, maxInt152, maxInt160, maxInt168, maxInt176, maxInt184, maxInt192, maxInt200, maxInt208, maxInt216, maxInt224, maxInt232, maxInt240, maxInt248, maxInt256, minInt8, minInt16, minInt24, minInt32, minInt40, minInt48, minInt56, minInt64, minInt72, minInt80, minInt88, minInt96, minInt104, minInt112, minInt120, minInt128, minInt136, minInt144, minInt152, minInt160, minInt168, minInt176, minInt184, minInt192, minInt200, minInt208, minInt216, minInt224, minInt232, minInt240, minInt248, minInt256, maxUint8, maxUint16, maxUint24, maxUint32, maxUint40, maxUint48, maxUint56, maxUint64, maxUint72, maxUint80, maxUint88, maxUint96, maxUint104, maxUint112, maxUint120, maxUint128, maxUint136, maxUint144, maxUint152, maxUint160, maxUint168, maxUint176, maxUint184, maxUint192, maxUint200, maxUint208, maxUint216, maxUint224, maxUint232, maxUint240, maxUint248, maxUint256;
|
1402
1404
|
var init_number = __esm(() => {
|
1403
1405
|
maxInt8 = 2n ** (8n - 1n) - 1n;
|
@@ -1763,7 +1765,7 @@ var init_sha256 = __esm(() => {
|
|
1763
1765
|
sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256);
|
1764
1766
|
});
|
1765
1767
|
|
1766
|
-
//
|
1768
|
+
// node_modules/viem/_esm/errors/chain.js
|
1767
1769
|
var InvalidChainIdError;
|
1768
1770
|
var init_chain = __esm(() => {
|
1769
1771
|
init_base();
|
@@ -2448,7 +2450,8 @@ var tracingFunction = (name) => {
|
|
2448
2450
|
};
|
2449
2451
|
};
|
2450
2452
|
var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
|
2451
|
-
var genConstructor = function* () {
|
2453
|
+
var genConstructor = function* () {
|
2454
|
+
}.constructor;
|
2452
2455
|
|
2453
2456
|
// ../node_modules/effect/dist/esm/Hash.js
|
2454
2457
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
|
@@ -2795,7 +2798,8 @@ var StructuralCommitPrototype = {
|
|
2795
2798
|
...StructuralPrototype
|
2796
2799
|
};
|
2797
2800
|
var Base = /* @__PURE__ */ function() {
|
2798
|
-
function Base2() {
|
2801
|
+
function Base2() {
|
2802
|
+
}
|
2799
2803
|
Base2.prototype = CommitPrototype;
|
2800
2804
|
return Base2;
|
2801
2805
|
}();
|
@@ -6298,7 +6302,8 @@ var Reference = () => (id, options) => {
|
|
6298
6302
|
Error.stackTraceLimit = 2;
|
6299
6303
|
const creationError = new Error;
|
6300
6304
|
Error.stackTraceLimit = limit;
|
6301
|
-
function ReferenceClass() {
|
6305
|
+
function ReferenceClass() {
|
6306
|
+
}
|
6302
6307
|
Object.setPrototypeOf(ReferenceClass, ReferenceProto);
|
6303
6308
|
ReferenceClass.key = id;
|
6304
6309
|
ReferenceClass.defaultValue = options.defaultValue;
|
@@ -9238,7 +9243,8 @@ var prettyErrorMessage = (u) => {
|
|
9238
9243
|
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
|
9239
9244
|
return u["toString"]();
|
9240
9245
|
}
|
9241
|
-
} catch {
|
9246
|
+
} catch {
|
9247
|
+
}
|
9242
9248
|
return stringifyCircular(u);
|
9243
9249
|
};
|
9244
9250
|
var locationRegex = /\((.*)\)/g;
|
@@ -9812,7 +9818,8 @@ var zip2 = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => map9(th
|
|
9812
9818
|
var zipLeft = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, (a) => as(that, a)));
|
9813
9819
|
var zipRight = /* @__PURE__ */ dual(2, (self, that) => flatMap6(self, () => that));
|
9814
9820
|
var never = /* @__PURE__ */ asyncInterrupt(() => {
|
9815
|
-
const interval = setInterval(() => {
|
9821
|
+
const interval = setInterval(() => {
|
9822
|
+
}, 2 ** 31 - 1);
|
9816
9823
|
return sync(() => clearInterval(interval));
|
9817
9824
|
});
|
9818
9825
|
var interruptFiber = (self) => flatMap6(fiberId, (fiberId2) => pipe(self, interruptAsFiber(fiberId2)));
|
@@ -13632,11 +13639,16 @@ class Const {
|
|
13632
13639
|
get value() {
|
13633
13640
|
return this.effect;
|
13634
13641
|
}
|
13635
|
-
onStart(_context, _effect, _parent, _fiber) {
|
13636
|
-
|
13637
|
-
|
13638
|
-
|
13639
|
-
|
13642
|
+
onStart(_context, _effect, _parent, _fiber) {
|
13643
|
+
}
|
13644
|
+
onEnd(_value, _fiber) {
|
13645
|
+
}
|
13646
|
+
onEffect(_fiber, _effect) {
|
13647
|
+
}
|
13648
|
+
onSuspend(_fiber) {
|
13649
|
+
}
|
13650
|
+
onResume(_fiber) {
|
13651
|
+
}
|
13640
13652
|
map(f) {
|
13641
13653
|
return new ProxySupervisor(this, pipe(this.value, map9(f)));
|
13642
13654
|
}
|
@@ -14110,7 +14122,8 @@ class FiberRuntime extends Class {
|
|
14110
14122
|
return whileLoop({
|
14111
14123
|
while: () => !isDone3,
|
14112
14124
|
body,
|
14113
|
-
step: () => {
|
14125
|
+
step: () => {
|
14126
|
+
}
|
14114
14127
|
});
|
14115
14128
|
}
|
14116
14129
|
return null;
|
@@ -23640,7 +23653,7 @@ class TrieIterator {
|
|
23640
23653
|
}
|
23641
23654
|
}
|
23642
23655
|
var isTrie = (u) => hasProperty(u, TrieTypeId);
|
23643
|
-
//
|
23656
|
+
// node_modules/viem/_esm/utils/encoding/toRlp.js
|
23644
23657
|
init_base();
|
23645
23658
|
init_cursor2();
|
23646
23659
|
init_toBytes();
|
@@ -23732,7 +23745,7 @@ function getSizeOfLength(length4) {
|
|
23732
23745
|
return 4;
|
23733
23746
|
throw new BaseError("Length is too large.");
|
23734
23747
|
}
|
23735
|
-
//
|
23748
|
+
// node_modules/viem/_esm/utils/formatters/transaction.js
|
23736
23749
|
init_fromHex();
|
23737
23750
|
var transactionType = {
|
23738
23751
|
"0x0": "legacy",
|
@@ -23795,7 +23808,7 @@ function formatTransaction(transaction) {
|
|
23795
23808
|
var defineTransaction = /* @__PURE__ */ defineFormatter("transaction", formatTransaction);
|
23796
23809
|
function formatAuthorizationList(authorizationList) {
|
23797
23810
|
return authorizationList.map((authorization) => ({
|
23798
|
-
|
23811
|
+
contractAddress: authorization.address,
|
23799
23812
|
chainId: Number(authorization.chainId),
|
23800
23813
|
nonce: Number(authorization.nonce),
|
23801
23814
|
r: authorization.r,
|
@@ -23804,7 +23817,7 @@ function formatAuthorizationList(authorizationList) {
|
|
23804
23817
|
}));
|
23805
23818
|
}
|
23806
23819
|
|
23807
|
-
//
|
23820
|
+
// node_modules/viem/_esm/utils/formatters/block.js
|
23808
23821
|
function formatBlock(block) {
|
23809
23822
|
const transactions = (block.transactions ?? []).map((transaction) => {
|
23810
23823
|
if (typeof transaction === "string")
|
@@ -23831,7 +23844,7 @@ function formatBlock(block) {
|
|
23831
23844
|
}
|
23832
23845
|
var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
|
23833
23846
|
|
23834
|
-
//
|
23847
|
+
// node_modules/viem/_esm/utils/blob/blobsToCommitments.js
|
23835
23848
|
init_toBytes();
|
23836
23849
|
init_toHex();
|
23837
23850
|
function blobsToCommitments(parameters) {
|
@@ -23844,7 +23857,7 @@ function blobsToCommitments(parameters) {
|
|
23844
23857
|
return to === "bytes" ? commitments : commitments.map((x) => bytesToHex2(x));
|
23845
23858
|
}
|
23846
23859
|
|
23847
|
-
//
|
23860
|
+
// node_modules/viem/_esm/utils/blob/blobsToProofs.js
|
23848
23861
|
init_toBytes();
|
23849
23862
|
init_toHex();
|
23850
23863
|
function blobsToProofs(parameters) {
|
@@ -23861,10 +23874,10 @@ function blobsToProofs(parameters) {
|
|
23861
23874
|
return to === "bytes" ? proofs : proofs.map((x) => bytesToHex2(x));
|
23862
23875
|
}
|
23863
23876
|
|
23864
|
-
//
|
23877
|
+
// node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
23865
23878
|
init_toHex();
|
23866
23879
|
|
23867
|
-
//
|
23880
|
+
// node_modules/viem/_esm/utils/hash/sha256.js
|
23868
23881
|
init_sha256();
|
23869
23882
|
init_toBytes();
|
23870
23883
|
init_toHex();
|
@@ -23876,7 +23889,7 @@ function sha2562(value6, to_) {
|
|
23876
23889
|
return toHex(bytes);
|
23877
23890
|
}
|
23878
23891
|
|
23879
|
-
//
|
23892
|
+
// node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
23880
23893
|
function commitmentToVersionedHash(parameters) {
|
23881
23894
|
const { commitment, version: version2 = 1 } = parameters;
|
23882
23895
|
const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
@@ -23885,7 +23898,7 @@ function commitmentToVersionedHash(parameters) {
|
|
23885
23898
|
return to === "bytes" ? versionedHash : bytesToHex2(versionedHash);
|
23886
23899
|
}
|
23887
23900
|
|
23888
|
-
//
|
23901
|
+
// node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
23889
23902
|
function commitmentsToVersionedHashes(parameters) {
|
23890
23903
|
const { commitments, version: version2 } = parameters;
|
23891
23904
|
const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
@@ -23900,17 +23913,17 @@ function commitmentsToVersionedHashes(parameters) {
|
|
23900
23913
|
return hashes;
|
23901
23914
|
}
|
23902
23915
|
|
23903
|
-
//
|
23916
|
+
// node_modules/viem/_esm/constants/blob.js
|
23904
23917
|
var blobsPerTransaction = 6;
|
23905
23918
|
var bytesPerFieldElement = 32;
|
23906
23919
|
var fieldElementsPerBlob = 4096;
|
23907
23920
|
var bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob;
|
23908
23921
|
var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - 1 - 1 * fieldElementsPerBlob * blobsPerTransaction;
|
23909
23922
|
|
23910
|
-
//
|
23923
|
+
// node_modules/viem/_esm/constants/kzg.js
|
23911
23924
|
var versionedHashVersionKzg = 1;
|
23912
23925
|
|
23913
|
-
//
|
23926
|
+
// node_modules/viem/_esm/errors/blob.js
|
23914
23927
|
init_base();
|
23915
23928
|
|
23916
23929
|
class BlobSizeTooLargeError extends BaseError {
|
@@ -23949,7 +23962,7 @@ class InvalidVersionedHashVersionError extends BaseError {
|
|
23949
23962
|
}
|
23950
23963
|
}
|
23951
23964
|
|
23952
|
-
//
|
23965
|
+
// node_modules/viem/_esm/utils/blob/toBlobs.js
|
23953
23966
|
init_cursor2();
|
23954
23967
|
init_size();
|
23955
23968
|
init_toBytes();
|
@@ -23988,7 +24001,7 @@ function toBlobs(parameters) {
|
|
23988
24001
|
return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex2(x.bytes));
|
23989
24002
|
}
|
23990
24003
|
|
23991
|
-
//
|
24004
|
+
// node_modules/viem/_esm/utils/blob/toBlobSidecars.js
|
23992
24005
|
function toBlobSidecars(parameters) {
|
23993
24006
|
const { data, kzg, to } = parameters;
|
23994
24007
|
const blobs = parameters.blobs ?? toBlobs({ data, to });
|
@@ -24004,7 +24017,7 @@ function toBlobSidecars(parameters) {
|
|
24004
24017
|
return sidecars;
|
24005
24018
|
}
|
24006
24019
|
|
24007
|
-
//
|
24020
|
+
// node_modules/viem/_esm/utils/transaction/getTransactionType.js
|
24008
24021
|
init_transaction();
|
24009
24022
|
function getTransactionType(transaction) {
|
24010
24023
|
if (transaction.type)
|
@@ -24024,7 +24037,7 @@ function getTransactionType(transaction) {
|
|
24024
24037
|
throw new InvalidSerializableTransactionError({ transaction });
|
24025
24038
|
}
|
24026
24039
|
|
24027
|
-
//
|
24040
|
+
// node_modules/viem/_esm/utils/formatters/log.js
|
24028
24041
|
function formatLog(log3, { args: args2, eventName } = {}) {
|
24029
24042
|
return {
|
24030
24043
|
...log3,
|
@@ -24037,7 +24050,7 @@ function formatLog(log3, { args: args2, eventName } = {}) {
|
|
24037
24050
|
};
|
24038
24051
|
}
|
24039
24052
|
|
24040
|
-
//
|
24053
|
+
// node_modules/viem/_esm/utils/chain/defineChain.js
|
24041
24054
|
function defineChain(chain) {
|
24042
24055
|
return {
|
24043
24056
|
formatters: undefined,
|
@@ -24047,7 +24060,7 @@ function defineChain(chain) {
|
|
24047
24060
|
};
|
24048
24061
|
}
|
24049
24062
|
|
24050
|
-
//
|
24063
|
+
// node_modules/viem/_esm/utils/abi/encodePacked.js
|
24051
24064
|
init_abi();
|
24052
24065
|
init_address();
|
24053
24066
|
init_isAddress();
|
@@ -24116,14 +24129,35 @@ function encode6(type2, value6, isArray2 = false) {
|
|
24116
24129
|
throw new UnsupportedPackedAbiType(type2);
|
24117
24130
|
}
|
24118
24131
|
|
24119
|
-
//
|
24120
|
-
|
24121
|
-
|
24122
|
-
|
24123
|
-
|
24124
|
-
|
24132
|
+
// node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
24133
|
+
init_fromHex();
|
24134
|
+
var receiptStatuses = {
|
24135
|
+
"0x0": "reverted",
|
24136
|
+
"0x1": "success"
|
24137
|
+
};
|
24138
|
+
function formatTransactionReceipt(transactionReceipt) {
|
24139
|
+
const receipt = {
|
24140
|
+
...transactionReceipt,
|
24141
|
+
blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
|
24142
|
+
contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
|
24143
|
+
cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
|
24144
|
+
effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
|
24145
|
+
gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
|
24146
|
+
logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
|
24147
|
+
to: transactionReceipt.to ? transactionReceipt.to : null,
|
24148
|
+
transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
|
24149
|
+
status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
|
24150
|
+
type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
|
24151
|
+
};
|
24152
|
+
if (transactionReceipt.blobGasPrice)
|
24153
|
+
receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
|
24154
|
+
if (transactionReceipt.blobGasUsed)
|
24155
|
+
receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
|
24156
|
+
return receipt;
|
24157
|
+
}
|
24158
|
+
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
24125
24159
|
|
24126
|
-
//
|
24160
|
+
// node_modules/viem/_esm/utils/transaction/assertTransaction.js
|
24127
24161
|
init_number();
|
24128
24162
|
init_address();
|
24129
24163
|
init_base();
|
@@ -24137,10 +24171,9 @@ function assertTransactionEIP7702(transaction) {
|
|
24137
24171
|
const { authorizationList } = transaction;
|
24138
24172
|
if (authorizationList) {
|
24139
24173
|
for (const authorization of authorizationList) {
|
24140
|
-
const { chainId } = authorization;
|
24141
|
-
|
24142
|
-
|
24143
|
-
throw new InvalidAddressError({ address });
|
24174
|
+
const { contractAddress, chainId } = authorization;
|
24175
|
+
if (!isAddress(contractAddress))
|
24176
|
+
throw new InvalidAddressError({ address: contractAddress });
|
24144
24177
|
if (chainId < 0)
|
24145
24178
|
throw new InvalidChainIdError({ chainId });
|
24146
24179
|
}
|
@@ -24200,7 +24233,29 @@ function assertTransactionLegacy(transaction) {
|
|
24200
24233
|
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
24201
24234
|
}
|
24202
24235
|
|
24203
|
-
//
|
24236
|
+
// node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
24237
|
+
init_transaction();
|
24238
|
+
init_toHex();
|
24239
|
+
|
24240
|
+
// node_modules/viem/_esm/experimental/eip7702/utils/serializeAuthorizationList.js
|
24241
|
+
init_toHex();
|
24242
|
+
function serializeAuthorizationList(authorizationList) {
|
24243
|
+
if (!authorizationList || authorizationList.length === 0)
|
24244
|
+
return [];
|
24245
|
+
const serializedAuthorizationList = [];
|
24246
|
+
for (const authorization of authorizationList) {
|
24247
|
+
const { contractAddress, chainId, nonce, ...signature } = authorization;
|
24248
|
+
serializedAuthorizationList.push([
|
24249
|
+
chainId ? toHex(chainId) : "0x",
|
24250
|
+
contractAddress,
|
24251
|
+
nonce ? toHex(nonce) : "0x",
|
24252
|
+
...toYParitySignatureArray({}, signature)
|
24253
|
+
]);
|
24254
|
+
}
|
24255
|
+
return serializedAuthorizationList;
|
24256
|
+
}
|
24257
|
+
|
24258
|
+
// node_modules/viem/_esm/utils/transaction/serializeAccessList.js
|
24204
24259
|
init_address();
|
24205
24260
|
init_transaction();
|
24206
24261
|
init_isAddress();
|
@@ -24223,7 +24278,7 @@ function serializeAccessList(accessList) {
|
|
24223
24278
|
return serializedAccessList;
|
24224
24279
|
}
|
24225
24280
|
|
24226
|
-
//
|
24281
|
+
// node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
24227
24282
|
function serializeTransaction(transaction, signature) {
|
24228
24283
|
const type2 = getTransactionType(transaction);
|
24229
24284
|
if (type2 === "eip1559")
|
@@ -24417,53 +24472,7 @@ function toYParitySignatureArray(transaction, signature_) {
|
|
24417
24472
|
return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
|
24418
24473
|
}
|
24419
24474
|
|
24420
|
-
//
|
24421
|
-
function serializeAuthorizationList(authorizationList) {
|
24422
|
-
if (!authorizationList || authorizationList.length === 0)
|
24423
|
-
return [];
|
24424
|
-
const serializedAuthorizationList = [];
|
24425
|
-
for (const authorization of authorizationList) {
|
24426
|
-
const { chainId, nonce, ...signature } = authorization;
|
24427
|
-
const contractAddress = authorization.address;
|
24428
|
-
serializedAuthorizationList.push([
|
24429
|
-
chainId ? toHex(chainId) : "0x",
|
24430
|
-
contractAddress,
|
24431
|
-
nonce ? toHex(nonce) : "0x",
|
24432
|
-
...toYParitySignatureArray({}, signature)
|
24433
|
-
]);
|
24434
|
-
}
|
24435
|
-
return serializedAuthorizationList;
|
24436
|
-
}
|
24437
|
-
|
24438
|
-
// ../node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
24439
|
-
init_fromHex();
|
24440
|
-
var receiptStatuses = {
|
24441
|
-
"0x0": "reverted",
|
24442
|
-
"0x1": "success"
|
24443
|
-
};
|
24444
|
-
function formatTransactionReceipt(transactionReceipt) {
|
24445
|
-
const receipt = {
|
24446
|
-
...transactionReceipt,
|
24447
|
-
blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
|
24448
|
-
contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
|
24449
|
-
cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
|
24450
|
-
effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
|
24451
|
-
gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
|
24452
|
-
logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
|
24453
|
-
to: transactionReceipt.to ? transactionReceipt.to : null,
|
24454
|
-
transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
|
24455
|
-
status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
|
24456
|
-
type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
|
24457
|
-
};
|
24458
|
-
if (transactionReceipt.blobGasPrice)
|
24459
|
-
receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
|
24460
|
-
if (transactionReceipt.blobGasUsed)
|
24461
|
-
receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
|
24462
|
-
return receipt;
|
24463
|
-
}
|
24464
|
-
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
24465
|
-
|
24466
|
-
// ../node_modules/viem/_esm/index.js
|
24475
|
+
// node_modules/viem/_esm/index.js
|
24467
24476
|
init_toBytes();
|
24468
24477
|
init_toHex();
|
24469
24478
|
// src/schema.ts
|