pub fn abstract_mock_querier(mock_api: MockApi) -> MockQuerier
Expand description
A mock querier that returns the following responses for the following RAW contract -> queries:
- ABSTRACT_ACCOUNT
- “admin” -> TEST_OWNER
- “modules:TEST_MODULE_ID” -> TEST_MODULE_ADDRESS
- “account_id” -> ABSTRACT_ACCOUNT_ID
- REGISTRY
- “account” -> { ABSTRACT_ACCOUNT }
Also it returns query responses for
cosmwasm_std::WasmQuery::ContractInfo
- $contract_address -> ContractInfoResponse { creator: api.addr_make(
crate::OWNER
), code_id: 1, admin: $contract_address}
- $contract_address -> ContractInfoResponse { creator: api.addr_make(
cosmwasm_std::WasmQuery::CodeInfo
- $code_id -> CodeInfoResponse { code_id: $code_id, creator: api.addr_make(
crate::OWNER
), checksum:abstract_std::native_addrs::BLOB_CHECKSUM
}
- $code_id -> CodeInfoResponse { code_id: $code_id, creator: api.addr_make(