stargate: Copy CosmosFeeTable from launchpad
This commit is contained in:
parent
3abfcc28a3
commit
ec3af5b037
@ -34,6 +34,7 @@ export {
|
||||
StargateClient,
|
||||
} from "./stargateclient";
|
||||
export {
|
||||
CosmosFeeTable,
|
||||
defaultRegistryTypes,
|
||||
SignerData,
|
||||
SigningStargateClient,
|
||||
|
||||
@ -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 };
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user