@atomicfinance/bitcoin-dlc-provider
Advanced tools
Comparing version 3.4.0 to 3.4.1
# @atomicfinance/bitcoin-dlc-provider | ||
## 3.4.1 | ||
### Patch Changes | ||
- 9781efe: Add getInputsForDualFunding functionality and bump @node-dlc | ||
- Updated dependencies [9781efe] | ||
- @atomicfinance/bitcoin-utils@3.4.1 | ||
- @atomicfinance/types@3.4.1 | ||
- @atomicfinance/provider@3.4.1 | ||
- @atomicfinance/utils@3.4.1 | ||
## 3.4.0 | ||
@@ -4,0 +15,0 @@ |
@@ -14,3 +14,3 @@ /// <reference types="node" /> | ||
GetCfdNetwork(): Promise<string>; | ||
GetInputsForAmount(amount: bigint, feeRatePerVb: bigint, fixedInputs?: Input[]): Promise<Input[]>; | ||
GetInputsForAmount(amounts: bigint[], feeRatePerVb: bigint, fixedInputs?: Input[]): Promise<Input[]>; | ||
private Initialize; | ||
@@ -271,2 +271,6 @@ private BatchInitialize; | ||
} | ||
export interface InputsForDualAmountResponse { | ||
inputs: Input[]; | ||
fee: number; | ||
} | ||
export {}; |
import { Messages, PayoutRequest } from '@atomicfinance/types'; | ||
import { DlcAccept, DlcAcceptV0, DlcClose, DlcCloseV0, DlcOffer, DlcOfferV0, DlcSign, DlcSignV0, DlcTransactions, DlcTransactionsV0 } from '@node-dlc/messaging'; | ||
export declare function asyncForEach(array: any, callback: any): Promise<void>; | ||
export declare const asyncForEach: (array: any, callback: any) => Promise<void>; | ||
export declare function generateSerialId(): bigint; | ||
@@ -5,0 +5,0 @@ export declare function generateSerialIds(count: number): bigint[]; |
@@ -9,7 +9,7 @@ "use strict"; | ||
const randombytes_1 = __importDefault(require("randombytes")); | ||
async function asyncForEach(array, callback) { | ||
const asyncForEach = async (array, callback) => { | ||
for (let index = 0; index < array.length; index++) { | ||
await callback(array[index], index, array); | ||
} | ||
} | ||
}; | ||
exports.asyncForEach = asyncForEach; | ||
@@ -16,0 +16,0 @@ function generateSerialId() { |
@@ -17,7 +17,10 @@ import { Messages, PayoutRequest } from '@atomicfinance/types'; | ||
export async function asyncForEach(array: any, callback: any) { | ||
export const asyncForEach = async ( | ||
array: any, | ||
callback: any, | ||
): Promise<void> => { | ||
for (let index = 0; index < array.length; index++) { | ||
await callback(array[index], index, array); | ||
} | ||
} | ||
}; | ||
@@ -24,0 +27,0 @@ export function generateSerialId(): bigint { |
{ | ||
"name": "@atomicfinance/bitcoin-dlc-provider", | ||
"umdName": "BitcoinDlcProvider", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "Bitcoin Abstraction Layer Dlc Provider", | ||
@@ -18,8 +18,8 @@ "author": "Atomic Finance <info@atomic.finance>", | ||
"dependencies": { | ||
"@atomicfinance/bitcoin-utils": "3.4.0", | ||
"@atomicfinance/provider": "^3.4.0", | ||
"@atomicfinance/types": "^3.4.0", | ||
"@atomicfinance/utils": "^3.4.0", | ||
"@node-dlc/core": "0.22.4", | ||
"@node-dlc/messaging": "0.22.4", | ||
"@atomicfinance/bitcoin-utils": "3.4.1", | ||
"@atomicfinance/provider": "^3.4.1", | ||
"@atomicfinance/types": "^3.4.1", | ||
"@atomicfinance/utils": "^3.4.1", | ||
"@node-dlc/core": "0.23.0", | ||
"@node-dlc/messaging": "0.23.0", | ||
"@node-lightning/bitcoin": "0.26.1", | ||
@@ -26,0 +26,0 @@ "@node-lightning/bufio": "0.26.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
337954
+ Added@atomicfinance/bitcoin-utils@3.4.1(transitive)
+ Added@node-dlc/core@0.23.0(transitive)
+ Added@node-dlc/messaging@0.23.0(transitive)
+ Addeddecimal.js@10.4.3(transitive)
- Removed@atomicfinance/bitcoin-utils@3.4.0(transitive)
- Removed@node-dlc/bitcoin@0.22.6(transitive)
- Removed@node-dlc/core@0.22.4(transitive)
- Removed@node-dlc/messaging@0.22.4(transitive)
Updated@atomicfinance/types@^3.4.1
Updated@atomicfinance/utils@^3.4.1
Updated@node-dlc/core@0.23.0
Updated@node-dlc/messaging@0.23.0