@xchainjs/xchain-thorchain 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +6 -1
- package/lib/const.d.ts +1 -1
- package/lib/index.esm.js +783 -733
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +783 -733
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
package/lib/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import cosmosclient from '@cosmos-client/core';
|
|
2
|
-
import { Balance, BaseXChainClient, Fees, Network, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from '@xchainjs/xchain-client';
|
|
2
|
+
import { AssetInfo, Balance, BaseXChainClient, Fees, Network, Tx, TxHash, TxHistoryParams, TxParams, TxsPage, XChainClient, XChainClientParams } from '@xchainjs/xchain-client';
|
|
3
3
|
import { CosmosSDKClient, RPCTxResult } from '@xchainjs/xchain-cosmos';
|
|
4
4
|
import { Address, Asset } from '@xchainjs/xchain-util';
|
|
5
5
|
import BigNumber from 'bignumber.js';
|
|
@@ -150,6 +150,11 @@ declare class Client extends BaseXChainClient implements ThorchainClient, XChain
|
|
|
150
150
|
* @returns {Balance[]} The balance of the address.
|
|
151
151
|
*/
|
|
152
152
|
getBalance(address: Address, assets?: Asset[]): Promise<Balance[]>;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @returns asset info
|
|
156
|
+
*/
|
|
157
|
+
getAssetInfo(): AssetInfo;
|
|
153
158
|
/**
|
|
154
159
|
* Get transaction history of a given address with pagination options.
|
|
155
160
|
* By default it will return the transaction history of the current wallet.
|
package/lib/const.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Asset } from '@xchainjs/xchain-util/lib';
|
|
2
2
|
import { ExplorerUrls } from './types';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const RUNE_DECIMAL = 8;
|
|
4
4
|
export declare const DEFAULT_GAS_ADJUSTMENT = 2;
|
|
5
5
|
export declare const DEFAULT_GAS_LIMIT_VALUE = "4000000";
|
|
6
6
|
export declare const DEPOSIT_GAS_LIMIT_VALUE = "600000000";
|