@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.
@@ -0,0 +1,2 @@
1
+ @atomicfinance/bitcoin-wallet-provider:build: cache hit, replaying output d819286900be3739
2
+ @atomicfinance/bitcoin-wallet-provider:build: $ ../../node_modules/.bin/tsc --project tsconfig.json
@@ -0,0 +1,3 @@
1
+ @atomicfinance/bitcoin-wallet-provider:test: cache hit, replaying output cc5a2e402ef25414
2
+ @atomicfinance/bitcoin-wallet-provider:test: $ yarn run build
3
+ @atomicfinance/bitcoin-wallet-provider:test: $ ../../node_modules/.bin/tsc --project tsconfig.json
package/CHANGELOG.md ADDED
@@ -0,0 +1,10 @@
1
+ # @atomicfinance/bitcoin-wallet-provider
2
+
3
+ ## 2.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Upgrade various package dependencies
8
+ - Updated dependencies
9
+ - @atomicfinance/provider@2.5.1
10
+ - @atomicfinance/types@2.5.1
@@ -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 {};