@ckb-ccc/connector 0.0.17-alpha.5 → 0.0.17-alpha.7
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/CHANGELOG.md +53 -39
- package/README.md +6 -26
- package/dist/components/dialog.d.ts +1 -1
- package/dist/components/dialog.d.ts.map +1 -1
- package/dist/connector/index.d.ts +1 -1
- package/dist/connector/index.d.ts.map +1 -1
- package/dist/connector/index.js +5 -5
- package/dist/events/index.d.ts.map +1 -1
- package/dist/scenes/connected.d.ts +1 -1
- package/dist/scenes/connected.d.ts.map +1 -1
- package/dist/scenes/connected.js +6 -4
- package/dist/scenes/selecting/index.js +1 -1
- package/dist/signers/index.d.ts +1 -1
- package/dist/signers/index.js +2 -2
- package/package.json +6 -6
- package/src/components/dialog.ts +1 -1
- package/src/connector/index.ts +7 -10
- package/src/scenes/connected.ts +7 -5
- package/src/scenes/selecting/index.ts +1 -1
- package/src/signers/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ckb-ccc/connector
|
|
2
2
|
|
|
3
|
+
## 0.0.17-alpha.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @ckb-ccc/ccc@0.0.16-alpha.6
|
|
9
|
+
|
|
10
|
+
## 0.0.17-alpha.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @ckb-ccc/ccc@0.0.16-alpha.5
|
|
16
|
+
|
|
3
17
|
## 0.0.17-alpha.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,20 +25,20 @@
|
|
|
11
25
|
|
|
12
26
|
### Patch Changes
|
|
13
27
|
|
|
14
|
-
- [#70](https://github.com/ckb-
|
|
28
|
+
- [#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
|
|
15
29
|
|
|
16
|
-
- Updated dependencies [[`acfc050`](https://github.com/ckb-
|
|
30
|
+
- Updated dependencies [[`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366)]:
|
|
17
31
|
- @ckb-ccc/ccc@0.0.16-alpha.3
|
|
18
32
|
|
|
19
33
|
## 0.0.17-alpha.3
|
|
20
34
|
|
|
21
35
|
### Patch Changes
|
|
22
36
|
|
|
23
|
-
- [#69](https://github.com/ckb-
|
|
37
|
+
- [#69](https://github.com/ckb-devrel/ccc/pull/69) [`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Client.waitTransaction
|
|
24
38
|
|
|
25
|
-
- [#67](https://github.com/ckb-
|
|
39
|
+
- [#67](https://github.com/ckb-devrel/ccc/pull/67) [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): auto fee rate
|
|
26
40
|
|
|
27
|
-
- Updated dependencies [[`8824ff2`](https://github.com/ckb-
|
|
41
|
+
- Updated dependencies [[`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a), [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f)]:
|
|
28
42
|
- @ckb-ccc/ccc@0.0.16-alpha.2
|
|
29
43
|
|
|
30
44
|
## 0.0.17-alpha.2
|
|
@@ -38,15 +52,15 @@
|
|
|
38
52
|
|
|
39
53
|
### Patch Changes
|
|
40
54
|
|
|
41
|
-
- [#62](https://github.com/ckb-
|
|
55
|
+
- [#62](https://github.com/ckb-devrel/ccc/pull/62) [`543c765`](https://github.com/ckb-devrel/ccc/commit/543c76523b3864f2203631762c27b8fc4c942cd7) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): Powered by CCC
|
|
42
56
|
|
|
43
57
|
## 0.0.17-alpha.0
|
|
44
58
|
|
|
45
59
|
### Patch Changes
|
|
46
60
|
|
|
47
|
-
- [#60](https://github.com/ckb-
|
|
61
|
+
- [#60](https://github.com/ckb-devrel/ccc/pull/60) [`e904963`](https://github.com/ckb-devrel/ccc/commit/e904963a16f12c410d861eb3ae01b87d68cb3e34) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: support Xverse
|
|
48
62
|
|
|
49
|
-
- Updated dependencies [[`e904963`](https://github.com/ckb-
|
|
63
|
+
- Updated dependencies [[`e904963`](https://github.com/ckb-devrel/ccc/commit/e904963a16f12c410d861eb3ae01b87d68cb3e34)]:
|
|
50
64
|
- @ckb-ccc/ccc@0.0.16-alpha.0
|
|
51
65
|
|
|
52
66
|
## 0.0.16
|
|
@@ -60,36 +74,36 @@
|
|
|
60
74
|
|
|
61
75
|
### Patch Changes
|
|
62
76
|
|
|
63
|
-
- [`2483637`](https://github.com/ckb-
|
|
77
|
+
- [`2483637`](https://github.com/ckb-devrel/ccc/commit/2483637c89a2e012ed6408d8cabc123b8a45faa9) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): animation
|
|
64
78
|
|
|
65
79
|
## 0.0.14
|
|
66
80
|
|
|
67
81
|
### Patch Changes
|
|
68
82
|
|
|
69
|
-
- [#56](https://github.com/ckb-
|
|
83
|
+
- [#56](https://github.com/ckb-devrel/ccc/pull/56) [`b4aa690`](https://github.com/ckb-devrel/ccc/commit/b4aa69085d69fc0953629fd907212922d7d106dd) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): manage button
|
|
70
84
|
|
|
71
|
-
- [#56](https://github.com/ckb-
|
|
85
|
+
- [#56](https://github.com/ckb-devrel/ccc/pull/56) [`f13f4d3`](https://github.com/ckb-devrel/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findTransactions
|
|
72
86
|
|
|
73
|
-
- [#48](https://github.com/ckb-
|
|
87
|
+
- [#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
|
|
74
88
|
|
|
75
|
-
- [#54](https://github.com/ckb-
|
|
89
|
+
- [#54](https://github.com/ckb-devrel/ccc/pull/54) [`3f49876`](https://github.com/ckb-devrel/ccc/commit/3f49876826f5a9eeff8d14c7d8d7b9cf2cea0f32) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): useless back button
|
|
76
90
|
|
|
77
|
-
- [#53](https://github.com/ckb-
|
|
91
|
+
- [#53](https://github.com/ckb-devrel/ccc/pull/53) [`32bffff`](https://github.com/ckb-devrel/ccc/commit/32bffff407934ec5d16bf7c5701b128d8b29c452) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): select client
|
|
78
92
|
|
|
79
|
-
- Updated dependencies [[`f13f4d3`](https://github.com/ckb-
|
|
93
|
+
- Updated dependencies [[`f13f4d3`](https://github.com/ckb-devrel/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25), [`4fb114b`](https://github.com/ckb-devrel/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
|
|
80
94
|
- @ckb-ccc/ccc@0.0.14
|
|
81
95
|
|
|
82
96
|
## 0.0.14-alpha.3
|
|
83
97
|
|
|
84
98
|
### Patch Changes
|
|
85
99
|
|
|
86
|
-
- [#54](https://github.com/ckb-
|
|
100
|
+
- [#54](https://github.com/ckb-devrel/ccc/pull/54) [`3f49876`](https://github.com/ckb-devrel/ccc/commit/3f49876826f5a9eeff8d14c7d8d7b9cf2cea0f32) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): useless back button
|
|
87
101
|
|
|
88
102
|
## 0.0.14-alpha.2
|
|
89
103
|
|
|
90
104
|
### Patch Changes
|
|
91
105
|
|
|
92
|
-
- [#53](https://github.com/ckb-
|
|
106
|
+
- [#53](https://github.com/ckb-devrel/ccc/pull/53) [`32bffff`](https://github.com/ckb-devrel/ccc/commit/32bffff407934ec5d16bf7c5701b128d8b29c452) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): select client
|
|
93
107
|
|
|
94
108
|
- Updated dependencies []:
|
|
95
109
|
- @ckb-ccc/ccc@0.0.14-alpha.2
|
|
@@ -98,9 +112,9 @@
|
|
|
98
112
|
|
|
99
113
|
### Patch Changes
|
|
100
114
|
|
|
101
|
-
- [#48](https://github.com/ckb-
|
|
115
|
+
- [#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
|
|
102
116
|
|
|
103
|
-
- Updated dependencies [[`4fb114b`](https://github.com/ckb-
|
|
117
|
+
- Updated dependencies [[`4fb114b`](https://github.com/ckb-devrel/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
|
|
104
118
|
- @ckb-ccc/ccc@0.0.14-alpha.1
|
|
105
119
|
|
|
106
120
|
## 0.0.14-alpha.0
|
|
@@ -114,19 +128,19 @@
|
|
|
114
128
|
|
|
115
129
|
### Patch Changes
|
|
116
130
|
|
|
117
|
-
- [`6d62032`](https://github.com/ckb-
|
|
131
|
+
- [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
|
|
118
132
|
|
|
119
|
-
- [`3658797`](https://github.com/ckb-
|
|
133
|
+
- [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
|
|
120
134
|
|
|
121
|
-
- [#25](https://github.com/ckb-
|
|
135
|
+
- [#25](https://github.com/ckb-devrel/ccc/pull/25) [`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(utxo-global): switchNetwork
|
|
122
136
|
|
|
123
|
-
- [`44c7fee`](https://github.com/ckb-
|
|
137
|
+
- [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
|
|
124
138
|
|
|
125
|
-
- [`079e20e`](https://github.com/ckb-
|
|
139
|
+
- [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
|
|
126
140
|
|
|
127
|
-
- [`ed154d1`](https://github.com/ckb-
|
|
141
|
+
- [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
|
|
128
142
|
|
|
129
|
-
- Updated dependencies [[`6d62032`](https://github.com/ckb-
|
|
143
|
+
- Updated dependencies [[`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), [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b), [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11), [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895)]:
|
|
130
144
|
- @ckb-ccc/ccc@0.0.13
|
|
131
145
|
|
|
132
146
|
## 0.0.13-alpha.8
|
|
@@ -140,40 +154,40 @@
|
|
|
140
154
|
|
|
141
155
|
### Patch Changes
|
|
142
156
|
|
|
143
|
-
- [`079e20e`](https://github.com/ckb-
|
|
157
|
+
- [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
|
|
144
158
|
|
|
145
|
-
- [`ed154d1`](https://github.com/ckb-
|
|
159
|
+
- [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
|
|
146
160
|
|
|
147
|
-
- Updated dependencies [[`079e20e`](https://github.com/ckb-
|
|
161
|
+
- Updated dependencies [[`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11), [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895)]:
|
|
148
162
|
- @ckb-ccc/ccc@0.0.13-alpha.7
|
|
149
163
|
|
|
150
164
|
## 0.0.13-alpha.6
|
|
151
165
|
|
|
152
166
|
### Patch Changes
|
|
153
167
|
|
|
154
|
-
- [#25](https://github.com/ckb-
|
|
168
|
+
- [#25](https://github.com/ckb-devrel/ccc/pull/25) [`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(utxo-global): switchNetwork
|
|
155
169
|
|
|
156
|
-
- [`44c7fee`](https://github.com/ckb-
|
|
170
|
+
- [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
|
|
157
171
|
|
|
158
|
-
- Updated dependencies [[`69c10fd`](https://github.com/ckb-
|
|
172
|
+
- Updated dependencies [[`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97), [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b)]:
|
|
159
173
|
- @ckb-ccc/ccc@0.0.13-alpha.6
|
|
160
174
|
|
|
161
175
|
## 0.0.13-alpha.5
|
|
162
176
|
|
|
163
177
|
### Patch Changes
|
|
164
178
|
|
|
165
|
-
- [`6d62032`](https://github.com/ckb-
|
|
179
|
+
- [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
|
|
166
180
|
|
|
167
|
-
- Updated dependencies [[`6d62032`](https://github.com/ckb-
|
|
181
|
+
- Updated dependencies [[`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97)]:
|
|
168
182
|
- @ckb-ccc/ccc@0.0.13-alpha.5
|
|
169
183
|
|
|
170
184
|
## 0.0.13-alpha.4
|
|
171
185
|
|
|
172
186
|
### Patch Changes
|
|
173
187
|
|
|
174
|
-
- [`3658797`](https://github.com/ckb-
|
|
188
|
+
- [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
|
|
175
189
|
|
|
176
|
-
- Updated dependencies [[`3658797`](https://github.com/ckb-
|
|
190
|
+
- Updated dependencies [[`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f)]:
|
|
177
191
|
- @ckb-ccc/ccc@0.0.13-alpha.4
|
|
178
192
|
|
|
179
193
|
## 0.0.13-alpha.3
|
|
@@ -208,11 +222,11 @@
|
|
|
208
222
|
|
|
209
223
|
### Patch Changes
|
|
210
224
|
|
|
211
|
-
- [`6bee006`](https://github.com/ckb-
|
|
225
|
+
- [`6bee006`](https://github.com/ckb-devrel/ccc/commit/6bee006fbcb96986c65ca4d2d896fca21db2503b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): catch connecting error
|
|
212
226
|
|
|
213
|
-
- [`591e779`](https://github.com/ckb-
|
|
227
|
+
- [`591e779`](https://github.com/ckb-devrel/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: custom SignersController
|
|
214
228
|
|
|
215
|
-
- Updated dependencies [[`591e779`](https://github.com/ckb-
|
|
229
|
+
- Updated dependencies [[`591e779`](https://github.com/ckb-devrel/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7)]:
|
|
216
230
|
- @ckb-ccc/ccc@0.0.12
|
|
217
231
|
|
|
218
232
|
## 0.0.12-alpha.7
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<a href="https://app.ckbccc.com/">
|
|
3
|
-
<img alt="Logo" src="https://raw.githubusercontent.com/ckb-
|
|
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
4
|
</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
<a href="https://www.npmjs.com/package/@ckb-ccc/connector"><img
|
|
13
13
|
alt="NPM Version" src="https://img.shields.io/npm/v/%40ckb-ccc%2Fconnector"
|
|
14
14
|
/></a>
|
|
15
|
-
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/ckb-
|
|
16
|
-
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/ckb-
|
|
17
|
-
<img alt="GitHub branch check runs" src="https://img.shields.io/github/check-runs/ckb-
|
|
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
18
|
<a href="https://live.ckbccc.com/"><img
|
|
19
19
|
alt="Playground" src="https://img.shields.io/website?url=https%3A%2F%2Flive.ckbccc.com%2F&label=Playground"
|
|
20
20
|
/></a>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</p>
|
|
28
28
|
|
|
29
29
|
<p align="center">
|
|
30
|
-
|
|
30
|
+
CCC - CKBers' Codebase is a one-stop solution for your CKB JS/TS ecosystem development.
|
|
31
31
|
<br />
|
|
32
32
|
Empower yourself with CCC to discover the unlimited potential of CKB.
|
|
33
33
|
<br />
|
|
@@ -36,26 +36,6 @@
|
|
|
36
36
|
Fully enabling CKB's Turing completeness and cryptographic freedom power.
|
|
37
37
|
</p>
|
|
38
38
|
|
|
39
|
-
## Playground
|
|
40
|
-
|
|
41
|
-
<p align="center">
|
|
42
|
-
<a href="https://live.ckbccc.com/">
|
|
43
|
-
<img src="https://raw.githubusercontent.com/ckb-ecofund/ccc/master/assets/preview.png" width="90%" />
|
|
44
|
-
</a>
|
|
45
|
-
</p>
|
|
46
|
-
|
|
47
|
-
This project is still under active development, and we are looking forward to your feedback. You can [experiment instantly in the playground](https://live.ckbccc.com/). If you are new to the CKB, we recommend checking [Nervos CKB Docs](https://docs.nervos.org/) for basic knowledge.
|
|
48
|
-
|
|
49
|
-
## App
|
|
50
|
-
|
|
51
|
-
<p align="center">
|
|
52
|
-
<a href="https://app.ckbccc.com/">
|
|
53
|
-
<img src="https://raw.githubusercontent.com/ckb-ecofund/ccc/master/assets/appPreview.png" width="50%" />
|
|
54
|
-
</a>
|
|
55
|
-
</p>
|
|
56
|
-
|
|
57
|
-
For non-developers, you can also [try CCC's app now here](https://app.ckbccc.com/). It showcases how to use CCC for some basic scenarios in CKB.
|
|
58
|
-
|
|
59
39
|
<h3 align="center">
|
|
60
|
-
Read more about CCC on <a href="https://docs.ckbccc.com">our website</a> or <a href="https://github.com/ckb-
|
|
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>.
|
|
61
41
|
</h3>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C,qBACa,MAAO,SAAQ,UAAU;IAE7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C,qBACa,MAAO,SAAQ,UAAU;IAE7B,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM;IA6BN,MAAM,CAAC,MAAM,0BA0DX;CACH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/ccc";
|
|
2
2
|
import { LitElement, PropertyValues } from "lit";
|
|
3
3
|
export declare class WebComponentConnector extends LitElement {
|
|
4
|
-
hideMark:
|
|
4
|
+
hideMark: unknown;
|
|
5
5
|
name?: string;
|
|
6
6
|
icon?: string;
|
|
7
7
|
preferredNetworks?: ccc.NetworkPreference[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAU5D,qBACa,qBAAsB,SAAQ,UAAU;IAE5C,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAa,MAAM,KAAK,CAAC;AAU5D,qBACa,qBAAsB,SAAQ,UAAU;IAE5C,QAAQ,EAAE,OAAO,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAE5C,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC;IAE1C,aAAa,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAGtE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAiC;IACnD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM;IAInC,OAAO,CAAC,sBAAsB,CAA+B;IAG7D,OAAO,CAAC,UAAU,CAAC,CAAS;IAE5B,OAAO,CAAC,UAAU,CAAC,CAAS;IAErB,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC;IAE/B,OAAO,CAAC,wBAAwB,CAAC,CAAa;IAEvC,UAAU;IASjB,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,cAAc;IAUtB,iBAAiB,IAAI,IAAI;IAKzB,UAAU,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IAoBnD,aAAa;IAQP,YAAY,CAChB,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,SAAS,EAC9B,UAAU,EAAE,GAAG,CAAC,UAAU,GAAG,SAAS;IAsBxC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CACV;IAEd,MAAM;IA4CN,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI;IAY7B,OAAO;IASP,MAAM,CAAC,MAAM,0BAyBX;CACH"}
|
package/dist/connector/index.js
CHANGED
|
@@ -26,11 +26,11 @@ let WebComponentConnector = class WebComponentConnector extends LitElement {
|
|
|
26
26
|
this.walletName = undefined;
|
|
27
27
|
this.signerName = undefined;
|
|
28
28
|
this.saveConnection();
|
|
29
|
-
this.signer?.signer.disconnect();
|
|
29
|
+
void this.signer?.signer.disconnect();
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
loadConnection() {
|
|
33
|
-
const { signerName, walletName
|
|
33
|
+
const { signerName, walletName } = JSON.parse(window.localStorage.getItem("ccc-connection-info") ?? "{}");
|
|
34
34
|
this.signerName = signerName;
|
|
35
35
|
this.walletName = walletName;
|
|
36
36
|
}
|
|
@@ -50,7 +50,7 @@ let WebComponentConnector = class WebComponentConnector extends LitElement {
|
|
|
50
50
|
changedProperties.has("client") ||
|
|
51
51
|
changedProperties.has("signerFilter") ||
|
|
52
52
|
changedProperties.has("preferredNetworks")) {
|
|
53
|
-
this.signersControllerInner.refresh();
|
|
53
|
+
void this.signersControllerInner.refresh();
|
|
54
54
|
}
|
|
55
55
|
if (changedProperties.has("walletName") ||
|
|
56
56
|
changedProperties.has("signerName")) {
|
|
@@ -61,7 +61,7 @@ let WebComponentConnector = class WebComponentConnector extends LitElement {
|
|
|
61
61
|
refreshSigner() {
|
|
62
62
|
const wallet = this.signersControllerInner.wallets.find(({ name }) => name === this.walletName);
|
|
63
63
|
const signer = wallet?.signers.find(({ name }) => name === this.signerName);
|
|
64
|
-
this.updateSigner(wallet, signer);
|
|
64
|
+
void this.updateSigner(wallet, signer);
|
|
65
65
|
}
|
|
66
66
|
async updateSigner(wallet, signerInfo) {
|
|
67
67
|
if (signerInfo?.signer === this.signer?.signer) {
|
|
@@ -74,7 +74,7 @@ let WebComponentConnector = class WebComponentConnector extends LitElement {
|
|
|
74
74
|
this.signer = signerInfo;
|
|
75
75
|
this.unregisterSignerReplacer?.();
|
|
76
76
|
this.unregisterSignerReplacer = signerInfo.signer.onReplaced(() => {
|
|
77
|
-
this.signersControllerInner.refresh();
|
|
77
|
+
void this.signersControllerInner.refresh();
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,qBAAa,iBAAkB,SAAQ,KAAK;IACvB,MAAM,EAAE,GAAG,CAAC,MAAM;gBAAlB,MAAM,EAAE,GAAG,CAAC,MAAM;CAGtC;AAED,qBAAa,cAAe,SAAQ,KAAK;aAErB,UAAU,EAAE,MAAM;aAClB,UAAU,EAAE,MAAM;gBADlB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM;CAIrC;AAED,qBAAa,UAAW,SAAQ,KAAK;IAChB,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,qBAAa,iBAAkB,SAAQ,KAAK;IACvB,MAAM,EAAE,GAAG,CAAC,MAAM;gBAAlB,MAAM,EAAE,GAAG,CAAC,MAAM;CAGtC;AAED,qBAAa,cAAe,SAAQ,KAAK;aAErB,UAAU,EAAE,MAAM;aAClB,UAAU,EAAE,MAAM;gBADlB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM;CAIrC;AAED,qBAAa,UAAW,SAAQ,KAAK;IAChB,QAAQ,CAAC,GAAE,MAAM,IAAI;gBAArB,QAAQ,CAAC,GAAE,MAAM,IAAI,aAAA;CAGzC"}
|
|
@@ -2,7 +2,7 @@ import { ccc } from "@ckb-ccc/ccc";
|
|
|
2
2
|
import { LitElement, PropertyValues } from "lit";
|
|
3
3
|
export declare function formatString(str: string | undefined, l?: number, r?: number): string | undefined;
|
|
4
4
|
export declare class ConnectedScene extends LitElement {
|
|
5
|
-
hideMark:
|
|
5
|
+
hideMark: unknown;
|
|
6
6
|
wallet?: ccc.Wallet;
|
|
7
7
|
signer?: ccc.Signer;
|
|
8
8
|
clientOptions?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected.d.ts","sourceRoot":"","sources":["../../src/scenes/connected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAU5D,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,CAAC,SAAI,EACL,CAAC,SAAI,GACJ,MAAM,GAAG,SAAS,CAKpB;AAED,qBACa,cAAe,SAAQ,UAAU;IAErC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"connected.d.ts","sourceRoot":"","sources":["../../src/scenes/connected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAa,UAAU,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAU5D,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,CAAC,SAAI,EACL,CAAC,SAAI,GACJ,MAAM,GAAG,SAAS,CAKpB;AAED,qBACa,cAAe,SAAQ,UAAU;IAErC,QAAQ,EAAE,OAAO,CAAC;IAElB,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAEpB,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAG7E,OAAO,CAAC,kBAAkB,CAAC,CAAS;IAEpC,OAAO,CAAC,eAAe,CAAC,CAAS;IAEjC,OAAO,CAAC,OAAO,CAAC,CAAU;IAE1B,OAAO,CAAC,eAAe,CAAS;IAEhC,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAkBzD,MAAM;IA0GN,MAAM,CAAC,MAAM,0BAiIX;IAEF,OAAO;CAGR"}
|
package/dist/scenes/connected.js
CHANGED
|
@@ -31,11 +31,13 @@ let ConnectedScene = class ConnectedScene extends LitElement {
|
|
|
31
31
|
!this.balance ||
|
|
32
32
|
changedProperties.has("signer")) &&
|
|
33
33
|
this.signer) {
|
|
34
|
-
this.signer
|
|
34
|
+
void this.signer
|
|
35
35
|
.getRecommendedAddress()
|
|
36
36
|
.then((v) => (this.recommendedAddress = v));
|
|
37
|
-
this.signer
|
|
38
|
-
|
|
37
|
+
void this.signer
|
|
38
|
+
.getInternalAddress()
|
|
39
|
+
.then((v) => (this.internalAddress = v));
|
|
40
|
+
void this.signer.getBalance().then((v) => (this.balance = v));
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
render() {
|
|
@@ -91,7 +93,7 @@ let ConnectedScene = class ConnectedScene extends LitElement {
|
|
|
91
93
|
</ccc-button>
|
|
92
94
|
|
|
93
95
|
${this.hideMark == null
|
|
94
|
-
? html `<a href="https://github.com/ckb-
|
|
96
|
+
? html `<a href="https://github.com/ckb-devrel/ccc" class="mark"
|
|
95
97
|
>Powered by CCC</a
|
|
96
98
|
>`
|
|
97
99
|
: ""}
|
|
@@ -17,7 +17,7 @@ let SelectingScene = class SelectingScene extends LitElement {
|
|
|
17
17
|
this.connectingError = undefined;
|
|
18
18
|
this.selectedWallet = wallet;
|
|
19
19
|
this.selectedSigner = signerInfo;
|
|
20
|
-
(async () => {
|
|
20
|
+
void (async () => {
|
|
21
21
|
const { signer } = signerInfo;
|
|
22
22
|
try {
|
|
23
23
|
await signer.connect();
|
package/dist/signers/index.d.ts
CHANGED
package/dist/signers/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export class SignersController {
|
|
|
10
10
|
host.addController(this);
|
|
11
11
|
}
|
|
12
12
|
refresh() {
|
|
13
|
-
this.controller.refresh(this.host.client, (wallets) => {
|
|
13
|
+
return this.controller.refresh(this.host.client, (wallets) => {
|
|
14
14
|
this.wallets = [...wallets];
|
|
15
15
|
this.update();
|
|
16
16
|
}, this.host);
|
|
@@ -20,7 +20,7 @@ export class SignersController {
|
|
|
20
20
|
this.host.requestUpdate();
|
|
21
21
|
}
|
|
22
22
|
hostConnected() {
|
|
23
|
-
this.refresh();
|
|
23
|
+
void this.refresh();
|
|
24
24
|
// Wait for plugins to be loaded
|
|
25
25
|
setTimeout(() => this.refresh(), 500);
|
|
26
26
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/connector",
|
|
3
|
-
"version": "0.0.17-alpha.
|
|
3
|
+
"version": "0.0.17-alpha.7",
|
|
4
4
|
"description": "CCC - CKBer's Codebase. Common Chains Connector UI",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"private": false,
|
|
8
|
-
"homepage": "https://github.com/ckb-
|
|
8
|
+
"homepage": "https://github.com/ckb-devrel/ccc",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git://github.com/ckb-
|
|
11
|
+
"url": "git://github.com/ckb-devrel/ccc.git"
|
|
12
12
|
},
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "dist/index.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"lit": "^3.1.3",
|
|
37
|
-
"@ckb-ccc/ccc": "0.0.16-alpha.
|
|
37
|
+
"@ckb-ccc/ccc": "0.0.16-alpha.6"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "rimraf ./dist && tsc",
|
|
41
|
-
"lint": "eslint",
|
|
42
|
-
"format": "prettier --write . && eslint --fix"
|
|
41
|
+
"lint": "eslint ./src",
|
|
42
|
+
"format": "prettier --write . && eslint --fix ./src"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/src/components/dialog.ts
CHANGED
package/src/connector/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { SignersController } from "../signers/index.js";
|
|
|
12
12
|
@customElement("ccc-connector")
|
|
13
13
|
export class WebComponentConnector extends LitElement {
|
|
14
14
|
@property()
|
|
15
|
-
public hideMark:
|
|
15
|
+
public hideMark: unknown;
|
|
16
16
|
@property()
|
|
17
17
|
public name?: string;
|
|
18
18
|
@property()
|
|
@@ -48,17 +48,14 @@ export class WebComponentConnector extends LitElement {
|
|
|
48
48
|
this.walletName = undefined;
|
|
49
49
|
this.signerName = undefined;
|
|
50
50
|
this.saveConnection();
|
|
51
|
-
this.signer?.signer.disconnect();
|
|
51
|
+
void this.signer?.signer.disconnect();
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
private loadConnection() {
|
|
56
|
-
const {
|
|
57
|
-
signerName,
|
|
58
|
-
walletName,
|
|
59
|
-
}: { signerName?: string; walletName?: string } = JSON.parse(
|
|
56
|
+
const { signerName, walletName } = JSON.parse(
|
|
60
57
|
window.localStorage.getItem("ccc-connection-info") ?? "{}",
|
|
61
|
-
);
|
|
58
|
+
) as { signerName?: string; walletName?: string };
|
|
62
59
|
|
|
63
60
|
this.signerName = signerName;
|
|
64
61
|
this.walletName = walletName;
|
|
@@ -87,7 +84,7 @@ export class WebComponentConnector extends LitElement {
|
|
|
87
84
|
changedProperties.has("signerFilter") ||
|
|
88
85
|
changedProperties.has("preferredNetworks")
|
|
89
86
|
) {
|
|
90
|
-
this.signersControllerInner.refresh();
|
|
87
|
+
void this.signersControllerInner.refresh();
|
|
91
88
|
}
|
|
92
89
|
if (
|
|
93
90
|
changedProperties.has("walletName") ||
|
|
@@ -104,7 +101,7 @@ export class WebComponentConnector extends LitElement {
|
|
|
104
101
|
({ name }) => name === this.walletName,
|
|
105
102
|
);
|
|
106
103
|
const signer = wallet?.signers.find(({ name }) => name === this.signerName);
|
|
107
|
-
this.updateSigner(wallet, signer);
|
|
104
|
+
void this.updateSigner(wallet, signer);
|
|
108
105
|
}
|
|
109
106
|
|
|
110
107
|
async updateSigner(
|
|
@@ -123,7 +120,7 @@ export class WebComponentConnector extends LitElement {
|
|
|
123
120
|
this.signer = signerInfo;
|
|
124
121
|
(this.unregisterSignerReplacer as unknown as () => void)?.();
|
|
125
122
|
this.unregisterSignerReplacer = signerInfo.signer.onReplaced(() => {
|
|
126
|
-
this.signersControllerInner.refresh();
|
|
123
|
+
void this.signersControllerInner.refresh();
|
|
127
124
|
});
|
|
128
125
|
} else {
|
|
129
126
|
this.wallet = undefined;
|
package/src/scenes/connected.ts
CHANGED
|
@@ -23,7 +23,7 @@ export function formatString(
|
|
|
23
23
|
@customElement("ccc-connected-scene")
|
|
24
24
|
export class ConnectedScene extends LitElement {
|
|
25
25
|
@property()
|
|
26
|
-
public hideMark:
|
|
26
|
+
public hideMark: unknown;
|
|
27
27
|
@property()
|
|
28
28
|
public wallet?: ccc.Wallet;
|
|
29
29
|
@property()
|
|
@@ -48,11 +48,13 @@ export class ConnectedScene extends LitElement {
|
|
|
48
48
|
changedProperties.has("signer")) &&
|
|
49
49
|
this.signer
|
|
50
50
|
) {
|
|
51
|
-
this.signer
|
|
51
|
+
void this.signer
|
|
52
52
|
.getRecommendedAddress()
|
|
53
53
|
.then((v) => (this.recommendedAddress = v));
|
|
54
|
-
this.signer
|
|
55
|
-
|
|
54
|
+
void this.signer
|
|
55
|
+
.getInternalAddress()
|
|
56
|
+
.then((v) => (this.internalAddress = v));
|
|
57
|
+
void this.signer.getBalance().then((v) => (this.balance = v));
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
|
|
@@ -111,7 +113,7 @@ export class ConnectedScene extends LitElement {
|
|
|
111
113
|
</ccc-button>
|
|
112
114
|
|
|
113
115
|
${this.hideMark == null
|
|
114
|
-
? html`<a href="https://github.com/ckb-
|
|
116
|
+
? html`<a href="https://github.com/ckb-devrel/ccc" class="mark"
|
|
115
117
|
>Powered by CCC</a
|
|
116
118
|
>`
|
|
117
119
|
: ""}
|
|
@@ -75,7 +75,7 @@ export class SelectingScene extends LitElement {
|
|
|
75
75
|
this.connectingError = undefined;
|
|
76
76
|
this.selectedWallet = wallet;
|
|
77
77
|
this.selectedSigner = signerInfo;
|
|
78
|
-
(async () => {
|
|
78
|
+
void (async () => {
|
|
79
79
|
const { signer } = signerInfo;
|
|
80
80
|
try {
|
|
81
81
|
await signer.connect();
|
package/src/signers/index.ts
CHANGED
|
@@ -27,7 +27,7 @@ export class SignersController {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
refresh() {
|
|
30
|
-
this.controller.refresh(
|
|
30
|
+
return this.controller.refresh(
|
|
31
31
|
this.host.client,
|
|
32
32
|
(wallets) => {
|
|
33
33
|
this.wallets = [...wallets];
|
|
@@ -43,7 +43,7 @@ export class SignersController {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
hostConnected(): void {
|
|
46
|
-
this.refresh();
|
|
46
|
+
void this.refresh();
|
|
47
47
|
// Wait for plugins to be loaded
|
|
48
48
|
setTimeout(() => this.refresh(), 500);
|
|
49
49
|
}
|