Fix typos

This commit is contained in:
Simon Warta 2020-07-07 17:46:50 +02:00
parent 9d98b50afb
commit 0c0f015a32
11 changed files with 22 additions and 22 deletions

View File

@ -106,7 +106,7 @@ export interface WasmExtension {
readonly queryContractRaw: (address: string, key: Uint8Array) => Promise<Uint8Array | null>;
/**
* 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<JsonObject>;

View File

@ -65,7 +65,7 @@ export interface WasmExtension {
*/
readonly queryContractRaw: (address: string, key: Uint8Array) => Promise<Uint8Array | null>;
/**
* 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<JsonObject>;

View File

@ -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;

View File

@ -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

View File

@ -117,7 +117,7 @@ describe("LcdClient", () => {
it("works for two extensions", async () => {
pendingWithoutWasmd();
interface TotalSupplyAllReponse {
interface TotalSupplyAllResponse {
readonly height: string;
readonly result: LcdApiArray<Coin>;
}
@ -126,9 +126,9 @@ describe("LcdClient", () => {
function setupSupplyExtension(base: LcdClient) {
return {
supply: {
totalAll: async (): Promise<TotalSupplyAllReponse> => {
totalAll: async (): Promise<TotalSupplyAllResponse> => {
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

View File

@ -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.
*

View File

@ -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<Coin>;
}
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<TotalSupplyAllReponse>;
readonly total: (denom: string) => Promise<TotalSupplyReponse>;
readonly totalAll: () => Promise<TotalSupplyAllResponse>;
readonly total: (denom: string) => Promise<TotalSupplyResponse>;
};
}

View File

@ -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;

View File

@ -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,

View File

@ -153,7 +153,7 @@ export declare class LcdClient {
/** returns the amino-encoding of the transaction performed by the server */
encodeTx(tx: CosmosSdkTx): Promise<EncodeTxResponse>;
/**
* 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.
*

View File

@ -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<Coin>;
}
export interface TotalSupplyReponse {
export interface TotalSupplyResponse {
readonly height: string;
/** The amount */
readonly result: string;
}
export interface SupplyExtension {
readonly supply: {
readonly totalAll: () => Promise<TotalSupplyAllReponse>;
readonly total: (denom: string) => Promise<TotalSupplyReponse>;
readonly totalAll: () => Promise<TotalSupplyAllResponse>;
readonly total: (denom: string) => Promise<TotalSupplyResponse>;
};
}
export declare function setupSupplyExtension(base: LcdClient): SupplyExtension;