@ckb-ccc/connector 0.0.17-alpha.0 → 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,12 +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
+
72
+ ## 0.0.17-alpha.1
73
+
74
+ ### Patch Changes
75
+
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
77
+
3
78
  ## 0.0.17-alpha.0
4
79
 
5
80
  ### Patch Changes
6
81
 
7
- - [#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
8
83
 
9
- - Updated dependencies [[`e904963`](https://github.com/ckb-ecofund/ccc/commit/e904963a16f12c410d861eb3ae01b87d68cb3e34)]:
84
+ - Updated dependencies [[`e904963`](https://github.com/ckb-devrel/ccc/commit/e904963a16f12c410d861eb3ae01b87d68cb3e34)]:
10
85
  - @ckb-ccc/ccc@0.0.16-alpha.0
11
86
 
12
87
  ## 0.0.16
@@ -20,36 +95,36 @@
20
95
 
21
96
  ### Patch Changes
22
97
 
23
- - [`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
24
99
 
25
100
  ## 0.0.14
26
101
 
27
102
  ### Patch Changes
28
103
 
29
- - [#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
30
105
 
31
- - [#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
32
107
 
33
- - [#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
34
109
 
35
- - [#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
36
111
 
37
- - [#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
38
113
 
39
- - 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)]:
40
115
  - @ckb-ccc/ccc@0.0.14
41
116
 
42
117
  ## 0.0.14-alpha.3
43
118
 
44
119
  ### Patch Changes
45
120
 
46
- - [#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
47
122
 
48
123
  ## 0.0.14-alpha.2
49
124
 
50
125
  ### Patch Changes
51
126
 
52
- - [#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
53
128
 
54
129
  - Updated dependencies []:
55
130
  - @ckb-ccc/ccc@0.0.14-alpha.2
@@ -58,9 +133,9 @@
58
133
 
59
134
  ### Patch Changes
60
135
 
61
- - [#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
62
137
 
63
- - Updated dependencies [[`4fb114b`](https://github.com/ckb-ecofund/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
138
+ - Updated dependencies [[`4fb114b`](https://github.com/ckb-devrel/ccc/commit/4fb114bc421c7250eed7388c16f1c026875153e6)]:
64
139
  - @ckb-ccc/ccc@0.0.14-alpha.1
65
140
 
66
141
  ## 0.0.14-alpha.0
@@ -74,19 +149,19 @@
74
149
 
75
150
  ### Patch Changes
76
151
 
77
- - [`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
78
153
 
79
- - [`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
80
155
 
81
- - [#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
82
157
 
83
- - [`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
84
159
 
85
- - [`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.
86
161
 
87
- - [`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
88
163
 
89
- - 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)]:
90
165
  - @ckb-ccc/ccc@0.0.13
91
166
 
92
167
  ## 0.0.13-alpha.8
@@ -100,40 +175,40 @@
100
175
 
101
176
  ### Patch Changes
102
177
 
103
- - [`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.
104
179
 
105
- - [`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
106
181
 
107
- - 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)]:
108
183
  - @ckb-ccc/ccc@0.0.13-alpha.7
109
184
 
110
185
  ## 0.0.13-alpha.6
111
186
 
112
187
  ### Patch Changes
113
188
 
114
- - [#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
115
190
 
116
- - [`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
117
192
 
118
- - 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)]:
119
194
  - @ckb-ccc/ccc@0.0.13-alpha.6
120
195
 
121
196
  ## 0.0.13-alpha.5
122
197
 
123
198
  ### Patch Changes
124
199
 
125
- - [`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
126
201
 
127
- - Updated dependencies [[`6d62032`](https://github.com/ckb-ecofund/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97)]:
202
+ - Updated dependencies [[`6d62032`](https://github.com/ckb-devrel/ccc/commit/6d620326f42f8c48eff9deb95578cf28d7bf5c97)]:
128
203
  - @ckb-ccc/ccc@0.0.13-alpha.5
129
204
 
130
205
  ## 0.0.13-alpha.4
131
206
 
132
207
  ### Patch Changes
133
208
 
134
- - [`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
135
210
 
136
- - Updated dependencies [[`3658797`](https://github.com/ckb-ecofund/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f)]:
211
+ - Updated dependencies [[`3658797`](https://github.com/ckb-devrel/ccc/commit/3658797e67c42c56b20fa66481d0455ed019e69f)]:
137
212
  - @ckb-ccc/ccc@0.0.13-alpha.4
138
213
 
139
214
  ## 0.0.13-alpha.3
@@ -168,11 +243,11 @@
168
243
 
169
244
  ### Patch Changes
170
245
 
171
- - [`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
172
247
 
173
- - [`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
174
249
 
175
- - Updated dependencies [[`591e779`](https://github.com/ckb-ecofund/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7)]:
250
+ - Updated dependencies [[`591e779`](https://github.com/ckb-devrel/ccc/commit/591e7794ce3d07ceaad55b7a80d2277fe0aa9fe7)]:
176
251
  - @ckb-ccc/ccc@0.0.12
177
252
 
178
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,6 +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: unknown;
4
5
  name?: string;
5
6
  icon?: string;
6
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,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;IA2CN,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 {
@@ -100,6 +100,7 @@ let WebComponentConnector = class WebComponentConnector extends LitElement {
100
100
  ${this.wallet && this.signer
101
101
  ? html `
102
102
  <ccc-connected-scene
103
+ ?hideMark=${this.hideMark}
103
104
  .wallet=${this.wallet}
104
105
  .signer=${this.signer.signer}
105
106
  .clientOptions=${this.clientOptions}
@@ -166,6 +167,9 @@ WebComponentConnector.styles = css `
166
167
  transition: height 0.15s ease-out;
167
168
  }
168
169
  `;
170
+ __decorate([
171
+ property()
172
+ ], WebComponentConnector.prototype, "hideMark", void 0);
169
173
  __decorate([
170
174
  property()
171
175
  ], WebComponentConnector.prototype, "name", void 0);
@@ -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,6 +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: unknown;
5
6
  wallet?: ccc.Wallet;
6
7
  signer?: ccc.Signer;
7
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,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;IAoGN,MAAM,CAAC,MAAM,0BAmHX;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() {
@@ -90,6 +92,12 @@ let ConnectedScene = class ConnectedScene extends LitElement {
90
92
  ${DISCONNECT_SVG} Disconnect
91
93
  </ccc-button>
92
94
 
95
+ ${this.hideMark == null
96
+ ? html `<a href="https://github.com/ckb-devrel/ccc" class="mark"
97
+ >Powered by CCC</a
98
+ >`
99
+ : ""}
100
+
93
101
  <div
94
102
  class="switch-btn-container ${this.clientOptions
95
103
  ? "cursor-pointer"
@@ -206,7 +214,6 @@ ConnectedScene.styles = css `
206
214
  .switch-btn-container {
207
215
  width: 100%;
208
216
  margin-top: 1.2rem;
209
- margin-bottom: 0.2rem;
210
217
  display: flex;
211
218
  justify-content: center;
212
219
  align-items: center;
@@ -248,7 +255,25 @@ ConnectedScene.styles = css `
248
255
  .sm-chain-logo {
249
256
  width: 1.125rem;
250
257
  }
258
+
259
+ .mark {
260
+ text-decoration: none;
261
+ cursor: pointer;
262
+ opacity: 0.2;
263
+ margin: 0;
264
+ margin-top: 0.25rem;
265
+ margin-bottom: -1.05rem;
266
+ color: var(--tip-color);
267
+ font-size: 0.6rem;
268
+ }
269
+
270
+ .mark:hover {
271
+ opacity: 0.5;
272
+ }
251
273
  `;
274
+ __decorate([
275
+ property()
276
+ ], ConnectedScene.prototype, "hideMark", void 0);
252
277
  __decorate([
253
278
  property()
254
279
  ], ConnectedScene.prototype, "wallet", void 0);
@@ -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.0",
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 {
@@ -11,6 +11,8 @@ import { SignersController } from "../signers/index.js";
11
11
 
12
12
  @customElement("ccc-connector")
13
13
  export class WebComponentConnector extends LitElement {
14
+ @property()
15
+ public hideMark: unknown;
14
16
  @property()
15
17
  public name?: string;
16
18
  @property()
@@ -46,17 +48,14 @@ export class WebComponentConnector extends LitElement {
46
48
  this.walletName = undefined;
47
49
  this.signerName = undefined;
48
50
  this.saveConnection();
49
- this.signer?.signer.disconnect();
51
+ void this.signer?.signer.disconnect();
50
52
  });
51
53
  }
52
54
 
53
55
  private loadConnection() {
54
- const {
55
- signerName,
56
- walletName,
57
- }: { signerName?: string; walletName?: string } = JSON.parse(
56
+ const { signerName, walletName } = JSON.parse(
58
57
  window.localStorage.getItem("ccc-connection-info") ?? "{}",
59
- );
58
+ ) as { signerName?: string; walletName?: string };
60
59
 
61
60
  this.signerName = signerName;
62
61
  this.walletName = walletName;
@@ -85,7 +84,7 @@ export class WebComponentConnector extends LitElement {
85
84
  changedProperties.has("signerFilter") ||
86
85
  changedProperties.has("preferredNetworks")
87
86
  ) {
88
- this.signersControllerInner.refresh();
87
+ void this.signersControllerInner.refresh();
89
88
  }
90
89
  if (
91
90
  changedProperties.has("walletName") ||
@@ -102,7 +101,7 @@ export class WebComponentConnector extends LitElement {
102
101
  ({ name }) => name === this.walletName,
103
102
  );
104
103
  const signer = wallet?.signers.find(({ name }) => name === this.signerName);
105
- this.updateSigner(wallet, signer);
104
+ void this.updateSigner(wallet, signer);
106
105
  }
107
106
 
108
107
  async updateSigner(
@@ -121,7 +120,7 @@ export class WebComponentConnector extends LitElement {
121
120
  this.signer = signerInfo;
122
121
  (this.unregisterSignerReplacer as unknown as () => void)?.();
123
122
  this.unregisterSignerReplacer = signerInfo.signer.onReplaced(() => {
124
- this.signersControllerInner.refresh();
123
+ void this.signersControllerInner.refresh();
125
124
  });
126
125
  } else {
127
126
  this.wallet = undefined;
@@ -151,6 +150,7 @@ export class WebComponentConnector extends LitElement {
151
150
  ${this.wallet && this.signer
152
151
  ? html`
153
152
  <ccc-connected-scene
153
+ ?hideMark=${this.hideMark}
154
154
  .wallet=${this.wallet}
155
155
  .signer=${this.signer.signer}
156
156
  .clientOptions=${this.clientOptions}
@@ -22,6 +22,8 @@ export function formatString(
22
22
 
23
23
  @customElement("ccc-connected-scene")
24
24
  export class ConnectedScene extends LitElement {
25
+ @property()
26
+ public hideMark: unknown;
25
27
  @property()
26
28
  public wallet?: ccc.Wallet;
27
29
  @property()
@@ -46,11 +48,13 @@ export class ConnectedScene extends LitElement {
46
48
  changedProperties.has("signer")) &&
47
49
  this.signer
48
50
  ) {
49
- this.signer
51
+ void this.signer
50
52
  .getRecommendedAddress()
51
53
  .then((v) => (this.recommendedAddress = v));
52
- this.signer.getInternalAddress().then((v) => (this.internalAddress = v));
53
- 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));
54
58
  }
55
59
  }
56
60
 
@@ -108,6 +112,12 @@ export class ConnectedScene extends LitElement {
108
112
  ${DISCONNECT_SVG} Disconnect
109
113
  </ccc-button>
110
114
 
115
+ ${this.hideMark == null
116
+ ? html`<a href="https://github.com/ckb-devrel/ccc" class="mark"
117
+ >Powered by CCC</a
118
+ >`
119
+ : ""}
120
+
111
121
  <div
112
122
  class="switch-btn-container ${this.clientOptions
113
123
  ? "cursor-pointer"
@@ -227,7 +237,6 @@ export class ConnectedScene extends LitElement {
227
237
  .switch-btn-container {
228
238
  width: 100%;
229
239
  margin-top: 1.2rem;
230
- margin-bottom: 0.2rem;
231
240
  display: flex;
232
241
  justify-content: center;
233
242
  align-items: center;
@@ -269,6 +278,21 @@ export class ConnectedScene extends LitElement {
269
278
  .sm-chain-logo {
270
279
  width: 1.125rem;
271
280
  }
281
+
282
+ .mark {
283
+ text-decoration: none;
284
+ cursor: pointer;
285
+ opacity: 0.2;
286
+ margin: 0;
287
+ margin-top: 0.25rem;
288
+ margin-bottom: -1.05rem;
289
+ color: var(--tip-color);
290
+ font-size: 0.6rem;
291
+ }
292
+
293
+ .mark:hover {
294
+ opacity: 0.5;
295
+ }
272
296
  `;
273
297
 
274
298
  updated() {
@@ -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
  }