@ssv-labs/ssv-sdk 0.0.3 → 0.0.4
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 +83 -1
- package/dist/libs/api/index.d.ts +1 -1
- package/dist/main.js +513 -544
- package/dist/main.mjs +514 -545
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RemoveConfigArg } from '../../types/methods';
|
|
2
2
|
import { GraphQLClient } from 'graphql-request';
|
|
3
3
|
import { GetClusterBalanceQueryVariables, GetClusterQueryVariables, GetClusterSnapshotQueryVariables, GetClustersQueryVariables, GetOperatorQueryVariables, GetOperatorsQueryVariables, GetOwnerNonceByBlockQueryVariables, GetValidatorQueryVariables, GetValidatorsQueryVariables } from '../../graphql/graphql';
|
|
4
|
-
export declare const getOwnerNonce: (client: GraphQLClient, args: GetOwnerNonceByBlockQueryVariables) => Promise<string
|
|
4
|
+
export declare const getOwnerNonce: (client: GraphQLClient, args: GetOwnerNonceByBlockQueryVariables) => Promise<string>;
|
|
5
5
|
export declare const getClusterSnapshot: (client: GraphQLClient, args: GetClusterSnapshotQueryVariables) => Promise<{
|
|
6
6
|
active: boolean;
|
|
7
7
|
validatorCount: string;
|
|
@@ -50,7 +50,7 @@ export declare const getValidator: (client: GraphQLClient, args: GetValidatorQue
|
|
|
50
50
|
} | null | undefined>;
|
|
51
51
|
export declare const getClusterBalance: (client: GraphQLClient, args: GetClusterBalanceQueryVariables) => Promise<import('../../graphql/graphql').GetClusterBalanceQuery>;
|
|
52
52
|
export declare const getQueries: (client: GraphQLClient) => {
|
|
53
|
-
getOwnerNonce: RemoveConfigArg<(client: GraphQLClient, args: GetOwnerNonceByBlockQueryVariables) => Promise<string
|
|
53
|
+
getOwnerNonce: RemoveConfigArg<(client: GraphQLClient, args: GetOwnerNonceByBlockQueryVariables) => Promise<string>>;
|
|
54
54
|
getClusterSnapshot: RemoveConfigArg<(client: GraphQLClient, args: GetClusterSnapshotQueryVariables) => Promise<{
|
|
55
55
|
active: boolean;
|
|
56
56
|
validatorCount: string;
|
package/dist/config/chains.d.ts
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
1
|
import { Address } from 'abitype';
|
|
2
|
+
export declare const hoodi: {
|
|
3
|
+
blockExplorers?: {
|
|
4
|
+
[key: string]: {
|
|
5
|
+
name: string;
|
|
6
|
+
url: string;
|
|
7
|
+
apiUrl?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
default: {
|
|
10
|
+
name: string;
|
|
11
|
+
url: string;
|
|
12
|
+
apiUrl?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
} | undefined;
|
|
15
|
+
contracts?: {
|
|
16
|
+
[x: string]: import('viem').ChainContract | {
|
|
17
|
+
[sourceId: number]: import('viem').ChainContract | undefined;
|
|
18
|
+
} | undefined;
|
|
19
|
+
ensRegistry?: import('viem').ChainContract | undefined;
|
|
20
|
+
ensUniversalResolver?: import('viem').ChainContract | undefined;
|
|
21
|
+
multicall3?: import('viem').ChainContract | undefined;
|
|
22
|
+
universalSignatureVerifier?: import('viem').ChainContract | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
id: 560048;
|
|
25
|
+
name: "Hoodi";
|
|
26
|
+
nativeCurrency: {
|
|
27
|
+
readonly name: "Hoodi Ether";
|
|
28
|
+
readonly symbol: "ETH";
|
|
29
|
+
readonly decimals: 18;
|
|
30
|
+
};
|
|
31
|
+
rpcUrls: {
|
|
32
|
+
readonly default: {
|
|
33
|
+
readonly http: readonly ["https://rpc.hoodi.ethpandaops.io"];
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
sourceId?: number | undefined;
|
|
37
|
+
testnet: true;
|
|
38
|
+
custom?: Record<string, unknown> | undefined;
|
|
39
|
+
fees?: import('viem').ChainFees<undefined> | undefined;
|
|
40
|
+
formatters?: undefined;
|
|
41
|
+
serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
|
|
42
|
+
};
|
|
2
43
|
export declare const chains: {
|
|
3
44
|
readonly mainnet: {
|
|
4
45
|
blockExplorers: {
|
|
@@ -81,8 +122,49 @@ export declare const chains: {
|
|
|
81
122
|
formatters?: undefined;
|
|
82
123
|
serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable<bigint, number>> | undefined;
|
|
83
124
|
};
|
|
125
|
+
readonly hoodi: {
|
|
126
|
+
blockExplorers?: {
|
|
127
|
+
[key: string]: {
|
|
128
|
+
name: string;
|
|
129
|
+
url: string;
|
|
130
|
+
apiUrl?: string | undefined;
|
|
131
|
+
};
|
|
132
|
+
default: {
|
|
133
|
+
name: string;
|
|
134
|
+
url: string;
|
|
135
|
+
apiUrl?: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
} | undefined;
|
|
138
|
+
contracts?: {
|
|
139
|
+
[x: string]: import('viem').ChainContract | {
|
|
140
|
+
[sourceId: number]: import('viem').ChainContract | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
ensRegistry?: import('viem').ChainContract | undefined;
|
|
143
|
+
ensUniversalResolver?: import('viem').ChainContract | undefined;
|
|
144
|
+
multicall3?: import('viem').ChainContract | undefined;
|
|
145
|
+
universalSignatureVerifier?: import('viem').ChainContract | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
id: 560048;
|
|
148
|
+
name: "Hoodi";
|
|
149
|
+
nativeCurrency: {
|
|
150
|
+
readonly name: "Hoodi Ether";
|
|
151
|
+
readonly symbol: "ETH";
|
|
152
|
+
readonly decimals: 18;
|
|
153
|
+
};
|
|
154
|
+
rpcUrls: {
|
|
155
|
+
readonly default: {
|
|
156
|
+
readonly http: readonly ["https://rpc.hoodi.ethpandaops.io"];
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
sourceId?: number | undefined;
|
|
160
|
+
testnet: true;
|
|
161
|
+
custom?: Record<string, unknown> | undefined;
|
|
162
|
+
fees?: import('viem').ChainFees<undefined> | undefined;
|
|
163
|
+
formatters?: undefined;
|
|
164
|
+
serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
|
|
165
|
+
};
|
|
84
166
|
};
|
|
85
|
-
export declare const chainIds: (1 | 17000)[];
|
|
167
|
+
export declare const chainIds: (1 | 560048 | 17000)[];
|
|
86
168
|
export type SupportedChainsIDs = (typeof chainIds)[number];
|
|
87
169
|
export declare const graph_endpoints: Record<SupportedChainsIDs, string>;
|
|
88
170
|
export declare const rest_endpoints: Record<SupportedChainsIDs, string>;
|
package/dist/libs/api/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const createQueries: (graphqlClient: GraphQLClient) => {
|
|
|
3
3
|
getOwnerNonce: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
|
|
4
4
|
owner: string;
|
|
5
5
|
block?: import('../../graphql/graphql').InputMaybe<number> | undefined;
|
|
6
|
-
}>) => Promise<string
|
|
6
|
+
}>) => Promise<string>>;
|
|
7
7
|
getClusterSnapshot: import('../../types/methods').RemoveConfigArg<(client: GraphQLClient, args: import('../../graphql/graphql').Exact<{
|
|
8
8
|
id: string;
|
|
9
9
|
}>) => Promise<{
|