diff --git a/CHANGELOG.md b/CHANGELOG.md index d3647ac1..90bdd8da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - @cosmjs/cosmwasm: `logs` is no longer exported. Use `logs` from @cosmjs/launchpad instead. +- @cosmjs/cosmwasm: Export `JsonObject`, `ChangeAdminResult` and `WasmData` + types as well as `isValidBuilder` and `parseWasmData` functions. - @cosmjs/launchpad: Add `Secp256k1Wallet` to manage a single raw secp256k1 keypair. - @cosmjs/launchpad: `OfflineSigner` type’s `sign` method renamed `signAmino` diff --git a/packages/cosmwasm/src/index.ts b/packages/cosmwasm/src/index.ts index 692d9bbc..58de667f 100644 --- a/packages/cosmwasm/src/index.ts +++ b/packages/cosmwasm/src/index.ts @@ -1,3 +1,4 @@ +export { isValidBuilder } from "./builder"; export { Expiration } from "./interfaces"; export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm"; @@ -32,6 +33,7 @@ export { VotersResult, } from "./cw3cosmwasmclient"; export { + ChangeAdminResult, ExecuteResult, CosmWasmFeeTable, InstantiateOptions, @@ -55,3 +57,4 @@ export { MsgUpdateAdmin, MsgStoreCode, } from "./msgs"; +export { JsonObject, parseWasmData, WasmData } from "./types"; diff --git a/packages/cosmwasm/src/types.ts b/packages/cosmwasm/src/types.ts index bba7fc95..22297605 100644 --- a/packages/cosmwasm/src/types.ts +++ b/packages/cosmwasm/src/types.ts @@ -22,6 +22,6 @@ export function parseWasmData({ key, val }: WasmData): Model { /** * An object containing a parsed JSON document. The result of JSON.parse(). - * This doen't privide any type safety over `any` but expresses intent in the code. + * This doesn't provide any type safety over `any` but expresses intent in the code. */ export type JsonObject = any; diff --git a/packages/cosmwasm/types/index.d.ts b/packages/cosmwasm/types/index.d.ts index 071e9351..f1e73997 100644 --- a/packages/cosmwasm/types/index.d.ts +++ b/packages/cosmwasm/types/index.d.ts @@ -1,3 +1,4 @@ +export { isValidBuilder } from "./builder"; export { Expiration } from "./interfaces"; export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm"; export { BankMsg, CosmosMsg, CustomMsg, StakingMsg, WasmMsg } from "./cosmosmsg"; @@ -31,6 +32,7 @@ export { VotersResult, } from "./cw3cosmwasmclient"; export { + ChangeAdminResult, ExecuteResult, CosmWasmFeeTable, InstantiateOptions, @@ -54,3 +56,4 @@ export { MsgUpdateAdmin, MsgStoreCode, } from "./msgs"; +export { JsonObject, parseWasmData, WasmData } from "./types"; diff --git a/packages/cosmwasm/types/types.d.ts b/packages/cosmwasm/types/types.d.ts index 45d870c7..2109a730 100644 --- a/packages/cosmwasm/types/types.d.ts +++ b/packages/cosmwasm/types/types.d.ts @@ -9,6 +9,6 @@ export interface Model { export declare function parseWasmData({ key, val }: WasmData): Model; /** * An object containing a parsed JSON document. The result of JSON.parse(). - * This doen't privide any type safety over `any` but expresses intent in the code. + * This doesn't provide any type safety over `any` but expresses intent in the code. */ export declare type JsonObject = any;