Struct andromeda_std::os::aos_querier::AOSQuerier
source · pub struct AOSQuerier();
Implementations§
source§impl AOSQuerier
impl AOSQuerier
pub fn get_map_storage_key( namespace: &str, key_bytes: &[&[u8]] ) -> Result<String, ContractError>
pub fn query_storage<T>( querier: &QuerierWrapper<'_>, addr: &Addr, key: &str ) -> Result<Option<T>, ContractError>where T: DeserializeOwned,
pub fn ado_type_getter( querier: &QuerierWrapper<'_>, adodb_addr: &Addr, code_id: u64 ) -> Result<Option<String>, ContractError>
pub fn ado_publisher_getter( querier: &QuerierWrapper<'_>, adodb_addr: &Addr, ado_type: &str ) -> Result<String, ContractError>
sourcepub fn verify_code_id(
querier: &QuerierWrapper<'_>,
adodb_addr: &Addr,
code_id: u64
) -> Result<(), ContractError>
pub fn verify_code_id( querier: &QuerierWrapper<'_>, adodb_addr: &Addr, code_id: u64 ) -> Result<(), ContractError>
Checks if the code id exists in the ADODB by querying its raw storage for the code id’s ado type
pub fn code_id_getter( querier: &QuerierWrapper<'_>, adodb_addr: &Addr, ado_type: &str ) -> Result<u64, ContractError>
sourcepub fn vfs_address_getter(
querier: &QuerierWrapper<'_>,
kernel_addr: &Addr
) -> Result<Addr, ContractError>
pub fn vfs_address_getter( querier: &QuerierWrapper<'_>, kernel_addr: &Addr ) -> Result<Addr, ContractError>
Queries the kernel’s raw storage for the VFS’s address
sourcepub fn adodb_address_getter(
querier: &QuerierWrapper<'_>,
kernel_addr: &Addr
) -> Result<Addr, ContractError>
pub fn adodb_address_getter( querier: &QuerierWrapper<'_>, kernel_addr: &Addr ) -> Result<Addr, ContractError>
Queries the kernel’s raw storage for the ADODB’s address
sourcepub fn kernel_address_getter(
querier: &QuerierWrapper<'_>,
kernel_addr: &Addr,
key: &str
) -> Result<Addr, ContractError>
pub fn kernel_address_getter( querier: &QuerierWrapper<'_>, kernel_addr: &Addr, key: &str ) -> Result<Addr, ContractError>
Queries the kernel’s raw storage for the VFS’s address
pub fn action_fee_getter( querier: &QuerierWrapper<'_>, adodb_addr: &Addr, ado_type: &str, action: &str ) -> Result<Option<ActionFee>, ContractError>
Trait Implementations§
source§impl Clone for AOSQuerier
impl Clone for AOSQuerier
source§fn clone(&self) -> AOSQuerier
fn clone(&self) -> AOSQuerier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AOSQuerier
impl Debug for AOSQuerier
source§impl<'de> Deserialize<'de> for AOSQuerier
impl<'de> Deserialize<'de> for AOSQuerier
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for AOSQuerier
impl JsonSchema for AOSQuerier
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<AOSQuerier> for AOSQuerier
impl PartialEq<AOSQuerier> for AOSQuerier
source§fn eq(&self, other: &AOSQuerier) -> bool
fn eq(&self, other: &AOSQuerier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AOSQuerier
impl Serialize for AOSQuerier
impl StructuralPartialEq for AOSQuerier
Auto Trait Implementations§
impl RefUnwindSafe for AOSQuerier
impl Send for AOSQuerier
impl Sync for AOSQuerier
impl Unpin for AOSQuerier
impl UnwindSafe for AOSQuerier
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