Fix typos
This commit is contained in:
parent
9d98b50afb
commit
0c0f015a32
@ -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>;
|
||||
|
||||
2
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
2
packages/cosmwasm/types/lcdapi/wasm.d.ts
vendored
@ -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>;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
*
|
||||
|
||||
@ -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>;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
4
packages/sdk38/types/lcdapi/base.d.ts
vendored
4
packages/sdk38/types/lcdapi/base.d.ts
vendored
@ -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;
|
||||
|
||||
2
packages/sdk38/types/lcdapi/index.d.ts
vendored
2
packages/sdk38/types/lcdapi/index.d.ts
vendored
@ -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,
|
||||
|
||||
2
packages/sdk38/types/lcdapi/lcdclient.d.ts
vendored
2
packages/sdk38/types/lcdapi/lcdclient.d.ts
vendored
@ -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.
|
||||
*
|
||||
|
||||
8
packages/sdk38/types/lcdapi/supply.d.ts
vendored
8
packages/sdk38/types/lcdapi/supply.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user