From 0c0f015a32d76cfb56b41e4ff00c84cec8191c9e Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 7 Jul 2020 17:46:50 +0200 Subject: [PATCH] Fix typos --- packages/cosmwasm/src/lcdapi/wasm.ts | 2 +- packages/cosmwasm/types/lcdapi/wasm.d.ts | 2 +- packages/sdk38/src/lcdapi/base.ts | 4 ++-- packages/sdk38/src/lcdapi/index.ts | 2 +- packages/sdk38/src/lcdapi/lcdclient.spec.ts | 8 ++++---- packages/sdk38/src/lcdapi/lcdclient.ts | 2 +- packages/sdk38/src/lcdapi/supply.ts | 8 ++++---- packages/sdk38/types/lcdapi/base.d.ts | 4 ++-- packages/sdk38/types/lcdapi/index.d.ts | 2 +- packages/sdk38/types/lcdapi/lcdclient.d.ts | 2 +- packages/sdk38/types/lcdapi/supply.d.ts | 8 ++++---- 11 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/cosmwasm/src/lcdapi/wasm.ts b/packages/cosmwasm/src/lcdapi/wasm.ts index b948184b..f0b70f65 100644 --- a/packages/cosmwasm/src/lcdapi/wasm.ts +++ b/packages/cosmwasm/src/lcdapi/wasm.ts @@ -106,7 +106,7 @@ export interface WasmExtension { readonly queryContractRaw: (address: string, key: Uint8Array) => Promise; /** - * Makes a smart query on the contract and parses the reponse as JSON. + * Makes a smart query on the contract and parses the response as JSON. * Throws error if no such contract exists, the query format is invalid or the response is invalid. */ readonly queryContractSmart: (address: string, query: object) => Promise; diff --git a/packages/cosmwasm/types/lcdapi/wasm.d.ts b/packages/cosmwasm/types/lcdapi/wasm.d.ts index bf01a01e..4f3b06a1 100644 --- a/packages/cosmwasm/types/lcdapi/wasm.d.ts +++ b/packages/cosmwasm/types/lcdapi/wasm.d.ts @@ -65,7 +65,7 @@ export interface WasmExtension { */ readonly queryContractRaw: (address: string, key: Uint8Array) => Promise; /** - * Makes a smart query on the contract and parses the reponse as JSON. + * Makes a smart query on the contract and parses the response as JSON. * Throws error if no such contract exists, the query format is invalid or the response is invalid. */ readonly queryContractSmart: (address: string, query: object) => Promise; diff --git a/packages/sdk38/src/lcdapi/base.ts b/packages/sdk38/src/lcdapi/base.ts index 45f46e0f..9b13b20d 100644 --- a/packages/sdk38/src/lcdapi/base.ts +++ b/packages/sdk38/src/lcdapi/base.ts @@ -8,13 +8,13 @@ import { CosmosSdkTx } from "../types"; export enum BroadcastMode { /** Return after tx commit */ Block = "block", - /** Return afer CheckTx */ + /** Return after CheckTx */ Sync = "sync", /** Return right away */ Async = "async", } -/** A reponse from the /txs/encode endpoint */ +/** A response from the /txs/encode endpoint */ export interface EncodeTxResponse { /** base64-encoded amino-binary encoded representation */ readonly tx: string; diff --git a/packages/sdk38/src/lcdapi/index.ts b/packages/sdk38/src/lcdapi/index.ts index bc39d863..b2a25ab0 100644 --- a/packages/sdk38/src/lcdapi/index.ts +++ b/packages/sdk38/src/lcdapi/index.ts @@ -3,7 +3,7 @@ // export { AuthExtension, AuthAccountsResponse, setupAuthExtension } from "./auth"; -export { setupSupplyExtension, SupplyExtension, TotalSupplyAllReponse, TotalSupplyReponse } from "./supply"; +export { setupSupplyExtension, SupplyExtension, TotalSupplyAllResponse, TotalSupplyResponse } from "./supply"; // // Base types diff --git a/packages/sdk38/src/lcdapi/lcdclient.spec.ts b/packages/sdk38/src/lcdapi/lcdclient.spec.ts index a048cfa3..627075e1 100644 --- a/packages/sdk38/src/lcdapi/lcdclient.spec.ts +++ b/packages/sdk38/src/lcdapi/lcdclient.spec.ts @@ -117,7 +117,7 @@ describe("LcdClient", () => { it("works for two extensions", async () => { pendingWithoutWasmd(); - interface TotalSupplyAllReponse { + interface TotalSupplyAllResponse { readonly height: string; readonly result: LcdApiArray; } @@ -126,9 +126,9 @@ describe("LcdClient", () => { function setupSupplyExtension(base: LcdClient) { return { supply: { - totalAll: async (): Promise => { + totalAll: async (): Promise => { const path = `/supply/total`; - return (await base.get(path)) as TotalSupplyAllReponse; + return (await base.get(path)) as TotalSupplyAllResponse; }, }, }; @@ -161,7 +161,7 @@ describe("LcdClient", () => { }); }); - it("can merge two extension into the same module", async () => { + it("can merge two extensions into the same module", async () => { pendingWithoutWasmd(); // eslint-disable-next-line @typescript-eslint/explicit-function-return-type diff --git a/packages/sdk38/src/lcdapi/lcdclient.ts b/packages/sdk38/src/lcdapi/lcdclient.ts index f4e2f644..c2233651 100644 --- a/packages/sdk38/src/lcdapi/lcdclient.ts +++ b/packages/sdk38/src/lcdapi/lcdclient.ts @@ -292,7 +292,7 @@ export class LcdClient { } /** - * Broadcasts a signed transaction to into the transaction pool. + * Broadcasts a signed transaction to the transaction pool. * Depending on the client's broadcast mode, this might or might * wait for checkTx or deliverTx to be executed before returning. * diff --git a/packages/sdk38/src/lcdapi/supply.ts b/packages/sdk38/src/lcdapi/supply.ts index 06443134..7ddfc883 100644 --- a/packages/sdk38/src/lcdapi/supply.ts +++ b/packages/sdk38/src/lcdapi/supply.ts @@ -1,12 +1,12 @@ import { Coin } from "../coins"; import { LcdApiArray, LcdClient } from "./lcdclient"; -export interface TotalSupplyAllReponse { +export interface TotalSupplyAllResponse { readonly height: string; readonly result: LcdApiArray; } -export interface TotalSupplyReponse { +export interface TotalSupplyResponse { readonly height: string; /** The amount */ readonly result: string; @@ -14,8 +14,8 @@ export interface TotalSupplyReponse { export interface SupplyExtension { readonly supply: { - readonly totalAll: () => Promise; - readonly total: (denom: string) => Promise; + readonly totalAll: () => Promise; + readonly total: (denom: string) => Promise; }; } diff --git a/packages/sdk38/types/lcdapi/base.d.ts b/packages/sdk38/types/lcdapi/base.d.ts index d7927b0f..8771acf4 100644 --- a/packages/sdk38/types/lcdapi/base.d.ts +++ b/packages/sdk38/types/lcdapi/base.d.ts @@ -7,12 +7,12 @@ import { CosmosSdkTx } from "../types"; export declare enum BroadcastMode { /** Return after tx commit */ Block = "block", - /** Return afer CheckTx */ + /** Return after CheckTx */ Sync = "sync", /** Return right away */ Async = "async", } -/** A reponse from the /txs/encode endpoint */ +/** A response from the /txs/encode endpoint */ export interface EncodeTxResponse { /** base64-encoded amino-binary encoded representation */ readonly tx: string; diff --git a/packages/sdk38/types/lcdapi/index.d.ts b/packages/sdk38/types/lcdapi/index.d.ts index dc0274a9..ca9ac056 100644 --- a/packages/sdk38/types/lcdapi/index.d.ts +++ b/packages/sdk38/types/lcdapi/index.d.ts @@ -1,5 +1,5 @@ export { AuthExtension, AuthAccountsResponse, setupAuthExtension } from "./auth"; -export { setupSupplyExtension, SupplyExtension, TotalSupplyAllReponse, TotalSupplyReponse } from "./supply"; +export { setupSupplyExtension, SupplyExtension, TotalSupplyAllResponse, TotalSupplyResponse } from "./supply"; export { BlockResponse, BroadcastMode, diff --git a/packages/sdk38/types/lcdapi/lcdclient.d.ts b/packages/sdk38/types/lcdapi/lcdclient.d.ts index 009e556e..ce67cc38 100644 --- a/packages/sdk38/types/lcdapi/lcdclient.d.ts +++ b/packages/sdk38/types/lcdapi/lcdclient.d.ts @@ -153,7 +153,7 @@ export declare class LcdClient { /** returns the amino-encoding of the transaction performed by the server */ encodeTx(tx: CosmosSdkTx): Promise; /** - * Broadcasts a signed transaction to into the transaction pool. + * Broadcasts a signed transaction to the transaction pool. * Depending on the client's broadcast mode, this might or might * wait for checkTx or deliverTx to be executed before returning. * diff --git a/packages/sdk38/types/lcdapi/supply.d.ts b/packages/sdk38/types/lcdapi/supply.d.ts index e9bf1d2c..5d9fe774 100644 --- a/packages/sdk38/types/lcdapi/supply.d.ts +++ b/packages/sdk38/types/lcdapi/supply.d.ts @@ -1,18 +1,18 @@ import { Coin } from "../coins"; import { LcdApiArray, LcdClient } from "./lcdclient"; -export interface TotalSupplyAllReponse { +export interface TotalSupplyAllResponse { readonly height: string; readonly result: LcdApiArray; } -export interface TotalSupplyReponse { +export interface TotalSupplyResponse { readonly height: string; /** The amount */ readonly result: string; } export interface SupplyExtension { readonly supply: { - readonly totalAll: () => Promise; - readonly total: (denom: string) => Promise; + readonly totalAll: () => Promise; + readonly total: (denom: string) => Promise; }; } export declare function setupSupplyExtension(base: LcdClient): SupplyExtension;