@ckb-ccc/okx 0.0.0-canary-20250214032000

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +405 -0
  2. package/README.md +41 -0
  3. package/dist/advanced.d.ts +2 -0
  4. package/dist/advanced.d.ts.map +1 -0
  5. package/dist/advanced.js +1 -0
  6. package/dist/advancedBarrel.d.ts +40 -0
  7. package/dist/advancedBarrel.d.ts.map +1 -0
  8. package/dist/advancedBarrel.js +1 -0
  9. package/dist/barrel.d.ts +3 -0
  10. package/dist/barrel.d.ts.map +1 -0
  11. package/dist/barrel.js +2 -0
  12. package/dist/btc/index.d.ts +47 -0
  13. package/dist/btc/index.d.ts.map +1 -0
  14. package/dist/btc/index.js +149 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +1 -0
  18. package/dist/nostr/index.d.ts +17 -0
  19. package/dist/nostr/index.d.ts.map +1 -0
  20. package/dist/nostr/index.js +56 -0
  21. package/dist/package.json +3 -0
  22. package/dist/signersFactory.d.ts +10 -0
  23. package/dist/signersFactory.d.ts.map +1 -0
  24. package/dist/signersFactory.js +25 -0
  25. package/dist.commonjs/advanced.d.ts +2 -0
  26. package/dist.commonjs/advanced.d.ts.map +1 -0
  27. package/dist.commonjs/advanced.js +37 -0
  28. package/dist.commonjs/advancedBarrel.d.ts +40 -0
  29. package/dist.commonjs/advancedBarrel.d.ts.map +1 -0
  30. package/dist.commonjs/advancedBarrel.js +2 -0
  31. package/dist.commonjs/barrel.d.ts +3 -0
  32. package/dist.commonjs/barrel.d.ts.map +1 -0
  33. package/dist.commonjs/barrel.js +18 -0
  34. package/dist.commonjs/btc/index.d.ts +47 -0
  35. package/dist.commonjs/btc/index.d.ts.map +1 -0
  36. package/dist.commonjs/btc/index.js +153 -0
  37. package/dist.commonjs/index.d.ts +2 -0
  38. package/dist.commonjs/index.d.ts.map +1 -0
  39. package/dist.commonjs/index.js +37 -0
  40. package/dist.commonjs/nostr/index.d.ts +17 -0
  41. package/dist.commonjs/nostr/index.d.ts.map +1 -0
  42. package/dist.commonjs/nostr/index.js +60 -0
  43. package/dist.commonjs/package.json +3 -0
  44. package/dist.commonjs/signersFactory.d.ts +10 -0
  45. package/dist.commonjs/signersFactory.d.ts.map +1 -0
  46. package/dist.commonjs/signersFactory.js +28 -0
  47. package/package.json +53 -0
  48. package/src/advanced.ts +1 -0
  49. package/src/advancedBarrel.ts +50 -0
  50. package/src/barrel.ts +2 -0
  51. package/src/btc/index.ts +179 -0
  52. package/src/index.ts +1 -0
  53. package/src/nostr/index.ts +73 -0
  54. package/src/signersFactory.ts +35 -0
  55. package/typedoc.json +6 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,405 @@
