Trait AuthCallee

Source
pub trait AuthCallee {
    // Required method
    fn on_auth(
        &mut self,
        signer_id: AccountId,
        msg: String,
    ) -> PromiseOrValue<()>;
}

Required Methods§

Source

fn on_auth(&mut self, signer_id: AccountId, msg: String) -> PromiseOrValue<()>

Perform some actions on behalf of signer_id.

Verification of signer_id is done by the predecessor_id, so the implementation MUST whitelist allowed callers.

NOTE: implementations are recommended to be #[payable]

Implementors§