abstract-sdk 0.22.2

Helpers for Abstract contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use cosmwasm_std::Deps;

use crate::features::ModuleIdentification;

/// Return the identifier for this api.
pub trait ApiIdentification {
    /// Get the api identifier.
    fn api_id() -> String;
}

pub trait AbstractApi<T: ModuleIdentification> {
    fn base(&self) -> &T;
    fn deps(&self) -> Deps;
}