@atomicfinance/bitcoin-js-wallet-provider
Advanced tools
Comparing version 3.2.2 to 3.2.3
# @atomicfinance/bitcoin-js-wallet-provider | ||
## 3.2.3 | ||
### Patch Changes | ||
- dcb115e: custom starting changeAddressIndex | ||
- Updated dependencies [dcb115e] | ||
- @atomicfinance/bitcoin-wallet-provider@3.2.3 | ||
- @atomicfinance/bitcoin-utils@3.2.3 | ||
- @atomicfinance/types@3.2.3 | ||
- @atomicfinance/utils@3.2.3 | ||
## 3.2.2 | ||
@@ -4,0 +15,0 @@ |
@@ -15,2 +15,3 @@ /// <reference types="node" /> | ||
addressIndex?: number; | ||
changeAddressIndex?: number; | ||
} | ||
@@ -26,2 +27,3 @@ declare const BitcoinJsWalletProvider_base: (new (...args: any[]) => { | ||
_addressIndex: number; | ||
_changeAddressIndex: number; | ||
_derivationCache: { | ||
@@ -28,0 +30,0 @@ [index: string]: Address; |
@@ -39,4 +39,10 @@ "use strict"; | ||
constructor(options) { | ||
const { network, mnemonic, baseDerivationPath, addressType = types_1.bitcoin.AddressType.BECH32, addressIndex = 0, } = options; | ||
super({ network, baseDerivationPath, addressType, addressIndex }); | ||
const { network, mnemonic, baseDerivationPath, addressType = types_1.bitcoin.AddressType.BECH32, addressIndex = 0, changeAddressIndex = 0, } = options; | ||
super({ | ||
network, | ||
baseDerivationPath, | ||
addressType, | ||
addressIndex, | ||
changeAddressIndex, | ||
}); | ||
if (!mnemonic) | ||
@@ -43,0 +49,0 @@ throw new Error('Mnemonic should not be empty'); |
@@ -42,2 +42,3 @@ import { | ||
addressIndex?: number; | ||
changeAddressIndex?: number; | ||
} | ||
@@ -59,4 +60,11 @@ | ||
addressIndex = 0, | ||
changeAddressIndex = 0, | ||
} = options; | ||
super({ network, baseDerivationPath, addressType, addressIndex }); | ||
super({ | ||
network, | ||
baseDerivationPath, | ||
addressType, | ||
addressIndex, | ||
changeAddressIndex, | ||
}); | ||
@@ -63,0 +71,0 @@ if (!mnemonic) throw new Error('Mnemonic should not be empty'); |
{ | ||
"name": "@atomicfinance/bitcoin-js-wallet-provider", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "", | ||
@@ -27,6 +27,6 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@atomicfinance/bitcoin-utils": "^3.2.2", | ||
"@atomicfinance/bitcoin-wallet-provider": "^3.2.2", | ||
"@atomicfinance/types": "^3.2.2", | ||
"@atomicfinance/utils": "^3.2.2", | ||
"@atomicfinance/bitcoin-utils": "^3.2.3", | ||
"@atomicfinance/bitcoin-wallet-provider": "^3.2.3", | ||
"@atomicfinance/types": "^3.2.3", | ||
"@atomicfinance/utils": "^3.2.3", | ||
"@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
65012
1208