@atomicfinance/bitcoin-js-wallet-provider
Advanced tools
Comparing version 3.4.0 to 3.4.1
# @atomicfinance/bitcoin-js-wallet-provider | ||
## 3.4.1 | ||
### Patch Changes | ||
- 9781efe: Add getInputsForDualFunding functionality and bump @node-dlc | ||
- Updated dependencies [9781efe] | ||
- @atomicfinance/bitcoin-utils@3.4.1 | ||
- @atomicfinance/bitcoin-wallet-provider@3.4.1 | ||
- @atomicfinance/types@3.4.1 | ||
- @atomicfinance/utils@3.4.1 | ||
## 3.4.0 | ||
@@ -4,0 +15,0 @@ |
@@ -99,6 +99,10 @@ /// <reference types="node" /> | ||
inputs: bT.UTXO[]; | ||
change: any; | ||
change: import("@atomicfinance/bitcoin-utils").CoinSelectTarget; | ||
outputs: import("@atomicfinance/bitcoin-utils").CoinSelectTarget[]; | ||
fee: number; | ||
}>; | ||
getInputsForDualFunding(collaterals: number[], feePerByte?: number, fixedInputs?: bT.Input[], numAddressPerCall?: number): Promise<{ | ||
inputs: import("@node-dlc/core").UTXO[]; | ||
fee: bigint; | ||
}>; | ||
client: import("@atomicfinance/types").IClient; | ||
@@ -197,3 +201,3 @@ setClient(client?: import("@atomicfinance/types").IClient): void; | ||
} | ||
], addresses: string, tx: any, _lockTime?: number, segwit?: boolean): Promise<any[]>; | ||
], addresses: string, tx: any, _lockTime?: number, segwit?: boolean): Promise<Buffer[]>; | ||
getScriptType(): "p2wpkh" | "p2pkh" | "p2sh-p2wpkh"; | ||
@@ -200,0 +204,0 @@ getConnectedNetwork(): Promise<BitcoinNetwork>; |
@@ -306,3 +306,6 @@ import { | ||
fixedInputs: Input[], | ||
) { | ||
): Promise<{ | ||
hex: string; | ||
fee: number; | ||
}> { | ||
return this._buildSweepTransactionWithSetOutputs( | ||
@@ -321,3 +324,6 @@ externalChangeAddress, | ||
fixedInputs: Input[], | ||
) { | ||
): Promise<{ | ||
hex: string; | ||
fee: number; | ||
}> { | ||
const _feePerByte = | ||
@@ -610,3 +616,3 @@ feePerByte || | ||
segwit?: boolean, | ||
) { | ||
): Promise<Buffer[]> { | ||
const keyPairs = []; | ||
@@ -619,3 +625,3 @@ for (const address of addresses) { | ||
const sigs = []; | ||
const sigs: Buffer[] = []; | ||
for (let i = 0; i < inputs.length; i++) { | ||
@@ -622,0 +628,0 @@ const index = inputs[i].txInputIndex |
{ | ||
"name": "@atomicfinance/bitcoin-js-wallet-provider", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "", | ||
@@ -27,7 +27,8 @@ "module": "dist/index.js", | ||
"dependencies": { | ||
"@atomicfinance/bitcoin-utils": "^3.4.0", | ||
"@atomicfinance/bitcoin-wallet-provider": "^3.4.0", | ||
"@atomicfinance/types": "^3.4.0", | ||
"@atomicfinance/utils": "^3.4.0", | ||
"@atomicfinance/bitcoin-utils": "^3.4.1", | ||
"@atomicfinance/bitcoin-wallet-provider": "^3.4.1", | ||
"@atomicfinance/types": "^3.4.1", | ||
"@atomicfinance/utils": "^3.4.1", | ||
"@babel/runtime": "^7.12.1", | ||
"@node-dlc/core": "0.23.0", | ||
"bip32": "^2.0.6", | ||
@@ -34,0 +35,0 @@ "bip39": "^3.0.2", |
Sorry, the diff of this file is not supported yet
67035
1218
12
+ Added@node-dlc/core@0.23.0
+ Added@node-dlc/core@0.23.0(transitive)
Updated@atomicfinance/types@^3.4.1
Updated@atomicfinance/utils@^3.4.1