@xchainjs/xchain-dash 0.3.5 → 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
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { Network
|
|
2
|
-
import {
|
|
3
|
-
export type DashPreparedTx =
|
|
4
|
-
utxos: UTXO[];
|
|
5
|
-
} & PreparedTx;
|
|
1
|
+
import { Network } from '@xchainjs/xchain-client';
|
|
2
|
+
import { PreparedTx } from '@xchainjs/xchain-utxo';
|
|
3
|
+
export type DashPreparedTx = PreparedTx;
|
|
6
4
|
/**
|
|
7
5
|
* Node authentication object containing username and password.
|
|
8
6
|
*/
|
package/lib/utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transaction } from '@dashevo/dashcore-lib/typings/transaction/Transaction';
|
|
2
|
-
import { FeeRate, Network
|
|
2
|
+
import { FeeRate, Network } from '@xchainjs/xchain-client';
|
|
3
3
|
import { Address } from '@xchainjs/xchain-util';
|
|
4
|
-
import { UTXO } from '@xchainjs/xchain-utxo';
|
|
4
|
+
import { TxParams, UTXO } from '@xchainjs/xchain-utxo';
|
|
5
5
|
import * as Dash from 'bitcoinjs-lib';
|
|
6
6
|
/**
|
|
7
7
|
* Object containing the sizes (in bytes) of various components in a Dash transaction.
|
|
@@ -48,7 +48,9 @@ export declare const validateAddress: (address: Address, network: Network) => bo
|
|
|
48
48
|
* @param {TxParams} params Transaction parameters including amount, recipient, memo, fee rate, sender, and network.
|
|
49
49
|
* @returns {Promise<{ tx: Transaction; utxos: UTXO[] }>} Promise that resolves with the built transaction and its UTXOs.
|
|
50
50
|
*/
|
|
51
|
-
export declare const buildTx: ({ amount, recipient, memo, feeRate, sender, network, }: TxParams & {
|
|
51
|
+
export declare const buildTx: ({ amount, recipient, memo, feeRate, sender, network, }: import("@xchainjs/xchain-client").TxParams & {
|
|
52
|
+
asset?: import("@xchainjs/xchain-util").Asset | undefined;
|
|
53
|
+
} & {
|
|
52
54
|
feeRate: FeeRate;
|
|
53
55
|
sender: Address;
|
|
54
56
|
network: Network;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-dash",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Custom Dash client and utilities used by XChainJS clients",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"XChain",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@dashevo/dashcore-lib": "0.19.41",
|
|
37
37
|
"@ledgerhq/hw-app-btc": "10.1.0",
|
|
38
|
-
"@xchainjs/xchain-client": "0.
|
|
38
|
+
"@xchainjs/xchain-client": "1.0.0",
|
|
39
39
|
"@xchainjs/xchain-crypto": "0.3.4",
|
|
40
|
-
"@xchainjs/xchain-util": "0.
|
|
41
|
-
"@xchainjs/xchain-utxo": "0.
|
|
42
|
-
"@xchainjs/xchain-utxo-providers": "0.
|
|
40
|
+
"@xchainjs/xchain-util": "1.0.0",
|
|
41
|
+
"@xchainjs/xchain-utxo": "1.0.0",
|
|
42
|
+
"@xchainjs/xchain-utxo-providers": "1.0.0",
|
|
43
43
|
"bitcoinjs-lib": "5.2.0",
|
|
44
44
|
"coininfo": "5.1.0",
|
|
45
45
|
"coinselect": "3.1.12"
|