Remove obsolete properties from FeeTable
This commit is contained in:
parent
929e79bc7f
commit
4e5a25c625
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user