@atomicfinance/bitcoin-cfd-provider 3.5.2 → 3.6.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.
@@ -1 +0,0 @@
1
-
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atomicfinance/bitcoin-cfd-provider
2
2
 
3
+ ## 3.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cbf35c5: - **BREAKING CHANGE**: Migrated from `@node-lightning` packages to `@node-dlc` packages
8
+ - Updated all imports from `@node-lightning/*` to `@node-dlc/*`
9
+ - Update @node-dlc 0.24.0 and Node 18+
10
+ - Upgraded Node.js requirement to v18+
11
+ - Updated cfd-dlc-js to v0.0.51 and cfd-js to v0.3.13
12
+ - Removed unused dependencies: lerna, mocha-webpack
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [cbf35c5]
17
+ - @atomicfinance/types@3.6.0
18
+ - @atomicfinance/provider@3.6.0
19
+ - @atomicfinance/utils@3.6.0
20
+
21
+ ## 3.5.3
22
+
23
+ ### Patch Changes
24
+
25
+ - 87ff085: Fix enum hashed outcomes
26
+ - Updated dependencies [87ff085]
27
+ - @atomicfinance/provider@3.5.3
28
+ - @atomicfinance/types@3.5.3
29
+ - @atomicfinance/utils@3.5.3
30
+
3
31
  ## 3.5.2
4
32
 
5
33
  ### Patch Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomicfinance/bitcoin-cfd-provider",
3
3
  "umdName": "BitcoinCfdProvider",
4
- "version": "3.5.2",
4
+ "version": "3.6.0",
5
5
  "description": "Bitcoin Abstraction Layer Cfd Provider",
6
6
  "author": "Atomic Finance <info@atomic.finance>",
7
7
  "homepage": "",
@@ -15,9 +15,9 @@
15
15
  "lint:fix": "../../node_modules/.bin/eslint --fix --ignore-path ../../.eslintignore -c ../../.eslintrc.js ."
16
16
  },
17
17
  "dependencies": {
18
- "@atomicfinance/provider": "^3.5.2",
19
- "@atomicfinance/types": "^3.5.2",
20
- "@atomicfinance/utils": "^3.5.2",
18
+ "@atomicfinance/provider": "^3.6.0",
19
+ "@atomicfinance/types": "^3.6.0",
20
+ "@atomicfinance/utils": "^3.6.0",
21
21
  "lodash": "^4.17.20"
22
22
  },
