radix_engine_interface/api/
transaction_runtime_api.rs1use crate::internal_prelude::*;
2use crate::types::Level;
3use radix_common::crypto::Hash;
4use radix_common::types::GlobalAddress;
5
6pub trait SystemTransactionRuntimeApi<E> {
7 fn bech32_encode_address(&mut self, address: GlobalAddress) -> Result<String, E>;
9
10 fn get_transaction_hash(&mut self) -> Result<Hash, E>;
12
13 fn generate_ruid(&mut self) -> Result<[u8; 32], E>;
15
16 fn emit_log(&mut self, level: Level, message: String) -> Result<(), E>;
18
19 fn panic(&mut self, message: String) -> Result<(), E>;
21}