@ssv-labs/ssv-sdk 0.0.3 → 0.0.5
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/api/subgraph/index.d.ts +2 -2
- package/dist/config/chains.d.ts +84 -1
- package/dist/{config-DlwfpwZd.mjs → globals-DsbufPrE.mjs} +412 -32
- package/dist/{config-DPI30L0i.js → globals-fh7gkHKO.js} +382 -2
- package/dist/libs/api/index.d.ts +1 -1
- package/dist/main.js +607 -944
- package/dist/main.mjs +543 -879
- package/dist/utils/zod/config.d.ts +14 -7
- package/dist/utils.js +38 -38
- package/dist/utils.mjs +30 -30
- package/package.json +1 -1
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { PublicClient, WalletClient } from 'viem';
|
|
1
|
+
import { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare const configArgsSchema: z.ZodType<ConfigArgs, z.ZodTypeDef, ConfigArgs>;
|
|
4
|
+
export type ConfigArgs = {
|
|
5
|
+
walletClient: WalletClient;
|
|
6
|
+
publicClient: PublicClient;
|
|
7
|
+
_?: {
|
|
8
|
+
graphUrl?: string;
|
|
9
|
+
restUrl?: string;
|
|
10
|
+
contractAddresses?: {
|
|
11
|
+
setter?: Address;
|
|
12
|
+
getter?: Address;
|
|
13
|
+
token?: Address;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
6
16
|
};
|
|
7
|
-
export declare const configArgsSchema: z.ZodObject<ZodConfigArgs>;
|
|
8
|
-
export type ConfigArgs = z.infer<z.ZodObject<ZodConfigArgs>>;
|
|
9
|
-
export {};
|
package/dist/utils.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const waitForTransaction = async (
|
|
3
|
+
const globals = require("./globals-fh7gkHKO.js");
|
|
4
|
+
const waitForTransaction = async (config, fn) => {
|
|
5
5
|
const hash = await fn;
|
|
6
|
-
return
|
|
6
|
+
return config.publicClient.waitForTransactionReceipt({ hash });
|
|
7
7
|
};
|
|
8
|
-
exports.KeysharesValidationError =
|
|
9
|
-
exports.KeysharesValidationErrors =
|
|
10
|
-
exports.KeysharesValidationErrorsMessages =
|
|
11
|
-
exports._percentageFormatter =
|
|
12
|
-
exports.add0x =
|
|
13
|
-
exports.bigintAbs =
|
|
14
|
-
exports.bigintFloor =
|
|
15
|
-
exports.bigintFormatter =
|
|
16
|
-
exports.bigintMax =
|
|
17
|
-
exports.bigintMin =
|
|
18
|
-
exports.bigintRound =
|
|
19
|
-
exports.bigintifyNumbers =
|
|
20
|
-
exports.configArgsSchema =
|
|
21
|
-
exports.createClusterId =
|
|
22
|
-
exports.createEmptyCluster =
|
|
23
|
-
exports.decodeOperatorPublicKey =
|
|
24
|
-
exports.ensureNoKeysharesErrors =
|
|
25
|
-
exports.ensureValidatorsUniqueness =
|
|
26
|
-
exports.ethFormatter =
|
|
27
|
-
exports.formatBigintInput =
|
|
28
|
-
exports.formatSSV =
|
|
29
|
-
exports.getClusterSnapshot =
|
|
30
|
-
exports.getOperatorIds =
|
|
31
|
-
exports.isBigIntChanged =
|
|
32
|
-
exports.isClusterId =
|
|
33
|
-
exports.isKeySharesItem =
|
|
34
|
-
exports.ms =
|
|
35
|
-
exports.numberFormatter =
|
|
36
|
-
exports.percentageFormatter =
|
|
37
|
-
exports.roundOperatorFee =
|
|
38
|
-
exports.sortNumbers =
|
|
39
|
-
exports.stringifyBigints =
|
|
40
|
-
exports.tryCatch =
|
|
41
|
-
exports.validateConsistentOperatorIds =
|
|
42
|
-
exports.validateConsistentOperatorPublicKeys =
|
|
8
|
+
exports.KeysharesValidationError = globals.KeysharesValidationError;
|
|
9
|
+
exports.KeysharesValidationErrors = globals.KeysharesValidationErrors;
|
|
10
|
+
exports.KeysharesValidationErrorsMessages = globals.KeysharesValidationErrorsMessages;
|
|
11
|
+
exports._percentageFormatter = globals._percentageFormatter;
|
|
12
|
+
exports.add0x = globals.add0x;
|
|
13
|
+
exports.bigintAbs = globals.bigintAbs;
|
|
14
|
+
exports.bigintFloor = globals.bigintFloor;
|
|
15
|
+
exports.bigintFormatter = globals.bigintFormatter;
|
|
16
|
+
exports.bigintMax = globals.bigintMax;
|
|
17
|
+
exports.bigintMin = globals.bigintMin;
|
|
18
|
+
exports.bigintRound = globals.bigintRound;
|
|
19
|
+
exports.bigintifyNumbers = globals.bigintifyNumbers;
|
|
20
|
+
exports.configArgsSchema = globals.configArgsSchema;
|
|
21
|
+
exports.createClusterId = globals.createClusterId;
|
|
22
|
+
exports.createEmptyCluster = globals.createEmptyCluster;
|
|
23
|
+
exports.decodeOperatorPublicKey = globals.decodeOperatorPublicKey;
|
|
24
|
+
exports.ensureNoKeysharesErrors = globals.ensureNoKeysharesErrors;
|
|
25
|
+
exports.ensureValidatorsUniqueness = globals.ensureValidatorsUniqueness;
|
|
26
|
+
exports.ethFormatter = globals.ethFormatter;
|
|
27
|
+
exports.formatBigintInput = globals.formatBigintInput;
|
|
28
|
+
exports.formatSSV = globals.formatSSV;
|
|
29
|
+
exports.getClusterSnapshot = globals.getClusterSnapshot;
|
|
30
|
+
exports.getOperatorIds = globals.getOperatorIds;
|
|
31
|
+
exports.isBigIntChanged = globals.isBigIntChanged;
|
|
32
|
+
exports.isClusterId = globals.isClusterId;
|
|
33
|
+
exports.isKeySharesItem = globals.isKeySharesItem;
|
|
34
|
+
exports.ms = globals.ms;
|
|
35
|
+
exports.numberFormatter = globals.numberFormatter;
|
|
36
|
+
exports.percentageFormatter = globals.percentageFormatter;
|
|
37
|
+
exports.roundOperatorFee = globals.roundOperatorFee;
|
|
38
|
+
exports.sortNumbers = globals.sortNumbers;
|
|
39
|
+
exports.stringifyBigints = globals.stringifyBigints;
|
|
40
|
+
exports.tryCatch = globals.tryCatch;
|
|
41
|
+
exports.validateConsistentOperatorIds = globals.validateConsistentOperatorIds;
|
|
42
|
+
exports.validateConsistentOperatorPublicKeys = globals.validateConsistentOperatorPublicKeys;
|
|
43
43
|
exports.waitForTransaction = waitForTransaction;
|
package/dist/utils.mjs
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { K,
|
|
1
|
+
import { K, F, V, _, T, O, N, Y, z, J, L, Q, k, v, w, d, A, B, Z, a0, $, o, a2, P, R, q, a1, W, X, x, E, s, t, D, C } from "./globals-DsbufPrE.mjs";
|
|
2
2
|
const waitForTransaction = async (config, fn) => {
|
|
3
3
|
const hash = await fn;
|
|
4
4
|
return config.publicClient.waitForTransactionReceipt({ hash });
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
7
|
K as KeysharesValidationError,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
F as KeysharesValidationErrors,
|
|
9
|
+
V as KeysharesValidationErrorsMessages,
|
|
10
10
|
_ as _percentageFormatter,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
T as add0x,
|
|
12
|
+
O as bigintAbs,
|
|
13
|
+
N as bigintFloor,
|
|
14
|
+
Y as bigintFormatter,
|
|
15
|
+
z as bigintMax,
|
|
16
|
+
J as bigintMin,
|
|
17
|
+
L as bigintRound,
|
|
18
|
+
Q as bigintifyNumbers,
|
|
19
19
|
k as configArgsSchema,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
v as createClusterId,
|
|
21
|
+
w as createEmptyCluster,
|
|
22
22
|
d as decodeOperatorPublicKey,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
A as ensureNoKeysharesErrors,
|
|
24
|
+
B as ensureValidatorsUniqueness,
|
|
25
|
+
Z as ethFormatter,
|
|
26
|
+
a0 as formatBigintInput,
|
|
27
|
+
$ as formatSSV,
|
|
28
|
+
o as getClusterSnapshot,
|
|
29
|
+
a2 as getOperatorIds,
|
|
30
|
+
P as isBigIntChanged,
|
|
31
|
+
R as isClusterId,
|
|
32
|
+
q as isKeySharesItem,
|
|
33
|
+
a1 as ms,
|
|
34
|
+
W as numberFormatter,
|
|
35
|
+
X as percentageFormatter,
|
|
36
|
+
x as roundOperatorFee,
|
|
37
|
+
E as sortNumbers,
|
|
38
38
|
s as stringifyBigints,
|
|
39
39
|
t as tryCatch,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
D as validateConsistentOperatorIds,
|
|
41
|
+
C as validateConsistentOperatorPublicKeys,
|
|
42
42
|
waitForTransaction
|
|
43
43
|
};
|