Export types of SigningCosmWasmClient

This commit is contained in:
Simon Warta 2021-05-06 11:45:17 +02:00
parent 51f429bb46
commit 6ef9912d89
3 changed files with 23 additions and 1 deletions

View File

@ -10,7 +10,10 @@ and this project adheres to
- @cosmjs/cosmwasm-stargate: Export types `Code`, `CodeDetails`, `Contract`,
`ContractCodeHistoryEntry` and `JsonObject` which are response types of
`CosmWasmClient` methods.
`CosmWasmClient` methods. Export types `ChangeAdminResult`, `ExecuteResult`,
`InstantiateOptions`, `InstantiateResult`, `MigrateResult`, `UploadMeta` and
`UploadResult` which are argument or response types of `SigningCosmWasmClient`
methods.
### Fixed

View File

@ -23,7 +23,14 @@ export {
} from "./encodeobjects";
export {
defaultGasLimits,
ChangeAdminResult,
CosmWasmFeeTable, // part of SigningCosmWasmClientOptions
ExecuteResult,
InstantiateOptions,
InstantiateResult,
MigrateResult,
SigningCosmWasmClient,
SigningCosmWasmClientOptions,
UploadMeta,
UploadResult,
} from "./signingcosmwasmclient";

View File

@ -72,6 +72,18 @@ import {
MsgUpdateAdminEncodeObject,
} from "./encodeobjects";
// 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 {
ChangeAdminResult, // returned by SigningCosmWasmClient.updateAdmin/SigningCosmWasmClient.clearAdmin
ExecuteResult, // returned by SigningCosmWasmClient.execute
InstantiateOptions, // argument type of SigningCosmWasmClient.instantiate
InstantiateResult, // returned by SigningCosmWasmClient.instantiate
MigrateResult, // returned by SigningCosmWasmClient.migrate
UploadMeta, // argument type of SigningCosmWasmClient.upload
UploadResult, // returned by SigningCosmWasmClient.upload
};
/**
* These fees are used by the higher level methods of SigningCosmWasmClient
*/