@inco/js 0.1.32 → 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/encryption/index.cjs +132 -123
- package/dist/encryption/index.mjs +132 -123
- package/dist/index.cjs +140 -131
- package/dist/index.mjs +140 -131
- package/dist/lite/index.cjs +186 -146
- package/dist/lite/index.mjs +3890 -3788
- package/dist/lite/reencrypt.d.ts +1 -0
- package/dist/lite/reencrypt.js +21 -2
- package/dist/local/index.cjs +25 -2573
- package/dist/local/index.mjs +5352 -7837
- package/dist/reencryption/index.cjs +132 -123
- package/dist/reencryption/index.mjs +132 -123
- package/dist/viem.d.ts +53 -52
- package/package.json +1 -1
package/dist/viem.d.ts
CHANGED
@@ -33,7 +33,7 @@ export declare const chains: {
|
|
33
33
|
readonly http: readonly ["https://sepolia.drpc.org"];
|
34
34
|
};
|
35
35
|
};
|
36
|
-
sourceId?: number | undefined
|
36
|
+
sourceId?: number | undefined;
|
37
37
|
testnet: true;
|
38
38
|
custom?: Record<string, unknown> | undefined;
|
39
39
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
@@ -127,7 +127,7 @@ export declare const chains: {
|
|
127
127
|
mixHash: import("viem").Hash;
|
128
128
|
nonce: `0x${string}` | null;
|
129
129
|
number: bigint | null;
|
130
|
-
parentBeaconBlockRoot?:
|
130
|
+
parentBeaconBlockRoot?: import("viem").Hex | undefined;
|
131
131
|
parentHash: import("viem").Hash;
|
132
132
|
receiptsRoot: import("viem").Hex;
|
133
133
|
sealFields: import("viem").Hex[];
|
@@ -139,8 +139,8 @@ export declare const chains: {
|
|
139
139
|
transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
|
140
140
|
transactionsRoot: import("viem").Hash;
|
141
141
|
uncles: import("viem").Hash[];
|
142
|
-
withdrawals?: import("viem").Withdrawal[] | undefined
|
143
|
-
withdrawalsRoot?:
|
142
|
+
withdrawals?: import("viem").Withdrawal[] | undefined;
|
143
|
+
withdrawalsRoot?: import("viem").Hex | undefined;
|
144
144
|
} & {};
|
145
145
|
type: "block";
|
146
146
|
};
|
@@ -162,12 +162,12 @@ export declare const chains: {
|
|
162
162
|
v: bigint;
|
163
163
|
value: bigint;
|
164
164
|
yParity: number;
|
165
|
-
gasPrice?: undefined
|
166
|
-
maxFeePerBlobGas?: undefined
|
165
|
+
gasPrice?: undefined;
|
166
|
+
maxFeePerBlobGas?: undefined;
|
167
167
|
maxFeePerGas: bigint;
|
168
168
|
maxPriorityFeePerGas: bigint;
|
169
169
|
isSystemTx?: boolean;
|
170
|
-
mint?: bigint | undefined
|
170
|
+
mint?: bigint | undefined;
|
171
171
|
sourceHash: import("viem").Hex;
|
172
172
|
type: "deposit";
|
173
173
|
} | {
|
@@ -185,19 +185,19 @@ export declare const chains: {
|
|
185
185
|
input: import("viem").Hex;
|
186
186
|
transactionIndex: number | null;
|
187
187
|
typeHex: import("viem").Hex | null;
|
188
|
-
accessList?: undefined
|
189
|
-
authorizationList?: undefined
|
190
|
-
blobVersionedHashes?: undefined
|
188
|
+
accessList?: undefined;
|
189
|
+
authorizationList?: undefined;
|
190
|
+
blobVersionedHashes?: undefined;
|
191
191
|
chainId?: number | undefined;
|
192
|
-
yParity?: undefined
|
192
|
+
yParity?: undefined;
|
193
193
|
type: "legacy";
|
194
194
|
gasPrice: bigint;
|
195
|
-
maxFeePerBlobGas?: undefined
|
196
|
-
maxFeePerGas?: undefined
|
197
|
-
maxPriorityFeePerGas?: undefined
|
198
|
-
isSystemTx?: undefined
|
199
|
-
mint?: undefined
|
200
|
-
sourceHash?: undefined
|
195
|
+
maxFeePerBlobGas?: undefined;
|
196
|
+
maxFeePerGas?: undefined;
|
197
|
+
maxPriorityFeePerGas?: undefined;
|
198
|
+
isSystemTx?: undefined;
|
199
|
+
mint?: undefined;
|
200
|
+
sourceHash?: undefined;
|
201
201
|
} | {
|
202
202
|
blockHash: `0x${string}` | null;
|
203
203
|
blockNumber: bigint | null;
|
@@ -215,17 +215,17 @@ export declare const chains: {
|
|
215
215
|
value: bigint;
|
216
216
|
yParity: number;
|
217
217
|
accessList: import("viem").AccessList;
|
218
|
-
authorizationList?: undefined
|
219
|
-
blobVersionedHashes?: undefined
|
218
|
+
authorizationList?: undefined;
|
219
|
+
blobVersionedHashes?: undefined;
|
220
220
|
chainId: number;
|
221
221
|
type: "eip2930";
|
222
222
|
gasPrice: bigint;
|
223
|
-
maxFeePerBlobGas?: undefined
|
224
|
-
maxFeePerGas?: undefined
|
225
|
-
maxPriorityFeePerGas?: undefined
|
226
|
-
isSystemTx?: undefined
|
227
|
-
mint?: undefined
|
228
|
-
sourceHash?: undefined
|
223
|
+
maxFeePerBlobGas?: undefined;
|
224
|
+
maxFeePerGas?: undefined;
|
225
|
+
maxPriorityFeePerGas?: undefined;
|
226
|
+
isSystemTx?: undefined;
|
227
|
+
mint?: undefined;
|
228
|
+
sourceHash?: undefined;
|
229
229
|
} | {
|
230
230
|
blockHash: `0x${string}` | null;
|
231
231
|
blockNumber: bigint | null;
|
@@ -243,17 +243,17 @@ export declare const chains: {
|
|
243
243
|
value: bigint;
|
244
244
|
yParity: number;
|
245
245
|
accessList: import("viem").AccessList;
|
246
|
-
authorizationList?: undefined
|
247
|
-
blobVersionedHashes?: undefined
|
246
|
+
authorizationList?: undefined;
|
247
|
+
blobVersionedHashes?: undefined;
|
248
248
|
chainId: number;
|
249
249
|
type: "eip1559";
|
250
|
-
gasPrice?: undefined
|
251
|
-
maxFeePerBlobGas?: undefined
|
250
|
+
gasPrice?: undefined;
|
251
|
+
maxFeePerBlobGas?: undefined;
|
252
252
|
maxFeePerGas: bigint;
|
253
253
|
maxPriorityFeePerGas: bigint;
|
254
|
-
isSystemTx?: undefined
|
255
|
-
mint?: undefined
|
256
|
-
sourceHash?: undefined
|
254
|
+
isSystemTx?: undefined;
|
255
|
+
mint?: undefined;
|
256
|
+
sourceHash?: undefined;
|
257
257
|
} | {
|
258
258
|
blockHash: `0x${string}` | null;
|
259
259
|
blockNumber: bigint | null;
|
@@ -271,17 +271,17 @@ export declare const chains: {
|
|
271
271
|
value: bigint;
|
272
272
|
yParity: number;
|
273
273
|
accessList: import("viem").AccessList;
|
274
|
-
authorizationList?: undefined
|
274
|
+
authorizationList?: undefined;
|
275
275
|
blobVersionedHashes: readonly import("viem").Hex[];
|
276
276
|
chainId: number;
|
277
277
|
type: "eip4844";
|
278
|
-
gasPrice?: undefined
|
278
|
+
gasPrice?: undefined;
|
279
279
|
maxFeePerBlobGas: bigint;
|
280
280
|
maxFeePerGas: bigint;
|
281
281
|
maxPriorityFeePerGas: bigint;
|
282
|
-
isSystemTx?: undefined
|
283
|
-
mint?: undefined
|
284
|
-
sourceHash?: undefined
|
282
|
+
isSystemTx?: undefined;
|
283
|
+
mint?: undefined;
|
284
|
+
sourceHash?: undefined;
|
285
285
|
} | {
|
286
286
|
blockHash: `0x${string}` | null;
|
287
287
|
blockNumber: bigint | null;
|
@@ -299,17 +299,17 @@ export declare const chains: {
|
|
299
299
|
value: bigint;
|
300
300
|
yParity: number;
|
301
301
|
accessList: import("viem").AccessList;
|
302
|
-
authorizationList: import("viem").SignedAuthorizationList;
|
303
|
-
blobVersionedHashes?: undefined
|
302
|
+
authorizationList: import("viem/experimental").SignedAuthorizationList;
|
303
|
+
blobVersionedHashes?: undefined;
|
304
304
|
chainId: number;
|
305
305
|
type: "eip7702";
|
306
|
-
gasPrice?: undefined
|
307
|
-
maxFeePerBlobGas?: undefined
|
306
|
+
gasPrice?: undefined;
|
307
|
+
maxFeePerBlobGas?: undefined;
|
308
308
|
maxFeePerGas: bigint;
|
309
309
|
maxPriorityFeePerGas: bigint;
|
310
|
-
isSystemTx?: undefined
|
311
|
-
mint?: undefined
|
312
|
-
sourceHash?: undefined
|
310
|
+
isSystemTx?: undefined;
|
311
|
+
mint?: undefined;
|
312
|
+
sourceHash?: undefined;
|
313
313
|
}) & {};
|
314
314
|
type: "transaction";
|
315
315
|
};
|
@@ -327,7 +327,7 @@ export declare const chains: {
|
|
327
327
|
gasUsed: bigint;
|
328
328
|
logs: import("viem").Log<bigint, number, false>[];
|
329
329
|
logsBloom: import("viem").Hex;
|
330
|
-
root?:
|
330
|
+
root?: import("viem").Hash | undefined;
|
331
331
|
status: "success" | "reverted";
|
332
332
|
to: import("abitype").Address | null;
|
333
333
|
transactionHash: import("viem").Hash;
|
@@ -371,7 +371,7 @@ export declare const chains: {
|
|
371
371
|
readonly http: readonly ["https://testnet-rpc.monad.xyz"];
|
372
372
|
};
|
373
373
|
};
|
374
|
-
sourceId?: number | undefined
|
374
|
+
sourceId?: number | undefined;
|
375
375
|
testnet: true;
|
376
376
|
custom?: Record<string, unknown> | undefined;
|
377
377
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
@@ -390,16 +390,17 @@ export declare const chains: {
|
|
390
390
|
url: string;
|
391
391
|
apiUrl?: string | undefined;
|
392
392
|
};
|
393
|
-
} | undefined
|
394
|
-
contracts?: {
|
395
|
-
[
|
393
|
+
} | undefined;
|
394
|
+
contracts?: import("viem/chains").Prettify<{
|
395
|
+
[key: string]: import("viem").ChainContract | {
|
396
396
|
[sourceId: number]: import("viem").ChainContract | undefined;
|
397
397
|
} | undefined;
|
398
|
+
} & {
|
398
399
|
ensRegistry?: import("viem").ChainContract | undefined;
|
399
400
|
ensUniversalResolver?: import("viem").ChainContract | undefined;
|
400
401
|
multicall3?: import("viem").ChainContract | undefined;
|
401
402
|
universalSignatureVerifier?: import("viem").ChainContract | undefined;
|
402
|
-
} | undefined;
|
403
|
+
}> | undefined;
|
403
404
|
id: 31337;
|
404
405
|
name: "Anvil";
|
405
406
|
nativeCurrency: {
|
@@ -413,8 +414,8 @@ export declare const chains: {
|
|
413
414
|
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
414
415
|
};
|
415
416
|
};
|
416
|
-
sourceId?: number | undefined
|
417
|
-
testnet?: boolean | undefined
|
417
|
+
sourceId?: number | undefined;
|
418
|
+
testnet?: boolean | undefined;
|
418
419
|
custom?: Record<string, unknown> | undefined;
|
419
420
|
fees?: import("viem").ChainFees<undefined> | undefined;
|
420
421
|
formatters?: undefined;
|