@atomicfinance/provider 3.6.0 → 4.0.0

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.
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 14.15.4
1
+ 18.18.2
@@ -0,0 +1 @@
1
+
File without changes
package/CHANGELOG.md CHANGED
@@ -1,5 +1,82 @@
1
1
  # @atomicfinance/provider
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 8989c75: Upgrade to @node-dlc v1.0.0
8
+
9
+ ## Breaking Changes
10
+
11
+ This release upgrades to @node-dlc v1.0.0 with significant breaking changes:
12
+
13
+ ### Dependencies
14
+
15
+ - Upgraded @node-dlc packages from 0.24.0 to ^1.0.0
16
+ - Minimum Node.js version now 18.18.2
17
+ - Added decimal.js dependency for F64 type support
18
+
19
+ ### API Changes
20
+
21
+ - **Message Types**: Removed versioned suffixes (DlcOfferV0 → DlcOffer)
22
+ - **Property Names**:
23
+ - `fundingPubKey` → `fundingPubkey`
24
+ - `payoutSPK` → `payoutSpk`
25
+ - `changeSPK` → `changeSpk`
26
+ - `cetSignatures` → `cetAdaptorSignatures`
27
+ - `tempContractId` → `temporaryContractId`
28
+
29
+ ### Type System
30
+
31
+ - **Contract Descriptors**: V0/V1 types replaced with Enumerated/Numerical descriptors
32
+ - **Oracle Types**: OracleInfoV0 → SingleOracleInfo/MultiOracleInfo
33
+ - **Message Validation**: Switched from type-based to property-based checking
34
+ - **Enum Outcomes**: Migrated from Buffer to string format
35
+
36
+ ### New Features
37
+
38
+ - Enhanced oracle event descriptor handling
39
+ - Improved decimal precision with F64 types
40
+ - Fallback outcome index search algorithm
41
+ - Auto-generation of temporary contract IDs
42
+
43
+ ## Migration Guide
44
+
45
+ ### Code Updates Required
46
+
47
+ ```javascript
48
+ // Before
49
+ const dlcOffer = new DlcOfferV0();
50
+ dlcOffer.fundingPubKey = pubkey;
51
+ dlcOffer.payoutSPK = spk;
52
+
53
+ // After
54
+ const dlcOffer = new DlcOffer();
55
+ dlcOffer.fundingPubkey = pubkey;
56
+ dlcOffer.payoutSpk = spk;
57
+ ```
58
+
59
+ ### Environment
60
+
61
+ - Update Node.js to 18.18.2+
62
+ - Run `yarn install` to update dependencies
63
+ - Review custom DLC implementations for compatibility
64
+
65
+ This is a **major breaking change** requiring code updates in consuming applications.
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [8989c75]
70
+ - @atomicfinance/types@4.0.0
71
+
72
+ ## 3.6.1
73
+
74
+ ### Patch Changes
75
+
76
+ - 3c85279: Upgrade bitcoinjs-lib v6 with ECPair migration
77
+ - Updated dependencies [3c85279]
78
+ - @atomicfinance/types@3.6.1
79
+
3
80
  ## 3.6.0
4
81
 
5
82
  ### Minor Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomicfinance/provider",
3
3
  "umdName": "Provider",
4
- "version": "3.6.0",
4
+ "version": "4.0.0",
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": "^3.6.0",
18
+ "@atomicfinance/types": "^4.0.0",
19
19
  "lodash": "^4.17.20"
20
20
  },
21
21
  "devDependencies": {