launchpad: Reorganise fee files

This commit is contained in:
willclarktech 2021-03-23 18:54:59 +01:00
parent 93abf68ac7
commit 6b29a9f4a8
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
11 changed files with 15 additions and 20 deletions

View File

@ -4,6 +4,7 @@ import { ReadonlyDate } from "readonly-date";
import { assertIsBroadcastTxSuccess, CosmosClient, PrivateCosmosClient } from "./cosmosclient";
import { makeSignDoc } from "./encoding";
import { StdFee } from "./fee";
import { findAttribute } from "./logs";
import { MsgSend } from "./msgs";
import { Secp256k1HdWallet } from "./secp256k1hdwallet";
@ -17,7 +18,6 @@ import {
unused,
} from "./testutils.spec";
import { isWrappedStdTx, makeStdTx } from "./tx";
import { StdFee } from "./types";
const blockTime = 1_000; // ms

View File

@ -2,8 +2,8 @@
import { toUtf8 } from "@cosmjs/encoding";
import { Uint53 } from "@cosmjs/math";
import { StdFee } from "./fee";
import { Msg } from "./msgs";
import { StdFee } from "./types";
function sortedObject(obj: any): any {
if (typeof obj !== "object" || obj === null) {

View File

@ -1,6 +1,6 @@
import { Decimal } from "@cosmjs/math";
import { GasPrice } from "./gas";
import { GasPrice } from "./fee";
describe("GasPrice", () => {
it("can be constructed", () => {

View File

@ -1,7 +1,11 @@
import { Decimal, Uint53 } from "@cosmjs/math";
import { coins } from "./coins";
import { StdFee } from "./types";
import { Coin, coins } from "./coins";
export interface StdFee {
readonly amount: readonly Coin[];
readonly gas: string;
}
export type FeeTable = Record<string, StdFee>;

View File

@ -43,7 +43,7 @@ export {
isSearchByTagsQuery,
} from "./cosmosclient";
export { makeSignDoc, serializeSignDoc, StdSignDoc } from "./encoding";
export { buildFeeTable, FeeTable, GasLimits, GasPrice } from "./gas";
export { buildFeeTable, FeeTable, GasLimits, GasPrice, StdFee } from "./fee";
export {
AuthAccountsResponse,
AuthExtension,
@ -145,7 +145,6 @@ export { findSequenceForSignedTx } from "./sequence";
export { AccountData, Algo, AminoSignResponse, OfflineSigner } from "./signer";
export { CosmosFeeTable, SigningCosmosClient } from "./signingcosmosclient";
export { isStdTx, isWrappedStdTx, makeStdTx, CosmosSdkTx, StdTx, WrappedStdTx, WrappedTx } from "./tx";
export { StdFee } from "./types";
export { executeKdf, KdfConfiguration } from "./wallet";
export { extractKdfConfiguration, Secp256k1HdWallet } from "./secp256k1hdwallet";
export { Secp256k1Wallet } from "./secp256k1wallet";

View File

@ -4,6 +4,7 @@ import { assert, sleep } from "@cosmjs/utils";
import { Coin } from "../coins";
import { isBroadcastTxFailure } from "../cosmosclient";
import { makeSignDoc } from "../encoding";
import { StdFee } from "../fee";
import { parseLogs } from "../logs";
import { MsgSend } from "../msgs";
import { makeCosmoshubPath } from "../paths";
@ -21,7 +22,6 @@ import {
unused,
} from "../testutils.spec";
import { isWrappedStdTx, makeStdTx, StdTx } from "../tx";
import { StdFee } from "../types";
import { setupAuthExtension } from "./auth";
import { TxsResponse } from "./base";
import { LcdApiArray, LcdClient } from "./lcdclient";

View File

@ -3,7 +3,7 @@ import { assert } from "@cosmjs/utils";
import { Coin, coin, coins } from "./coins";
import { assertIsBroadcastTxSuccess, PrivateCosmosClient } from "./cosmosclient";
import { GasPrice } from "./gas";
import { GasPrice } from "./fee";
import { MsgDelegate, MsgSend } from "./msgs";
import { makeCosmoshubPath } from "./paths";
import { Secp256k1HdWallet } from "./secp256k1hdwallet";

View File

@ -4,12 +4,11 @@ import equals from "fast-deep-equal";
import { Coin } from "./coins";
import { Account, BroadcastTxResult, CosmosClient, GetSequenceResult } from "./cosmosclient";
import { makeSignDoc } from "./encoding";
import { buildFeeTable, FeeTable, GasLimits, GasPrice } from "./gas";
import { buildFeeTable, FeeTable, GasLimits, GasPrice, StdFee } from "./fee";
import { BroadcastMode } from "./lcdapi";
import { Msg, MsgSend } from "./msgs";
import { OfflineSigner } from "./signer";
import { makeStdTx, StdTx } from "./tx";
import { StdFee } from "./types";
/**
* These fees are used by the higher level methods of SigningCosmosClient

View File

@ -3,8 +3,8 @@ import { StdSignature } from "@cosmjs/amino";
import { coins } from "./coins";
import { makeSignDoc } from "./encoding";
import { StdFee } from "./fee";
import { makeStdTx } from "./tx";
import { StdFee } from "./types";
describe("tx", () => {
describe("makeStdTx", () => {

View File

@ -1,8 +1,8 @@
import { StdSignature } from "@cosmjs/amino";
import { StdSignDoc } from "./encoding";
import { StdFee } from "./fee";
import { Msg } from "./msgs";
import { StdFee } from "./types";
/**
* A Cosmos SDK StdTx

View File

@ -1,7 +0,0 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { Coin } from "./coins";
export interface StdFee {
readonly amount: readonly Coin[];
readonly gas: string;
}