@@ -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- } ) ;
9058const 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} ) ;
135101const chains = {
136102 mainnet,
137- holesky,
138103 hoodi
139104} ;
140105const chainIds = Object . values ( chains ) . map ( ( chain ) => chain . id ) ;
141106const networks = Object . values ( chains ) . map ( ( chain ) => chain . name ) ;
142107const 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} ;
147115const 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} ;
152119const 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+ ) ;
395371const 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