Skip to content

Commit 0b76550

Browse files
chore: remove platform specific dependencies from package.json (#56)
* chore: remove platform specific dependencies from package.json * chore: bump version to 0.1.2 * chore: update dependencies * ci: update artifacts [skip ci]
1 parent 498b261 commit 0b76550

File tree

13 files changed

+3248
-3267
lines changed

13 files changed

+3248
-3267
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install pnpm
2121
uses: pnpm/action-setup@v3
2222
with:
23-
version: latest
23+
version: 10.20.0
2424

2525
- name: Get pnpm store directory
2626
shell: bash
@@ -69,7 +69,7 @@ jobs:
6969
- name: Install pnpm
7070
uses: pnpm/action-setup@v3
7171
with:
72-
version: latest
72+
version: 10.20.0
7373

7474
- name: Get pnpm store directory
7575
shell: bash

dist/api/subgraph/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ export declare const getOperator: (client: GraphQLClient, args: GetOperatorQuery
3232
id: string;
3333
validatorCount: string;
3434
isPrivate: boolean;
35-
whitelistedContract: import('abitype').Address;
35+
whitelistedContract: import('viem').Address;
3636
} | null>;
3737
export declare const getOperators: (client: GraphQLClient, args: GetOperatorsQueryVariables) => Promise<{
3838
publicKey: string;
3939
whitelisted: `0x${string}`[];
4040
id: string;
4141
validatorCount: string;
4242
isPrivate: boolean;
43-
whitelistedContract: import('abitype').Address;
43+
whitelistedContract: import('viem').Address;
4444
}[]>;
4545
export declare const getValidators: (client: GraphQLClient, args: GetValidatorsQueryVariables) => Promise<{
46-
id: import('abitype').Address;
46+
id: import('viem').Address;
4747
}[]>;
4848
export declare const getValidator: (client: GraphQLClient, args: GetValidatorQueryVariables) => Promise<{
49-
id: import('abitype').Address;
49+
id: import('viem').Address;
5050
} | null | undefined>;
5151
export declare const getClusterBalance: (client: GraphQLClient, args: GetClusterBalanceQueryVariables) => Promise<import('../../graphql/graphql').GetClusterBalanceQuery>;
5252
export declare const getQueries: (client: GraphQLClient) => {

dist/config/chains.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export declare const hoodi: {
2020
ensRegistry?: import('viem').ChainContract | undefined;
2121
ensUniversalResolver?: import('viem').ChainContract | undefined;
2222
multicall3?: import('viem').ChainContract | undefined;
23-
universalSignatureVerifier?: import('viem').ChainContract | undefined;
23+
erc6492Verifier?: import('viem').ChainContract | undefined;
2424
} | undefined;
2525
ensTlds?: readonly string[] | undefined;
2626
id: 560048;
@@ -30,6 +30,7 @@ export declare const hoodi: {
3030
readonly symbol: "ETH";
3131
readonly decimals: 18;
3232
};
33+
experimental_preconfirmationTime?: number | undefined | undefined;
3334
rpcUrls: {
3435
readonly default: {
3536
readonly http: readonly ["https://rpc.hoodi.ethpandaops.io"];
@@ -51,14 +52,11 @@ export declare const chains: {
5152
readonly apiUrl: "https://api.etherscan.io/api";
5253
};
5354
};
54-
blockTime?: number | undefined | undefined;
55+
blockTime: 12000;
5556
contracts: {
56-
readonly ensRegistry: {
57-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
58-
};
5957
readonly ensUniversalResolver: {
60-
readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
61-
readonly blockCreated: 19258213;
58+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
59+
readonly blockCreated: 23085558;
6260
};
6361
readonly multicall3: {
6462
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
@@ -73,6 +71,7 @@ export declare const chains: {
7371
readonly symbol: "ETH";
7472
readonly decimals: 18;
7573
};
74+
experimental_preconfirmationTime?: number | undefined | undefined;
7675
rpcUrls: {
7776
readonly default: {
7877
readonly http: readonly ["https://eth.merkle.io"];
@@ -106,7 +105,7 @@ export declare const chains: {
106105
ensRegistry?: import('viem').ChainContract | undefined;
107106
ensUniversalResolver?: import('viem').ChainContract | undefined;
108107
multicall3?: import('viem').ChainContract | undefined;
109-
universalSignatureVerifier?: import('viem').ChainContract | undefined;
108+
erc6492Verifier?: import('viem').ChainContract | undefined;
110109
} | undefined;
111110
ensTlds?: readonly string[] | undefined;
112111
id: 560048;
@@ -116,6 +115,7 @@ export declare const chains: {
116115
readonly symbol: "ETH";
117116
readonly decimals: 18;
118117
};
118+
experimental_preconfirmationTime?: number | undefined | undefined;
119119
rpcUrls: {
120120
readonly default: {
121121
readonly http: readonly ["https://rpc.hoodi.ethpandaops.io"];

dist/globals-BZbDG7rK.mjs renamed to dist/globals-CDOcDUnk.mjs

Lines changed: 33 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -55,42 +55,11 @@ function defineChain(chain) {
5555
...chain
5656
};
5757
}
58-
const holesky = /* @__PURE__ */ defineChain({
59-
id: 17e3,
60-
name: "Holesky",
61-
nativeCurrency: { name: "Holesky Ether", symbol: "ETH", decimals: 18 },
62-
rpcUrls: {
63-
default: {
64-
http: ["https://ethereum-holesky-rpc.publicnode.com"]
65-
}
66-
},
67-
blockExplorers: {
68-
default: {
69-
name: "Etherscan",
70-
url: "https://holesky.etherscan.io",
71-
apiUrl: "https://api-holesky.etherscan.io/api"
72-
}
73-
},
74-
contracts: {
75-
multicall3: {
76-
address: "0xca11bde05977b3631167028862be2a173976ca11",
77-
blockCreated: 77
78-
},
79-
ensRegistry: {
80-
address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
81-
blockCreated: 801613
82-
},
83-
ensUniversalResolver: {
84-
address: "0xa6AC935D4971E3CD133b950aE053bECD16fE7f3b",
85-
blockCreated: 973484
86-
}
87-
},
88-
testnet: true
89-
});
9058
const mainnet = /* @__PURE__ */ defineChain({
9159
id: 1,
9260
name: "Ethereum",
9361
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
62+
blockTime: 12e3,
9463
rpcUrls: {
9564
default: {
9665
http: ["https://eth.merkle.io"]
@@ -104,12 +73,9 @@ const mainnet = /* @__PURE__ */ defineChain({
10473
}
10574
},
10675
contracts: {
107-
ensRegistry: {
108-
address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
109-
},
11076
ensUniversalResolver: {
111-
address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67",
112-
blockCreated: 19258213
77+
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee",
78+
blockCreated: 23085558
11379
},
11480
multicall3: {
11581
address: "0xca11bde05977b3631167028862be2a173976ca11",
@@ -134,19 +100,20 @@ const hoodi = defineChain$1({
134100
});
135101
const chains = {
136102
mainnet,
137-
holesky,
138103
hoodi
139104
};
140105
const chainIds = Object.values(chains).map((chain) => chain.id);
141106
const networks = Object.values(chains).map((chain) => chain.name);
142107
const graph_endpoints = {
143108
[mainnet.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-ethereum/version/latest",
144-
[holesky.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-holesky/version/latest",
145-
[hoodi.id]: "https://graph-node-hoodi.stage.ops.ssvlabsinternal.com/subgraphs/name/ssv-bapps-hoodi"
109+
[hoodi.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-hoodi/version/latest"
110+
};
111+
const paid_graph_endpoints = {
112+
[mainnet.id]: "https://gateway.thegraph.com/api/subgraphs/id/7V45fKPugp9psQjgrGsfif98gWzCyC6ChN7CW98VyQnr",
113+
[hoodi.id]: "https://gateway.thegraph.com/api/subgraphs/id/F4AU5vPCuKfHvnLsusibxJEiTN7ELCoYTvnzg3YHGYbh"
146114
};
147115
const rest_endpoints = {
148116
[mainnet.id]: "https://api.ssv.network/api/v4/mainnet",
149-
[holesky.id]: "https://api.ssv.network/api/v4/holesky",
150117
[hoodi.id]: "https://api.ssv.network/api/v4/hoodi"
151118
};
152119
const contracts = {
@@ -155,11 +122,6 @@ const contracts = {
155122
getter: "0xafE830B6Ee262ba11cce5F32fDCd760FFE6a66e4",
156123
token: "0x9D65fF81a3c488d585bBfb0Bfe3c7707c7917f54"
157124
},
158-
[holesky.id]: {
159-
setter: "0x38A4794cCEd47d3baf7370CcC43B560D3a1beEFA",
160-
getter: "0x352A18AEe90cdcd825d1E37d9939dCA86C00e281",
161-
token: "0xad45A78180961079BFaeEe349704F411dfF947C6"
162-
},
163125
[hoodi.id]: {
164126
setter: "0x58410Bef803ECd7E63B23664C586A6DB72DAf59c",
165127
getter: "0x5AdDb3f1529C5ec70D77400499eE4bbF328368fe",
@@ -348,7 +310,7 @@ const configArgsSchema = z.object({
348310
});
349311
return false;
350312
}
351-
if (!chainIds.includes(client.chain?.id)) {
313+
if (![...chainIds].includes(client.chain?.id)) {
352314
ctx.addIssue({
353315
code: z.ZodIssueCode.custom,
354316
message: `Public client chain must be one of [${networks.join(", ")}]`
@@ -373,7 +335,7 @@ const configArgsSchema = z.object({
373335
});
374336
return false;
375337
}
376-
if (!chainIds.includes(client.chain?.id)) {
338+
if (![...chainIds].includes(client.chain?.id)) {
377339
ctx.addIssue({
378340
code: z.ZodIssueCode.custom,
379341
message: `Wallet client chain must be one of [${networks.join(", ")}]`
@@ -382,16 +344,30 @@ const configArgsSchema = z.object({
382344
}
383345
return true;
384346
}),
385-
_: z.object({
386-
graphUrl: z.string().url().optional(),
387-
restUrl: z.string().url().optional(),
388-
contractAddresses: z.object({
347+
extendedConfig: z.object({
348+
subgraph: z.object({
349+
endpoint: z.string().url().optional(),
350+
apiKey: z.string().optional()
351+
}).optional(),
352+
rest: z.object({
353+
endpoint: z.string().url().optional()
354+
}).optional(),
355+
contracts: z.object({
389356
setter: z.string().optional(),
390357
getter: z.string().optional(),
391358
token: z.string().optional()
392359
}).optional()
393360
}).optional()
394-
});
361+
}).refine(
362+
(val) => {
363+
const publicClient = val.publicClient;
364+
const walletClient = val.walletClient;
365+
return publicClient?.chain?.id === walletClient?.chain?.id;
366+
},
367+
{
368+
message: "Public and wallet client chains must be the same"
369+
}
370+
);
395371
const globals = {
396372
MAX_WEI_AMOUNT: 115792089237316195423570985008687907853269984665640564039457584007913129639935n,
397373
CLUSTER_SIZES: {
@@ -432,16 +408,17 @@ export {
432408
decodeOperatorPublicKey as E,
433409
tryCatch as F,
434410
configArgsSchema as G,
435-
chainIds as H,
436-
contracts as I,
411+
contracts as H,
412+
paid_graph_endpoints as I,
437413
graph_endpoints as J,
438414
KeysharesValidationErrors as K,
439415
rest_endpoints as L,
440416
registerValidatorsByClusterSizeLimits as M,
441417
globals as N,
442418
hoodi as O,
443419
chains as P,
444-
networks as Q,
420+
chainIds as Q,
421+
networks as R,
445422
_percentageFormatter as _,
446423
bigintMin as a,
447424
bigintMax as b,

0 commit comments

Comments
 (0)