stargate: Copy CosmosFeeTable from launchpad

This commit is contained in:
willclarktech 2021-03-24 17:27:34 +01:00
parent 3abfcc28a3
commit ec3af5b037
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 11 additions and 2 deletions

View File

@ -34,6 +34,7 @@ export {
StargateClient,
} from "./stargateclient";
export {
CosmosFeeTable,
defaultRegistryTypes,
SignerData,
SigningStargateClient,

View File

@ -1,6 +1,5 @@
import { encodeSecp256k1Pubkey, makeSignDoc as makeSignDocAmino } from "@cosmjs/amino";
import { fromBase64 } from "@cosmjs/encoding";
import { CosmosFeeTable } from "@cosmjs/launchpad";
import { Int53 } from "@cosmjs/math";
import {
EncodeObject,
@ -57,9 +56,18 @@ import {
MsgConnectionOpenInit,
MsgConnectionOpenTry,
} from "./codec/ibc/core/connection/v1/tx";
import { buildFeeTable, GasLimits, GasPrice, StdFee } from "./fee";
import { buildFeeTable, FeeTable, GasLimits, GasPrice, StdFee } from "./fee";
import { BroadcastTxResponse, StargateClient } from "./stargateclient";
/**
* These fees are used by the higher level methods of SigningCosmosClient
*
* This is the same as CosmosFeeTable from @cosmjs/launchpad but those might diverge in the future.
*/
export interface CosmosFeeTable extends FeeTable {
readonly send: StdFee;
}
const defaultGasPrice = GasPrice.fromString("0.025ucosm");
const defaultGasLimits: GasLimits<CosmosFeeTable> = { send: 80000 };