interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
101 lines (100 loc) • 5.63 kB
TypeScript
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";
/**
* ContractInfo gets the contract meta data
* @name getContractInfo
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.ContractInfo
*/
export declare const getContractInfo: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryContractInfoRequest) => Promise<QueryContractInfoResponse>;
/**
* ContractHistory gets the contract code history
* @name getContractHistory
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.ContractHistory
*/
export declare const getContractHistory: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryContractHistoryRequest) => Promise<QueryContractHistoryResponse>;
/**
* ContractsByCode lists all smart contracts for a code id
* @name getContractsByCode
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.ContractsByCode
*/
export declare const getContractsByCode: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryContractsByCodeRequest) => Promise<QueryContractsByCodeResponse>;
/**
* AllContractState gets all raw store data for a single contract
* @name getAllContractState
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.AllContractState
*/
export declare const getAllContractState: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryAllContractStateRequest) => Promise<QueryAllContractStateResponse>;
/**
* RawContractState gets single key from the raw store data of a contract
* @name getRawContractState
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.RawContractState
*/
export declare const getRawContractState: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryRawContractStateRequest) => Promise<QueryRawContractStateResponse>;
/**
* SmartContractState get smart query result from the contract
* @name getSmartContractState
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.SmartContractState
*/
export declare const getSmartContractState: (client: import("../../../helper-func-types").EndpointOrRpc, request: QuerySmartContractStateRequest) => Promise<QuerySmartContractStateResponse>;
/**
* Code gets the binary code and metadata for a single wasm code
* @name getCode
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.Code
*/
export declare const getCode: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryCodeRequest) => Promise<QueryCodeResponse>;
/**
* Codes gets the metadata for all stored wasm codes
* @name getCodes
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.Codes
*/
export declare const getCodes: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryCodesRequest) => Promise<QueryCodesResponse>;
/**
* CodeInfo gets the metadata for a single wasm code
* @name getCodeInfo
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.CodeInfo
*/
export declare const getCodeInfo: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryCodeInfoRequest) => Promise<QueryCodeInfoResponse>;
/**
* PinnedCodes gets the pinned code ids
* @name getPinnedCodes
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.PinnedCodes
*/
export declare const getPinnedCodes: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryPinnedCodesRequest) => Promise<QueryPinnedCodesResponse>;
/**
* Params gets the module params
* @name getParams
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.Params
*/
export declare const getParams: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryParamsRequest) => Promise<QueryParamsResponse>;
/**
* ContractsByCreator gets the contracts by creator
* @name getContractsByCreator
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.ContractsByCreator
*/
export declare const getContractsByCreator: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryContractsByCreatorRequest) => Promise<QueryContractsByCreatorResponse>;
/**
* WasmLimitsConfig gets the configured limits for static validation of Wasm
* files, encoded in JSON.
* @name getWasmLimitsConfig
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.WasmLimitsConfig
*/
export declare const getWasmLimitsConfig: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryWasmLimitsConfigRequest) => Promise<QueryWasmLimitsConfigResponse>;
/**
* BuildAddress builds a contract address
* @name getBuildAddress
* @package cosmwasm.wasm.v1
* @see proto service: cosmwasm.wasm.v1.BuildAddress
*/
export declare const getBuildAddress: (client: import("../../../helper-func-types").EndpointOrRpc, request: QueryBuildAddressRequest) => Promise<QueryBuildAddressResponse>;