Trait casper_types::system::handle_payment::RuntimeProvider
source ·
[−]pub trait RuntimeProvider {
fn get_key(&self, name: &str) -> Option<Key>;
fn put_key(&mut self, name: &str, key: Key) -> Result<(), Error>;
fn remove_key(&mut self, name: &str) -> Result<(), Error>;
fn get_phase(&self) -> Phase;
fn get_block_time(&self) -> BlockTime;
fn get_caller(&self) -> AccountHash;
}
Expand description
Provider of runtime host functionality.
Required methods
fn get_block_time(&self) -> BlockTime
fn get_block_time(&self) -> BlockTime
Get current block time.
fn get_caller(&self) -> AccountHash
fn get_caller(&self) -> AccountHash
Get caller.