@ssv-labs/ssv-sdk 0.0.1

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.
Files changed (64) hide show
  1. package/LICENSE +674 -0
  2. package/README.html +102 -0
  3. package/README.md +136 -0
  4. package/README.pdf +0 -0
  5. package/dist/abi/holesky/v4/getter.d.ts +824 -0
  6. package/dist/abi/holesky/v4/setter.d.ts +1662 -0
  7. package/dist/abi/mainnet/v4/getter.d.ts +824 -0
  8. package/dist/abi/mainnet/v4/setter.d.ts +1677 -0
  9. package/dist/abi/token.d.ts +292 -0
  10. package/dist/api/ssv-api/index.d.ts +16 -0
  11. package/dist/api/subgraph/index.d.ts +101 -0
  12. package/dist/config/chains.d.ts +94 -0
  13. package/dist/config/create.d.ts +45 -0
  14. package/dist/config/globals.d.ts +33 -0
  15. package/dist/config/index.d.ts +3 -0
  16. package/dist/config-DPI30L0i.js +5159 -0
  17. package/dist/config-DlwfpwZd.mjs +5161 -0
  18. package/dist/contract-interactions/create.d.ts +3 -0
  19. package/dist/contract-interactions/index.d.ts +1 -0
  20. package/dist/contract-interactions/types.d.ts +93 -0
  21. package/dist/graphql/graphql.d.ts +3249 -0
  22. package/dist/libs/api/index.d.ts +81 -0
  23. package/dist/libs/cluster/index.d.ts +5636 -0
  24. package/dist/libs/cluster/methods/deposit.d.ts +286 -0
  25. package/dist/libs/cluster/methods/exit-validators.d.ts +283 -0
  26. package/dist/libs/cluster/methods/index.d.ts +8 -0
  27. package/dist/libs/cluster/methods/liquidate-cluster.d.ts +281 -0
  28. package/dist/libs/cluster/methods/reactivate-cluster.d.ts +282 -0
  29. package/dist/libs/cluster/methods/register-validators.d.ts +3652 -0
  30. package/dist/libs/cluster/methods/remove-validators.d.ts +283 -0
  31. package/dist/libs/cluster/methods/set-fee-recipient.d.ts +282 -0
  32. package/dist/libs/cluster/methods/withdraw.d.ts +282 -0
  33. package/dist/libs/operator/index.d.ts +4005 -0
  34. package/dist/libs/operator/methods.d.ts +844 -0
  35. package/dist/libs/utils/index.d.ts +32 -0
  36. package/dist/libs/utils/methods/get-cluster-balance.d.ts +9 -0
  37. package/dist/libs/utils/methods/index.d.ts +4 -0
  38. package/dist/libs/utils/methods/keyshares.d.ts +21 -0
  39. package/dist/libs/utils/methods/keystores.d.ts +13 -0
  40. package/dist/libs/utils/methods/methods.d.ts +2 -0
  41. package/dist/main.d.ts +8 -0
  42. package/dist/main.js +36437 -0
  43. package/dist/main.mjs +36437 -0
  44. package/dist/mock/api.d.ts +3 -0
  45. package/dist/mock/config.d.ts +6 -0
  46. package/dist/mock/index.d.ts +8 -0
  47. package/dist/sdk.d.ts +14 -0
  48. package/dist/types/contract-interactions.d.ts +21 -0
  49. package/dist/types/methods.d.ts +3 -0
  50. package/dist/types/operator.d.ts +9 -0
  51. package/dist/types/utils.d.ts +3 -0
  52. package/dist/utils/bigint.d.ts +29 -0
  53. package/dist/utils/cluster.d.ts +8 -0
  54. package/dist/utils/contract.d.ts +3 -0
  55. package/dist/utils/index.d.ts +9 -0
  56. package/dist/utils/keyshares.d.ts +21 -0
  57. package/dist/utils/number.d.ts +21 -0
  58. package/dist/utils/operator.d.ts +5 -0
  59. package/dist/utils/try-catch.d.ts +1 -0
  60. package/dist/utils/url-join.d.ts +1 -0
  61. package/dist/utils/zod/config.d.ts +9 -0
  62. package/dist/utils.js +43 -0
  63. package/dist/utils.mjs +43 -0
  64. package/package.json +136 -0
@@ -0,0 +1,81 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ export declare const createQueries: (graphqlClient: GraphQLClient) => {
3
+ getOwnerNonce: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
4
+ owner: string;
5
+ block?: import('../../graphql/graphql').InputMaybe<number> | undefined;
6
+ }>) => Promise<string | undefined>>;
7
+ getClusterSnapshot: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
8
+ id: string;
9
+ }>) => Promise<{
10
+ active: boolean;
11
+ validatorCount: string;
12
+ balance: string;
13
+ index: string;
14
+ networkFeeIndex: string;
15
+ } | null | undefined>>;
16
+ getCluster: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
17
+ id: string;
18
+ }>) => Promise<{
19
+ active: boolean;
20
+ validatorCount: string;
21
+ balance: string;
22
+ index: string;
23
+ networkFeeIndex: string;
24
+ operatorIds: string[];
25
+ } | null | undefined>>;
26
+ getClusters: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
27
+ owner: string;
28
+ }>) => Promise<{
29
+ id: string;
30
+ active: boolean;
31
+ validatorCount: string;
32
+ balance: string;
33
+ index: string;
34
+ networkFeeIndex: string;
35
+ operatorIds: string[];
36
+ }[]>>;
37
+ getOperator: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
38
+ id: string;
39
+ }>) => Promise<{
40
+ publicKey: string;
41
+ whitelisted: `0x${string}`[];
42
+ id: string;
43
+ validatorCount: string;
44
+ isPrivate: boolean;
45
+ whitelistedContract: `0x${string}`;
46
+ } | null>>;
47
+ getOperators: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
48
+ operatorIds: string | string[];
49
+ }>) => Promise<{
50
+ publicKey: string;
51
+ whitelisted: `0x${string}`[];
52
+ id: string;
53
+ validatorCount: string;
54
+ isPrivate: boolean;
55
+ whitelistedContract: `0x${string}`;
56
+ }[]>>;
57
+ getValidators: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
58
+ ids: `0x${string}` | `0x${string}`[];
59
+ }>) => Promise<{
60
+ id: `0x${string}`;
61
+ }[]>>;
62
+ getValidator: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
63
+ id: string;
64
+ }>) => Promise<{
65
+ id: `0x${string}`;
66
+ } | null | undefined>>;
67
+ getClusterBalance: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
68
+ clusterId: string;
69
+ daoAddress: string;
70
+ operatorIds: string | string[];
71
+ }>) => Promise<import('../../graphql/graphql').GetClusterBalanceQuery>>;
72
+ };
73
+ export declare const createSSVAPI: (endpoint: string) => {
74
+ checkOperatorDKGEnabled: (dkgAddresses: {
75
+ id: string;
76
+ address: string;
77
+ }[]) => Promise<{
78
+ id: string;
79
+ isHealthy: boolean;
80
+ }[]>;
81
+ };