From 4e5a25c6251a477e64a68718dac6dae3e3b2affb Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 3 Aug 2020 07:59:27 +0200 Subject: [PATCH] Remove obsolete properties from FeeTable --- CHANGELOG.md | 2 ++ packages/launchpad/src/signingcosmosclient.ts | 18 +++--------------- .../launchpad/types/signingcosmosclient.d.ts | 6 +++--- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b22eeb1..e30637d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,3 +39,5 @@ words. - @cosmjs/sdk38: The new `Secp256k1Wallet.serialize` and `.deserialize` allow encrypted serialization of the wallet. +- @cosmjs/sdk38: Remove the obsolete `upload`, `init`, `exec` properties from + `FeeTable`. @cosmjs/cosmwasm has its own `FeeTable` with those properties. diff --git a/packages/launchpad/src/signingcosmosclient.ts b/packages/launchpad/src/signingcosmosclient.ts index d901425a..cd9eb6d8 100644 --- a/packages/launchpad/src/signingcosmosclient.ts +++ b/packages/launchpad/src/signingcosmosclient.ts @@ -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 diff --git a/packages/launchpad/types/signingcosmosclient.d.ts b/packages/launchpad/types/signingcosmosclient.d.ts index d9947075..7add9e98 100644 --- a/packages/launchpad/types/signingcosmosclient.d.ts +++ b/packages/launchpad/types/signingcosmosclient.d.ts @@ -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 {