Socket
Socket
Sign inDemoInstall

@atomicfinance/bitcoin-dlc-provider

Package Overview
Dependencies
86
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.0 to 3.4.1

11

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

6

dist/BitcoinDlcProvider.d.ts

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

2

dist/utils/Utils.d.ts
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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc