babylonchain / babylon-finality-gadget

3 stars 3 forks source link

feat: add CW queries and implement killswitch #23

Closed parketh closed 4 months ago

parketh commented 4 months ago

Summary

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.

See also https://github.com/babylonchain/babylon-contract/issues/181 which contains corresponding updates to CW contract to expose new query methods

Test plan

make run
make test
bap2pecs commented 4 months ago

let's add a "test plan" section so I know we have run the tests e.g. make run and make test