From 1491b13e83adbf12e3228c410ede1de16f871103 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Mon, 3 Feb 2020 18:25:05 +0100 Subject: [PATCH] Format and lint --- packages/bcp/src/cosmwasmconnection.ts | 2 -- packages/bcp/src/decode.spec.ts | 2 +- packages/sdk/src/types.ts | 4 ++-- packages/sdk/types/types.d.ts | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/bcp/src/cosmwasmconnection.ts b/packages/bcp/src/cosmwasmconnection.ts index d44d143e..f83b1e8f 100644 --- a/packages/bcp/src/cosmwasmconnection.ts +++ b/packages/bcp/src/cosmwasmconnection.ts @@ -4,7 +4,6 @@ import { Account, AccountQuery, AddressQuery, - Algorithm, BlockchainConnection, BlockHeader, BlockId, @@ -20,7 +19,6 @@ import { Nonce, PostableBytes, PostTxResponse, - PubkeyBytes, PubkeyQuery, Token, TokenTicker, diff --git a/packages/bcp/src/decode.spec.ts b/packages/bcp/src/decode.spec.ts index 54baa8ae..fbe6becb 100644 --- a/packages/bcp/src/decode.spec.ts +++ b/packages/bcp/src/decode.spec.ts @@ -1,7 +1,7 @@ /* eslint-disable @typescript-eslint/camelcase */ +import { types } from "@cosmwasm/sdk"; import { Address, Algorithm, TokenTicker } from "@iov/bcp"; import { Encoding } from "@iov/encoding"; -import { types } from "@cosmwasm/sdk"; import { decodeAmount, diff --git a/packages/sdk/src/types.ts b/packages/sdk/src/types.ts index b05cd289..a99179df 100644 --- a/packages/sdk/src/types.ts +++ b/packages/sdk/src/types.ts @@ -3,7 +3,7 @@ export interface Tx { readonly type: string; // TODO - readonly value: any; + readonly value: unknown; } export interface StdTx { @@ -16,7 +16,7 @@ export interface StdTx { export interface Msg { readonly type: string; // TODO: make better union type - readonly value: MsgSend; + readonly value: MsgSend | unknown; } export interface MsgSend { diff --git a/packages/sdk/types/types.d.ts b/packages/sdk/types/types.d.ts index 26602e06..1f0af1a5 100644 --- a/packages/sdk/types/types.d.ts +++ b/packages/sdk/types/types.d.ts @@ -1,6 +1,6 @@ export interface Tx { readonly type: string; - readonly value: any; + readonly value: unknown; } export interface StdTx { readonly msg: ReadonlyArray; @@ -10,7 +10,7 @@ export interface StdTx { } export interface Msg { readonly type: string; - readonly value: MsgSend; + readonly value: MsgSend | unknown; } export interface MsgSend { /** Bech32 account address */