pub struct ExtensionContract<Error: From<StdError> + From<ExtensionError> + 'static, CustomExecMsg: 'static = Empty, CustomInitMsg: 'static = Empty, CustomQueryMsg: 'static = Empty, Receive: 'static = Empty> {
    pub traders: Map<'static, Addr, HashSet<Addr>>,
    pub target_os: Option<Core>,
    /* private fields */
}
Expand description

The state variables for our ExtensionContract.

Fields§

§traders: Map<'static, Addr, HashSet<Addr>>§target_os: Option<Core>

Stores the extension version

Implementations§

Constructor

add dependencies to the contract

add IBC callback handler to contract

Trait Implementations§

Entry point for contract execution
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. Read more

Retrieve identifying information about the calling OS

Instantiate the extension

Where we dispatch the queries for the ExtensionContract These ExtensionQueryMsg declarations can be found in abstract_sdk::os::common_module::app_msg

Get the version control contract

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.