Struct abstract_api::state::ApiState
source · pub struct ApiState {
pub version_control: Addr,
pub ans_host: AnsHost,
}
Expand description
The BaseState contains the main addresses needed for sending and verifying messages Every DApp should use the provided ans_host contract for token/contract address resolution.
Fields§
§version_control: Addr
Used to verify requests
ans_host: AnsHost
AnsHost contract struct (address)
Trait Implementations§
source§impl<'de> Deserialize<'de> for ApiState
impl<'de> Deserialize<'de> for ApiState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for ApiState
impl JsonSchema for ApiState
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read more