pub struct ApiContract<'a, T: Serialize + DeserializeOwned> {
    pub traders: Map<'a, Addr, HashSet<Addr>>,
    pub base_state: Item<'a, ApiState>,
    pub version: Item<'a, ContractVersion>,
    pub dependencies: &'static [&'static str],
    pub target_os: Option<Core>,
    /* private fields */
}
Expand description

The state variables for our ApiContract.

Fields

traders: Map<'a, Addr, HashSet<Addr>>base_state: Item<'a, ApiState>version: Item<'a, ContractVersion>

Stores the API version

dependencies: &'static [&'static str]target_os: Option<Core>

Implementations

The api-contract base implementation.

Takes request, sets destination and executes request handler This fn is the only way to get an ApiContract instance which ensures the destination address is set correctly.

Instantiate the API

Where we dispatch the queries for the ApiContract These ApiQueryMsg declarations can be found in abstract_os::common_module::add_on_msg

Constructor

Trait Implementations

Returns the “default value” for a type. Read more

Implement the dependency functions for an API contract

Load the Memory object
Resolve a query on the memory contract

Execute a set of CosmosMsgs on the proxy contract of an OS.

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.

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.