23
23
  "devDependencies": {
@@ -1 +0,0 @@
1
-
@@ -1,302 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const provider_1 = __importDefault(require("@atomicfinance/provider"));
7
- const utils_1 = require("@atomicfinance/utils");
8
- class BitcoinCfdProvider extends provider_1.default {
9
- constructor(cfdJs) {
10
- super();
11
- this._cfdJs = cfdJs;
12
- }
13
- async CfdLoaded() {
14
- while (!this._cfdJs) {
15
- await (0, utils_1.sleep)(10);
16
- }
17
- }
18
- async AddMultisigSign(jsonObject) {
19
- await this.CfdLoaded();
20
- return this._cfdJs.AddMultisigSign(jsonObject);
21
- }
22
- async AddPubkeyHashSign(jsonObject) {
23
- await this.CfdLoaded();
24
- return this._cfdJs.AddPubkeyHashSign(jsonObject);
25
- }
26
- async AddRawTransaction(jsonObject) {
27
- await this.CfdLoaded();
28
- return this._cfdJs.AddRawTransaction(jsonObject);
29
- }
30
- async AddScriptHashSign(jsonObject) {
31
- await this.CfdLoaded();
32
- return this._cfdJs.AddScriptHashSign(jsonObject);
33
- }
34
- async AddSign(jsonObject) {
35
- await this.CfdLoaded();
36
- return this._cfdJs.AddSign(jsonObject);
37
- }
38
- async AppendDescriptorChecksum(jsonObject) {
39
- await this.CfdLoaded();
40
- return this._cfdJs.AppendDescriptorChecksum(jsonObject);
41
- }
42
- async BlindRawTransaction(jsonObject) {
43
- await this.CfdLoaded();
44
- return this._cfdJs.BlindRawTransaction(jsonObject);
45
- }
46
- async CalculateEcSignature(jsonObject) {
47
- await this.CfdLoaded();
48
- return this._cfdJs.CalculateEcSignature(jsonObject);
49
- }
50
- async ConvertAes(jsonObject) {
51
- await this.CfdLoaded();
52
- return this._cfdJs.ConvertAes(jsonObject);
53
- }
54
- async ConvertEntropyToMnemonic(jsonObject) {
55
- await this.CfdLoaded();
56
- return this._cfdJs.ConvertEntropyToMnemonic(jsonObject);
57
- }
58
- async ConvertMnemonicToSeed(jsonObject) {
59
- await this.CfdLoaded();
60
- return this._cfdJs.ConvertMnemonicToSeed(jsonObject);
61
- }
62
- async CreateAddress(jsonObject) {
63
- await this.CfdLoaded();
64
- return this._cfdJs.CreateAddress(jsonObject);
65
- }
66
- async CreateDescriptor(jsonObject) {
67
- await this.CfdLoaded();
68
- return this._cfdJs.CreateDescriptor(jsonObject);
69
- }
70
- async CreateExtkey(jsonObject) {
71
- await this.CfdLoaded();
72
- return this._cfdJs.CreateExtkey(jsonObject);
73
- }
74
- async CreateExtkeyFromParent(jsonObject) {
75
- await this.CfdLoaded();
76
- return this._cfdJs.CreateExtkeyFromParent(jsonObject);
77
- }
78
- async CreateExtkeyFromParentKey(jsonObject) {
79
- await this.CfdLoaded();
80
- return this._cfdJs.CreateExtkeyFromParentKey(jsonObject);
81
- }
82
- async CreateExtkeyFromParentPath(jsonObject) {
83
- await this.CfdLoaded();
84
- return this._cfdJs.CreateExtkeyFromParentPath(jsonObject);
85
- }
86
- async CreateExtkeyFromSeed(jsonObject) {
87
- await this.CfdLoaded();
88
- return this._cfdJs.CreateExtkeyFromSeed(jsonObject);
89
- }
90
- async CreateExtPubkey(jsonObject) {
91
- await this.CfdLoaded();
92
- return this._cfdJs.CreateExtPubkey(jsonObject);
93
- }
94
- async CreateKeyPair(jsonObject) {
95
- await this.CfdLoaded();
96
- return this._cfdJs.CreateKeyPair(jsonObject);
97
- }
98
- async CreateMultisigScriptSig(jsonObject) {
99
- await this.CfdLoaded();
100
- return this._cfdJs.CreateMultisigScriptSig(jsonObject);
101
- }
102
- async CreateScript(jsonObject) {
103
- await this.CfdLoaded();
104
- return this._cfdJs.CreateScript(jsonObject);
105
- }
106
- async DecodeBase58(jsonObject) {
107
- await this.CfdLoaded();
108
- return this._cfdJs.DecodeBase58(jsonObject);
109
- }
110
- async DecodeDerSignatureToRaw(jsonObject) {
111
- await this.CfdLoaded();
112
- return this._cfdJs.DecodeDerSignatureToRaw(jsonObject);
113
- }
114
- async DecodeRawTransaction(jsonObject) {
115
- await this.CfdLoaded();
116
- return this._cfdJs.DecodeRawTransaction(jsonObject);
117
- }
118
- async ElementsAddRawTransaction(jsonObject) {
119
- await this.CfdLoaded();
120
- return this._cfdJs.ElementsAddRawTransaction(jsonObject);
121
- }
122
- async CreateDestroyAmount(jsonObject) {
123
- await this.CfdLoaded();
124
- return this._cfdJs.CreateDestroyAmount(jsonObject);
125
- }
126
- async CreatePegInAddress(jsonObject) {
127
- await this.CfdLoaded();
128
- return this._cfdJs.CreatePegInAddress(jsonObject);
129
- }
130
- async CreateRawPegin(jsonObject) {
131
- await this.CfdLoaded();
132
- return this._cfdJs.CreateRawPegin(jsonObject);
133
- }
134
- async CreateRawPegout(jsonObject) {
135
- await this.CfdLoaded();
136
- return this._cfdJs.CreateRawPegout(jsonObject);
137
- }
138
- async ElementsCreateRawTransaction(jsonObject) {
139
- await this.CfdLoaded();
140
- return this._cfdJs.ElementsCreateRawTransaction(jsonObject);
141
- }
142
- async ElementsDecodeRawTransaction(jsonObject) {
143
- await this.CfdLoaded();
144
- return this._cfdJs.ElementsDecodeRawTransaction(jsonObject);
145
- }
146
- async GetConfidentialAddress(jsonObject) {
147
- await this.CfdLoaded();
148
- return this._cfdJs.GetConfidentialAddress(jsonObject);
149
- }
150
- async GetUnblindedAddress(jsonObject) {
151
- await this.CfdLoaded();
152
- return this._cfdJs.GetUnblindedAddress(jsonObject);
153
- }
154
- async SetRawIssueAsset(jsonObject) {
155
- await this.CfdLoaded();
156
- return this._cfdJs.SetRawIssueAsset(jsonObject);
157
- }
158
- async SetRawReissueAsset(jsonObject) {
159
- await this.CfdLoaded();
160
- return this._cfdJs.SetRawReissueAsset(jsonObject);
161
- }
162
- async UnblindRawTransaction(jsonObject) {
163
- await this.CfdLoaded();
164
- return this._cfdJs.UnblindRawTransaction(jsonObject);
165
- }
166
- async EncodeBase58(jsonObject) {
167
- await this.CfdLoaded();
168
- return this._cfdJs.EncodeBase58(jsonObject);
169
- }
170
- async EncodeSignatureByDer(jsonObject) {
171
- await this.CfdLoaded();
172
- return this._cfdJs.EncodeSignatureByDer(jsonObject);
173
- }
174
- async EstimateFee(jsonObject) {
175
- await this.CfdLoaded();
176
- return this._cfdJs.EstimateFee(jsonObject);
177
- }
178
- async FundRawTransaction(jsonObject) {
179
- await this.CfdLoaded();
180
- return this._cfdJs.FundRawTransaction(jsonObject);
181
- }
182
- async GetAddressInfo(jsonObject) {
183
- await this.CfdLoaded();
184
- return this._cfdJs.GetAddressInfo(jsonObject);
185
- }
186
- async GetAddressesFromMultisig(jsonObject) {
187
- await this.CfdLoaded();
188
- return this._cfdJs.GetAddressesFromMultisig(jsonObject);
189
- }
190
- async GetCommitment(jsonObject) {
191
- await this.CfdLoaded();
192
- return this._cfdJs.GetCommitment(jsonObject);
193
- }
194
- async GetCompressedPubkey(jsonObject) {
195
- await this.CfdLoaded();
196
- return this._cfdJs.GetCompressedPubkey(jsonObject);
197
- }
198
- async GetDefaultBlindingKey(jsonObject) {
199
- await this.CfdLoaded();
200
- return this._cfdJs.GetDefaultBlindingKey(jsonObject);
201
- }
202
- async GetExtkeyInfo(jsonObject) {
203
- await this.CfdLoaded();
204
- return this._cfdJs.GetExtkeyInfo(jsonObject);
205
- }
206
- async GetIssuanceBlindingKey(jsonObject) {
207
- await this.CfdLoaded();
208
- return this._cfdJs.GetIssuanceBlindingKey(jsonObject);
209
- }
210
- async GetMnemonicWordlist(jsonObject) {
211
- await this.CfdLoaded();
212
- return this._cfdJs.GetMnemonicWordlist(jsonObject);
213
- }
214
- async GetPrivkeyFromExtkey(jsonObject) {
215
- await this.CfdLoaded();
216
- return this._cfdJs.GetPrivkeyFromExtkey(jsonObject);
217
- }
218
- async GetPrivkeyFromWif(jsonObject) {
219
- await this.CfdLoaded();
220
- return this._cfdJs.GetPrivkeyFromWif(jsonObject);
221
- }
222
- async GetPrivkeyWif(jsonObject) {
223
- await this.CfdLoaded();
224
- return this._cfdJs.GetPrivkeyWif(jsonObject);
225
- }
226
- async GetPubkeyFromExtkey(jsonObject) {
227
- await this.CfdLoaded();
228
- return this._cfdJs.GetPubkeyFromExtkey(jsonObject);
229
- }
230
- async GetPubkeyFromPrivkey(jsonObject) {
231
- await this.CfdLoaded();
232
- return this._cfdJs.GetPubkeyFromPrivkey(jsonObject);
233
- }
234
- async GetWitnessStackNum(jsonObject) {
235
- await this.CfdLoaded();
236
- return this._cfdJs.GetWitnessStackNum(jsonObject);
237
- }
238
- async CreateMultisig(jsonObject) {
239
- await this.CfdLoaded();
240
- return this._cfdJs.CreateMultisig(jsonObject);
241
- }
242
- async ParseDescriptor(jsonObject) {
243
- await this.CfdLoaded();
244
- return this._cfdJs.ParseDescriptor(jsonObject);
245
- }
246
- async ParseScript(jsonObject) {
247
- await this.CfdLoaded();
248
- return this._cfdJs.ParseScript(jsonObject);
249
- }
250
- async SelectUtxos(jsonObject) {
251
- await this.CfdLoaded();
252
- return this._cfdJs.SelectUtxos(jsonObject);
253
- }
254
- async SerializeLedgerFormat(jsonObject) {
255
- await this.CfdLoaded();
256
- return this._cfdJs.SerializeLedgerFormat(jsonObject);
257
- }
258
- async CreateSignatureHash(jsonObject) {
259
- await this.CfdLoaded();
260
- return this._cfdJs.CreateSignatureHash(jsonObject);
261
- }
262
- async CreateElementsSignatureHash(jsonObject) {
263
- await this.CfdLoaded();
264
- return this._cfdJs.CreateElementsSignatureHash(jsonObject);
265
- }
266
- async SignWithPrivkey(jsonObject) {
267
- await this.CfdLoaded();
268
- return this._cfdJs.SignWithPrivkey(jsonObject);
269
- }
270
- async GetSupportedFunction() {
271
- await this.CfdLoaded();
272
- return this._cfdJs.GetSupportedFunction();
273
- }
274
- async CreateRawTransaction(jsonObject) {
275
- await this.CfdLoaded();
276
- return this._cfdJs.CreateRawTransaction(jsonObject);
277
- }
278
- async UpdateTxOutAmount(jsonObject) {
279
- await this.CfdLoaded();
280
- return this._cfdJs.UpdateTxOutAmount(jsonObject);
281
- }
282
- async UpdateWitnessStack(jsonObject) {
283
- await this.CfdLoaded();
284
- return this._cfdJs.UpdateWitnessStack(jsonObject);
285
- }
286
- async VerifySign(jsonObject) {
287
- await this.CfdLoaded();
288
- return this._cfdJs.VerifySign(jsonObject);
289
- }
290
- async VerifySignature(jsonObject) {
291
- await this.CfdLoaded();
292
- return this._cfdJs.VerifySignature(jsonObject);
293
- }
294
- async GetAddressScript(address) {
295
- await this.CfdLoaded();
296
- const req = { address };
297
- const info = await this.GetAddressInfo(req);
298
- return info.lockingScript;
299
- }
300
- }
301
- exports.default = BitcoinCfdProvider;
302
- //# sourceMappingURL=BitcoinCfdProvider.js.map
package/lib/index.js DELETED
@@ -1,9 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.default = void 0;
7
- var BitcoinCfdProvider_1 = require("./BitcoinCfdProvider");
8
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(BitcoinCfdProvider_1).default; } });
9
- //# sourceMappingURL=index.js.map