@atomicfinance/bitcoin-wallet-provider 2.5.0 → 2.5.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/.turbo/turbo-build.log +2 -0
- package/.turbo/turbo-test.log +3 -0
- package/CHANGELOG.md +10 -0
- package/dist/BitcoinWalletProvider.d.ts +20 -0
- package/dist/BitcoinWalletProvider.js +191 -194
- package/dist/BitcoinWalletProvider.js.map +1 -1
- package/dist/index.d.ts +0 -0
- package/dist/index.js +9 -17
- package/dist/index.js.map +0 -0
- package/package.json +5 -6
- package/LICENSE +0 -674
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
[33m@atomicfinance/bitcoin-wallet-provider:test: [0mcache hit, replaying output [2mcc5a2e402ef25414[0m
|
|
2
|
+
[33m@atomicfinance/bitcoin-wallet-provider:test: [0m$ yarn run build
|
|
3
|
+
[33m@atomicfinance/bitcoin-wallet-provider:test: [0m$ ../../node_modules/.bin/tsc --project tsconfig.json
|
package/CHANGELOG.md
ADDED
|
@@ -85,7 +85,27 @@ export default class BitcoinWalletProvider extends Provider implements Partial<F
|
|
|
85
85
|
hex: string;
|
|
86
86
|
fee: number;
|
|
87
87
|
}>;
|
|
88
|
+
/**
|
|
89
|
+
* quickGetAddresses is an optimized version of getAddresses.
|
|
90
|
+
* It removes the call to `asyncSetImmediate()`, speeding up the function by a factor of 6x.
|
|
91
|
+
*
|
|
92
|
+
* @param startingIndex
|
|
93
|
+
* @param numAddresses
|
|
94
|
+
* @param change
|
|
95
|
+
* @returns {Promise<Address[]>}
|
|
96
|
+
*/
|
|
88
97
|
quickGetAddresses(startingIndex?: number, numAddresses?: number, change?: boolean): Promise<Address[]>;
|
|
98
|
+
/**
|
|
99
|
+
* quickFindAddress is an optimized version of findAddress.
|
|
100
|
+
*
|
|
101
|
+
* It searches through both change and non-change addresses each iteration.
|
|
102
|
+
*
|
|
103
|
+
* This is in contrast to the original findAddress function which searches
|
|
104
|
+
* through all non-change addresses before moving on to change addresses.
|
|
105
|
+
*
|
|
106
|
+
* @param addresses
|
|
107
|
+
* @returns {Promise<Address[]>}
|
|
108
|
+
*/
|
|
89
109
|
quickFindAddress(addresses: string[]): Promise<Address>;
|
|
90
110
|
}
|
|
91
111
|
export {};
|