Struct scrypto::engine::scrypto_env::ScryptoVmV1Api
source · pub struct ScryptoVmV1Api;
Implementations§
source§impl ScryptoVmV1Api
impl ScryptoVmV1Api
pub fn blueprint_call( package_address: PackageAddress, blueprint_name: &str, function_name: &str, args: Vec<u8> ) -> Vec<u8> ⓘ
pub fn object_new( blueprint_name: &str, object_states: IndexMap<FieldIndex, FieldValue> ) -> NodeId
pub fn object_globalize( object_id: NodeId, modules: IndexMap<AttachedModuleId, NodeId>, address_reservation: Option<GlobalAddressReservation> ) -> GlobalAddress
pub fn object_instance_of(node_id: &NodeId, blueprint_id: &BlueprintId) -> bool
pub fn object_get_blueprint_id(node_id: &NodeId) -> BlueprintId
pub fn object_get_outer_object(node_id: &NodeId) -> GlobalAddress
pub fn object_call( receiver: &NodeId, method_name: &str, args: Vec<u8> ) -> Vec<u8> ⓘ
pub fn object_call_module( receiver: &NodeId, module_id: AttachedModuleId, method_name: &str, args: Vec<u8> ) -> Vec<u8> ⓘ
pub fn object_call_direct( receiver: &NodeId, method_name: &str, args: Vec<u8> ) -> Vec<u8> ⓘ
pub fn kv_store_new<S: ScryptoEncode>(schema: S) -> NodeId
pub fn kv_store_open_entry( node_id: &NodeId, key: &Vec<u8>, flags: LockFlags ) -> KeyValueEntryHandle
pub fn kv_store_remove_entry(node_id: &NodeId, key: &Vec<u8>) -> Vec<u8> ⓘ
pub fn actor_open_field( object_handle: u32, field: u8, flags: LockFlags ) -> SubstateHandle
pub fn actor_get_object_id(actor_ref_handle: ActorRefHandle) -> NodeId
pub fn actor_get_package_address() -> PackageAddress
pub fn actor_get_blueprint_name() -> String
pub fn actor_emit_event( event_name: String, event_data: Vec<u8>, flags: EventFlags )
pub fn field_entry_read(lock_handle: SubstateHandle) -> Vec<u8> ⓘ
pub fn field_entry_write(lock_handle: SubstateHandle, buffer: Vec<u8>)
pub fn field_entry_close(lock_handle: SubstateHandle)
pub fn kv_entry_read(handle: KeyValueEntryHandle) -> Vec<u8> ⓘ
pub fn kv_entry_write(handle: KeyValueEntryHandle, buffer: Vec<u8>)
pub fn kv_entry_remove(handle: KeyValueEntryHandle) -> Vec<u8> ⓘ
pub fn kv_entry_close(handle: KeyValueEntryHandle)
pub fn costing_get_execution_cost_unit_limit() -> u32
pub fn costing_get_execution_cost_unit_price() -> Decimal
pub fn costing_get_finalization_cost_unit_limit() -> u32
pub fn costing_get_finalization_cost_unit_price() -> Decimal
pub fn costing_get_usd_price() -> Decimal
pub fn costing_get_tip_percentage() -> u32
pub fn costing_get_fee_balance() -> Decimal
pub fn sys_bech32_encode_address(address: GlobalAddress) -> String
pub fn sys_log(level: Level, message: String)
pub fn sys_get_transaction_hash() -> Hash
pub fn sys_generate_ruid() -> [u8; 32]
pub fn sys_panic(message: String)
Auto Trait Implementations§
impl RefUnwindSafe for ScryptoVmV1Api
impl Send for ScryptoVmV1Api
impl Sync for ScryptoVmV1Api
impl Unpin for ScryptoVmV1Api
impl UnwindSafe for ScryptoVmV1Api
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more