cosmwasm: Extend CosmosFeeTable in SigningCosmWasmClient

This commit is contained in:
willclarktech 2020-08-19 10:11:14 +01:00
parent 5630330c09
commit 3cbe9e9676
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 5 additions and 7 deletions

View File

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

View File

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