Merge pull request #333 from CosmWasm/rm-SigningCallback

Cleanup some types
This commit is contained in:
Ethan Frey
2020-08-03 14:51:47 +02:00
committed by GitHub
8 changed files with 18 additions and 38 deletions
-1
View File
@@ -52,7 +52,6 @@ export function main(originalArgs: readonly string[]): void {
"ExecuteResult",
"FeeTable",
"InstantiateResult",
"SigningCallback",
"SigningCosmWasmClient",
"UploadMeta",
"UploadResult",
-1
View File
@@ -25,7 +25,6 @@ export {
InstantiateOptions,
InstantiateResult,
MigrateResult,
SigningCallback,
SigningCosmWasmClient,
UploadMeta,
UploadResult,
@@ -13,7 +13,6 @@ import {
PostTxFailure,
PostTxResult,
StdFee,
StdSignature,
StdTx,
} from "@cosmjs/launchpad";
import { Uint53 } from "@cosmjs/math";
@@ -31,10 +30,9 @@ import {
MsgUpdateAdmin,
} from "./msgs";
export interface SigningCallback {
(signBytes: Uint8Array): Promise<StdSignature>;
}
/**
* Those fees are used by the higher level methods of SigningCosmWasmClient
*/
export interface FeeTable {
readonly upload: StdFee;
readonly init: StdFee;
-1
View File
@@ -24,7 +24,6 @@ export {
InstantiateOptions,
InstantiateResult,
MigrateResult,
SigningCallback,
SigningCosmWasmClient,
UploadMeta,
UploadResult,
+4 -12
View File
@@ -1,17 +1,9 @@
import {
BroadcastMode,
Coin,
Msg,
OfflineSigner,
PostTxResult,
StdFee,
StdSignature,
} from "@cosmjs/launchpad";
import { BroadcastMode, Coin, Msg, OfflineSigner, PostTxResult, StdFee } from "@cosmjs/launchpad";
import { Account, CosmWasmClient, GetSequenceResult } from "./cosmwasmclient";
import { Log } from "./logs";
export interface SigningCallback {
(signBytes: Uint8Array): Promise<StdSignature>;
}
/**
* Those fees are used by the higher level methods of SigningCosmWasmClient
*/
export interface FeeTable {
readonly upload: StdFee;
readonly init: StdFee;
+3 -15
View File
@@ -7,26 +7,14 @@ import { Msg, MsgSend } from "./msgs";
import { StdFee, StdTx } from "./types";
import { OfflineSigner } from "./wallet";
/**
* Those fees are used by the higher level methods of SigningCosmosClient
*/
export interface FeeTable {
readonly upload: StdFee;
readonly init: StdFee;
readonly exec: StdFee;
readonly send: StdFee;
}
const defaultFees: FeeTable = {
upload: {
amount: coins(25000, "ucosm"),
gas: "1000000", // one million
},
init: {
amount: coins(12500, "ucosm"),
gas: "500000", // 500k
},
exec: {
amount: coins(5000, "ucosm"),
gas: "200000", // 200k
},
send: {
amount: coins(2000, "ucosm"),
gas: "80000", // 80k
+3 -3
View File
@@ -4,10 +4,10 @@ import { BroadcastMode } from "./lcdapi";
import { Msg } from "./msgs";
import { StdFee } from "./types";
import { OfflineSigner } from "./wallet";
/**
* Those fees are used by the higher level methods of SigningCosmosClient
*/
export interface FeeTable {
readonly upload: StdFee;
readonly init: StdFee;
readonly exec: StdFee;
readonly send: StdFee;
}
export declare class SigningCosmosClient extends CosmosClient {