polytope-labs / hyperbridge

Hyperbridge is a hyperscalable coprocessor for verifiable, cross-chain interoperability
https://docs.hyperbridge.network/
Apache License 2.0
107 stars 33 forks source link

EvmHost: Introduce FrozenStatus #268

Closed seunlanlege closed 1 month ago

seunlanlege commented 1 month ago

Changes the frozen state from a simple boolean flag to an enum to allow for more granular control over specific functionality that can be frozen

// Various frozen states of the IIsmpHost
enum FrozenStatus {
    // Host is operating normally
    None,
    // Host is currently disallowing incoming datagrams
    Incoming,
    // Host is currently disallowing outgoing messages
    Outgoing,
    // All actions have been frozen
    All
}