Struct abstract_boot::DexApi
source · pub struct DexApi<Chain: BootEnvironment>(_);
Implementations§
Trait Implementations§
source§impl<Chain: BootEnvironment> ContractInstance<Chain> for DexApi<Chain>
impl<Chain: BootEnvironment> ContractInstance<Chain> for DexApi<Chain>
fn as_instance(&self) -> &Contract<Chain>
fn as_instance_mut(&mut self) -> &mut Contract<Chain>
fn address(&self) -> Result<Addr, BootError>
fn addr_str(&self) -> Result<String, BootError>
fn code_id(&self) -> Result<u64, BootError>
fn set_address(&self, address: &Addr)
fn set_code_id(&self, code_id: u64)
fn get_chain(&self) -> &Chain
source§impl<Chain: BootEnvironment> CwInterface for DexApi<Chain>
impl<Chain: BootEnvironment> CwInterface for DexApi<Chain>
type InstantiateMsg = InstantiateMsg<BaseInstantiateMsg, Empty>
type ExecuteMsg = ExecuteMsg<BaseExecuteMsg, ApiRequestMsg<DexExecuteMsg>, Empty>
type QueryMsg = QueryMsg<BaseQueryMsg, DexQueryMsg>
type MigrateMsg = Empty
Auto Trait Implementations§
impl<Chain> !RefUnwindSafe for DexApi<Chain>
impl<Chain> !Send for DexApi<Chain>
impl<Chain> !Sync for DexApi<Chain>
impl<Chain> Unpin for DexApi<Chain>where
Chain: Unpin,
impl<Chain> !UnwindSafe for DexApi<Chain>
Blanket Implementations§
source§impl<SupportedContract, Chain, T> BaseExecuteMsgFns<Chain, T> for SupportedContractwhere
Chain: BootEnvironment,
SupportedContract: BootExecute<Chain, ExecuteMsg = ExecuteMsg<BaseExecuteMsg, ApiRequestMsg<T>, Empty>>,
impl<SupportedContract, Chain, T> BaseExecuteMsgFns<Chain, T> for SupportedContractwhere
Chain: BootEnvironment,
SupportedContract: BootExecute<Chain, ExecuteMsg = ExecuteMsg<BaseExecuteMsg, ApiRequestMsg<T>, Empty>>,
source§impl<SupportedContract, Chain, AppMsg> BaseQueryMsgFns<Chain, AppMsg> for SupportedContractwhere
Chain: BootEnvironment,
SupportedContract: BootQuery<Chain, QueryMsg = QueryMsg<BaseQueryMsg, AppMsg>>,
impl<SupportedContract, Chain, AppMsg> BaseQueryMsgFns<Chain, AppMsg> for SupportedContractwhere
Chain: BootEnvironment,
SupportedContract: BootQuery<Chain, QueryMsg = QueryMsg<BaseQueryMsg, AppMsg>>,
source§impl<T, Chain> BootExecute<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
impl<T, Chain> BootExecute<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
type ExecuteMsg = <T as CwInterface>::ExecuteMsg
fn execute<'a>(
&self,
execute_msg: &'a <T as BootExecute<Chain>>::ExecuteMsg,
coins: Option<&[Coin]>
) -> Result<<Chain as TxHandler>::Response, BootError>
source§impl<T, Chain> BootInstantiate<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
impl<T, Chain> BootInstantiate<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
type InstantiateMsg = <T as CwInterface>::InstantiateMsg
fn instantiate(
&self,
instantiate_msg: &<T as BootInstantiate<Chain>>::InstantiateMsg,
admin: Option<&Addr>,
coins: Option<&[Coin]>
) -> Result<<Chain as TxHandler>::Response, BootError>
source§impl<T, Chain> BootMigrate<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
impl<T, Chain> BootMigrate<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
type MigrateMsg = <T as CwInterface>::MigrateMsg
fn migrate(
&self,
migrate_msg: &<T as BootMigrate<Chain>>::MigrateMsg,
new_code_id: u64
) -> Result<<Chain as TxHandler>::Response, BootError>
source§impl<T, Chain> BootQuery<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
impl<T, Chain> BootQuery<Chain> for Twhere
T: CwInterface + ContractInstance<Chain>,
Chain: BootEnvironment,
source§impl<T, Chain> BootUpload<Chain> for Twhere
T: ContractInstance<Chain>,
Chain: BootEnvironment,
impl<T, Chain> BootUpload<Chain> for Twhere
T: ContractInstance<Chain>,
Chain: BootEnvironment,
source§impl<T> CallAs for Twhere
T: BootExecute<Mock<MockState>> + ContractInstance<Mock<MockState>> + Clone,
impl<T> CallAs for Twhere
T: BootExecute<Mock<MockState>> + ContractInstance<Mock<MockState>> + Clone,
source§impl<SupportedContract, Chain> DexQueryMsgFns<Chain> for SupportedContractwhere
Chain: BootEnvironment,
SupportedContract: BootQuery<Chain, QueryMsg = QueryMsg<BaseQueryMsg, DexQueryMsg>>,
impl<SupportedContract, Chain> DexQueryMsgFns<Chain> for SupportedContractwhere
Chain: BootEnvironment,
SupportedContract: BootQuery<Chain, QueryMsg = QueryMsg<BaseQueryMsg, DexQueryMsg>>,
fn simulate_swap(
&self,
ask_asset: AssetEntry,
offer_asset: AnsAsset,
dex: Option<String>
) -> Result<SimulateSwapResponse, BootError>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request