This PR adds support for a killswitch feature. It closes #21.
Description
When calling QueryIsBlockBabylonFinalized, we first query the is_disabled state variable in the CW contract and, if true, disable the EOTS verification step by returning true.
This effectively builds in a killswitch that allows the OP derivation pipeline to pass through.
Summary
This PR adds support for a killswitch feature. It closes #21.
Description
When calling
QueryIsBlockBabylonFinalized
, we first query theis_disabled
state variable in the CW contract and, if true, disable the EOTS verification step by returning true.This effectively builds in a killswitch that allows the OP derivation pipeline to pass through.
See also https://github.com/babylonchain/babylon-contract/issues/181 which contains corresponding updates to CW contract to expose new query methods
Test plan