cosmwasm: Export some types and functions

This commit is contained in:
willclarktech
2020-12-10 16:22:50 +00:00
parent e61675f5ce
commit 088d3d8de6
5 changed files with 10 additions and 2 deletions
+3
View File
@@ -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";
+1 -1
View File
@@ -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;
+3
View File
@@ -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";
+1 -1
View File
@@ -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;