@filoz/repair-cli 0.1.1 → 0.2.0
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/package.json +3 -2
- package/dist/src/cli.js +2 -0
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/datasets.d.ts +16 -1
- package/dist/src/commands/datasets.d.ts.map +1 -1
- package/dist/src/commands/datasets.js +107 -3
- package/dist/src/commands/datasets.js.map +1 -1
- package/dist/src/commands/providers.d.ts +16 -1
- package/dist/src/commands/providers.d.ts.map +1 -1
- package/dist/src/commands/providers.js.map +1 -1
- package/dist/src/commands/repair.d.ts +16 -1
- package/dist/src/commands/repair.d.ts.map +1 -1
- package/dist/src/commands/repair.js +7 -8
- package/dist/src/commands/repair.js.map +1 -1
- package/dist/src/commands/replicate.d.ts +24 -0
- package/dist/src/commands/replicate.d.ts.map +1 -0
- package/dist/src/commands/replicate.js +171 -0
- package/dist/src/commands/replicate.js.map +1 -0
- package/dist/src/commands/setup.d.ts.map +1 -1
- package/dist/src/commands/setup.js +15 -0
- package/dist/src/commands/setup.js.map +1 -1
- package/dist/src/commands/wallet.d.ts +16 -1
- package/dist/src/commands/wallet.d.ts.map +1 -1
- package/dist/src/db/dedupe-cids.d.ts +22 -0
- package/dist/src/db/dedupe-cids.d.ts.map +1 -0
- package/dist/src/db/dedupe-cids.js +28 -0
- package/dist/src/db/dedupe-cids.js.map +1 -0
- package/dist/src/db/find-providers-by-cid.d.ts +9 -0
- package/dist/src/db/find-providers-by-cid.d.ts.map +1 -0
- package/dist/src/db/{get-providers-by-cid.js → find-providers-by-cid.js} +4 -6
- package/dist/src/db/find-providers-by-cid.js.map +1 -0
- package/dist/src/db/find-repair-dataset.d.ts +10 -0
- package/dist/src/db/find-repair-dataset.d.ts.map +1 -0
- package/dist/src/db/{get-repair-dataset.js → find-repair-dataset.js} +8 -6
- package/dist/src/db/find-repair-dataset.js.map +1 -0
- package/dist/src/db/get-pieces.d.ts +16 -0
- package/dist/src/db/get-pieces.d.ts.map +1 -1
- package/dist/src/db/get-pieces.js +44 -3
- package/dist/src/db/get-pieces.js.map +1 -1
- package/dist/src/db/repair-create.d.ts.map +1 -1
- package/dist/src/db/repair-create.js +1 -0
- package/dist/src/db/repair-create.js.map +1 -1
- package/dist/src/db/repair-delete.d.ts.map +1 -1
- package/dist/src/db/repair-delete.js +0 -5
- package/dist/src/db/repair-delete.js.map +1 -1
- package/dist/src/db/replicate-create.d.ts +7 -0
- package/dist/src/db/replicate-create.d.ts.map +1 -0
- package/dist/src/db/replicate-create.js +78 -0
- package/dist/src/db/replicate-create.js.map +1 -0
- package/dist/src/db/upsert-operations.js +1 -1
- package/dist/src/db/upsert-operations.js.map +1 -1
- package/dist/src/local-schema.d.ts +19 -0
- package/dist/src/local-schema.d.ts.map +1 -1
- package/dist/src/local-schema.js +1 -0
- package/dist/src/local-schema.js.map +1 -1
- package/dist/src/middleware.d.ts +32 -2
- package/dist/src/middleware.d.ts.map +1 -1
- package/dist/src/middleware.js +10 -1
- package/dist/src/middleware.js.map +1 -1
- package/dist/src/pipeline/add-pieces.d.ts +12 -0
- package/dist/src/pipeline/add-pieces.d.ts.map +1 -0
- package/dist/src/pipeline/add-pieces.js +142 -0
- package/dist/src/pipeline/add-pieces.js.map +1 -0
- package/dist/src/pipeline/create-datasets.d.ts +3 -1
- package/dist/src/pipeline/create-datasets.d.ts.map +1 -1
- package/dist/src/pipeline/create-datasets.js +57 -5
- package/dist/src/pipeline/create-datasets.js.map +1 -1
- package/dist/src/utils.d.ts +166 -120
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +50 -25
- package/dist/src/utils.js.map +1 -1
- package/package.json +3 -2
- package/readme.md +110 -7
- package/src/cli.ts +2 -0
- package/src/commands/datasets.ts +109 -3
- package/src/commands/providers.ts +0 -1
- package/src/commands/repair.ts +12 -8
- package/src/commands/replicate.ts +183 -0
- package/src/commands/setup.ts +16 -0
- package/src/db/dedupe-cids.ts +49 -0
- package/src/db/{get-providers-by-cid.ts → find-providers-by-cid.ts} +5 -10
- package/src/db/{get-repair-dataset.ts → find-repair-dataset.ts} +12 -7
- package/src/db/get-pieces.ts +105 -3
- package/src/db/get-target-dataset.ts +1 -1
- package/src/db/repair-create.ts +1 -0
- package/src/db/repair-delete.ts +0 -5
- package/src/db/replicate-create.ts +106 -0
- package/src/db/upsert-operations.ts +1 -1
- package/src/local-schema.ts +1 -0
- package/src/middleware.ts +12 -1
- package/src/pipeline/add-pieces.ts +214 -0
- package/src/pipeline/create-datasets.ts +71 -11
- package/src/utils.ts +64 -32
- package/dist/src/db/get-providers-by-cid.d.ts +0 -10
- package/dist/src/db/get-providers-by-cid.d.ts.map +0 -1
- package/dist/src/db/get-providers-by-cid.js.map +0 -1
- package/dist/src/db/get-repair-dataset.d.ts +0 -9
- package/dist/src/db/get-repair-dataset.d.ts.map +0 -1
- package/dist/src/db/get-repair-dataset.js.map +0 -1
- package/dist/src/db/sync-pieces-onchain.d.ts +0 -10
- package/dist/src/db/sync-pieces-onchain.d.ts.map +0 -1
- package/dist/src/db/sync-pieces-onchain.js +0 -35
- package/dist/src/db/sync-pieces-onchain.js.map +0 -1
- package/dist/src/pipeline/pull.d.ts +0 -30
- package/dist/src/pipeline/pull.d.ts.map +0 -1
- package/dist/src/pipeline/pull.js +0 -169
- package/dist/src/pipeline/pull.js.map +0 -1
- package/src/db/sync-pieces-onchain.ts +0 -53
- package/src/pipeline/pull.ts +0 -255
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import type { MetadataObject } from '@filoz/synapse-core';
|
|
2
2
|
import { type Chain } from '@filoz/synapse-core/chains';
|
|
3
|
-
import
|
|
3
|
+
import type * as SP from '@filoz/synapse-core/sp';
|
|
4
4
|
import { type SQL } from 'drizzle-orm';
|
|
5
5
|
import type { PgTable } from 'drizzle-orm/pg-core';
|
|
6
6
|
import type { SQLiteTable } from 'drizzle-orm/sqlite-core';
|
|
7
7
|
import { z } from 'incur';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import { Conf } from 'iso-conf';
|
|
9
|
+
import { type Hex } from 'viem';
|
|
10
|
+
import type { OperationSelect } from './local-schema.ts';
|
|
11
|
+
import * as schema from './local-schema.ts';
|
|
12
|
+
import type { LocalDatabase } from './types.ts';
|
|
13
|
+
export declare const configSchema: z.ZodObject<{
|
|
14
|
+
privateKey: z.ZodOptional<z.ZodString>;
|
|
15
|
+
indexerMainnetUrl: z.ZodOptional<z.ZodURL>;
|
|
16
|
+
indexerCalibrationUrl: z.ZodOptional<z.ZodURL>;
|
|
17
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
dbPath: z.ZodOptional<z.ZodString>;
|
|
19
|
+
source: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const config: Conf<z.ZodObject<{
|
|
22
|
+
privateKey: z.ZodOptional<z.ZodString>;
|
|
23
|
+
indexerMainnetUrl: z.ZodOptional<z.ZodURL>;
|
|
24
|
+
indexerCalibrationUrl: z.ZodOptional<z.ZodURL>;
|
|
25
|
+
chainId: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
dbPath: z.ZodOptional<z.ZodString>;
|
|
27
|
+
source: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
11
29
|
export declare const name: string;
|
|
12
30
|
export declare const version: string;
|
|
13
31
|
export declare function getClient(chainId: number): {
|
|
@@ -17,16 +35,16 @@ export declare function getClient(chainId: number): {
|
|
|
17
35
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
18
36
|
sign: (parameters: {
|
|
19
37
|
hash: import("viem").Hash;
|
|
20
|
-
}) => Promise<
|
|
38
|
+
}) => Promise<Hex>;
|
|
21
39
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
22
40
|
signMessage: ({ message }: {
|
|
23
41
|
message: import("viem").SignableMessage;
|
|
24
|
-
}) => Promise<
|
|
42
|
+
}) => Promise<Hex>;
|
|
25
43
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
26
44
|
serializer?: serializer | undefined;
|
|
27
|
-
} | undefined) => Promise<
|
|
28
|
-
signTypedData: <const typedData extends import("viem").TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<
|
|
29
|
-
publicKey:
|
|
45
|
+
} | undefined) => Promise<Hex>;
|
|
46
|
+
signTypedData: <const typedData extends import("viem").TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
|
|
47
|
+
publicKey: Hex;
|
|
30
48
|
source: "privateKey";
|
|
31
49
|
type: "local";
|
|
32
50
|
};
|
|
@@ -56,14 +74,14 @@ export declare function getClient(chainId: number): {
|
|
|
56
74
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
57
75
|
sign: (parameters: {
|
|
58
76
|
hash: import("viem").Hash;
|
|
59
|
-
}) => Promise<
|
|
77
|
+
}) => Promise<Hex>;
|
|
60
78
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
61
79
|
signMessage: ({ message }: {
|
|
62
80
|
message: import("viem").SignableMessage;
|
|
63
|
-
}) => Promise<
|
|
81
|
+
}) => Promise<Hex>;
|
|
64
82
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
65
83
|
serializer?: serializer | undefined;
|
|
66
|
-
} | undefined) => Promise<
|
|
84
|
+
} | undefined) => Promise<Hex>;
|
|
67
85
|
signTypedData: <const typedData extends {
|
|
68
86
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
69
87
|
[x: `string[${string}]`]: undefined;
|
|
@@ -474,8 +492,8 @@ export declare function getClient(chainId: number): {
|
|
|
474
492
|
uint240?: undefined;
|
|
475
493
|
uint248?: undefined;
|
|
476
494
|
uint256?: undefined;
|
|
477
|
-
} ? keyof typedData : string>) => Promise<
|
|
478
|
-
publicKey:
|
|
495
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
496
|
+
publicKey: Hex;
|
|
479
497
|
source: "privateKey";
|
|
480
498
|
type: "local";
|
|
481
499
|
}, chainOverride>) => Promise<import("viem").DeployContractReturnType>;
|
|
@@ -484,14 +502,14 @@ export declare function getClient(chainId: number): {
|
|
|
484
502
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
485
503
|
sign: (parameters: {
|
|
486
504
|
hash: import("viem").Hash;
|
|
487
|
-
}) => Promise<
|
|
505
|
+
}) => Promise<Hex>;
|
|
488
506
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
489
507
|
signMessage: ({ message }: {
|
|
490
508
|
message: import("viem").SignableMessage;
|
|
491
|
-
}) => Promise<
|
|
509
|
+
}) => Promise<Hex>;
|
|
492
510
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
493
511
|
serializer?: serializer | undefined;
|
|
494
|
-
} | undefined) => Promise<
|
|
512
|
+
} | undefined) => Promise<Hex>;
|
|
495
513
|
signTypedData: <const typedData extends {
|
|
496
514
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
497
515
|
[x: `string[${string}]`]: undefined;
|
|
@@ -902,8 +920,8 @@ export declare function getClient(chainId: number): {
|
|
|
902
920
|
uint240?: undefined;
|
|
903
921
|
uint248?: undefined;
|
|
904
922
|
uint256?: undefined;
|
|
905
|
-
} ? keyof typedData : string>) => Promise<
|
|
906
|
-
publicKey:
|
|
923
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
924
|
+
publicKey: Hex;
|
|
907
925
|
source: "privateKey";
|
|
908
926
|
type: "local";
|
|
909
927
|
}, chainOverride, accountOverride>) => Promise<import("viem").FillTransactionReturnType<Chain, chainOverride>>;
|
|
@@ -917,14 +935,14 @@ export declare function getClient(chainId: number): {
|
|
|
917
935
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
918
936
|
sign: (parameters: {
|
|
919
937
|
hash: import("viem").Hash;
|
|
920
|
-
}) => Promise<
|
|
938
|
+
}) => Promise<Hex>;
|
|
921
939
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
922
940
|
signMessage: ({ message }: {
|
|
923
941
|
message: import("viem").SignableMessage;
|
|
924
|
-
}) => Promise<
|
|
942
|
+
}) => Promise<Hex>;
|
|
925
943
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
926
944
|
serializer?: serializer | undefined;
|
|
927
|
-
} | undefined) => Promise<
|
|
945
|
+
} | undefined) => Promise<Hex>;
|
|
928
946
|
signTypedData: <const typedData extends {
|
|
929
947
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
930
948
|
[x: `string[${string}]`]: undefined;
|
|
@@ -1335,8 +1353,8 @@ export declare function getClient(chainId: number): {
|
|
|
1335
1353
|
uint240?: undefined;
|
|
1336
1354
|
uint248?: undefined;
|
|
1337
1355
|
uint256?: undefined;
|
|
1338
|
-
} ? keyof typedData : string>) => Promise<
|
|
1339
|
-
publicKey:
|
|
1356
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
1357
|
+
publicKey: Hex;
|
|
1340
1358
|
source: "privateKey";
|
|
1341
1359
|
type: "local";
|
|
1342
1360
|
}>) => Promise<import("viem").PrepareAuthorizationReturnType>;
|
|
@@ -1345,14 +1363,14 @@ export declare function getClient(chainId: number): {
|
|
|
1345
1363
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
1346
1364
|
sign: (parameters: {
|
|
1347
1365
|
hash: import("viem").Hash;
|
|
1348
|
-
}) => Promise<
|
|
1366
|
+
}) => Promise<Hex>;
|
|
1349
1367
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
1350
1368
|
signMessage: ({ message }: {
|
|
1351
1369
|
message: import("viem").SignableMessage;
|
|
1352
|
-
}) => Promise<
|
|
1370
|
+
}) => Promise<Hex>;
|
|
1353
1371
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
1354
1372
|
serializer?: serializer | undefined;
|
|
1355
|
-
} | undefined) => Promise<
|
|
1373
|
+
} | undefined) => Promise<Hex>;
|
|
1356
1374
|
signTypedData: <const typedData extends {
|
|
1357
1375
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
1358
1376
|
[x: `string[${string}]`]: undefined;
|
|
@@ -1763,8 +1781,8 @@ export declare function getClient(chainId: number): {
|
|
|
1763
1781
|
uint240?: undefined;
|
|
1764
1782
|
uint248?: undefined;
|
|
1765
1783
|
uint256?: undefined;
|
|
1766
|
-
} ? keyof typedData : string>) => Promise<
|
|
1767
|
-
publicKey:
|
|
1784
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
1785
|
+
publicKey: Hex;
|
|
1768
1786
|
source: "privateKey";
|
|
1769
1787
|
type: "local";
|
|
1770
1788
|
}, chainOverride, accountOverride, request>) => Promise<import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<Chain, chainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<Chain, chainOverride> extends infer T_1 ? T_1 extends import("viem").DeriveChain<Chain, chainOverride> ? T_1 extends import("viem").Chain ? {
|
|
@@ -1776,14 +1794,14 @@ export declare function getClient(chainId: number): {
|
|
|
1776
1794
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
1777
1795
|
sign: (parameters: {
|
|
1778
1796
|
hash: import("viem").Hash;
|
|
1779
|
-
}) => Promise<
|
|
1797
|
+
}) => Promise<Hex>;
|
|
1780
1798
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
1781
1799
|
signMessage: ({ message }: {
|
|
1782
1800
|
message: import("viem").SignableMessage;
|
|
1783
|
-
}) => Promise<
|
|
1801
|
+
}) => Promise<Hex>;
|
|
1784
1802
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
1785
1803
|
serializer?: serializer | undefined;
|
|
1786
|
-
} | undefined) => Promise<
|
|
1804
|
+
} | undefined) => Promise<Hex>;
|
|
1787
1805
|
signTypedData: <const typedData extends {
|
|
1788
1806
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
1789
1807
|
[x: `string[${string}]`]: undefined;
|
|
@@ -2194,8 +2212,8 @@ export declare function getClient(chainId: number): {
|
|
|
2194
2212
|
uint240?: undefined;
|
|
2195
2213
|
uint248?: undefined;
|
|
2196
2214
|
uint256?: undefined;
|
|
2197
|
-
} ? keyof typedData : string>) => Promise<
|
|
2198
|
-
publicKey:
|
|
2215
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
2216
|
+
publicKey: Hex;
|
|
2199
2217
|
source: "privateKey";
|
|
2200
2218
|
type: "local";
|
|
2201
2219
|
}, accountOverride> extends infer T_2 ? T_2 extends import("viem").DeriveAccount<{
|
|
@@ -2203,14 +2221,14 @@ export declare function getClient(chainId: number): {
|
|
|
2203
2221
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
2204
2222
|
sign: (parameters: {
|
|
2205
2223
|
hash: import("viem").Hash;
|
|
2206
|
-
}) => Promise<
|
|
2224
|
+
}) => Promise<Hex>;
|
|
2207
2225
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
2208
2226
|
signMessage: ({ message }: {
|
|
2209
2227
|
message: import("viem").SignableMessage;
|
|
2210
|
-
}) => Promise<
|
|
2228
|
+
}) => Promise<Hex>;
|
|
2211
2229
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
2212
2230
|
serializer?: serializer | undefined;
|
|
2213
|
-
} | undefined) => Promise<
|
|
2231
|
+
} | undefined) => Promise<Hex>;
|
|
2214
2232
|
signTypedData: <const typedData extends {
|
|
2215
2233
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
2216
2234
|
[x: `string[${string}]`]: undefined;
|
|
@@ -2621,8 +2639,8 @@ export declare function getClient(chainId: number): {
|
|
|
2621
2639
|
uint240?: undefined;
|
|
2622
2640
|
uint248?: undefined;
|
|
2623
2641
|
uint256?: undefined;
|
|
2624
|
-
} ? keyof typedData : string>) => Promise<
|
|
2625
|
-
publicKey:
|
|
2642
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
2643
|
+
publicKey: Hex;
|
|
2626
2644
|
source: "privateKey";
|
|
2627
2645
|
type: "local";
|
|
2628
2646
|
}, accountOverride> ? T_2 extends import("viem").Account ? {
|
|
@@ -3945,14 +3963,14 @@ export declare function getClient(chainId: number): {
|
|
|
3945
3963
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
3946
3964
|
sign: (parameters: {
|
|
3947
3965
|
hash: import("viem").Hash;
|
|
3948
|
-
}) => Promise<
|
|
3966
|
+
}) => Promise<Hex>;
|
|
3949
3967
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
3950
3968
|
signMessage: ({ message }: {
|
|
3951
3969
|
message: import("viem").SignableMessage;
|
|
3952
|
-
}) => Promise<
|
|
3970
|
+
}) => Promise<Hex>;
|
|
3953
3971
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
3954
3972
|
serializer?: serializer | undefined;
|
|
3955
|
-
} | undefined) => Promise<
|
|
3973
|
+
} | undefined) => Promise<Hex>;
|
|
3956
3974
|
signTypedData: <const typedData extends {
|
|
3957
3975
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
3958
3976
|
[x: `string[${string}]`]: undefined;
|
|
@@ -4363,8 +4381,8 @@ export declare function getClient(chainId: number): {
|
|
|
4363
4381
|
uint240?: undefined;
|
|
4364
4382
|
uint248?: undefined;
|
|
4365
4383
|
uint256?: undefined;
|
|
4366
|
-
} ? keyof typedData : string>) => Promise<
|
|
4367
|
-
publicKey:
|
|
4384
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
4385
|
+
publicKey: Hex;
|
|
4368
4386
|
source: "privateKey";
|
|
4369
4387
|
type: "local";
|
|
4370
4388
|
}, chainOverride, calls>) => Promise<{
|
|
@@ -4378,14 +4396,14 @@ export declare function getClient(chainId: number): {
|
|
|
4378
4396
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
4379
4397
|
sign: (parameters: {
|
|
4380
4398
|
hash: import("viem").Hash;
|
|
4381
|
-
}) => Promise<
|
|
4399
|
+
}) => Promise<Hex>;
|
|
4382
4400
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
4383
4401
|
signMessage: ({ message }: {
|
|
4384
4402
|
message: import("viem").SignableMessage;
|
|
4385
|
-
}) => Promise<
|
|
4403
|
+
}) => Promise<Hex>;
|
|
4386
4404
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
4387
4405
|
serializer?: serializer | undefined;
|
|
4388
|
-
} | undefined) => Promise<
|
|
4406
|
+
} | undefined) => Promise<Hex>;
|
|
4389
4407
|
signTypedData: <const typedData extends {
|
|
4390
4408
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
4391
4409
|
[x: `string[${string}]`]: undefined;
|
|
@@ -4796,8 +4814,8 @@ export declare function getClient(chainId: number): {
|
|
|
4796
4814
|
uint240?: undefined;
|
|
4797
4815
|
uint248?: undefined;
|
|
4798
4816
|
uint256?: undefined;
|
|
4799
|
-
} ? keyof typedData : string>) => Promise<
|
|
4800
|
-
publicKey:
|
|
4817
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
4818
|
+
publicKey: Hex;
|
|
4801
4819
|
source: "privateKey";
|
|
4802
4820
|
type: "local";
|
|
4803
4821
|
}, chainOverride, calls>) => Promise<{
|
|
@@ -4821,14 +4839,14 @@ export declare function getClient(chainId: number): {
|
|
|
4821
4839
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
4822
4840
|
sign: (parameters: {
|
|
4823
4841
|
hash: import("viem").Hash;
|
|
4824
|
-
}) => Promise<
|
|
4842
|
+
}) => Promise<Hex>;
|
|
4825
4843
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
4826
4844
|
signMessage: ({ message }: {
|
|
4827
4845
|
message: import("viem").SignableMessage;
|
|
4828
|
-
}) => Promise<
|
|
4846
|
+
}) => Promise<Hex>;
|
|
4829
4847
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
4830
4848
|
serializer?: serializer | undefined;
|
|
4831
|
-
} | undefined) => Promise<
|
|
4849
|
+
} | undefined) => Promise<Hex>;
|
|
4832
4850
|
signTypedData: <const typedData extends {
|
|
4833
4851
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
4834
4852
|
[x: `string[${string}]`]: undefined;
|
|
@@ -5239,8 +5257,8 @@ export declare function getClient(chainId: number): {
|
|
|
5239
5257
|
uint240?: undefined;
|
|
5240
5258
|
uint248?: undefined;
|
|
5241
5259
|
uint256?: undefined;
|
|
5242
|
-
} ? keyof typedData : string>) => Promise<
|
|
5243
|
-
publicKey:
|
|
5260
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
5261
|
+
publicKey: Hex;
|
|
5244
5262
|
source: "privateKey";
|
|
5245
5263
|
type: "local";
|
|
5246
5264
|
}, chainOverride, request>) => Promise<import("viem").SendTransactionReturnType>;
|
|
@@ -5249,14 +5267,14 @@ export declare function getClient(chainId: number): {
|
|
|
5249
5267
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
5250
5268
|
sign: (parameters: {
|
|
5251
5269
|
hash: import("viem").Hash;
|
|
5252
|
-
}) => Promise<
|
|
5270
|
+
}) => Promise<Hex>;
|
|
5253
5271
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
5254
5272
|
signMessage: ({ message }: {
|
|
5255
5273
|
message: import("viem").SignableMessage;
|
|
5256
|
-
}) => Promise<
|
|
5274
|
+
}) => Promise<Hex>;
|
|
5257
5275
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
5258
5276
|
serializer?: serializer | undefined;
|
|
5259
|
-
} | undefined) => Promise<
|
|
5277
|
+
} | undefined) => Promise<Hex>;
|
|
5260
5278
|
signTypedData: <const typedData extends {
|
|
5261
5279
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
5262
5280
|
[x: `string[${string}]`]: undefined;
|
|
@@ -5667,8 +5685,8 @@ export declare function getClient(chainId: number): {
|
|
|
5667
5685
|
uint240?: undefined;
|
|
5668
5686
|
uint248?: undefined;
|
|
5669
5687
|
uint256?: undefined;
|
|
5670
|
-
} ? keyof typedData : string>) => Promise<
|
|
5671
|
-
publicKey:
|
|
5688
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
5689
|
+
publicKey: Hex;
|
|
5672
5690
|
source: "privateKey";
|
|
5673
5691
|
type: "local";
|
|
5674
5692
|
}, chainOverride, request>) => Promise<import("viem").TransactionReceipt>;
|
|
@@ -5678,14 +5696,14 @@ export declare function getClient(chainId: number): {
|
|
|
5678
5696
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
5679
5697
|
sign: (parameters: {
|
|
5680
5698
|
hash: import("viem").Hash;
|
|
5681
|
-
}) => Promise<
|
|
5699
|
+
}) => Promise<Hex>;
|
|
5682
5700
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
5683
5701
|
signMessage: ({ message }: {
|
|
5684
5702
|
message: import("viem").SignableMessage;
|
|
5685
|
-
}) => Promise<
|
|
5703
|
+
}) => Promise<Hex>;
|
|
5686
5704
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
5687
5705
|
serializer?: serializer | undefined;
|
|
5688
|
-
} | undefined) => Promise<
|
|
5706
|
+
} | undefined) => Promise<Hex>;
|
|
5689
5707
|
signTypedData: <const typedData extends {
|
|
5690
5708
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
5691
5709
|
[x: `string[${string}]`]: undefined;
|
|
@@ -6096,8 +6114,8 @@ export declare function getClient(chainId: number): {
|
|
|
6096
6114
|
uint240?: undefined;
|
|
6097
6115
|
uint248?: undefined;
|
|
6098
6116
|
uint256?: undefined;
|
|
6099
|
-
} ? keyof typedData : string>) => Promise<
|
|
6100
|
-
publicKey:
|
|
6117
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
6118
|
+
publicKey: Hex;
|
|
6101
6119
|
source: "privateKey";
|
|
6102
6120
|
type: "local";
|
|
6103
6121
|
}>) => Promise<import("viem").SignAuthorizationReturnType>;
|
|
@@ -6106,14 +6124,14 @@ export declare function getClient(chainId: number): {
|
|
|
6106
6124
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
6107
6125
|
sign: (parameters: {
|
|
6108
6126
|
hash: import("viem").Hash;
|
|
6109
|
-
}) => Promise<
|
|
6127
|
+
}) => Promise<Hex>;
|
|
6110
6128
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
6111
6129
|
signMessage: ({ message }: {
|
|
6112
6130
|
message: import("viem").SignableMessage;
|
|
6113
|
-
}) => Promise<
|
|
6131
|
+
}) => Promise<Hex>;
|
|
6114
6132
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
6115
6133
|
serializer?: serializer | undefined;
|
|
6116
|
-
} | undefined) => Promise<
|
|
6134
|
+
} | undefined) => Promise<Hex>;
|
|
6117
6135
|
signTypedData: <const typedData extends {
|
|
6118
6136
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
6119
6137
|
[x: `string[${string}]`]: undefined;
|
|
@@ -6524,8 +6542,8 @@ export declare function getClient(chainId: number): {
|
|
|
6524
6542
|
uint240?: undefined;
|
|
6525
6543
|
uint248?: undefined;
|
|
6526
6544
|
uint256?: undefined;
|
|
6527
|
-
} ? keyof typedData : string>) => Promise<
|
|
6528
|
-
publicKey:
|
|
6545
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
6546
|
+
publicKey: Hex;
|
|
6529
6547
|
source: "privateKey";
|
|
6530
6548
|
type: "local";
|
|
6531
6549
|
}>) => Promise<import("viem").SignMessageReturnType>;
|
|
@@ -6534,14 +6552,14 @@ export declare function getClient(chainId: number): {
|
|
|
6534
6552
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
6535
6553
|
sign: (parameters: {
|
|
6536
6554
|
hash: import("viem").Hash;
|
|
6537
|
-
}) => Promise<
|
|
6555
|
+
}) => Promise<Hex>;
|
|
6538
6556
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
6539
6557
|
signMessage: ({ message }: {
|
|
6540
6558
|
message: import("viem").SignableMessage;
|
|
6541
|
-
}) => Promise<
|
|
6559
|
+
}) => Promise<Hex>;
|
|
6542
6560
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
6543
6561
|
serializer?: serializer | undefined;
|
|
6544
|
-
} | undefined) => Promise<
|
|
6562
|
+
} | undefined) => Promise<Hex>;
|
|
6545
6563
|
signTypedData: <const typedData extends {
|
|
6546
6564
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
6547
6565
|
[x: `string[${string}]`]: undefined;
|
|
@@ -6952,8 +6970,8 @@ export declare function getClient(chainId: number): {
|
|
|
6952
6970
|
uint240?: undefined;
|
|
6953
6971
|
uint248?: undefined;
|
|
6954
6972
|
uint256?: undefined;
|
|
6955
|
-
} ? keyof typedData : string>) => Promise<
|
|
6956
|
-
publicKey:
|
|
6973
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
6974
|
+
publicKey: Hex;
|
|
6957
6975
|
source: "privateKey";
|
|
6958
6976
|
type: "local";
|
|
6959
6977
|
}, chainOverride, request>) => Promise<import("viem").TransactionSerialized<import("viem").GetTransactionType<request, (request extends {
|
|
@@ -8060,14 +8078,14 @@ export declare function getClient(chainId: number): {
|
|
|
8060
8078
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
8061
8079
|
sign: (parameters: {
|
|
8062
8080
|
hash: import("viem").Hash;
|
|
8063
|
-
}) => Promise<
|
|
8081
|
+
}) => Promise<Hex>;
|
|
8064
8082
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
8065
8083
|
signMessage: ({ message }: {
|
|
8066
8084
|
message: import("viem").SignableMessage;
|
|
8067
|
-
}) => Promise<
|
|
8085
|
+
}) => Promise<Hex>;
|
|
8068
8086
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
8069
8087
|
serializer?: serializer | undefined;
|
|
8070
|
-
} | undefined) => Promise<
|
|
8088
|
+
} | undefined) => Promise<Hex>;
|
|
8071
8089
|
signTypedData: <const typedData_1 extends {
|
|
8072
8090
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
8073
8091
|
[x: `string[${string}]`]: undefined;
|
|
@@ -8478,8 +8496,8 @@ export declare function getClient(chainId: number): {
|
|
|
8478
8496
|
uint240?: undefined;
|
|
8479
8497
|
uint248?: undefined;
|
|
8480
8498
|
uint256?: undefined;
|
|
8481
|
-
} ? keyof typedData_1 : string>) => Promise<
|
|
8482
|
-
publicKey:
|
|
8499
|
+
} ? keyof typedData_1 : string>) => Promise<Hex>;
|
|
8500
|
+
publicKey: Hex;
|
|
8483
8501
|
source: "privateKey";
|
|
8484
8502
|
type: "local";
|
|
8485
8503
|
}>) => Promise<import("viem").SignTypedDataReturnType>;
|
|
@@ -8491,14 +8509,14 @@ export declare function getClient(chainId: number): {
|
|
|
8491
8509
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
8492
8510
|
sign: (parameters: {
|
|
8493
8511
|
hash: import("viem").Hash;
|
|
8494
|
-
}) => Promise<
|
|
8512
|
+
}) => Promise<Hex>;
|
|
8495
8513
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
8496
8514
|
signMessage: ({ message }: {
|
|
8497
8515
|
message: import("viem").SignableMessage;
|
|
8498
|
-
}) => Promise<
|
|
8516
|
+
}) => Promise<Hex>;
|
|
8499
8517
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
8500
8518
|
serializer?: serializer | undefined;
|
|
8501
|
-
} | undefined) => Promise<
|
|
8519
|
+
} | undefined) => Promise<Hex>;
|
|
8502
8520
|
signTypedData: <const typedData extends {
|
|
8503
8521
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
8504
8522
|
[x: `string[${string}]`]: undefined;
|
|
@@ -8909,8 +8927,8 @@ export declare function getClient(chainId: number): {
|
|
|
8909
8927
|
uint240?: undefined;
|
|
8910
8928
|
uint248?: undefined;
|
|
8911
8929
|
uint256?: undefined;
|
|
8912
|
-
} ? keyof typedData : string>) => Promise<
|
|
8913
|
-
publicKey:
|
|
8930
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
8931
|
+
publicKey: Hex;
|
|
8914
8932
|
source: "privateKey";
|
|
8915
8933
|
type: "local";
|
|
8916
8934
|
}, chainOverride>) => Promise<import("viem").WriteContractReturnType>;
|
|
@@ -8919,14 +8937,14 @@ export declare function getClient(chainId: number): {
|
|
|
8919
8937
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
8920
8938
|
sign: (parameters: {
|
|
8921
8939
|
hash: import("viem").Hash;
|
|
8922
|
-
}) => Promise<
|
|
8940
|
+
}) => Promise<Hex>;
|
|
8923
8941
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
8924
8942
|
signMessage: ({ message }: {
|
|
8925
8943
|
message: import("viem").SignableMessage;
|
|
8926
|
-
}) => Promise<
|
|
8944
|
+
}) => Promise<Hex>;
|
|
8927
8945
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
8928
8946
|
serializer?: serializer | undefined;
|
|
8929
|
-
} | undefined) => Promise<
|
|
8947
|
+
} | undefined) => Promise<Hex>;
|
|
8930
8948
|
signTypedData: <const typedData extends {
|
|
8931
8949
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
8932
8950
|
[x: `string[${string}]`]: undefined;
|
|
@@ -9337,8 +9355,8 @@ export declare function getClient(chainId: number): {
|
|
|
9337
9355
|
uint240?: undefined;
|
|
9338
9356
|
uint248?: undefined;
|
|
9339
9357
|
uint256?: undefined;
|
|
9340
|
-
} ? keyof typedData : string>) => Promise<
|
|
9341
|
-
publicKey:
|
|
9358
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
9359
|
+
publicKey: Hex;
|
|
9342
9360
|
source: "privateKey";
|
|
9343
9361
|
type: "local";
|
|
9344
9362
|
}, chainOverride>) => Promise<import("viem").WriteContractSyncReturnType>;
|
|
@@ -9363,14 +9381,14 @@ export declare function getClient(chainId: number): {
|
|
|
9363
9381
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
9364
9382
|
sign: (parameters: {
|
|
9365
9383
|
hash: import("viem").Hash;
|
|
9366
|
-
}) => Promise<
|
|
9384
|
+
}) => Promise<Hex>;
|
|
9367
9385
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
9368
9386
|
signMessage: ({ message }: {
|
|
9369
9387
|
message: import("viem").SignableMessage;
|
|
9370
|
-
}) => Promise<
|
|
9388
|
+
}) => Promise<Hex>;
|
|
9371
9389
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
9372
9390
|
serializer?: serializer | undefined;
|
|
9373
|
-
} | undefined) => Promise<
|
|
9391
|
+
} | undefined) => Promise<Hex>;
|
|
9374
9392
|
signTypedData: <const typedData extends {
|
|
9375
9393
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
9376
9394
|
[x: `string[${string}]`]: undefined;
|
|
@@ -9781,8 +9799,8 @@ export declare function getClient(chainId: number): {
|
|
|
9781
9799
|
uint240?: undefined;
|
|
9782
9800
|
uint248?: undefined;
|
|
9783
9801
|
uint256?: undefined;
|
|
9784
|
-
} ? keyof typedData : string>) => Promise<
|
|
9785
|
-
publicKey:
|
|
9802
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
9803
|
+
publicKey: Hex;
|
|
9786
9804
|
source: "privateKey";
|
|
9787
9805
|
type: "local";
|
|
9788
9806
|
}>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<Chain, {
|
|
@@ -9790,14 +9808,14 @@ export declare function getClient(chainId: number): {
|
|
|
9790
9808
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
9791
9809
|
sign: (parameters: {
|
|
9792
9810
|
hash: import("viem").Hash;
|
|
9793
|
-
}) => Promise<
|
|
9811
|
+
}) => Promise<Hex>;
|
|
9794
9812
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
9795
9813
|
signMessage: ({ message }: {
|
|
9796
9814
|
message: import("viem").SignableMessage;
|
|
9797
|
-
}) => Promise<
|
|
9815
|
+
}) => Promise<Hex>;
|
|
9798
9816
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
9799
9817
|
serializer?: serializer | undefined;
|
|
9800
|
-
} | undefined) => Promise<
|
|
9818
|
+
} | undefined) => Promise<Hex>;
|
|
9801
9819
|
signTypedData: <const typedData extends {
|
|
9802
9820
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
9803
9821
|
[x: `string[${string}]`]: undefined;
|
|
@@ -10208,8 +10226,8 @@ export declare function getClient(chainId: number): {
|
|
|
10208
10226
|
uint240?: undefined;
|
|
10209
10227
|
uint248?: undefined;
|
|
10210
10228
|
uint256?: undefined;
|
|
10211
|
-
} ? keyof typedData : string>) => Promise<
|
|
10212
|
-
publicKey:
|
|
10229
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
10230
|
+
publicKey: Hex;
|
|
10213
10231
|
source: "privateKey";
|
|
10214
10232
|
type: "local";
|
|
10215
10233
|
}>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").HttpTransport<undefined, false>, Chain, {
|
|
@@ -10217,14 +10235,14 @@ export declare function getClient(chainId: number): {
|
|
|
10217
10235
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
10218
10236
|
sign: (parameters: {
|
|
10219
10237
|
hash: import("viem").Hash;
|
|
10220
|
-
}) => Promise<
|
|
10238
|
+
}) => Promise<Hex>;
|
|
10221
10239
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
10222
10240
|
signMessage: ({ message }: {
|
|
10223
10241
|
message: import("viem").SignableMessage;
|
|
10224
|
-
}) => Promise<
|
|
10242
|
+
}) => Promise<Hex>;
|
|
10225
10243
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
10226
10244
|
serializer?: serializer | undefined;
|
|
10227
|
-
} | undefined) => Promise<
|
|
10245
|
+
} | undefined) => Promise<Hex>;
|
|
10228
10246
|
signTypedData: <const typedData extends {
|
|
10229
10247
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
10230
10248
|
[x: `string[${string}]`]: undefined;
|
|
@@ -10635,8 +10653,8 @@ export declare function getClient(chainId: number): {
|
|
|
10635
10653
|
uint240?: undefined;
|
|
10636
10654
|
uint248?: undefined;
|
|
10637
10655
|
uint256?: undefined;
|
|
10638
|
-
} ? keyof typedData : string>) => Promise<
|
|
10639
|
-
publicKey:
|
|
10656
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
10657
|
+
publicKey: Hex;
|
|
10640
10658
|
source: "privateKey";
|
|
10641
10659
|
type: "local";
|
|
10642
10660
|
}, import("viem").WalletRpcSchema, import("viem").WalletActions<Chain, {
|
|
@@ -10644,14 +10662,14 @@ export declare function getClient(chainId: number): {
|
|
|
10644
10662
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
10645
10663
|
sign: (parameters: {
|
|
10646
10664
|
hash: import("viem").Hash;
|
|
10647
|
-
}) => Promise<
|
|
10665
|
+
}) => Promise<Hex>;
|
|
10648
10666
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
10649
10667
|
signMessage: ({ message }: {
|
|
10650
10668
|
message: import("viem").SignableMessage;
|
|
10651
|
-
}) => Promise<
|
|
10669
|
+
}) => Promise<Hex>;
|
|
10652
10670
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
10653
10671
|
serializer?: serializer | undefined;
|
|
10654
|
-
} | undefined) => Promise<
|
|
10672
|
+
} | undefined) => Promise<Hex>;
|
|
10655
10673
|
signTypedData: <const typedData extends {
|
|
10656
10674
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
10657
10675
|
[x: `string[${string}]`]: undefined;
|
|
@@ -11062,8 +11080,8 @@ export declare function getClient(chainId: number): {
|
|
|
11062
11080
|
uint240?: undefined;
|
|
11063
11081
|
uint248?: undefined;
|
|
11064
11082
|
uint256?: undefined;
|
|
11065
|
-
} ? keyof typedData : string>) => Promise<
|
|
11066
|
-
publicKey:
|
|
11083
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
11084
|
+
publicKey: Hex;
|
|
11067
11085
|
source: "privateKey";
|
|
11068
11086
|
type: "local";
|
|
11069
11087
|
}>>) => client) => import("viem").Client<import("viem").HttpTransport<undefined, false>, Chain, {
|
|
@@ -11071,14 +11089,14 @@ export declare function getClient(chainId: number): {
|
|
|
11071
11089
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
11072
11090
|
sign: (parameters: {
|
|
11073
11091
|
hash: import("viem").Hash;
|
|
11074
|
-
}) => Promise<
|
|
11092
|
+
}) => Promise<Hex>;
|
|
11075
11093
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
11076
11094
|
signMessage: ({ message }: {
|
|
11077
11095
|
message: import("viem").SignableMessage;
|
|
11078
|
-
}) => Promise<
|
|
11096
|
+
}) => Promise<Hex>;
|
|
11079
11097
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
11080
11098
|
serializer?: serializer | undefined;
|
|
11081
|
-
} | undefined) => Promise<
|
|
11099
|
+
} | undefined) => Promise<Hex>;
|
|
11082
11100
|
signTypedData: <const typedData extends {
|
|
11083
11101
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
11084
11102
|
[x: `string[${string}]`]: undefined;
|
|
@@ -11489,8 +11507,8 @@ export declare function getClient(chainId: number): {
|
|
|
11489
11507
|
uint240?: undefined;
|
|
11490
11508
|
uint248?: undefined;
|
|
11491
11509
|
uint256?: undefined;
|
|
11492
|
-
} ? keyof typedData : string>) => Promise<
|
|
11493
|
-
publicKey:
|
|
11510
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
11511
|
+
publicKey: Hex;
|
|
11494
11512
|
source: "privateKey";
|
|
11495
11513
|
type: "local";
|
|
11496
11514
|
}, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<Chain, {
|
|
@@ -11498,14 +11516,14 @@ export declare function getClient(chainId: number): {
|
|
|
11498
11516
|
nonceManager?: import("viem").NonceManager | undefined;
|
|
11499
11517
|
sign: (parameters: {
|
|
11500
11518
|
hash: import("viem").Hash;
|
|
11501
|
-
}) => Promise<
|
|
11519
|
+
}) => Promise<Hex>;
|
|
11502
11520
|
signAuthorization: (parameters: import("viem").AuthorizationRequest) => Promise<import("viem/accounts").SignAuthorizationReturnType>;
|
|
11503
11521
|
signMessage: ({ message }: {
|
|
11504
11522
|
message: import("viem").SignableMessage;
|
|
11505
|
-
}) => Promise<
|
|
11523
|
+
}) => Promise<Hex>;
|
|
11506
11524
|
signTransaction: <serializer extends import("viem").SerializeTransactionFn<import("viem").TransactionSerializable> = import("viem").SerializeTransactionFn<import("viem").TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(transaction: transaction, options?: {
|
|
11507
11525
|
serializer?: serializer | undefined;
|
|
11508
|
-
} | undefined) => Promise<
|
|
11526
|
+
} | undefined) => Promise<Hex>;
|
|
11509
11527
|
signTypedData: <const typedData extends {
|
|
11510
11528
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
11511
11529
|
[x: `string[${string}]`]: undefined;
|
|
@@ -11916,8 +11934,8 @@ export declare function getClient(chainId: number): {
|
|
|
11916
11934
|
uint240?: undefined;
|
|
11917
11935
|
uint248?: undefined;
|
|
11918
11936
|
uint256?: undefined;
|
|
11919
|
-
} ? keyof typedData : string>) => Promise<
|
|
11920
|
-
publicKey:
|
|
11937
|
+
} ? keyof typedData : string>) => Promise<Hex>;
|
|
11938
|
+
publicKey: Hex;
|
|
11921
11939
|
source: "privateKey";
|
|
11922
11940
|
type: "local";
|
|
11923
11941
|
}>>;
|
|
@@ -11930,11 +11948,39 @@ export declare const globalOptions: z.ZodObject<{
|
|
|
11930
11948
|
export declare function createLocalDatabase(dbPath: string): Promise<LocalDatabase>;
|
|
11931
11949
|
export declare function migrateLocalDatabase(db: LocalDatabase): Promise<void>;
|
|
11932
11950
|
export declare function hashLink(hash: string, chain: Chain): string;
|
|
11933
|
-
export declare function getRepairDatasetMetadata(): MetadataObject;
|
|
11934
11951
|
export declare function getPiece({ pieceCid, serviceUrl }: {
|
|
11935
11952
|
pieceCid: string;
|
|
11936
11953
|
serviceUrl: string;
|
|
11937
11954
|
}): Promise<string>;
|
|
11938
11955
|
export declare function findPieceOnProviders(providers: string[], pieceCid: string): Promise<string | undefined>;
|
|
11939
11956
|
export declare const buildConflictUpdateColumns: <T extends PgTable | SQLiteTable, Q extends keyof T["_"]["columns"]>(table: T, columns?: Q[]) => Record<Q, SQL<unknown>>;
|
|
11957
|
+
export declare function excludeOperationsByCid(operations: OperationSelect[], cid: string): {
|
|
11958
|
+
operationToCommit: {
|
|
11959
|
+
metadata: MetadataObject;
|
|
11960
|
+
cid: string;
|
|
11961
|
+
id: number;
|
|
11962
|
+
status: schema.OperationStatus;
|
|
11963
|
+
createdAt: number;
|
|
11964
|
+
updatedAt: number;
|
|
11965
|
+
repairId: number;
|
|
11966
|
+
type: schema.OperationType;
|
|
11967
|
+
alternateProvider: string;
|
|
11968
|
+
result: schema.OperationResult | null;
|
|
11969
|
+
error: string | null;
|
|
11970
|
+
}[];
|
|
11971
|
+
operationToFailed: {
|
|
11972
|
+
metadata: MetadataObject;
|
|
11973
|
+
cid: string;
|
|
11974
|
+
id: number;
|
|
11975
|
+
status: schema.OperationStatus;
|
|
11976
|
+
createdAt: number;
|
|
11977
|
+
updatedAt: number;
|
|
11978
|
+
repairId: number;
|
|
11979
|
+
type: schema.OperationType;
|
|
11980
|
+
alternateProvider: string;
|
|
11981
|
+
result: schema.OperationResult | null;
|
|
11982
|
+
error: string | null;
|
|
11983
|
+
}[];
|
|
11984
|
+
};
|
|
11985
|
+
export declare function operationsToPullPieces(operations: OperationSelect[]): SP.PullPieceInput[];
|
|
11940
11986
|
//# sourceMappingURL=utils.d.ts.map
|