pub struct ClarityDatabase<'a> {
    pub store: RollbackWrapper<'a>,
    /* private fields */
}

Fields

store: RollbackWrapper<'a>

Implementations

used for adding the memory usage of define-constant variables.

Returns the current total liquid ustx

source

pub fn make_key_for_data_map_entry(
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key_value: &Value
) -> String

source

pub fn fetch_entry_unknown_descriptor(
    &mut self,
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key_value: &Value
) -> Result<Value>

source

pub fn fetch_entry(
    &mut self,
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key_value: &Value,
    map_descriptor: &DataMapMetadata
) -> Result<Value>

source

pub fn set_entry(
    &mut self,
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key: Value,
    value: Value,
    map_descriptor: &DataMapMetadata
) -> Result<Value>

source

pub fn set_entry_unknown_descriptor(
    &mut self,
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key: Value,
    value: Value
) -> Result<Value>

source

pub fn insert_entry_unknown_descriptor(
    &mut self,
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key: Value,
    value: Value
) -> Result<Value>

source

pub fn insert_entry(
    &mut self,
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key: Value,
    value: Value,
    map_descriptor: &DataMapMetadata
) -> Result<Value>

source

pub fn delete_entry(
    &mut self,
    contract_identifier: &QualifiedContractIdentifier,
    map_name: &str,
    key_value: &Value,
    map_descriptor: &DataMapMetadata
) -> Result<Value>

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more