Skip to content

Commit

Permalink
Add mint hook queries
Browse files Browse the repository at this point in the history
  • Loading branch information
shanev committed Dec 4, 2023
1 parent 599bec7 commit 2d34d08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contracts/minters/vending-minter/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,8 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
QueryMsg::MintableNumTokens {} => to_binary(&query_mintable_num_tokens(deps)?),
QueryMsg::MintPrice {} => to_binary(&query_mint_price(deps)?),
QueryMsg::MintCount { address } => to_binary(&query_mint_count(deps, address)?),
QueryMsg::PreMintHooks {} => to_binary(&sg_mint_hooks::pre::query_premint_hooks(deps)?),
QueryMsg::PostMintHooks {} => to_binary(&sg_mint_hooks::post::query_postmint_hooks(deps)?),
}
}

Expand Down
3 changes: 2 additions & 1 deletion contracts/minters/vending-minter/src/msg.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use cosmwasm_schema::cw_serde;
use cosmwasm_std::{Coin, Timestamp};
use sg_mint_hooks::sg_mint_hooks_execute;
use sg_mint_hooks::{sg_mint_hooks_execute, sg_mint_hooks_query};
use vending_factory::{msg::VendingMinterCreateMsg, state::VendingMinterParams};

#[cw_serde]
Expand Down Expand Up @@ -41,6 +41,7 @@ pub enum ExecuteMsg {
RemoveDiscountPrice {},
}

#[sg_mint_hooks_query]
#[cw_serde]
pub enum QueryMsg {
Config {},
Expand Down

0 comments on commit 2d34d08

Please sign in to comment.