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
fn get_caller(&self) -> AccountHash
fn get_caller(&self) -> AccountHash
This method should return the caller of the current context.
fn get_immediate_caller(&self) -> Option<&CallStackElement>
fn get_immediate_caller(&self) -> Option<&CallStackElement>
This method should return the immediate caller of the current context.
This method should handle storing given Key
under name
.