@xchainjs/xchain-dash 0.3.6 → 1.0.0
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 +3 -3
- package/lib/clientKeystore.d.ts +2 -1
- package/lib/clientLedger.d.ts +2 -2
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/types/client-types.d.ts +3 -5
- package/lib/utils.d.ts +5 -3
- package/package.json +5 -5
package/lib/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { AssetInfo,
|
|
2
|
+
import { AssetInfo, FeeRate, TxHistoryParams } from '@xchainjs/xchain-client';
|
|
3
3
|
import { Address } from '@xchainjs/xchain-util';
|
|
4
|
-
import { Client as UTXOClient, UTXO, UtxoClientParams } from '@xchainjs/xchain-utxo';
|
|
4
|
+
import { Balance, Client as UTXOClient, Tx, TxParams, TxsPage, UTXO, UtxoClientParams } from '@xchainjs/xchain-utxo';
|
|
5
5
|
import { DashPreparedTx, NodeAuth, NodeUrls } from './types';
|
|
6
6
|
/**
|
|
7
7
|
* Default parameters for the DASH client.
|
|
@@ -18,7 +18,7 @@ declare abstract class Client extends UTXOClient {
|
|
|
18
18
|
protected readonly nodeAuth?: NodeAuth;
|
|
19
19
|
constructor(params?: import("@xchainjs/xchain-client").XChainClientParams & {
|
|
20
20
|
explorerProviders: import("@xchainjs/xchain-client").ExplorerProviders;
|
|
21
|
-
dataProviders: import("@xchainjs/xchain-utxo
|
|
21
|
+
dataProviders: import("@xchainjs/xchain-utxo/lib/types/types").UtxoOnlineDataProviders[];
|
|
22
22
|
} & {
|
|
23
23
|
nodeUrls: NodeUrls;
|
|
24
24
|
nodeAuth?: NodeAuth | undefined;
|
package/lib/clientKeystore.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FeeRate, TxHash
|
|
1
|
+
import { FeeRate, TxHash } from '@xchainjs/xchain-client';
|
|
2
2
|
import { Address } from '@xchainjs/xchain-util';
|
|
3
|
+
import { TxParams } from '@xchainjs/xchain-utxo';
|
|
3
4
|
import * as Dash from 'bitcoinjs-lib';
|
|
4
5
|
import { Client } from './client';
|
|
5
6
|
export declare class ClientKeystore extends Client {
|
package/lib/clientLedger.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AppBtc from '@ledgerhq/hw-app-btc';
|
|
2
|
-
import { FeeRate, TxHash
|
|
2
|
+
import { FeeRate, TxHash } from '@xchainjs/xchain-client';
|
|
3
3
|
import { Address } from '@xchainjs/xchain-util';
|
|
4
|
-
import { UtxoClientParams } from '@xchainjs/xchain-utxo';
|
|
4
|
+
import { TxParams, UtxoClientParams } from '@xchainjs/xchain-utxo';
|
|
5
5
|
import { Client } from './client';
|
|
6
6
|
import { NodeAuth, NodeUrls } from './types';
|
|
7
7
|
/**
|
package/lib/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExplorerProvider, Network, TxType, FeeOption, checkFeeBounds } from '@xchainjs/xchain-client';
|
|
2
|
+
import { AssetType, baseAmount, assetToBase, assetAmount } from '@xchainjs/xchain-util';
|
|
2
3
|
import { BlockcypherProvider, BlockcypherNetwork, BitgoProvider } from '@xchainjs/xchain-utxo-providers';
|
|
3
4
|
import * as dashcore from '@dashevo/dashcore-lib';
|
|
4
|
-
import { baseAmount, assetToBase, assetAmount } from '@xchainjs/xchain-util';
|
|
5
5
|
import { Client as Client$1 } from '@xchainjs/xchain-utxo';
|
|
6
6
|
import * as Dash from 'bitcoinjs-lib';
|
|
7
7
|
import * as coininfo from 'coininfo';
|
|
@@ -40,7 +40,7 @@ const DASHChain = 'DASH';
|
|
|
40
40
|
* Definition based on Thorchain common asset.
|
|
41
41
|
* @see https://gitlab.com/thorchain/thornode/-/blob/master/common/asset.go#L12-24
|
|
42
42
|
*/
|
|
43
|
-
const AssetDASH = { chain: DASHChain, symbol: 'DASH', ticker: 'DASH',
|
|
43
|
+
const AssetDASH = { chain: DASHChain, symbol: 'DASH', ticker: 'DASH', type: AssetType.NATIVE };
|
|
44
44
|
/**
|
|
45
45
|
* Explorer provider for Dash mainnet.
|
|
46
46
|
*/
|