import { buildQuery } from "../../../helper-func-types";
import { QueryContractInfoRequest, QueryContractInfoResponse, QueryContractHistoryRequest, QueryContractHistoryResponse, QueryContractsByCodeRequest, QueryContractsByCodeResponse, QueryAllContractStateRequest, QueryAllContractStateResponse, QueryRawContractStateRequest, QueryRawContractStateResponse, QuerySmartContractStateRequest, QuerySmartContractStateResponse, QueryCodeRequest, QueryCodeResponse, QueryCodesRequest, QueryCodesResponse, QueryCodeInfoRequest, QueryCodeInfoResponse, QueryPinnedCodesRequest, QueryPinnedCodesResponse, QueryParamsRequest, QueryParamsResponse, QueryContractsByCreatorRequest, QueryContractsByCreatorResponse, QueryWasmLimitsConfigRequest, QueryWasmLimitsConfigResponse, QueryBuildAddressRequest, QueryBuildAddressResponse } from "./query";
export const createGetContractInfo = (clientResolver) => buildQuery({
    encode: QueryContractInfoRequest.encode,
    decode: QueryContractInfoResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractInfo",
    clientResolver
});
export const createGetContractHistory = (clientResolver) => buildQuery({
    encode: QueryContractHistoryRequest.encode,
    decode: QueryContractHistoryResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractHistory",
    clientResolver
});
export const createGetContractsByCode = (clientResolver) => buildQuery({
    encode: QueryContractsByCodeRequest.encode,
    decode: QueryContractsByCodeResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractsByCode",
    clientResolver
});
export const createGetAllContractState = (clientResolver) => buildQuery({
    encode: QueryAllContractStateRequest.encode,
    decode: QueryAllContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "AllContractState",
    clientResolver
});
export const createGetRawContractState = (clientResolver) => buildQuery({
    encode: QueryRawContractStateRequest.encode,
    decode: QueryRawContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "RawContractState",
    clientResolver
});
export const createGetSmartContractState = (clientResolver) => buildQuery({
    encode: QuerySmartContractStateRequest.encode,
    decode: QuerySmartContractStateResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "SmartContractState",
    clientResolver
});
export const createGetCode = (clientResolver) => buildQuery({
    encode: QueryCodeRequest.encode,
    decode: QueryCodeResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Code",
    clientResolver
});
export const createGetCodes = (clientResolver) => buildQuery({
    encode: QueryCodesRequest.encode,
    decode: QueryCodesResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Codes",
    clientResolver
});
export const createGetCodeInfo = (clientResolver) => buildQuery({
    encode: QueryCodeInfoRequest.encode,
    decode: QueryCodeInfoResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "CodeInfo",
    clientResolver
});
export const createGetPinnedCodes = (clientResolver) => buildQuery({
    encode: QueryPinnedCodesRequest.encode,
    decode: QueryPinnedCodesResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "PinnedCodes",
    clientResolver
});
export const createGetParams = (clientResolver) => buildQuery({
    encode: QueryParamsRequest.encode,
    decode: QueryParamsResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "Params",
    clientResolver
});
export const createGetContractsByCreator = (clientResolver) => buildQuery({
    encode: QueryContractsByCreatorRequest.encode,
    decode: QueryContractsByCreatorResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "ContractsByCreator",
    clientResolver
});
export const createGetWasmLimitsConfig = (clientResolver) => buildQuery({
    encode: QueryWasmLimitsConfigRequest.encode,
    decode: QueryWasmLimitsConfigResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "WasmLimitsConfig",
    clientResolver
});
export const createGetBuildAddress = (clientResolver) => buildQuery({
    encode: QueryBuildAddressRequest.encode,
    decode: QueryBuildAddressResponse.decode,
    service: "cosmwasm.wasm.v1.Query",
    method: "BuildAddress",
    clientResolver
});