1
+ # @ckb-ccc/okx
2
+
3
+ ## 0.0.0-canary-20250214032000
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`80e605d`](https://github.com/ckb-devrel/ccc/commit/80e605d0645e87b4e8b5be85c63322f7a3926e38), [`def62a0`](https://github.com/ckb-devrel/ccc/commit/def62a08bf908c6a21fe91c8db2c60848a2ada52), [`d584059`](https://github.com/ckb-devrel/ccc/commit/d584059644e8bcd3a0ea8b0314fdcbb68ee66013), [`1e88ad8`](https://github.com/ckb-devrel/ccc/commit/1e88ad8743428b46b28fe790bd559b96df8a6ce4), [`6f10589`](https://github.com/ckb-devrel/ccc/commit/6f1058977e7aa113808fa74793f1ad5d672626d2), [`d7728d9`](https://github.com/ckb-devrel/ccc/commit/d7728d9edb46c9c5a2bfeb342fc68a8b1c0fec5d)]:
8
+ - @ckb-ccc/core@0.0.0-canary-20250214032000
9
+ - @ckb-ccc/nip07@0.0.0-canary-20250214032000
10
+ - @ckb-ccc/uni-sat@0.0.0-canary-20250214032000
11
+
12
+ ## 1.0.11
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`28c211d`](https://github.com/ckb-devrel/ccc/commit/28c211d839a2d2305eca56e82ba7da144aa3df4a)]:
17
+ - @ckb-ccc/core@1.5.0
18
+ - @ckb-ccc/nip07@1.0.11
19
+ - @ckb-ccc/uni-sat@1.0.11
20
+
21
+ ## 1.0.10
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [[`3fdb2c4`](https://github.com/ckb-devrel/ccc/commit/3fdb2c477d0b2766b231e436b8f396f047b02634), [`f429087`](https://github.com/ckb-devrel/ccc/commit/f4290874dfab3fe58844e5169673c5d47bda64e3)]:
26
+ - @ckb-ccc/core@1.4.0
27
+ - @ckb-ccc/nip07@1.0.10
28
+ - @ckb-ccc/uni-sat@1.0.10
29
+
30
+ ## 1.0.9
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [[`a48cccf`](https://github.com/ckb-devrel/ccc/commit/a48cccfae3ce6b3456a5eb863f207e7e5a6e568f)]:
35
+ - @ckb-ccc/core@1.3.1
36
+ - @ckb-ccc/nip07@1.0.9
37
+ - @ckb-ccc/uni-sat@1.0.9
38
+
39
+ ## 1.0.8
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [[`4dbf4fd`](https://github.com/ckb-devrel/ccc/commit/4dbf4fd8021cf14d05282706a7667ea7d108fb09), [`4c76f9e`](https://github.com/ckb-devrel/ccc/commit/4c76f9e2a93a226fcfc4c32a5378bb531bfff08f), [`c2c4c26`](https://github.com/ckb-devrel/ccc/commit/c2c4c264e04461948e4b913b2f22054e6032ddc8), [`b6a73fa`](https://github.com/ckb-devrel/ccc/commit/b6a73fa9628ebdff51cb8f246309654cd53e36f2), [`8c97c85`](https://github.com/ckb-devrel/ccc/commit/8c97c851db4a2d940c7e59116ca7620cfd0afae1)]:
44
+ - @ckb-ccc/core@1.3.0
45
+ - @ckb-ccc/nip07@1.0.8
46
+ - @ckb-ccc/uni-sat@1.0.8
47
+
48
+ ## 1.0.7
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [[`01263bd`](https://github.com/ckb-devrel/ccc/commit/01263bd8c601fa8fcdfa24be52601716e1864843)]:
53
+ - @ckb-ccc/core@1.2.3
54
+ - @ckb-ccc/nip07@1.0.7
55
+ - @ckb-ccc/uni-sat@1.0.7
56
+
57
+ ## 1.0.6
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [[`7886e3d`](https://github.com/ckb-devrel/ccc/commit/7886e3d89e9ca8f3514a2044c6dd4e8ec6b49933)]:
62
+ - @ckb-ccc/core@1.2.2
63
+ - @ckb-ccc/nip07@1.0.6
64
+ - @ckb-ccc/uni-sat@1.0.6
65
+
66
+ ## 1.0.5
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [[`94e2618`](https://github.com/ckb-devrel/ccc/commit/94e26182515e09d6086ec5b653d091f117a499e6)]:
71
+ - @ckb-ccc/core@1.2.1
72
+ - @ckb-ccc/nip07@1.0.5
73
+ - @ckb-ccc/uni-sat@1.0.5
74
+
75
+ ## 1.0.4
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [[`128e87b`](https://github.com/ckb-devrel/ccc/commit/128e87b5ca3e97bfe7842e76f786aa6aec010797)]:
80
+ - @ckb-ccc/core@1.2.0
81
+ - @ckb-ccc/nip07@1.0.4
82
+ - @ckb-ccc/uni-sat@1.0.4
83
+
84
+ ## 1.0.3
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [[`925991c`](https://github.com/ckb-devrel/ccc/commit/925991c8a24b1f34667e30b28b69812e936e3928)]:
89
+ - @ckb-ccc/core@1.1.1
90
+ - @ckb-ccc/nip07@1.0.3
91
+ - @ckb-ccc/uni-sat@1.0.3
92
+
93
+ ## 1.0.2
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [[`ddc0a28`](https://github.com/ckb-devrel/ccc/commit/ddc0a281c3d1dfa6ebc990dae92994f026dfddcc)]:
98
+ - @ckb-ccc/core@1.1.0
99
+ - @ckb-ccc/nip07@1.0.2
100
+ - @ckb-ccc/uni-sat@1.0.2
101
+
102
+ ## 1.0.1
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [[`719055b`](https://github.com/ckb-devrel/ccc/commit/719055b404f31b40362f51714b9f11c85b857581), [`94caaca`](https://github.com/ckb-devrel/ccc/commit/94caaca11c63752a25282d42f51161c94397dec6)]:
107
+ - @ckb-ccc/core@1.0.1
108
+ - @ckb-ccc/nip07@1.0.1
109
+ - @ckb-ccc/uni-sat@1.0.1
110
+
111
+ ## 1.0.0
112
+
113
+ ### Major Changes
114
+
115
+ - [#107](https://github.com/ckb-devrel/ccc/pull/107) [`b99f55f`](https://github.com/ckb-devrel/ccc/commit/b99f55f74e64106391ce53f7d0bd0fa7522023cc) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: molecule
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies [[`b99f55f`](https://github.com/ckb-devrel/ccc/commit/b99f55f74e64106391ce53f7d0bd0fa7522023cc)]:
120
+ - @ckb-ccc/core@1.0.0
121
+ - @ckb-ccc/nip07@1.0.0
122
+ - @ckb-ccc/uni-sat@1.0.0
123
+
124
+ ## 0.0.18
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [[`c1cb910`](https://github.com/ckb-devrel/ccc/commit/c1cb91091780c7b33fbbd683ef8edc9f11452ecd)]:
129
+ - @ckb-ccc/core@0.1.2
130
+ - @ckb-ccc/nip07@0.0.18
131
+ - @ckb-ccc/uni-sat@0.0.18
132
+
133
+ ## 0.0.17
134
+
135
+ ### Patch Changes
136
+
137
+ - [#101](https://github.com/ckb-devrel/ccc/pull/101) [`d9affcc`](https://github.com/ckb-devrel/ccc/commit/d9affcc01c7b839b227e4d79bcb66e717577502a) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: commonjs
138
+
139
+ - Updated dependencies [[`d9affcc`](https://github.com/ckb-devrel/ccc/commit/d9affcc01c7b839b227e4d79bcb66e717577502a)]:
140
+ - @ckb-ccc/uni-sat@0.0.17
141
+ - @ckb-ccc/nip07@0.0.17
142
+ - @ckb-ccc/core@0.1.1
143
+
144
+ ## 0.0.16
145
+
146
+ ### Patch Changes
147
+
148
+ - [#70](https://github.com/ckb-devrel/ccc/pull/70) [`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): websocket transport
149
+
150
+ - Updated dependencies [[`a3d5359`](https://github.com/ckb-devrel/ccc/commit/a3d53595f6dd11f2f59cdf0086b3d7ce558a2fdd), [`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a), [`f07a506`](https://github.com/ckb-devrel/ccc/commit/f07a506bd6fc27fe659a17d2f7baaeec54716d81), [`f21d7e4`](https://github.com/ckb-devrel/ccc/commit/f21d7e4cf422edab4a836ef6d678b620594fef8d), [`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366), [`1720d5a`](https://github.com/ckb-devrel/ccc/commit/1720d5a398543f1c6e24763eeaf15d84cd2214bf), [`e63a06e`](https://github.com/ckb-devrel/ccc/commit/e63a06ee75ac8595208d216dec88a4228c465e23), [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f), [`50f2ce0`](https://github.com/ckb-devrel/ccc/commit/50f2ce08e74cb3fbeae926267d42e28b426fd7f4), [`4709384`](https://github.com/ckb-devrel/ccc/commit/4709384e37188991cb937b16f99f47ca82c912b8)]:
151
+ - @ckb-ccc/core@0.1.0
152
+ - @ckb-ccc/nip07@0.0.16
153
+ - @ckb-ccc/uni-sat@0.0.16
154
+
155
+ ## 0.0.16-alpha.7
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [[`f07a506`](https://github.com/ckb-devrel/ccc/commit/f07a506bd6fc27fe659a17d2f7baaeec54716d81)]:
160
+ - @ckb-ccc/core@0.1.0-alpha.7
161
+ - @ckb-ccc/nip07@0.0.16-alpha.7
162
+ - @ckb-ccc/uni-sat@0.0.16-alpha.7
163
+
164
+ ## 0.0.16-alpha.6
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [[`4709384`](https://github.com/ckb-devrel/ccc/commit/4709384e37188991cb937b16f99f47ca82c912b8)]:
169
+ - @ckb-ccc/core@0.1.0-alpha.6
170
+ - @ckb-ccc/nip07@0.0.16-alpha.6
171
+ - @ckb-ccc/uni-sat@0.0.16-alpha.6
172
+
173
+ ## 0.0.16-alpha.5
174
+
175
+ ### Patch Changes
176
+
177
+ - Updated dependencies [[`50f2ce0`](https://github.com/ckb-devrel/ccc/commit/50f2ce08e74cb3fbeae926267d42e28b426fd7f4)]:
178
+ - @ckb-ccc/core@0.1.0-alpha.5
179
+ - @ckb-ccc/nip07@0.0.16-alpha.5
180
+ - @ckb-ccc/uni-sat@0.0.16-alpha.5
181
+
182
+ ## 0.0.16-alpha.4
183
+
184
+ ### Patch Changes
185
+
186
+ - Updated dependencies [[`f21d7e4`](https://github.com/ckb-devrel/ccc/commit/f21d7e4cf422edab4a836ef6d678b620594fef8d)]:
187
+ - @ckb-ccc/core@0.1.0-alpha.4
188
+ - @ckb-ccc/nip07@0.0.16-alpha.4
189
+ - @ckb-ccc/uni-sat@0.0.16-alpha.4
190
+
191
+ ## 0.0.16-alpha.3
192
+
193
+ ### Patch Changes
194
+
195
+ - Updated dependencies [[`a3d5359`](https://github.com/ckb-devrel/ccc/commit/a3d53595f6dd11f2f59cdf0086b3d7ce558a2fdd)]:
196
+ - @ckb-ccc/core@0.0.16-alpha.3
197
+ - @ckb-ccc/nip07@0.0.16-alpha.3
198
+ - @ckb-ccc/uni-sat@0.0.16-alpha.3
199
+
200
+ ## 0.0.16-alpha.2
201
+
202
+ ### Patch Changes
203
+
204
+ - [#70](https://github.com/ckb-devrel/ccc/pull/70) [`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): websocket transport
205
+
206
+ - Updated dependencies [[`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366)]:
207
+ - @ckb-ccc/core@0.0.16-alpha.2
208
+ - @ckb-ccc/nip07@0.0.16-alpha.2
209
+ - @ckb-ccc/uni-sat@0.0.16-alpha.2
210
+
211
+ ## 0.0.16-alpha.1
212
+
213
+ ### Patch Changes
214
+
215
+ - Updated dependencies [[`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a), [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f)]:
216
+ - @ckb-ccc/core@0.0.16-alpha.1
217
+ - @ckb-ccc/nip07@0.0.16-alpha.1
218
+ - @ckb-ccc/uni-sat@0.0.16-alpha.1
219
+
220
+ ## 0.0.16-alpha.0
221
+
222
+ ### Patch Changes
223
+
224
+ - Updated dependencies [[`1720d5a`](https://github.com/ckb-devrel/ccc/commit/1720d5a398543f1c6e24763eeaf15d84cd2214bf)]:
225
+ - @ckb-ccc/core@0.0.16-alpha.0
226
+ - @ckb-ccc/nip07@0.0.16-alpha.0
227
+ - @ckb-ccc/uni-sat@0.0.16-alpha.0
228
+
229
+ ## 0.0.15
230
+
231
+ ### Patch Changes
232
+
233
+ - Updated dependencies [[`8f2560a`](https://github.com/ckb-devrel/ccc/commit/8f2560ab0e5619654fff7c5eacda8425385f908e)]:
234
+ - @ckb-ccc/core@0.0.15
235
+ - @ckb-ccc/nip07@0.0.15
236
+ - @ckb-ccc/uni-sat@0.0.15
237
+
238
+ ## 0.0.14
239
+
240
+ ### Patch Changes
241
+
242
+ - [#48](https://github.com/ckb-devrel/ccc/pull/48) [`4fb114b`](https://github.com/ckb-devrel/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(okx): make okx wallet happy
243
+
244
+ - Updated dependencies [[`5e942f8`](https://github.com/ckb-devrel/ccc/commit/5e942f8f1ed678abdb7ab9716f5449f0714cea53), [`f5b5938`](https://github.com/ckb-devrel/ccc/commit/f5b5938ab8f9c0a338dfd6765fe717f7ad1b1dd8), [`f13f4d3`](https://github.com/ckb-devrel/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25), [`7ba62a0`](https://github.com/ckb-devrel/ccc/commit/7ba62a056f17808fe5684786c00c2dff80bb7d1d), [`2164efd`](https://github.com/ckb-devrel/ccc/commit/2164efd6d834c1917ad5f4a514dc25941f937185), [`e5bd2ad`](https://github.com/ckb-devrel/ccc/commit/e5bd2ad5de4b42a22c422ecfc42056750f69b88b), [`aae3e06`](https://github.com/ckb-devrel/ccc/commit/aae3e0679fb940dd8c12ac9be12a4b53277a339d)]:
245
+ - @ckb-ccc/core@0.0.14
246
+ - @ckb-ccc/nip07@0.0.14
247
+ - @ckb-ccc/uni-sat@0.0.14
248
+
249
+ ## 0.0.14-alpha.2
250
+
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [[`7ba62a0`](https://github.com/ckb-devrel/ccc/commit/7ba62a056f17808fe5684786c00c2dff80bb7d1d)]:
254
+ - @ckb-ccc/core@0.0.14-alpha.2
255
+ - @ckb-ccc/nip07@0.0.14-alpha.2
256
+ - @ckb-ccc/uni-sat@0.0.14-alpha.2
257
+
258
+ ## 0.0.14-alpha.1
259
+
260
+ ### Patch Changes
261
+
262
+ - [#48](https://github.com/ckb-devrel/ccc/pull/48) [`4fb114b`](https://github.com/ckb-devrel/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(okx): make okx wallet happy
263
+
264
+ - Updated dependencies [[`5e942f8`](https://github.com/ckb-devrel/ccc/commit/5e942f8f1ed678abdb7ab9716f5449f0714cea53), [`e5bd2ad`](https://github.com/ckb-devrel/ccc/commit/e5bd2ad5de4b42a22c422ecfc42056750f69b88b), [`aae3e06`](https://github.com/ckb-devrel/ccc/commit/aae3e0679fb940dd8c12ac9be12a4b53277a339d)]:
265
+ - @ckb-ccc/core@0.0.14-alpha.1
266
+ - @ckb-ccc/nip07@0.0.14-alpha.1
267
+ - @ckb-ccc/uni-sat@0.0.14-alpha.1
268
+
269
+ ## 0.0.14-alpha.0
270
+
271
+ ### Patch Changes
272
+
273
+ - Updated dependencies [[`f5b5938`](https://github.com/ckb-devrel/ccc/commit/f5b5938ab8f9c0a338dfd6765fe717f7ad1b1dd8), [`2164efd`](https://github.com/ckb-devrel/ccc/commit/2164efd6d834c1917ad5f4a514dc25941f937185)]:
274
+ - @ckb-ccc/core@0.0.14-alpha.0
275
+ - @ckb-ccc/nip07@0.0.14-alpha.0
276
+ - @ckb-ccc/uni-sat@0.0.14-alpha.0
277
+
278
+ ## 0.0.13
279
+
280
+ ### Patch Changes
281
+
282
+ - [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
283
+
284
+ - [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
285
+
286
+ - [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
287
+
288
+ - [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
289
+
290
+ - [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
291
+
292
+ - Updated dependencies [[`3378e85`](https://github.com/ckb-devrel/ccc/commit/3378e85b32797f5cdc1943b9ecaca1fd1d9fad5e), [`8629449`](https://github.com/ckb-devrel/ccc/commit/86294490e76fc2a1cee20f827883e02fceca6e8b), [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97), [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f), [`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97), [`600cc13`](https://github.com/ckb-devrel/ccc/commit/600cc137ac6eb7c5b2533670de6df29d82f1b9e1), [`642f731`](https://github.com/ckb-devrel/ccc/commit/642f7317f4951ef801f1245aea96c40b4b6fb73e), [`96dbb61`](https://github.com/ckb-devrel/ccc/commit/96dbb6107d2071b9383350ddd578557746227054), [`0462a4e`](https://github.com/ckb-devrel/ccc/commit/0462a4ee101926f0da857173626dc4ab879e3b56), [`52156f9`](https://github.com/ckb-devrel/ccc/commit/52156f9df9cae9e0b71b77b49cda0e4d73e76142), [`63606db`](https://github.com/ckb-devrel/ccc/commit/63606db908f95bfc857430083932144d1ef4deef), [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b), [`1043c2b`](https://github.com/ckb-devrel/ccc/commit/1043c2bc211ec283b88dba3b81feef98e4185c0e), [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11), [`1f999f8`](https://github.com/ckb-devrel/ccc/commit/1f999f854beb255b3cd9dbbc5a7268e75442b3db), [`a69a9dc`](https://github.com/ckb-devrel/ccc/commit/a69a9dc0c722f7b4cfa36b2ae8ecba4dcde0db90), [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895)]:
293
+ - @ckb-ccc/core@0.0.13
294
+ - @ckb-ccc/nip07@0.0.13
295
+ - @ckb-ccc/uni-sat@0.0.13
296
+
297
+ ## 0.0.13-alpha.8
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [[`8629449`](https://github.com/ckb-devrel/ccc/commit/86294490e76fc2a1cee20f827883e02fceca6e8b), [`52156f9`](https://github.com/ckb-devrel/ccc/commit/52156f9df9cae9e0b71b77b49cda0e4d73e76142), [`63606db`](https://github.com/ckb-devrel/ccc/commit/63606db908f95bfc857430083932144d1ef4deef)]:
302
+ - @ckb-ccc/core@0.0.13-alpha.8
303
+ - @ckb-ccc/nip07@0.0.13-alpha.8
304
+ - @ckb-ccc/uni-sat@0.0.13-alpha.8
305
+
306
+ ## 0.0.13-alpha.7
307
+
308
+ ### Patch Changes
309
+
310
+ - [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
311
+
312
+ - [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
313
+
314
+ - Updated dependencies [[`1043c2b`](https://github.com/ckb-devrel/ccc/commit/1043c2bc211ec283b88dba3b81feef98e4185c0e), [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11), [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895)]:
315
+ - @ckb-ccc/core@0.0.13-alpha.7
316
+ - @ckb-ccc/nip07@0.0.13-alpha.7
317
+ - @ckb-ccc/uni-sat@0.0.13-alpha.7
318
+
319
+ ## 0.0.13-alpha.6
320
+
321
+ ### Patch Changes
322
+
323
+ - [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
324
+
325
+ - Updated dependencies [[`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97), [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b)]:
326
+ - @ckb-ccc/core@0.0.13-alpha.6
327
+ - @ckb-ccc/nip07@0.0.13-alpha.6
328
+ - @ckb-ccc/uni-sat@0.0.13-alpha.6
329
+
330
+ ## 0.0.13-alpha.5
331
+
332
+ ### Patch Changes
333
+
334
+ - [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
335
+
336
+ - Updated dependencies [[`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97)]:
337
+ - @ckb-ccc/core@0.0.13-alpha.5
338
+ - @ckb-ccc/nip07@0.0.13-alpha.5
339
+ - @ckb-ccc/uni-sat@0.0.13-alpha.5
340
+
341
+ ## 0.0.13-alpha.4
342
+
343
+ ### Patch Changes
344
+
345
+ - [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
346
+
347
+ - Updated dependencies [[`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f), [`642f731`](https://github.com/ckb-devrel/ccc/commit/642f7317f4951ef801f1245aea96c40b4b6fb73e)]:
348
+ - @ckb-ccc/core@0.0.13-alpha.4
349
+ - @ckb-ccc/nip07@0.0.13-alpha.4
350
+ - @ckb-ccc/uni-sat@0.0.13-alpha.4
351
+
352
+ ## 0.0.13-alpha.3
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies [[`1f999f8`](https://github.com/ckb-devrel/ccc/commit/1f999f854beb255b3cd9dbbc5a7268e75442b3db)]:
357
+ - @ckb-ccc/core@0.0.13-alpha.3
358
+ - @ckb-ccc/nip07@0.0.13-alpha.3
359
+ - @ckb-ccc/uni-sat@0.0.13-alpha.3
360
+
361
+ ## 0.0.13-alpha.2
362
+
363
+ ### Patch Changes
364
+
365
+ - Updated dependencies [[`96dbb61`](https://github.com/ckb-devrel/ccc/commit/96dbb6107d2071b9383350ddd578557746227054)]:
366
+ - @ckb-ccc/core@0.0.13-alpha.2
367
+ - @ckb-ccc/nip07@0.0.13-alpha.2
368
+ - @ckb-ccc/uni-sat@0.0.13-alpha.2
369
+
370
+ ## 0.0.13-alpha.1
371
+
372
+ ### Patch Changes
373
+
374
+ - Updated dependencies [[`3378e85`](https://github.com/ckb-devrel/ccc/commit/3378e85b32797f5cdc1943b9ecaca1fd1d9fad5e), [`a69a9dc`](https://github.com/ckb-devrel/ccc/commit/a69a9dc0c722f7b4cfa36b2ae8ecba4dcde0db90)]:
375
+ - @ckb-ccc/core@0.0.13-alpha.1
376
+ - @ckb-ccc/nip07@0.0.13-alpha.1
377
+ - @ckb-ccc/uni-sat@0.0.13-alpha.1
378
+
379
+ ## 0.0.13-alpha.0
380
+
381
+ ### Patch Changes
382
+
383
+ - Updated dependencies [[`600cc13`](https://github.com/ckb-devrel/ccc/commit/600cc137ac6eb7c5b2533670de6df29d82f1b9e1)]:
384
+ - @ckb-ccc/core@0.0.13-alpha.0
385
+ - @ckb-ccc/nip07@0.0.13-alpha.0
386
+ - @ckb-ccc/uni-sat@0.0.13-alpha.0
387
+
388
+ ## 0.0.12
389
+
390
+ ### Patch Changes
391
+
392
+ - [`6bee006`](https://github.com/ckb-devrel/ccc/commit/6bee006fbcb96986c65ca4d2d896fca21db2503b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): catch connecting error
393
+
394
+ - Updated dependencies [[`6bee006`](https://github.com/ckb-devrel/ccc/commit/6bee006fbcb96986c65ca4d2d896fca21db2503b)]:
395
+ - @ckb-ccc/nip07@0.0.12
396
+ - @ckb-ccc/core@0.0.12
397
+ - @ckb-ccc/uni-sat@0.0.12
398
+
399
+ ## 0.0.12-alpha.7
400
+
401
+ ### Patch Changes
402
+
403
+ - fix(connector): catch connecting error
404
+ - Updated dependencies
405
+ - @ckb-ccc/nip07@0.0.12-alpha.2
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ <p align="center">
2
+ <a href="https://app.ckbccc.com/">
3
+ <img alt="Logo" src="https://raw.githubusercontent.com/ckb-devrel/ccc/master/assets/logoAndText.svg" style="height: 8rem; max-width: 90%; padding: 0.5rem 0;" />
4
+ </a>
5
+ </p>
6
+
7
+ <h1 align="center" style="font-size: 48px;">
8
+ CCC's support for OKX
9
+ </h1>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/@ckb-ccc/okx"><img
13
+ alt="NPM Version" src="https://img.shields.io/npm/v/%40ckb-ccc%2Fokx"
14
+ /></a>
15
+ <img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/ckb-devrel/ccc" />
16
+ <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/ckb-devrel/ccc/master" />
17
+ <img alt="GitHub branch check runs" src="https://img.shields.io/github/check-runs/ckb-devrel/ccc/master" />
18
+ <a href="https://live.ckbccc.com/"><img
19
+ alt="Playground" src="https://img.shields.io/website?url=https%3A%2F%2Flive.ckbccc.com%2F&label=Playground"
20
+ /></a>
21
+ <a href="https://app.ckbccc.com/"><img
22
+ alt="App" src="https://img.shields.io/website?url=https%3A%2F%2Fapp.ckbccc.com%2F&label=App"
23
+ /></a>
24
+ <a href="https://docs.ckbccc.com/"><img
25
+ alt="Docs" src="https://img.shields.io/website?url=https%3A%2F%2Fdocs.ckbccc.com%2F&label=Docs"
26
+ /></a>
27
+ </p>
28
+
29
+ <p align="center">
30
+ CCC - CKBers' Codebase is a one-stop solution for your CKB JS/TS ecosystem development.
31
+ <br />
32
+ Empower yourself with CCC to discover the unlimited potential of CKB.
33
+ <br />
34
+ Interoperate with wallets from different chain ecosystems.
35
+ <br />
36
+ Fully enabling CKB's Turing completeness and cryptographic freedom power.
37
+ </p>
38
+
39
+ <h3 align="center">
40
+ Read more about CCC on <a href="https://docs.ckbccc.com">our website</a> or <a href="https://github.com/ckb-devrel/ccc">GitHub Repo</a>.
41
+ </h3>
@@ -0,0 +1,2 @@
1
+ export * as OkxA from "./advancedBarrel.js";
2
+ //# sourceMappingURL=advanced.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1 @@
1
+ export * as OkxA from "./advancedBarrel.js";
@@ -0,0 +1,40 @@
1
+ import { Nip07A } from "@ckb-ccc/nip07/advanced";
2
+ import { UniSatA } from "@ckb-ccc/uni-sat/advanced";
3
+ export interface BitcoinProvider extends Pick<UniSatA.Provider, "on" | "removeListener" | "signMessage">, Partial<Omit<UniSatA.Provider, "on" | "removeListener" | "signMessage">> {
4
+ connect?(): Promise<{
5
+ address: string;
6
+ publicKey: string;
7
+ compressedPublicKey: string;
8
+ }>;
9
+ getSelectedAccount?(): Promise<{
10
+ address: string;
11
+ publicKey: string;
12
+ compressedPublicKey: string;
13
+ } | null>;
14
+ }
15
+ export interface NostrProvider extends Nip07A.Provider {
16
+ connect?(): Promise<void>;
17
+ /**
18
+ * Adds an event listener to the provider.
19
+ */
20
+ on: NostrOnMethod;
21
+ /**
22
+ * Removes an event listener from the provider.
23
+ * @param eventName - The name of the event to remove the listener from.
24
+ * @param listener - The listener function to remove.
25
+ * @returns The provider instance.
26
+ */
27
+ removeListener(eventName: string, listener: (...args: unknown[]) => unknown): NostrProvider;
28
+ }
29
+ /**
30
+ * Interface representing a method to add event listeners to the provider.
31
+ */
32
+ export interface NostrOnMethod {
33
+ /**
34
+ * Adds an event listener to the provider.
35
+ * @param eventName - The name of the event.
36
+ * @param listener - The listener function.
37
+ */
38
+ (eventName: string, listener: (...args: unknown[]) => unknown): void;
39
+ }
40
+ //# sourceMappingURL=advancedBarrel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,gBAAgB,GAAG,aAAa,CAAC,EACrE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,GAAG,gBAAgB,GAAG,aAAa,CAAC,CAAC;IAC1E,OAAO,CAAC,IAAI,OAAO,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,CAAC,CAAC;IAEH,kBAAkB,CAAC,IAAI,OAAO,CAAC;QAC7B,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,mBAAmB,EAAE,MAAM,CAAC;KAC7B,GAAG,IAAI,CAAC,CAAC;CACX;AAED,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,QAAQ;IACpD,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;OAEG;IACH,EAAE,EAAE,aAAa,CAAC;IAElB;;;;;OAKG;IACH,cAAc,CACZ,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,GACxC,aAAa,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,GAAG,IAAI,CAAC;CACtE"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./btc/index.js";
2
+ export * from "./signersFactory.js";
3
+ //# sourceMappingURL=barrel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
package/dist/barrel.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./btc/index.js";
2
+ export * from "./signersFactory.js";
@@ -0,0 +1,47 @@
1
+ import { ccc } from "@ckb-ccc/core";
2
+ import { BitcoinProvider } from "../advancedBarrel.js";
3
+ /**
4
+ * Class representing a Bitcoin signer that extends SignerBtc
5
+ * @public
6
+ */
7
+ export declare class BitcoinSigner extends ccc.SignerBtc {
8
+ readonly providers: Record<string, BitcoinProvider>;
9
+ private readonly preferredNetworks;
10
+ private network;
11
+ /**
12
+ * Creates an instance of Signer.
13
+ * @param client - The client instance.
14
+ * @param providers - The providers instance.
15
+ * @param preferredNetworks - All preferred networks
16
+ */
17
+ constructor(client: ccc.Client, providers: Record<string, BitcoinProvider>, preferredNetworks?: ccc.NetworkPreference[]);
18
+ get provider(): BitcoinProvider;
19
+ /**
20
+ * Gets the Bitcoin account address.
21
+ * @returns A promise that resolves to the Bitcoin account address.
22
+ */
23
+ getBtcAccount(): Promise<string>;
24
+ /**
25
+ * Gets the Bitcoin public key.
26
+ * @returns A promise that resolves to the Bitcoin public key.
27
+ */
28
+ getBtcPublicKey(): Promise<ccc.Hex>;
29
+ /**
30
+ * Connects to the provider by requesting accounts.
31
+ * @returns A promise that resolves when the connection is established.
32
+ */
33
+ connect(): Promise<void>;
34
+ onReplaced(listener: () => void): () => void;
35
+ /**
36
+ * Checks if the signer is connected.
37
+ * @returns A promise that resolves to true if connected, false otherwise.
38
+ */
39
+ isConnected(): Promise<boolean>;
40
+ /**
41
+ * Signs a raw message with the Bitcoin account.
42
+ * @param message - The message to sign.
43
+ * @returns A promise that resolves to the signed message.
44
+ */
45
+ signMessageRaw(message: string | ccc.BytesLike): Promise<string>;
46
+ }
47
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/btc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;GAGG;AACH,qBAAa,aAAc,SAAQ,GAAG,CAAC,SAAS;aAW5B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAXpC,OAAO,CAAC,OAAO,CAAgB;IAE/B;;;;;OAKG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EACzC,iBAAiB,GAAE,GAAG,CAAC,iBAAiB,EAWxD;IAKH,IAAI,QAAQ,IAAI,eAAe,CAwB9B;IAED;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAoBtC;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAoBzC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAc9B,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAe5C;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAqBrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAMvE"}