@atomicfinance/bitcoin-js-wallet-provider
Advanced tools
Comparing version 3.2.1 to 3.2.2
# @atomicfinance/bitcoin-js-wallet-provider | ||
## 3.2.2 | ||
### Patch Changes | ||
- e5ff4c2: custom starting addressIndex | ||
- Updated dependencies [e5ff4c2] | ||
- @atomicfinance/bitcoin-wallet-provider@3.2.2 | ||
- @atomicfinance/bitcoin-utils@3.2.2 | ||
- @atomicfinance/types@3.2.2 | ||
- @atomicfinance/utils@3.2.2 | ||
## 3.2.1 | ||
@@ -4,0 +15,0 @@ |
@@ -14,2 +14,3 @@ /// <reference types="node" /> | ||
addressType?: bT.AddressType; | ||
addressIndex?: number; | ||
} | ||
@@ -24,2 +25,3 @@ declare const BitcoinJsWalletProvider_base: (new (...args: any[]) => { | ||
_addressType: bT.AddressType; | ||
_addressIndex: number; | ||
_derivationCache: { | ||
@@ -26,0 +28,0 @@ [index: string]: Address; |
@@ -39,4 +39,4 @@ "use strict"; | ||
constructor(options) { | ||
const { network, mnemonic, baseDerivationPath, addressType = types_1.bitcoin.AddressType.BECH32, } = options; | ||
super({ network, baseDerivationPath, addressType }); | ||
const { network, mnemonic, baseDerivationPath, addressType = types_1.bitcoin.AddressType.BECH32, addressIndex = 0, } = options; | ||
super({ network, baseDerivationPath, addressType, addressIndex }); | ||
if (!mnemonic) | ||
@@ -43,0 +43,0 @@ throw new Error('Mnemonic should not be empty'); |
@@ -41,2 +41,3 @@ import { | ||
addressType?: bT.AddressType; | ||
addressIndex?: number; | ||
} | ||
@@ -57,4 +58,5 @@ | ||
addressType = bT.AddressType.BECH32, | ||
addressIndex = 0, | ||
} = options; | ||
super({ network, baseDerivationPath, addressType }); | ||
super({ network, baseDerivationPath, addressType, addressIndex }); | ||
@@ -61,0 +63,0 @@ if (!mnemonic) throw new Error('Mnemonic should not be empty'); |
{ | ||
"name": "@atomicfinance/bitcoin-js-wallet-provider", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "", | ||
@@ -27,6 +27,6 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@atomicfinance/bitcoin-utils": "^3.2.1", | ||
"@atomicfinance/bitcoin-wallet-provider": "^3.2.1", | ||
"@atomicfinance/types": "^3.2.1", | ||
"@atomicfinance/utils": "^3.2.1", | ||
"@atomicfinance/bitcoin-utils": "^3.2.2", | ||
"@atomicfinance/bitcoin-wallet-provider": "^3.2.2", | ||
"@atomicfinance/types": "^3.2.2", | ||
"@atomicfinance/utils": "^3.2.2", | ||
"@babel/runtime": "^7.12.1", | ||
@@ -33,0 +33,0 @@ "bip32": "^2.0.6", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64422
1192