Trait AuthAdapter

Source
pub trait AuthAdapter {
    // Required methods
    fn authorize(
        &self,
        action: ActionKind,
        caller: Address,
        proof: Option<&[u8]>,
    ) -> AuthResult<()>;
    fn is_paused(&self) -> bool;
}
Expand description

Pluggable authorization adapter interface.

Curator vaults use RBAC checks while strategy vaults use Merkle proof verification against a globally updatable root.

Required Methods§

Source

fn authorize( &self, action: ActionKind, caller: Address, proof: Option<&[u8]>, ) -> AuthResult<()>

Authorize an action for a caller.

Source

fn is_paused(&self) -> bool

Check if the vault is currently paused.

Implementors§