pub trait SystemTransactionRuntimeApi<E> {
// Required methods
fn bech32_encode_address(
&mut self,
address: GlobalAddress,
) -> Result<String, E>;
fn get_transaction_hash(&mut self) -> Result<Hash, E>;
fn generate_ruid(&mut self) -> Result<[u8; 32], E>;
fn emit_log(&mut self, level: Level, message: String) -> Result<(), E>;
fn panic(&mut self, message: String) -> Result<(), E>;
}
Required Methods§
Sourcefn bech32_encode_address(&mut self, address: GlobalAddress) -> Result<String, E>
fn bech32_encode_address(&mut self, address: GlobalAddress) -> Result<String, E>
Encode an address into Bech32. The HRP part is dependent on the network which is running.
Sourcefn get_transaction_hash(&mut self) -> Result<Hash, E>
fn get_transaction_hash(&mut self) -> Result<Hash, E>
Retrieve the hash of the current transaction which is running.
Sourcefn generate_ruid(&mut self) -> Result<[u8; 32], E>
fn generate_ruid(&mut self) -> Result<[u8; 32], E>
Generate a unique id