From d50791c8034b0f66667a4992f092f2a5ada0e9bf Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Fri, 20 Mar 2020 13:42:08 +0100 Subject: [PATCH] Pull in typescript definitions for API --- packages/cli/examples/mask.ts | 67 +++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/packages/cli/examples/mask.ts b/packages/cli/examples/mask.ts index e69de29b..7c3a567b 100644 --- a/packages/cli/examples/mask.ts +++ b/packages/cli/examples/mask.ts @@ -0,0 +1,67 @@ +/* + * This file was generated with ❤️ by wasm.glass and is licensed + * for you under WTFPL OR 0BSD OR Unlicense OR MIT OR BSD-3-Clause. + * Note that different terms apply for the contract's source code and schema. + * Type generation powered by json-schema-to-typescript. + */ + + +export type HandleMsg = + | { + reflectmsg: { + msgs: ( + | { + send: { + amount: { + amount: string; + denom: string; + }[]; + from_address: string; + to_address: string; + }; + } + | { + contract: { + contract_addr: string; + // this must be changed - is Base64 encoded string + msg: string; + send: + | { + amount: string; + denom: string; + }[] + | null; + }; + } + | { + opaque: { + // this must be changed - is Base64 encoded string + data: string; + }; + } + )[]; + }; + } + | { + changeowner: { + owner: string; + }; + }; + +export interface InitMsg { +} + +export interface OwnerResponse { + owner: string; +} + +export type QueryMsg = { + owner: {}; +}; + +export interface State { + // base64 encoded CanonicalAddress + owner: string; +} + +/*** END auto-gen ****/