@ckb-ccc/connector 0.0.17-alpha.1 → 0.0.17-alpha.10

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 CHANGED
@@ -1,18 +1,87 @@
1
1
  # @ckb-ccc/connector
2
2
 
3
+ ## 0.0.17-alpha.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @ckb-ccc/ccc@0.0.16-alpha.9
9
+
10
+ ## 0.0.17-alpha.9
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies []:
15
+ - @ckb-ccc/ccc@0.0.16-alpha.8
16
+
17
+ ## 0.0.17-alpha.8
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies []:
22
+ - @ckb-ccc/ccc@0.0.16-alpha.7
23
+
24
+ ## 0.0.17-alpha.7
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies []:
29
+ - @ckb-ccc/ccc@0.0.16-alpha.6
30
+
31
+ ## 0.0.17-alpha.6
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies []:
36
+ - @ckb-ccc/ccc@0.0.16-alpha.5
37
+
38
+ ## 0.0.17-alpha.5
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies []:
43
+ - @ckb-ccc/ccc@0.0.16-alpha.4
44
+
45
+ ## 0.0.17-alpha.4
46
+
47
+ ### Patch Changes
48
+
49
+ - [#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
50
+
51
+ - Updated dependencies [[`acfc050`](https://github.com/ckb-devrel/ccc/commit/acfc0502cd6beb48b9310dec8411dcd630507366)]:
52
+ - @ckb-ccc/ccc@0.0.16-alpha.3
53
+
54
+ ## 0.0.17-alpha.3
55
+
56
+ ### Patch Changes
57
+
58
+ - [#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
59
+
60
+ - [#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
61
+
62
+ - Updated dependencies [[`8824ff2`](https://github.com/ckb-devrel/ccc/commit/8824ff27af3b76186f1a7d6db8c907cd66f09d6a), [`c092988`](https://github.com/ckb-devrel/ccc/commit/c092988e7765b9ac79498d6bd72a6a2f62859b6f)]:
63
+ - @ckb-ccc/ccc@0.0.16-alpha.2
64
+
65
+ ## 0.0.17-alpha.2
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies []:
70
+ - @ckb-ccc/ccc@0.0.16-alpha.1
71
+
3
72
  ## 0.0.17-alpha.1
4
73
 
5
74
  ### Patch Changes
6
75
 
7
- - [#62](https://github.com/ckb-ecofund/ccc/pull/62) [`543c765`](https://github.com/ckb-ecofund/ccc/commit/543c76523b3864f2203631762c27b8fc4c942cd7) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): Powered by CCC
76
+ - [#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
8
77
 
9
78
  ## 0.0.17-alpha.0
10
79
 
11
80
  ### Patch Changes
12
81
 
13
- - [#60](https://github.com/ckb-ecofund/ccc/pull/60) [`e904963`](https://github.com/ckb-ecofund/ccc/commit/e904963a16f12c410d861eb3ae01b87d68cb3e34) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: support Xverse
82
+ - [#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
14
83
 
15
- - Updated dependencies [[`e904963`](https://github.com/ckb-ecofund/ccc/commit/e904963a16f12c410d861eb3ae01b87d68cb3e34)]:
84
+ - Updated dependencies [[`e904963`](https://github.com/ckb-devrel/ccc/commit/e904963a16f12c410d861eb3ae01b87d68cb3e34)]:
16
85
  - @ckb-ccc/ccc@0.0.16-alpha.0
17
86
 
18
87
  ## 0.0.16
@@ -26,36 +95,36 @@
26
95
 
27
96
  ### Patch Changes
28
97
 
29
- - [`2483637`](https://github.com/ckb-ecofund/ccc/commit/2483637c89a2e012ed6408d8cabc123b8a45faa9) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): animation
98
+ - [`2483637`](https://github.com/ckb-devrel/ccc/commit/2483637c89a2e012ed6408d8cabc123b8a45faa9) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): animation
30
99
 
31
100
  ## 0.0.14
32
101
 
33
102
  ### Patch Changes
34
103
 
35
- - [#56](https://github.com/ckb-ecofund/ccc/pull/56) [`b4aa690`](https://github.com/ckb-ecofund/ccc/commit/b4aa69085d69fc0953629fd907212922d7d106dd) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): manage button
104
+ - [#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
36
105
 
37
- - [#56](https://github.com/ckb-ecofund/ccc/pull/56) [`f13f4d3`](https://github.com/ckb-ecofund/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findTransactions
106
+ - [#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
38
107
 
39
- - [#48](https://github.com/ckb-ecofund/ccc/pull/48) [`4fb114b`](https://github.com/ckb-ecofund/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(okx): make okx wallet happy
108
+ - [#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
40
109
 
41
- - [#54](https://github.com/ckb-ecofund/ccc/pull/54) [`3f49876`](https://github.com/ckb-ecofund/ccc/commit/3f49876826f5a9eeff8d14c7d8d7b9cf2cea0f32) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): useless back button
110
+ - [#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
42
111
 
43
- - [#53](https://github.com/ckb-ecofund/ccc/pull/53) [`32bffff`](https://github.com/ckb-ecofund/ccc/commit/32bffff407934ec5d16bf7c5701b128d8b29c452) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): select client
112
+ - [#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
44
113
 
45
- - Updated dependencies [[`f13f4d3`](https://github.com/ckb-ecofund/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25), [`4fb114b`](https://github.com/ckb-ecofund/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
114
+ - Updated dependencies [[`f13f4d3`](https://github.com/ckb-devrel/ccc/commit/f13f4d319ca66b571029a65e945e3a038bfeea25), [`4fb114b`](https://github.com/ckb-devrel/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
46
115
  - @ckb-ccc/ccc@0.0.14
47
116
 
48
117
  ## 0.0.14-alpha.3
49
118
 
50
119
  ### Patch Changes
51
120
 
52
- - [#54](https://github.com/ckb-ecofund/ccc/pull/54) [`3f49876`](https://github.com/ckb-ecofund/ccc/commit/3f49876826f5a9eeff8d14c7d8d7b9cf2cea0f32) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): useless back button
121
+ - [#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
53
122
 
54
123
  ## 0.0.14-alpha.2
55
124
 
56
125
  ### Patch Changes
57
126
 
58
- - [#53](https://github.com/ckb-ecofund/ccc/pull/53) [`32bffff`](https://github.com/ckb-ecofund/ccc/commit/32bffff407934ec5d16bf7c5701b128d8b29c452) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): select client
127
+ - [#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
59
128
 
60
129
  - Updated dependencies []:
61
130
  - @ckb-ccc/ccc@0.0.14-alpha.2
@@ -64,9 +133,9 @@
64
133
 
65
134
  ### Patch Changes
66
135
 
67
- - [#48](https://github.com/ckb-ecofund/ccc/pull/48) [`4fb114b`](https://github.com/ckb-ecofund/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(okx): make okx wallet happy
136
+ - [#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
68
137
 
69
- - Updated dependencies [[`4fb114b`](https://github.com/ckb-ecofund/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
138
+ - Updated dependencies [[`4fb114b`](https://github.com/ckb-devrel/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
70
139
  - @ckb-ccc/ccc@0.0.14-alpha.1
71
140
 
72
141
  ## 0.0.14-alpha.0
@@ -80,19 +149,19 @@
80
149
 
81
150
  ### Patch Changes
82
151
 
83
- - [`6d62032`](https://github.com/ckb-ecofund/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
152
+ - [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
84
153
 
85
- - [`3658797`](https://github.com/ckb-ecofund/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
154
+ - [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
86
155
 
87
- - [#25](https://github.com/ckb-ecofund/ccc/pull/25) [`69c10fd`](https://github.com/ckb-ecofund/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(utxo-global): switchNetwork
156
+ - [#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
88
157
 
89
- - [`44c7fee`](https://github.com/ckb-ecofund/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
158
+ - [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
90
159
 
91
- - [`079e20e`](https://github.com/ckb-ecofund/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
160
+ - [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
92
161
 
93
- - [`ed154d1`](https://github.com/ckb-ecofund/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
162
+ - [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
94
163
 
95
- - Updated dependencies [[`6d62032`](https://github.com/ckb-ecofund/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97), [`3658797`](https://github.com/ckb-ecofund/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f), [`69c10fd`](https://github.com/ckb-ecofund/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97), [`44c7fee`](https://github.com/ckb-ecofund/ccc/commit/44c7feed37369836268fba21884418682f15254b), [`079e20e`](https://github.com/ckb-ecofund/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11), [`ed154d1`](https://github.com/ckb-ecofund/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895)]:
164
+ - 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)]:
96
165
  - @ckb-ccc/ccc@0.0.13
97
166
 
98
167
  ## 0.0.13-alpha.8
@@ -106,40 +175,40 @@
106
175
 
107
176
  ### Patch Changes
108
177
 
109
- - [`079e20e`](https://github.com/ckb-ecofund/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
178
+ - [`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): more APIs. Since parsing.
110
179
 
111
- - [`ed154d1`](https://github.com/ckb-ecofund/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
180
+ - [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): Signer.findCells
112
181
 
113
- - Updated dependencies [[`079e20e`](https://github.com/ckb-ecofund/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11), [`ed154d1`](https://github.com/ckb-ecofund/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895)]:
182
+ - Updated dependencies [[`079e20e`](https://github.com/ckb-devrel/ccc/commit/079e20ef14cf9a7c06bbaddf3e92cbfbb005da11), [`ed154d1`](https://github.com/ckb-devrel/ccc/commit/ed154d189e239907ad686ec51ac8133b6d5eb895)]:
114
183
  - @ckb-ccc/ccc@0.0.13-alpha.7
115
184
 
116
185
  ## 0.0.13-alpha.6
117
186
 
118
187
  ### Patch Changes
119
188
 
120
- - [#25](https://github.com/ckb-ecofund/ccc/pull/25) [`69c10fd`](https://github.com/ckb-ecofund/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(utxo-global): switchNetwork
189
+ - [#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
121
190
 
122
- - [`44c7fee`](https://github.com/ckb-ecofund/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
191
+ - [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): completeInputs
123
192
 
124
- - Updated dependencies [[`69c10fd`](https://github.com/ckb-ecofund/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97), [`44c7fee`](https://github.com/ckb-ecofund/ccc/commit/44c7feed37369836268fba21884418682f15254b)]:
193
+ - Updated dependencies [[`69c10fd`](https://github.com/ckb-devrel/ccc/commit/69c10fdfcd507433c13b15d17015dca4687afb97), [`44c7fee`](https://github.com/ckb-devrel/ccc/commit/44c7feed37369836268fba21884418682f15254b)]:
125
194
  - @ckb-ccc/ccc@0.0.13-alpha.6
126
195
 
127
196
  ## 0.0.13-alpha.5
128
197
 
129
198
  ### Patch Changes
130
199
 
131
- - [`6d62032`](https://github.com/ckb-ecofund/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
200
+ - [`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): recordCells should not add usableCells
132
201
 
133
- - Updated dependencies [[`6d62032`](https://github.com/ckb-ecofund/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97)]:
202
+ - Updated dependencies [[`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97)]:
134
203
  - @ckb-ccc/ccc@0.0.13-alpha.5
135
204
 
136
205
  ## 0.0.13-alpha.4
137
206
 
138
207
  ### Patch Changes
139
208
 
140
- - [`3658797`](https://github.com/ckb-ecofund/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
209
+ - [`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): node.js websocket
141
210
 
142
- - Updated dependencies [[`3658797`](https://github.com/ckb-ecofund/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f)]:
211
+ - Updated dependencies [[`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f)]:
143
212
  - @ckb-ccc/ccc@0.0.13-alpha.4
144
213
 
145
214
  ## 0.0.13-alpha.3
@@ -174,11 +243,11 @@
174
243
 
175
244
  ### Patch Changes
176
245
 
177
- - [`6bee006`](https://github.com/ckb-ecofund/ccc/commit/6bee006fbcb96986c65ca4d2d896fca21db2503b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): catch connecting error
246
+ - [`6bee006`](https://github.com/ckb-devrel/ccc/commit/6bee006fbcb96986c65ca4d2d896fca21db2503b) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(connector): catch connecting error
178
247
 
179
- - [`591e779`](https://github.com/ckb-ecofund/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: custom SignersController
248
+ - [`591e779`](https://github.com/ckb-devrel/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: custom SignersController
180
249
 
181
- - Updated dependencies [[`591e779`](https://github.com/ckb-ecofund/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7)]:
250
+ - Updated dependencies [[`591e779`](https://github.com/ckb-devrel/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7)]:
182
251
  - @ckb-ccc/ccc@0.0.12
183
252
 
184
253
  ## 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-ecofund/ccc/master/assets/logo.svg" width="20%" />
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-ecofund/ccc" />
16
- <img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/ckb-ecofund/ccc/master" />
17
- <img alt="GitHub branch check runs" src="https://img.shields.io/github/check-runs/ckb-ecofund/ccc/master" />
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
- "CCC - CKBers' Codebase" is the next step of "Common Chains Connector".
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-ecofund/ccc">GitHub Repo</a>.
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,6 +1,6 @@
1
1
  import { LitElement } from "lit";
2
2
  export declare class Dialog extends LitElement {
3
- canBack: any | null | undefined;
3
+ canBack: unknown;
4
4
  header?: string;
5
5
  render(): import("lit").TemplateResult<1>;
6
6
  static styles: import("lit").CSSResult;
@@ -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,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;IAEhC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEvB,MAAM;IA6BN,MAAM,CAAC,MAAM,0BA0DX;CACH"}
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,0BA6DX;CACH"}
@@ -73,7 +73,11 @@ Dialog.styles = css `
73
73
  padding-bottom: 1rem;
74
74
  border-bottom: 1px solid var(--divider);
75
75
  }
76
-
76
+ .close,
77
+ .back {
78
+ padding: 0.2rem 0.4rem;
79
+ cursor: pointer;
80
+ }
77
81
  .close svg,
78
82
  .back svg {
79
83
  width: 0.8rem;
@@ -85,7 +89,6 @@ Dialog.styles = css `
85
89
  .close.active svg,
86
90
  .back.active svg {
87
91
  opacity: 1;
88
- cursor: pointer;
89
92
  }
90
93
 
91
94
  .body {
@@ -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: any | undefined | null;
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,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC;IAEjC,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;IAYtB,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"}
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"}
@@ -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, } = JSON.parse(window.localStorage.getItem("ccc-connection-info") ?? "{}");
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,SAAQ,IAAI;gBAArB,QAAQ,CAAC,SAAQ,IAAI,aAAA;CAGzC"}
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: any | undefined | null;
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,GAAG,GAAG,SAAS,GAAG,IAAI,CAAC;IAEjC,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;IAgBzD,MAAM;IAwGN,MAAM,CAAC,MAAM,0BAiIX;IAEF,OAAO;CAGR"}
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"}
@@ -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.getInternalAddress().then((v) => (this.internalAddress = v));
38
- this.signer.getBalance().then((v) => (this.balance = v));
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,9 @@ 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-ecofund/ccc" class="mark">Powered by CCC</a>`
96
+ ? html `<a href="https://github.com/ckb-devrel/ccc" class="mark"
97
+ >Powered by CCC</a
98
+ >`
95
99
  : ""}
96
100
 
97
101
  <div
@@ -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();
@@ -14,7 +14,7 @@ export declare class SignersController {
14
14
  refreshSigner: () => void;
15
15
  signersController?: ccc.SignersController;
16
16
  });
17
- refresh(): void;
17
+ refresh(): Promise<void>;
18
18
  update(): void;
19
19
  hostConnected(): void;
20
20
  hostDisconnected(): void;
@@ -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.1",
3
+ "version": "0.0.17-alpha.10",
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-ecofund/ccc",
8
+ "homepage": "https://github.com/ckb-devrel/ccc",
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "git://github.com/ckb-ecofund/ccc.git"
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.0"
37
+ "@ckb-ccc/ccc": "0.0.16-alpha.9"
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
  }
@@ -7,7 +7,7 @@ import { CloseEvent } from "../events/index.js";
7
7
  @customElement("ccc-dialog")
8
8
  export class Dialog extends LitElement {
9
9
  @property()
10
- public canBack: any | null | undefined;
10
+ public canBack: unknown;
11
11
  @property()
12
12
  public header?: string;
13
13
 
@@ -74,7 +74,11 @@ export class Dialog extends LitElement {
74
74
  padding-bottom: 1rem;
75
75
  border-bottom: 1px solid var(--divider);
76
76
  }
77
-
77
+ .close,
78
+ .back {
79
+ padding: 0.2rem 0.4rem;
80
+ cursor: pointer;
81
+ }
78
82
  .close svg,
79
83
  .back svg {
80
84
  width: 0.8rem;
@@ -86,7 +90,6 @@ export class Dialog extends LitElement {
86
90
  .close.active svg,
87
91
  .back.active svg {
88
92
  opacity: 1;
89
- cursor: pointer;
90
93
  }
91
94
 
92
95
  .body {
@@ -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: any | undefined | null;
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;
@@ -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: any | undefined | null;
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.getInternalAddress().then((v) => (this.internalAddress = v));
55
- this.signer.getBalance().then((v) => (this.balance = v));
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,9 @@ export class ConnectedScene extends LitElement {
111
113
  </ccc-button>
112
114
 
113
115
  ${this.hideMark == null
114
- ? html`<a href="https://github.com/ckb-ecofund/ccc" class="mark">Powered by CCC</a>`
116
+ ? html`<a href="https://github.com/ckb-devrel/ccc" class="mark"
117
+ >Powered by CCC</a
118
+ >`
115
119
  : ""}
116
120
 
117
121
  <div
@@ -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();
@@ -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
  }