Socket
Socket
Sign inDemoInstall

@atomicfinance/bitcoin-js-wallet-provider

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomicfinance/bitcoin-js-wallet-provider - npm Package Compare versions

Comparing version 3.2.2 to 3.2.3

11

CHANGELOG.md
# @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 @@

2

dist/BitcoinJsWalletProvider.d.ts

@@ -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;

10

dist/BitcoinJsWalletProvider.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc