File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 21
21
"ethers" : " ^5.7.2" ,
22
22
"pino" : " ^8.19.0" ,
23
23
"viem" : " ^2.21.45" ,
24
+ "zksync-ethers" : " ^5.10.0" ,
24
25
"zod" : " ^3.21.2"
25
26
},
26
27
"devDependencies" : {
48
49
"ts-node" : " ^10.8.0" ,
49
50
"tsx" : " ^4.19.1" ,
50
51
"typescript" : " 5.3.3" ,
51
- "yaml" : " 2.4.5" ,
52
- "zksync-ethers" : " ^5.10.0"
52
+ "yaml" : " 2.4.5"
53
53
},
54
54
"type" : " module" ,
55
55
"exports" : {
Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ export {
211
211
moduleCanCertainlyVerify ,
212
212
isStaticDeploymentSupported ,
213
213
isIsmCompatible ,
214
+ isStaticIsm ,
214
215
} from './ism/utils.js' ;
215
216
export {
216
217
AgentChainMetadata ,
Original file line number Diff line number Diff line change @@ -537,6 +537,16 @@ export function collectValidators(
537
537
return new Set ( validators ) ;
538
538
}
539
539
540
+ /**
541
+ * Checks if the given ISM type requires static deployment
542
+ *
543
+ * @param {IsmType } ismType - The type of Interchain Security Module (ISM)
544
+ * @returns {boolean } True if the ISM type requires static deployment, false otherwise
545
+ */
546
+ export function isStaticIsm ( ismType : IsmType ) : boolean {
547
+ return STATIC_ISM_TYPES . includes ( ismType ) ;
548
+ }
549
+
540
550
/**
541
551
* Determines if static ISM deployment is supported on a given chain's technical stack
542
552
* @dev Currently, only ZkSync does not support static deployments
@@ -566,7 +576,7 @@ export function isIsmCompatible({
566
576
ismType : IsmType ;
567
577
} ) : boolean {
568
578
// Skip compatibility check for non-static ISMs as they're always supported
569
- if ( ! STATIC_ISM_TYPES . includes ( ismType ) ) return true ;
579
+ if ( ! isStaticIsm ( ismType ) ) return true ;
570
580
571
581
return isStaticDeploymentSupported ( chainTechnicalStack ) ;
572
582
}
You can’t perform that action at this time.
0 commit comments