fn query_config(deps: Deps) -> Result<ConfigResponse, ContractError> {
    let config: Config = config_read(deps.storage).load()?;
    Ok(ConfigResponse {
        owner: deps.api.addr_humanize(&config.owner)?.to_string(),
        whale_token: deps.api.addr_humanize(&config.whale_token)?.to_string(),
        quorum: config.quorum,
        threshold: config.threshold,
        voting_period: config.voting_period,
        timelock_period: config.timelock_period,
        expiration_period: config.expiration_period,
        proposal_deposit: config.proposal_deposit,
        snapshot_period: config.snapshot_period,
    })
}
/// query_config allows for the query of the currently set configuration values
/// which influence Polls such as the quorum needed and the minimum voting peroid before a poll can be ended
query_config allows for the query of the currently set configuration values
which influence Polls such as the quorum needed and the minimum voting peroid before a poll can be ended
query_config allows for the query of the currently set configuration values which influence Polls such as the quorum needed and the minimum voting peroid before a poll can be ended
fn query_config(deps: Deps) -> Result<ConfigResponse, ContractError> {
    let config: Config = config_read(deps.storage).load()?;
    Ok(ConfigResponse {
        owner: deps.api.addr_humanize(&config.owner)?.to_string(),
        whale_token: deps.api.addr_humanize(&config.whale_token)?.to_string(),
        quorum: config.quorum,
        threshold: config.threshold,
        voting_period: config.voting_period,
        timelock_period: config.timelock_period,
        expiration_period: config.expiration_period,
        proposal_deposit: config.proposal_deposit,
        snapshot_period: config.snapshot_period,
    })
}
fn query_config ( deps : Deps ) -> Result < ConfigResponse , ContractError > { let config : Config = config_read ( deps . storage ) . load ( ) ? ; Ok ( ConfigResponse { owner : deps . api . addr_humanize ( & config . owner ) ? . to_string ( ) , whale_token : deps . api . addr_humanize ( & config . whale_token ) ? . to_string ( ) , quorum : config . quorum , threshold : config . threshold , voting_period : config . voting_period , timelock_period : config . timelock_period , expiration_period : config . expiration_period , proposal_deposit : config . proposal_deposit , snapshot_period : config . snapshot_period , } ) }
query_config allows for the query of the currently set configuration values
which influence Polls such as the quorum needed and the minimum voting peroid before a poll can be ended
query_config allows for the query of the currently set configuration values which influence Polls such as the quorum needed and the minimum voting peroid before a poll can be ended
deps
Deps
deps
Deps