Abstract Standalone
This crate contains a StandaloneContract struct that can be used to interact with the abstract on-chain infrastructure.S
Usage
First, import the crate in your Cargo.toml.
[]
= "<latest version>"
You can then define the contract's constant:
pub const CONTRACT_ID: &str = "my-namespace:my-contract";
pub const VERSION: &str = env!;
pub const MY_CONTRACT: MockStandaloneContract =
new;
Next, include the StandaloneInstantiateMsg struct in your contract's instantiate message. We'll need this data to instantiate the MY_CONTRACT state.
use StandaloneInstantiateMsg;
Then, use the StandaloneInstantiateMsg struct to instantiate the state.
Finally, you can use the MY_CONTRACT const to interact with the Abstract on-chain infrastructure through our APIs.