@atomicfinance/provider 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @atomicfinance/provider
2
2
 
3
+ ## 4.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 79a403b: Fix typescript strict mode compilation errors
8
+ - Updated dependencies [79a403b]
9
+ - @atomicfinance/types@4.0.2
10
+
11
+ ## 4.0.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 03c6974: Add DLC input splicing support
16
+
17
+ This release introduces DLC (Discreet Log Contract) input splicing functionality, enabling more flexible contract funding and management.
18
+
19
+ ## Key Features
20
+ - **Core Types**: Added new types and interfaces for DLC input splicing operations
21
+ - **Provider Integration**: Implemented splicing support in BitcoinDlcProvider with proper input handling
22
+ - **Comprehensive Testing**: Added integration tests to validate splicing functionality
23
+ - **Dependency Updates**: Upgraded @node-dlc to v1.1.0 for enhanced splicing capabilities
24
+
25
+ ## What's New
26
+ - DLC contracts can now be funded using spliced inputs
27
+ - Enhanced input selection and handling for splicing operations
28
+ - Improved test coverage for edge cases in DLC splicing scenarios
29
+
30
+ This feature enables more efficient Bitcoin transaction management when working with DLC contracts by allowing existing UTXOs to be split and used as contract inputs.
31
+
32
+ - d94fbbf: Fix TypeScript ESLint compatibility and improve type safety
33
+ - Upgrade @typescript-eslint dependencies to v6.21.0 for TypeScript 4.9.5 support
34
+
35
+ - b83e3a8: Add single-funded DLC support and update to node-dlc v1.0.1
36
+ - Add comprehensive single-funded DLC support to BitcoinDlcProvider
37
+ - Update @node-dlc dependencies to v1.0.1 with single-funded support
38
+ - Update cfd-dlc-js to v0.0.52
39
+ - Implement single-funded DLC detection and validation logic
40
+ - Handle acceptDlcOffer with 0 collateral scenarios (no funding)
41
+ - Fix fundTxVout calculation for parties with collateral only
42
+ - Add getFundOutputValueSats helper with proper error handling
43
+ - Add markAsSingleFunded() calls for proper DLC type identification
44
+ - Skip funding validation when accept collateral is 0
45
+ - Generate addresses/keys without requiring funding inputs
46
+
47
+ Enables single-funded DLCs where one party provides all collateral
48
+ while the other party participates without funding inputs.
49
+
50
+ - Updated dependencies [03c6974]
51
+ - Updated dependencies [d94fbbf]
52
+ - Updated dependencies [b83e3a8]
53
+ - @atomicfinance/types@4.0.1
54
+
3
55
  ## 4.0.0
4
56
 
5
57
  ### Major Changes
@@ -11,13 +63,11 @@
11
63
  This release upgrades to @node-dlc v1.0.0 with significant breaking changes:
12
64
 
13
65
  ### Dependencies
14
-
15
66
  - Upgraded @node-dlc packages from 0.24.0 to ^1.0.0
16
67
  - Minimum Node.js version now 18.18.2
17
68
  - Added decimal.js dependency for F64 type support
18
69
 
19
70
  ### API Changes
20
-
21
71
  - **Message Types**: Removed versioned suffixes (DlcOfferV0 → DlcOffer)
22
72
  - **Property Names**:
23
73
  - `fundingPubKey` → `fundingPubkey`
@@ -27,14 +77,12 @@
27
77
  - `tempContractId` → `temporaryContractId`
28
78
 
29
79
  ### Type System
30
-
31
80
  - **Contract Descriptors**: V0/V1 types replaced with Enumerated/Numerical descriptors
32
81
  - **Oracle Types**: OracleInfoV0 → SingleOracleInfo/MultiOracleInfo
33
82
  - **Message Validation**: Switched from type-based to property-based checking
34
83
  - **Enum Outcomes**: Migrated from Buffer to string format
35
84
 
36
85
  ### New Features
37
-
38
86
  - Enhanced oracle event descriptor handling
39
87
  - Improved decimal precision with F64 types
40
88
  - Fallback outcome index search algorithm
@@ -57,7 +105,6 @@
57
105
  ```
58
106
 
59
107
  ### Environment
60
-
61
108
  - Update Node.js to 18.18.2+
62
109
  - Run `yarn install` to update dependencies
63
110
  - Review custom DLC implementations for compatibility
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomicfinance/provider",
3
3
  "umdName": "Provider",
4
- "version": "4.0.0",
4
+ "version": "4.0.2",
5
5
  "description": "Bitcoin Abstraction Layer Provider",
6
6
  "author": "Atomic Finance <info@atomic.finance>",
7
7
  "homepage": "",
@@ -15,7 +15,7 @@
15
15
  "lint:fix": "../../node_modules/.bin/eslint --fix --ignore-path ../../.eslintignore -c ../../.eslintrc.js ."
16
16
  },
17
17
  "dependencies": {
18
- "@atomicfinance/types": "^4.0.0",
18
+ "@atomicfinance/types": "^4.0.2",
19
19
  "lodash": "^4.17.20"
20
20
  },
21
21
  "devDependencies": {