mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Export CosmWasmClient types
This commit is contained in:
parent
414874eeda
commit
51f429bb46
@ -6,6 +6,12 @@ and this project adheres to
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- @cosmjs/cosmwasm-stargate: Export types `Code`, `CodeDetails`, `Contract`,
|
||||||
|
`ContractCodeHistoryEntry` and `JsonObject` which are response types of
|
||||||
|
`CosmWasmClient` methods.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- @cosmjs/cosmwasm-stargate: Use `CosmWasmFeeTable` instead of `CosmosFeeTable`
|
- @cosmjs/cosmwasm-stargate: Use `CosmWasmFeeTable` instead of `CosmosFeeTable`
|
||||||
|
@ -35,6 +35,16 @@ import { CodeInfoResponse } from "./codec/cosmwasm/wasm/v1beta1/query";
|
|||||||
import { ContractCodeHistoryOperationType } from "./codec/cosmwasm/wasm/v1beta1/types";
|
import { ContractCodeHistoryOperationType } from "./codec/cosmwasm/wasm/v1beta1/types";
|
||||||
import { setupWasmExtension, WasmExtension } from "./queries";
|
import { setupWasmExtension, WasmExtension } from "./queries";
|
||||||
|
|
||||||
|
// Those types can be copied over to allow them to evolve independently of @cosmjs/cosmwasm-launchpad.
|
||||||
|
// For now just re-export them such that they can be imported via @cosmjs/cosmwasm-stargate.
|
||||||
|
export {
|
||||||
|
Code, // returned by CosmWasmClient.getCode
|
||||||
|
CodeDetails, // returned by CosmWasmClient.getCodeDetails
|
||||||
|
Contract, // returned by CosmWasmClient.getContract
|
||||||
|
ContractCodeHistoryEntry, // returned by CosmWasmClient.getContractCodeHistory
|
||||||
|
JsonObject, // returned by CosmWasmClient.queryContractSmart
|
||||||
|
};
|
||||||
|
|
||||||
/** Use for testing only */
|
/** Use for testing only */
|
||||||
export interface PrivateCosmWasmClient {
|
export interface PrivateCosmWasmClient {
|
||||||
readonly tmClient: Tendermint34Client | undefined;
|
readonly tmClient: Tendermint34Client | undefined;
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
export { cosmWasmTypes } from "./aminotypes";
|
export { cosmWasmTypes } from "./aminotypes";
|
||||||
export { CosmWasmClient } from "./cosmwasmclient";
|
export {
|
||||||
|
Code,
|
||||||
|
CodeDetails,
|
||||||
|
Contract,
|
||||||
|
ContractCodeHistoryEntry,
|
||||||
|
CosmWasmClient,
|
||||||
|
JsonObject,
|
||||||
|
} from "./cosmwasmclient";
|
||||||
export {
|
export {
|
||||||
isMsgClearAdminEncodeObject,
|
isMsgClearAdminEncodeObject,
|
||||||
isMsgExecuteEncodeObject,
|
isMsgExecuteEncodeObject,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user