@xchainjs/xchain-cosmos
Version:
Custom Cosmos client and utilities used by XChainJS clients
54 lines (53 loc) • 2.37 kB
TypeScript
import { CosmosSdkClientParams } from '@xchainjs/xchain-cosmos-sdk';
import { Asset } from '@xchainjs/xchain-util';
/**
* Number of decimals for the native asset of the Cosmos network.
*/
export declare const COSMOS_DECIMAL = 6;
/**
* Default gas limit for Cosmos transactions.
* As defined in Cosmosstation's web wallet.
* @see https://github.com/cosmostation/web-wallet-ts-react/blob/4d78718b613defbd6c92079b33aa8ce9f86d597c/src/constants/chain.ts#L76
*/
export declare const DEFAULT_GAS_LIMIT = "200000";
/**
* Default fee for Cosmos transactions.
* As defined in Cosmosstation's web wallet.
* @see https://github.com/cosmostation/web-wallet-ts-react/blob/4d78718b613defbd6c92079b33aa8ce9f86d597c/src/constants/chain.ts#L66
*/
export declare const DEFAULT_FEE: {
type: import("@xchainjs/xchain-util").Denomination.Base;
amount: () => import("bignumber.js").default;
plus: (value: any | import("bignumber.js").default.Value, decimal?: number | undefined) => any;
minus: (value: any | import("bignumber.js").default.Value, decimal?: number | undefined) => any;
times: (value: any | import("bignumber.js").default.Value, decimal?: number | undefined) => any;
div: (value: any | import("bignumber.js").default.Value, decimal?: number | undefined) => any;
gt: (value: any | import("bignumber.js").default.Value) => boolean;
gte: (value: any | import("bignumber.js").default.Value) => boolean;
lt: (value: any | import("bignumber.js").default.Value) => boolean;
lte: (value: any | import("bignumber.js").default.Value) => boolean;
eq: (value: any | import("bignumber.js").default.Value) => boolean;
decimal: number;
};
/**
* Chain identifier for the Cosmos network.
*/
export declare const GAIAChain: "GAIA";
/**
* Base "chain" asset on the Cosmos mainnet.
* Based on the definition in Thorchain `common`.
* @see https://gitlab.com/thorchain/thornode/-/blob/master/common/asset.go#L12-24
*/
export declare const AssetATOM: Asset;
/**
* Denomination for the native Cosmos asset.
*/
export declare const ATOM_DENOM: "uatom";
/**
* Message type URL used to make transactions on the Cosmos network.
*/
export declare const MSG_SEND_TYPE_URL: "/cosmos.bank.v1beta1.MsgSend";
/**
* Default parameters for Cosmos SDK client configuration.
*/
export declare const defaultClientConfig: CosmosSdkClientParams;