You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Validates that the ISM configuration is compatible with the chain's technical stack.
124
+
* Throws an error if an incompatible ISM type is configured.
125
+
*/
126
+
functionvalidateIsmCompatibility(
127
+
chain: ChainName,
128
+
config: CoreConfig,
129
+
context: WriteCommandContext,
130
+
){
131
+
const{technicalStack: chainTechnicalStack}=
132
+
context.multiProvider.getChainMetadata(chain);
133
+
134
+
if(typeofconfig.defaultIsm!=='string'){
135
+
assert(
136
+
isIsmCompatible({
137
+
chainTechnicalStack,
138
+
ismType: config.defaultIsm?.type,
139
+
}),
140
+
`Selected ISM of type ${config.defaultIsm?.type} is not compatible with the selected Chain Technical Stack of ${chainTechnicalStack} for chain ${chain}!`,
* Validates that the ISM configurations are compatible with each chain's technical stack.
185
+
* Throws an error if an incompatible ISM type is configured for a chain.
186
+
*/
187
+
functionvalidateIsmCompatibility(
188
+
warpRouteConfig: WarpRouteDeployConfig,
189
+
context: WriteCommandContext,
190
+
){
191
+
for(constchainofObject.keys(warpRouteConfig)){
192
+
constconfig=warpRouteConfig[chain];
193
+
const{technicalStack: chainTechnicalStack}=
194
+
context.multiProvider.getChainMetadata(chain);
195
+
196
+
if(
197
+
config.interchainSecurityModule&&
198
+
typeofconfig.interchainSecurityModule!=='string'
199
+
){
200
+
assert(
201
+
isIsmCompatible({
202
+
chainTechnicalStack,
203
+
ismType: config.interchainSecurityModule.type,
204
+
}),
205
+
`Selected ISM of type ${config.interchainSecurityModule.type} is not compatible with the selected Chain Technical Stack of ${chainTechnicalStack} for chain ${chain}!`,
0 commit comments