Trait oasis_contract_sdk::env::Env

source ·
pub trait Env {
    // Required methods
    fn query<Q: Into<QueryRequest>>(&self, query: Q) -> QueryResponse;
    fn address_for_instance(&self, instance_id: InstanceId) -> Address;
    fn debug_print(&self, msg: &str);
}
Expand description

Environment query trait.

Required Methods§

source

fn query<Q: Into<QueryRequest>>(&self, query: Q) -> QueryResponse

Perform an environment query.

source

fn address_for_instance(&self, instance_id: InstanceId) -> Address

Returns an address for the contract instance id.

source

fn debug_print(&self, msg: &str)

Prints a message to the console. Useful when debugging.

Object Safety§

This trait is not object safe.

Implementors§