@xchainjs/xchain-dash 2.2.3 → 2.2.4

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 CHANGED
@@ -1,6 +1,6 @@
1
- import { AssetInfo, FeeRate, TxHistoryParams } from '@xchainjs/xchain-client';
1
+ import { AssetInfo, FeeRate } from '@xchainjs/xchain-client';
2
2
  import { Address } from '@xchainjs/xchain-util';
3
- import { Balance, Client as UTXOClient, PreparedTx, Tx, TxParams, TxsPage, UTXO, UtxoClientParams, UtxoSelectionPreferences } from '@xchainjs/xchain-utxo';
3
+ import { Client as UTXOClient, PreparedTx, TxParams, UTXO, UtxoClientParams, UtxoSelectionPreferences } from '@xchainjs/xchain-utxo';
4
4
  import { DashPreparedTx, NodeAuth, NodeUrls } from './types';
5
5
  /**
6
6
  * Default parameters for the DASH client.
@@ -33,30 +33,6 @@ declare abstract class Client extends UTXOClient {
33
33
  * @returns {boolean} True if the address is valid, false otherwise.
34
34
  */
35
35
  validateAddress(address: string): boolean;
36
- /**
37
- * Asynchronously get the balance for a DASH address.
38
- * @param {string} address The DASH address.
39
- * @returns {Promise<Balance[]>} A promise resolving to an array of balances.
40
- */
41
- getBalance(address: string): Promise<Balance[]>;
42
- /**
43
- * Asynchronously retrieves transactions for a given address.
44
- * @param {TxHistoryParams} params - Parameters for transaction retrieval.
45
- * @returns {Promise<TxsPage>} A promise resolving to a page of transactions.
46
- */
47
- getTransactions(params?: TxHistoryParams): Promise<TxsPage>;
48
- /**
49
- * Asynchronously retrieves transaction data for a given transaction ID.
50
- * @param {string} txid - The transaction ID.
51
- * @returns {Promise<Tx>} A promise resolving to the transaction data.
52
- */
53
- getTransactionData(txid: string): Promise<Tx>;
54
- /**
55
- * Converts an Insight transaction response to XChain transaction.
56
- * @param {InsightTxResponse} tx - The Insight transaction response.
57
- * @returns {Tx} The XChain transaction.
58
- */
59
- private insightTxToXChainTx;
60
36
  /**
61
37
  * Asynchronously prepares a transaction for sending assets.
62
38
  * @deprecated Use `prepareTxEnhanced` instead for better UTXO selection and error handling.
@@ -81,6 +57,7 @@ declare abstract class Client extends UTXOClient {
81
57
  * @returns {number} The calculated transaction fee amount.
82
58
  */
83
59
  protected getFeeFromUtxos(inputs: UTXO[], feeRate: FeeRate, data?: Buffer | null): number;
60
+ private getUtxoScriptHex;
84
61
  /**
85
62
  * Prepare transaction with enhanced UTXO selection.
86
63
  * Uses base class UTXO selection logic with dashcore-lib transaction building.