Skip to main content
Version: 5.0

Queries

#[pausable_query]
pub enum QueryMsg {
/// The contract's configurations; returns [`Config`]
Config {},

/// The contract's current stats; returns [`StatsResponse`]
Stats {},
}

Config

Returns current reserve contract configuration. Returns an object with following schema:

pub struct Config {
/// Distribution rate (0-1) which goes to distribution contract
pub distribution_rate: Decimal,

/// Address of distribution contract, which will receive funds defined but distribution_rate %
pub distribution_contract: Addr,

/// Address of treasury contract, which will receive funds defined by 100-distribution_rate %
pub treasury_contract: Addr,

/// Minimum period between distribution calls
pub min_period: u64,

/// Denom of the main coin
pub denom: String,

/// Address of the Neutron DAO contract
pub main_dao_address: Addr,

/// Address of the security DAO contract
pub security_dao_address: Addr,

// Denominator used in the vesting release function
pub vesting_denominator: u128,
}

Stats

Returns contract coins distribution stats. Returns an object with following schema:

pub struct StatsResponse {
/// Amount of coins distributed since contract instantiation
pub total_distributed: Uint128,

/// Amount of coins reserved since contract instantiation
pub total_reserved: Uint128,

/// Total amount of burned coins processed by reserve contract
pub total_processed_burned_coins: Uint128,
}

PauseInfo

Returns pause state info. Returns an object with following schema:

pub enum PauseInfoResponse {
/// Contract is in paused state until `until_height` chain height
Paused { until_height: u64 },

/// Contract is not paused
Unpaused {},
}