@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
package/dist/lite/index.cjs
CHANGED
@@ -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();
|
@@ -2176,7 +2178,8 @@ var require_bn = __commonJS((exports2, module2) => {
|
|
2176
2178
|
}
|
2177
2179
|
function inherits(ctor, superCtor) {
|
2178
2180
|
ctor.super_ = superCtor;
|
2179
|
-
var TempCtor = function() {
|
2181
|
+
var TempCtor = function() {
|
2182
|
+
};
|
2180
2183
|
TempCtor.prototype = superCtor.prototype;
|
2181
2184
|
ctor.prototype = new TempCtor;
|
2182
2185
|
ctor.prototype.constructor = ctor;
|
@@ -2211,7 +2214,8 @@ var require_bn = __commonJS((exports2, module2) => {
|
|
2211
2214
|
} else {
|
2212
2215
|
Buffer2 = require("buffer").Buffer;
|
2213
2216
|
}
|
2214
|
-
} catch (e) {
|
2217
|
+
} catch (e) {
|
2218
|
+
}
|
2215
2219
|
BN.isBN = function isBN(num) {
|
2216
2220
|
if (num instanceof BN) {
|
2217
2221
|
return true;
|
@@ -3912,7 +3916,8 @@ var require_bn = __commonJS((exports2, module2) => {
|
|
3912
3916
|
}
|
3913
3917
|
maskedWords.length = s;
|
3914
3918
|
}
|
3915
|
-
if (s === 0) {
|
3919
|
+
if (s === 0) {
|
3920
|
+
} else if (this.length > s) {
|
3916
3921
|
this.length -= s;
|
3917
3922
|
for (i = 0;i < this.length; i++) {
|
3918
3923
|
this.words[i] = this.words[i + s];
|
@@ -5216,7 +5221,8 @@ var require_brorand = __commonJS((exports2, module2) => {
|
|
5216
5221
|
Rand.prototype._rand = function _rand(n) {
|
5217
5222
|
return crypto.randomBytes(n);
|
5218
5223
|
};
|
5219
|
-
} catch (e) {
|
5224
|
+
} catch (e) {
|
5225
|
+
}
|
5220
5226
|
}
|
5221
5227
|
var crypto;
|
5222
5228
|
});
|
@@ -5543,7 +5549,8 @@ var require_inherits_browser = __commonJS((exports2, module2) => {
|
|
5543
5549
|
module2.exports = function inherits(ctor, superCtor) {
|
5544
5550
|
if (superCtor) {
|
5545
5551
|
ctor.super_ = superCtor;
|
5546
|
-
var TempCtor = function() {
|
5552
|
+
var TempCtor = function() {
|
5553
|
+
};
|
5547
5554
|
TempCtor.prototype = superCtor.prototype;
|
5548
5555
|
ctor.prototype = new TempCtor;
|
5549
5556
|
ctor.prototype.constructor = ctor;
|
@@ -6307,7 +6314,8 @@ var require_mont = __commonJS((exports2, module2) => {
|
|
6307
6314
|
MontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
|
6308
6315
|
return Point.fromJSON(this, obj);
|
6309
6316
|
};
|
6310
|
-
Point.prototype.precompute = function precompute() {
|
6317
|
+
Point.prototype.precompute = function precompute() {
|
6318
|
+
};
|
6311
6319
|
Point.prototype._encode = function _encode() {
|
6312
6320
|
return this.getX().toArray("be", this.curve.p.byteLength());
|
6313
6321
|
};
|
@@ -9945,7 +9953,8 @@ var require_node_gyp_build = __commonJS((exports2, module2) => {
|
|
9945
9953
|
var name = runtimeRequire(path.join(dir2, "package.json")).name.toUpperCase().replace(/-/g, "_");
|
9946
9954
|
if (process.env[name + "_PREBUILD"])
|
9947
9955
|
dir2 = process.env[name + "_PREBUILD"];
|
9948
|
-
} catch (err) {
|
9956
|
+
} catch (err) {
|
9957
|
+
}
|
9949
9958
|
if (!prebuildsOnly) {
|
9950
9959
|
var release2 = getFirst(path.join(dir2, "build/Release"), matchBuild);
|
9951
9960
|
if (release2)
|
@@ -10416,7 +10425,7 @@ var require_lib = __commonJS((exports2, module2) => {
|
|
10416
10425
|
|
10417
10426
|
// ../node_modules/secp256k1/bindings.js
|
10418
10427
|
var require_bindings = __commonJS((exports2, module2) => {
|
10419
|
-
var __dirname = "/
|
10428
|
+
var __dirname = "/Users/amaury/Workspace/inco/inco-monorepo/node_modules/secp256k1";
|
10420
10429
|
var addon = require_node_gyp_build2()(__dirname);
|
10421
10430
|
module2.exports = require_lib()(new addon.Secp256k1);
|
10422
10431
|
});
|
@@ -11829,7 +11838,8 @@ var tracingFunction = (name) => {
|
|
11829
11838
|
};
|
11830
11839
|
};
|
11831
11840
|
var internalCall = /* @__PURE__ */ tracingFunction("effect_internal_function");
|
11832
|
-
var genConstructor = function* () {
|
11841
|
+
var genConstructor = function* () {
|
11842
|
+
}.constructor;
|
11833
11843
|
|
11834
11844
|
// ../node_modules/effect/dist/esm/Hash.js
|
11835
11845
|
var randomHashCache = /* @__PURE__ */ globalValue(/* @__PURE__ */ Symbol.for("effect/Hash/randomHashCache"), () => new WeakMap);
|
@@ -12176,7 +12186,8 @@ var StructuralCommitPrototype = {
|
|
12176
12186
|
...StructuralPrototype
|
12177
12187
|
};
|
12178
12188
|
var Base = /* @__PURE__ */ function() {
|
12179
|
-
function Base2() {
|
12189
|
+
function Base2() {
|
12190
|
+
}
|
12180
12191
|
Base2.prototype = CommitPrototype;
|
12181
12192
|
return Base2;
|
12182
12193
|
}();
|
@@ -15679,7 +15690,8 @@ var Reference = () => (id, options) => {
|
|
15679
15690
|
Error.stackTraceLimit = 2;
|
15680
15691
|
const creationError = new Error;
|
15681
15692
|
Error.stackTraceLimit = limit;
|
15682
|
-
function ReferenceClass() {
|
15693
|
+
function ReferenceClass() {
|
15694
|
+
}
|
15683
15695
|
Object.setPrototypeOf(ReferenceClass, ReferenceProto);
|
15684
15696
|
ReferenceClass.key = id;
|
15685
15697
|
ReferenceClass.defaultValue = options.defaultValue;
|
@@ -18619,7 +18631,8 @@ var prettyErrorMessage = (u) => {
|
|
18619
18631
|
if (hasProperty(u, "toString") && isFunction2(u["toString"]) && u["toString"] !== Object.prototype.toString && u["toString"] !== globalThis.Array.prototype.toString) {
|
18620
18632
|
return u["toString"]();
|
18621
18633
|
}
|
18622
|
-
} catch {
|
18634
|
+
} catch {
|
18635
|
+
}
|
18623
18636
|
return stringifyCircular(u);
|
18624
18637
|
};
|
18625
18638
|
var locationRegex = /\((.*)\)/g;
|
@@ -19193,7 +19206,8 @@ var zip2 = /* @__PURE__ */ dual(2, (self2, that) => flatMap6(self2, (a) => map9(
|
|
19193
19206
|
var zipLeft = /* @__PURE__ */ dual(2, (self2, that) => flatMap6(self2, (a) => as(that, a)));
|
19194
19207
|
var zipRight = /* @__PURE__ */ dual(2, (self2, that) => flatMap6(self2, () => that));
|
19195
19208
|
var never = /* @__PURE__ */ asyncInterrupt(() => {
|
19196
|
-
const interval = setInterval(() => {
|
19209
|
+
const interval = setInterval(() => {
|
19210
|
+
}, 2 ** 31 - 1);
|
19197
19211
|
return sync(() => clearInterval(interval));
|
19198
19212
|
});
|
19199
19213
|
var interruptFiber = (self2) => flatMap6(fiberId, (fiberId2) => pipe(self2, interruptAsFiber(fiberId2)));
|
@@ -23013,11 +23027,16 @@ class Const {
|
|
23013
23027
|
get value() {
|
23014
23028
|
return this.effect;
|
23015
23029
|
}
|
23016
|
-
onStart(_context, _effect, _parent, _fiber) {
|
23017
|
-
|
23018
|
-
|
23019
|
-
|
23020
|
-
|
23030
|
+
onStart(_context, _effect, _parent, _fiber) {
|
23031
|
+
}
|
23032
|
+
onEnd(_value, _fiber) {
|
23033
|
+
}
|
23034
|
+
onEffect(_fiber, _effect) {
|
23035
|
+
}
|
23036
|
+
onSuspend(_fiber) {
|
23037
|
+
}
|
23038
|
+
onResume(_fiber) {
|
23039
|
+
}
|
23021
23040
|
map(f) {
|
23022
23041
|
return new ProxySupervisor(this, pipe(this.value, map9(f)));
|
23023
23042
|
}
|
@@ -23491,7 +23510,8 @@ class FiberRuntime extends Class {
|
|
23491
23510
|
return whileLoop({
|
23492
23511
|
while: () => !isDone3,
|
23493
23512
|
body,
|
23494
|
-
step: () => {
|
23513
|
+
step: () => {
|
23514
|
+
}
|
23495
23515
|
});
|
23496
23516
|
}
|
23497
23517
|
return null;
|
@@ -33021,7 +33041,7 @@ class TrieIterator {
|
|
33021
33041
|
}
|
33022
33042
|
}
|
33023
33043
|
var isTrie = (u) => hasProperty(u, TrieTypeId);
|
33024
|
-
//
|
33044
|
+
// node_modules/viem/_esm/utils/encoding/toRlp.js
|
33025
33045
|
init_base();
|
33026
33046
|
init_cursor2();
|
33027
33047
|
init_toBytes();
|
@@ -33113,7 +33133,7 @@ function getSizeOfLength(length4) {
|
|
33113
33133
|
return 4;
|
33114
33134
|
throw new BaseError("Length is too large.");
|
33115
33135
|
}
|
33116
|
-
//
|
33136
|
+
// node_modules/viem/_esm/utils/formatters/transaction.js
|
33117
33137
|
init_fromHex();
|
33118
33138
|
var transactionType = {
|
33119
33139
|
"0x0": "legacy",
|
@@ -33176,7 +33196,7 @@ function formatTransaction(transaction) {
|
|
33176
33196
|
var defineTransaction = /* @__PURE__ */ defineFormatter("transaction", formatTransaction);
|
33177
33197
|
function formatAuthorizationList(authorizationList) {
|
33178
33198
|
return authorizationList.map((authorization) => ({
|
33179
|
-
|
33199
|
+
contractAddress: authorization.address,
|
33180
33200
|
chainId: Number(authorization.chainId),
|
33181
33201
|
nonce: Number(authorization.nonce),
|
33182
33202
|
r: authorization.r,
|
@@ -33185,7 +33205,7 @@ function formatAuthorizationList(authorizationList) {
|
|
33185
33205
|
}));
|
33186
33206
|
}
|
33187
33207
|
|
33188
|
-
//
|
33208
|
+
// node_modules/viem/_esm/utils/formatters/block.js
|
33189
33209
|
function formatBlock(block) {
|
33190
33210
|
const transactions = (block.transactions ?? []).map((transaction) => {
|
33191
33211
|
if (typeof transaction === "string")
|
@@ -33212,7 +33232,7 @@ function formatBlock(block) {
|
|
33212
33232
|
}
|
33213
33233
|
var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
|
33214
33234
|
|
33215
|
-
//
|
33235
|
+
// node_modules/viem/_esm/utils/blob/blobsToCommitments.js
|
33216
33236
|
init_toBytes();
|
33217
33237
|
init_toHex();
|
33218
33238
|
function blobsToCommitments(parameters) {
|
@@ -33225,7 +33245,7 @@ function blobsToCommitments(parameters) {
|
|
33225
33245
|
return to === "bytes" ? commitments : commitments.map((x) => bytesToHex2(x));
|
33226
33246
|
}
|
33227
33247
|
|
33228
|
-
//
|
33248
|
+
// node_modules/viem/_esm/utils/blob/blobsToProofs.js
|
33229
33249
|
init_toBytes();
|
33230
33250
|
init_toHex();
|
33231
33251
|
function blobsToProofs(parameters) {
|
@@ -33242,10 +33262,10 @@ function blobsToProofs(parameters) {
|
|
33242
33262
|
return to === "bytes" ? proofs : proofs.map((x) => bytesToHex2(x));
|
33243
33263
|
}
|
33244
33264
|
|
33245
|
-
//
|
33265
|
+
// node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
33246
33266
|
init_toHex();
|
33247
33267
|
|
33248
|
-
//
|
33268
|
+
// node_modules/viem/_esm/utils/hash/sha256.js
|
33249
33269
|
init_sha256();
|
33250
33270
|
init_toBytes();
|
33251
33271
|
init_toHex();
|
@@ -33257,7 +33277,7 @@ function sha2562(value6, to_) {
|
|
33257
33277
|
return toHex(bytes);
|
33258
33278
|
}
|
33259
33279
|
|
33260
|
-
//
|
33280
|
+
// node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
33261
33281
|
function commitmentToVersionedHash(parameters) {
|
33262
33282
|
const { commitment, version: version2 = 1 } = parameters;
|
33263
33283
|
const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
@@ -33266,7 +33286,7 @@ function commitmentToVersionedHash(parameters) {
|
|
33266
33286
|
return to === "bytes" ? versionedHash : bytesToHex2(versionedHash);
|
33267
33287
|
}
|
33268
33288
|
|
33269
|
-
//
|
33289
|
+
// node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
33270
33290
|
function commitmentsToVersionedHashes(parameters) {
|
33271
33291
|
const { commitments, version: version2 } = parameters;
|
33272
33292
|
const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
@@ -33281,17 +33301,17 @@ function commitmentsToVersionedHashes(parameters) {
|
|
33281
33301
|
return hashes;
|
33282
33302
|
}
|
33283
33303
|
|
33284
|
-
//
|
33304
|
+
// node_modules/viem/_esm/constants/blob.js
|
33285
33305
|
var blobsPerTransaction = 6;
|
33286
33306
|
var bytesPerFieldElement = 32;
|
33287
33307
|
var fieldElementsPerBlob = 4096;
|
33288
33308
|
var bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob;
|
33289
33309
|
var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - 1 - 1 * fieldElementsPerBlob * blobsPerTransaction;
|
33290
33310
|
|
33291
|
-
//
|
33311
|
+
// node_modules/viem/_esm/constants/kzg.js
|
33292
33312
|
var versionedHashVersionKzg = 1;
|
33293
33313
|
|
33294
|
-
//
|
33314
|
+
// node_modules/viem/_esm/errors/blob.js
|
33295
33315
|
init_base();
|
33296
33316
|
|
33297
33317
|
class BlobSizeTooLargeError extends BaseError {
|
@@ -33330,7 +33350,7 @@ class InvalidVersionedHashVersionError extends BaseError {
|
|
33330
33350
|
}
|
33331
33351
|
}
|
33332
33352
|
|
33333
|
-
//
|
33353
|
+
// node_modules/viem/_esm/utils/blob/toBlobs.js
|
33334
33354
|
init_cursor2();
|
33335
33355
|
init_size();
|
33336
33356
|
init_toBytes();
|
@@ -33369,7 +33389,7 @@ function toBlobs(parameters) {
|
|
33369
33389
|
return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex2(x.bytes));
|
33370
33390
|
}
|
33371
33391
|
|
33372
|
-
//
|
33392
|
+
// node_modules/viem/_esm/utils/blob/toBlobSidecars.js
|
33373
33393
|
function toBlobSidecars(parameters) {
|
33374
33394
|
const { data, kzg, to } = parameters;
|
33375
33395
|
const blobs = parameters.blobs ?? toBlobs({ data, to });
|
@@ -33385,7 +33405,7 @@ function toBlobSidecars(parameters) {
|
|
33385
33405
|
return sidecars;
|
33386
33406
|
}
|
33387
33407
|
|
33388
|
-
//
|
33408
|
+
// node_modules/viem/_esm/utils/transaction/getTransactionType.js
|
33389
33409
|
init_transaction();
|
33390
33410
|
function getTransactionType(transaction) {
|
33391
33411
|
if (transaction.type)
|
@@ -33405,7 +33425,7 @@ function getTransactionType(transaction) {
|
|
33405
33425
|
throw new InvalidSerializableTransactionError({ transaction });
|
33406
33426
|
}
|
33407
33427
|
|
33408
|
-
//
|
33428
|
+
// node_modules/viem/_esm/utils/formatters/log.js
|
33409
33429
|
function formatLog(log3, { args: args2, eventName } = {}) {
|
33410
33430
|
return {
|
33411
33431
|
...log3,
|
@@ -33418,7 +33438,7 @@ function formatLog(log3, { args: args2, eventName } = {}) {
|
|
33418
33438
|
};
|
33419
33439
|
}
|
33420
33440
|
|
33421
|
-
//
|
33441
|
+
// node_modules/viem/_esm/utils/chain/defineChain.js
|
33422
33442
|
function defineChain(chain) {
|
33423
33443
|
return {
|
33424
33444
|
formatters: undefined,
|
@@ -33428,7 +33448,7 @@ function defineChain(chain) {
|
|
33428
33448
|
};
|
33429
33449
|
}
|
33430
33450
|
|
33431
|
-
//
|
33451
|
+
// node_modules/viem/_esm/utils/abi/encodePacked.js
|
33432
33452
|
init_abi();
|
33433
33453
|
init_address();
|
33434
33454
|
init_isAddress();
|
@@ -33497,14 +33517,35 @@ function encode6(type2, value6, isArray2 = false) {
|
|
33497
33517
|
throw new UnsupportedPackedAbiType(type2);
|
33498
33518
|
}
|
33499
33519
|
|
33500
|
-
//
|
33501
|
-
|
33502
|
-
|
33503
|
-
|
33504
|
-
|
33505
|
-
|
33520
|
+
// node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
33521
|
+
init_fromHex();
|
33522
|
+
var receiptStatuses = {
|
33523
|
+
"0x0": "reverted",
|
33524
|
+
"0x1": "success"
|
33525
|
+
};
|
33526
|
+
function formatTransactionReceipt(transactionReceipt) {
|
33527
|
+
const receipt = {
|
33528
|
+
...transactionReceipt,
|
33529
|
+
blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
|
33530
|
+
contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
|
33531
|
+
cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
|
33532
|
+
effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
|
33533
|
+
gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
|
33534
|
+
logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
|
33535
|
+
to: transactionReceipt.to ? transactionReceipt.to : null,
|
33536
|
+
transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
|
33537
|
+
status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
|
33538
|
+
type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
|
33539
|
+
};
|
33540
|
+
if (transactionReceipt.blobGasPrice)
|
33541
|
+
receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
|
33542
|
+
if (transactionReceipt.blobGasUsed)
|
33543
|
+
receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
|
33544
|
+
return receipt;
|
33545
|
+
}
|
33546
|
+
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
33506
33547
|
|
33507
|
-
//
|
33548
|
+
// node_modules/viem/_esm/utils/transaction/assertTransaction.js
|
33508
33549
|
init_number();
|
33509
33550
|
init_address();
|
33510
33551
|
init_base();
|
@@ -33518,10 +33559,9 @@ function assertTransactionEIP7702(transaction) {
|
|
33518
33559
|
const { authorizationList } = transaction;
|
33519
33560
|
if (authorizationList) {
|
33520
33561
|
for (const authorization of authorizationList) {
|
33521
|
-
const { chainId } = authorization;
|
33522
|
-
|
33523
|
-
|
33524
|
-
throw new InvalidAddressError({ address });
|
33562
|
+
const { contractAddress, chainId } = authorization;
|
33563
|
+
if (!isAddress(contractAddress))
|
33564
|
+
throw new InvalidAddressError({ address: contractAddress });
|
33525
33565
|
if (chainId < 0)
|
33526
33566
|
throw new InvalidChainIdError({ chainId });
|
33527
33567
|
}
|
@@ -33581,7 +33621,29 @@ function assertTransactionLegacy(transaction) {
|
|
33581
33621
|
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
33582
33622
|
}
|
33583
33623
|
|
33584
|
-
//
|
33624
|
+
// node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
33625
|
+
init_transaction();
|
33626
|
+
init_toHex();
|
33627
|
+
|
33628
|
+
// node_modules/viem/_esm/experimental/eip7702/utils/serializeAuthorizationList.js
|
33629
|
+
init_toHex();
|
33630
|
+
function serializeAuthorizationList(authorizationList) {
|
33631
|
+
if (!authorizationList || authorizationList.length === 0)
|
33632
|
+
return [];
|
33633
|
+
const serializedAuthorizationList = [];
|
33634
|
+
for (const authorization of authorizationList) {
|
33635
|
+
const { contractAddress, chainId, nonce, ...signature } = authorization;
|
33636
|
+
serializedAuthorizationList.push([
|
33637
|
+
chainId ? toHex(chainId) : "0x",
|
33638
|
+
contractAddress,
|
33639
|
+
nonce ? toHex(nonce) : "0x",
|
33640
|
+
...toYParitySignatureArray({}, signature)
|
33641
|
+
]);
|
33642
|
+
}
|
33643
|
+
return serializedAuthorizationList;
|
33644
|
+
}
|
33645
|
+
|
33646
|
+
// node_modules/viem/_esm/utils/transaction/serializeAccessList.js
|
33585
33647
|
init_address();
|
33586
33648
|
init_transaction();
|
33587
33649
|
init_isAddress();
|
@@ -33604,7 +33666,7 @@ function serializeAccessList(accessList) {
|
|
33604
33666
|
return serializedAccessList;
|
33605
33667
|
}
|
33606
33668
|
|
33607
|
-
//
|
33669
|
+
// node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
33608
33670
|
function serializeTransaction(transaction, signature) {
|
33609
33671
|
const type2 = getTransactionType(transaction);
|
33610
33672
|
if (type2 === "eip1559")
|
@@ -33798,53 +33860,7 @@ function toYParitySignatureArray(transaction, signature_) {
|
|
33798
33860
|
return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
|
33799
33861
|
}
|
33800
33862
|
|
33801
|
-
//
|
33802
|
-
function serializeAuthorizationList(authorizationList) {
|
33803
|
-
if (!authorizationList || authorizationList.length === 0)
|
33804
|
-
return [];
|
33805
|
-
const serializedAuthorizationList = [];
|
33806
|
-
for (const authorization of authorizationList) {
|
33807
|
-
const { chainId, nonce, ...signature } = authorization;
|
33808
|
-
const contractAddress = authorization.address;
|
33809
|
-
serializedAuthorizationList.push([
|
33810
|
-
chainId ? toHex(chainId) : "0x",
|
33811
|
-
contractAddress,
|
33812
|
-
nonce ? toHex(nonce) : "0x",
|
33813
|
-
...toYParitySignatureArray({}, signature)
|
33814
|
-
]);
|
33815
|
-
}
|
33816
|
-
return serializedAuthorizationList;
|
33817
|
-
}
|
33818
|
-
|
33819
|
-
// ../node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
33820
|
-
init_fromHex();
|
33821
|
-
var receiptStatuses = {
|
33822
|
-
"0x0": "reverted",
|
33823
|
-
"0x1": "success"
|
33824
|
-
};
|
33825
|
-
function formatTransactionReceipt(transactionReceipt) {
|
33826
|
-
const receipt = {
|
33827
|
-
...transactionReceipt,
|
33828
|
-
blockNumber: transactionReceipt.blockNumber ? BigInt(transactionReceipt.blockNumber) : null,
|
33829
|
-
contractAddress: transactionReceipt.contractAddress ? transactionReceipt.contractAddress : null,
|
33830
|
-
cumulativeGasUsed: transactionReceipt.cumulativeGasUsed ? BigInt(transactionReceipt.cumulativeGasUsed) : null,
|
33831
|
-
effectiveGasPrice: transactionReceipt.effectiveGasPrice ? BigInt(transactionReceipt.effectiveGasPrice) : null,
|
33832
|
-
gasUsed: transactionReceipt.gasUsed ? BigInt(transactionReceipt.gasUsed) : null,
|
33833
|
-
logs: transactionReceipt.logs ? transactionReceipt.logs.map((log3) => formatLog(log3)) : null,
|
33834
|
-
to: transactionReceipt.to ? transactionReceipt.to : null,
|
33835
|
-
transactionIndex: transactionReceipt.transactionIndex ? hexToNumber(transactionReceipt.transactionIndex) : null,
|
33836
|
-
status: transactionReceipt.status ? receiptStatuses[transactionReceipt.status] : null,
|
33837
|
-
type: transactionReceipt.type ? transactionType[transactionReceipt.type] || transactionReceipt.type : null
|
33838
|
-
};
|
33839
|
-
if (transactionReceipt.blobGasPrice)
|
33840
|
-
receipt.blobGasPrice = BigInt(transactionReceipt.blobGasPrice);
|
33841
|
-
if (transactionReceipt.blobGasUsed)
|
33842
|
-
receipt.blobGasUsed = BigInt(transactionReceipt.blobGasUsed);
|
33843
|
-
return receipt;
|
33844
|
-
}
|
33845
|
-
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
33846
|
-
|
33847
|
-
// ../node_modules/viem/_esm/index.js
|
33863
|
+
// node_modules/viem/_esm/index.js
|
33848
33864
|
init_toBytes();
|
33849
33865
|
init_toHex();
|
33850
33866
|
// src/schema.ts
|
@@ -34111,6 +34127,7 @@ __export(exports_lite, {
|
|
34111
34127
|
scriptAbi: () => scriptAbi,
|
34112
34128
|
safeCastAbi: () => safeCastAbi,
|
34113
34129
|
returnTwoAbi: () => returnTwoAbi,
|
34130
|
+
retryWithBackoff: () => retryWithBackoff,
|
34114
34131
|
reencryptEIP712: () => reencryptEIP712,
|
34115
34132
|
pulumiCovalidatorGrpc: () => pulumiCovalidatorGrpc,
|
34116
34133
|
proxyAbi: () => proxyAbi,
|
@@ -47059,7 +47076,7 @@ function getEciesDecryptor({ privKeyA }) {
|
|
47059
47076
|
return plaintext;
|
47060
47077
|
};
|
47061
47078
|
}
|
47062
|
-
//
|
47079
|
+
// node_modules/viem/_esm/op-stack/contracts.js
|
47063
47080
|
var contracts = {
|
47064
47081
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
47065
47082
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
@@ -47073,7 +47090,7 @@ var contracts = {
|
|
47073
47090
|
}
|
47074
47091
|
};
|
47075
47092
|
|
47076
|
-
//
|
47093
|
+
// node_modules/viem/_esm/op-stack/formatters.js
|
47077
47094
|
init_fromHex();
|
47078
47095
|
var formatters = {
|
47079
47096
|
block: /* @__PURE__ */ defineBlock({
|
@@ -47120,7 +47137,7 @@ var formatters = {
|
|
47120
47137
|
})
|
47121
47138
|
};
|
47122
47139
|
|
47123
|
-
//
|
47140
|
+
// node_modules/viem/_esm/op-stack/serializers.js
|
47124
47141
|
init_address();
|
47125
47142
|
init_isAddress();
|
47126
47143
|
init_toHex();
|
@@ -47165,14 +47182,14 @@ function assertTransactionDeposit(transaction) {
|
|
47165
47182
|
throw new InvalidAddressError({ address: to });
|
47166
47183
|
}
|
47167
47184
|
|
47168
|
-
//
|
47185
|
+
// node_modules/viem/_esm/op-stack/chainConfig.js
|
47169
47186
|
var chainConfig = {
|
47170
47187
|
contracts,
|
47171
47188
|
formatters,
|
47172
47189
|
serializers
|
47173
47190
|
};
|
47174
47191
|
|
47175
|
-
//
|
47192
|
+
// node_modules/viem/_esm/chains/definitions/anvil.js
|
47176
47193
|
var anvil = /* @__PURE__ */ defineChain({
|
47177
47194
|
id: 31337,
|
47178
47195
|
name: "Anvil",
|
@@ -47188,7 +47205,7 @@ var anvil = /* @__PURE__ */ defineChain({
|
|
47188
47205
|
}
|
47189
47206
|
}
|
47190
47207
|
});
|
47191
|
-
//
|
47208
|
+
// node_modules/viem/_esm/chains/definitions/baseSepolia.js
|
47192
47209
|
var sourceId = 11155111;
|
47193
47210
|
var baseSepolia = /* @__PURE__ */ defineChain({
|
47194
47211
|
...chainConfig,
|
@@ -47240,7 +47257,7 @@ var baseSepolia = /* @__PURE__ */ defineChain({
|
|
47240
47257
|
testnet: true,
|
47241
47258
|
sourceId
|
47242
47259
|
});
|
47243
|
-
//
|
47260
|
+
// node_modules/viem/_esm/chains/definitions/monadTestnet.js
|
47244
47261
|
var monadTestnet = /* @__PURE__ */ defineChain({
|
47245
47262
|
id: 10143,
|
47246
47263
|
name: "Monad Testnet",
|
@@ -47268,7 +47285,7 @@ var monadTestnet = /* @__PURE__ */ defineChain({
|
|
47268
47285
|
},
|
47269
47286
|
testnet: true
|
47270
47287
|
});
|
47271
|
-
//
|
47288
|
+
// node_modules/viem/_esm/chains/definitions/sepolia.js
|
47272
47289
|
var sepolia = /* @__PURE__ */ defineChain({
|
47273
47290
|
id: 11155111,
|
47274
47291
|
name: "Sepolia",
|
@@ -48209,7 +48226,8 @@ class BinaryReader {
|
|
48209
48226
|
let start5 = this.pos;
|
48210
48227
|
switch (wireType) {
|
48211
48228
|
case WireType.Varint:
|
48212
|
-
while (this.buf[this.pos++] & 128) {
|
48229
|
+
while (this.buf[this.pos++] & 128) {
|
48230
|
+
}
|
48213
48231
|
break;
|
48214
48232
|
case WireType.Bit64:
|
48215
48233
|
this.pos += 4;
|
@@ -48843,12 +48861,14 @@ function mapKeyToReflect(key, type2) {
|
|
48843
48861
|
case ScalarType.FIXED64:
|
48844
48862
|
try {
|
48845
48863
|
return protoInt64.uParse(key);
|
48846
|
-
} catch (_a) {
|
48864
|
+
} catch (_a) {
|
48865
|
+
}
|
48847
48866
|
break;
|
48848
48867
|
default:
|
48849
48868
|
try {
|
48850
48869
|
return protoInt64.parse(key);
|
48851
|
-
} catch (_b) {
|
48870
|
+
} catch (_b) {
|
48871
|
+
}
|
48852
48872
|
break;
|
48853
48873
|
}
|
48854
48874
|
return key;
|
@@ -51536,7 +51556,8 @@ class ConnectError extends Error {
|
|
51536
51556
|
if (desc) {
|
51537
51557
|
try {
|
51538
51558
|
details.push(fromBinary(desc, data.value));
|
51539
|
-
} catch (_) {
|
51559
|
+
} catch (_) {
|
51560
|
+
}
|
51540
51561
|
}
|
51541
51562
|
}
|
51542
51563
|
return details;
|
@@ -52285,9 +52306,11 @@ function runStreamingCall(opt) {
|
|
52285
52306
|
var _a, _b;
|
52286
52307
|
const it = opt.req.message[Symbol.asyncIterator]();
|
52287
52308
|
if (!doneCalled) {
|
52288
|
-
(_a = it.throw) === null || _a === undefined || _a.call(it, this.reason).catch(() => {
|
52309
|
+
(_a = it.throw) === null || _a === undefined || _a.call(it, this.reason).catch(() => {
|
52310
|
+
});
|
52289
52311
|
}
|
52290
|
-
(_b = it.return) === null || _b === undefined || _b.call(it).catch(() => {
|
52312
|
+
(_b = it.return) === null || _b === undefined || _b.call(it).catch(() => {
|
52313
|
+
});
|
52291
52314
|
});
|
52292
52315
|
return next5(req).then((res) => {
|
52293
52316
|
return Object.assign(Object.assign({}, res), { message: {
|
@@ -52644,7 +52667,7 @@ async function incoLiteReencryptor({
|
|
52644
52667
|
]
|
52645
52668
|
};
|
52646
52669
|
try {
|
52647
|
-
const response = await kmsClient.reencrypt(reencryptRequest);
|
52670
|
+
const response = await retryWithBackoff(() => kmsClient.reencrypt(reencryptRequest));
|
52648
52671
|
return decryptGrpcResponse(response, ephemeralKeypair, handle);
|
52649
52672
|
} catch (error2) {
|
52650
52673
|
console.log(error2);
|
@@ -52688,6 +52711,23 @@ function camelToDashCase(str) {
|
|
52688
52711
|
function getCovalidatorGrpcHelper(chain, network, cluster) {
|
52689
52712
|
return `https://grpc.${camelToDashCase(chain.name)}.${cluster}.${network}.inco.org`;
|
52690
52713
|
}
|
52714
|
+
async function retryWithBackoff(fn, maxRetries = 3, baseDelayInMs = 1000) {
|
52715
|
+
let lastError;
|
52716
|
+
for (let attempt2 = 0;attempt2 < maxRetries; attempt2++) {
|
52717
|
+
try {
|
52718
|
+
return await fn();
|
52719
|
+
} catch (error2) {
|
52720
|
+
lastError = error2;
|
52721
|
+
if (attempt2 === maxRetries - 1) {
|
52722
|
+
break;
|
52723
|
+
}
|
52724
|
+
const delay2 = baseDelayInMs * Math.pow(2, attempt2);
|
52725
|
+
const jitter = delay2 * (0.8 + Math.random() * 0.4);
|
52726
|
+
await new Promise((resolve) => setTimeout(resolve, jitter));
|
52727
|
+
}
|
52728
|
+
}
|
52729
|
+
throw lastError;
|
52730
|
+
}
|
52691
52731
|
|
52692
52732
|
// src/lite/lightning.ts
|
52693
52733
|
class Lightning {
|