From 3cbe9e96766e1c0cda9142eafa7ab405372eaf86 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 19 Aug 2020 10:11:14 +0100 Subject: [PATCH] cosmwasm: Extend CosmosFeeTable in SigningCosmWasmClient --- packages/cosmwasm/src/signingcosmwasmclient.ts | 7 +++---- packages/cosmwasm/types/signingcosmwasmclient.d.ts | 5 ++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/cosmwasm/src/signingcosmwasmclient.ts b/packages/cosmwasm/src/signingcosmwasmclient.ts index 0ab7b8c8..d0fff774 100644 --- a/packages/cosmwasm/src/signingcosmwasmclient.ts +++ b/packages/cosmwasm/src/signingcosmwasmclient.ts @@ -7,7 +7,7 @@ import { BroadcastTxResult, buildFeeTable, Coin, - FeeTable, + CosmosFeeTable, GasLimits, GasPrice, isBroadcastTxFailure, @@ -36,12 +36,11 @@ import { /** * These fees are used by the higher level methods of SigningCosmWasmClient */ -export interface CosmWasmFeeTable extends FeeTable { +export interface CosmWasmFeeTable extends CosmosFeeTable { readonly upload: StdFee; readonly init: StdFee; readonly exec: StdFee; readonly migrate: StdFee; - readonly send: StdFee; /** Paid when setting the contract admin to a new address or unsetting it */ readonly changeAdmin: StdFee; } @@ -153,7 +152,7 @@ export class SigningCosmWasmClient extends CosmWasmClient { public readonly senderAddress: string; private readonly signer: OfflineSigner; - private readonly fees: FeeTable; + private readonly fees: CosmWasmFeeTable; /** * Creates a new client with signing capability to interact with a CosmWasm blockchain. This is the bigger brother of CosmWasmClient. diff --git a/packages/cosmwasm/types/signingcosmwasmclient.d.ts b/packages/cosmwasm/types/signingcosmwasmclient.d.ts index 58f2f6f4..568c2017 100644 --- a/packages/cosmwasm/types/signingcosmwasmclient.d.ts +++ b/packages/cosmwasm/types/signingcosmwasmclient.d.ts @@ -2,7 +2,7 @@ import { BroadcastMode, BroadcastTxResult, Coin, - FeeTable, + CosmosFeeTable, GasLimits, GasPrice, Msg, @@ -14,12 +14,11 @@ import { Log } from "./logs"; /** * These fees are used by the higher level methods of SigningCosmWasmClient */ -export interface CosmWasmFeeTable extends FeeTable { +export interface CosmWasmFeeTable extends CosmosFeeTable { readonly upload: StdFee; readonly init: StdFee; readonly exec: StdFee; readonly migrate: StdFee; - readonly send: StdFee; /** Paid when setting the contract admin to a new address or unsetting it */ readonly changeAdmin: StdFee; }