diff --git a/contracts/minters/vending-minter/src/contract.rs b/contracts/minters/vending-minter/src/contract.rs index c3827b8a0..e29017f48 100644 --- a/contracts/minters/vending-minter/src/contract.rs +++ b/contracts/minters/vending-minter/src/contract.rs @@ -1120,6 +1120,8 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult { 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)?), } } diff --git a/contracts/minters/vending-minter/src/msg.rs b/contracts/minters/vending-minter/src/msg.rs index 958e8dc64..99382f561 100644 --- a/contracts/minters/vending-minter/src/msg.rs +++ b/contracts/minters/vending-minter/src/msg.rs @@ -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] @@ -41,6 +41,7 @@ pub enum ExecuteMsg { RemoveDiscountPrice {}, } +#[sg_mint_hooks_query] #[cw_serde] pub enum QueryMsg { Config {},