Trait casper_types::system::mint::RuntimeProvider[][src]

pub trait RuntimeProvider {
    fn get_caller(&self) -> AccountHash;
fn get_immediate_caller(&self) -> Option<&CallStackElement>;
fn get_phase(&self) -> Phase;
fn put_key(&mut self, name: &str, key: Key) -> Result<(), Error>;
fn get_key(&self, name: &str) -> Option<Key>; }
Expand description

Provider of runtime host functionality.

Required methods

This method should return the caller of the current context.

This method should return the immediate caller of the current context.

Gets execution phase

This method should handle storing given Key under name.

This method should handle obtaining a given named Key under a name.

Implementors