Module api

Source
Expand description

§Abstract Api Base

abstract_os::api implements shared functionality that’s useful for creating new Abstract apis.

§Description

An Abstract api contract is a contract that is allowed to perform actions on a proxy contract. It is not migratable and its functionality is shared between users, meaning that all users call the same contract address to perform operations on the OS. The api structure is well-suited for implementing standard interfaces to external services like dexes, lending platforms, etc.

Structs§

ApiConfigResponse
ApiRequestMsg
An api request. If proxy is None, then the sender must be an OS manager and the proxy address is extrapolated from the OS id.
BaseInstantiateMsg
Used by Abstract to instantiate the contract The contract is then registered on the version control contract using crate::version_control::ExecuteMsg::AddModules.
TradersResponse

Enums§

BaseExecuteMsg
Configuration message for the api
BaseQueryMsg
Query api message

Traits§

ApiExecuteMsg
Trait indicates that the type is used as an app message in the ExecuteMsg enum. Enables Into<ExecuteMsg> for BOOT fn-generation support.
ApiQueryMsg
Trait indicates that the type is used as an api message in the QueryMsg enum. Enables Into<QueryMsg> for BOOT fn-generation support.

Type Aliases§

ExecuteMsg
InstantiateMsg
QueryMsg