@ckb-ccc/connector 0.0.3-alpha.0 → 0.0.3-alpha.1
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/dist/connector.js +2 -2
- package/package.json +2 -2
- package/src/connector.ts +2 -2
package/dist/connector.js
CHANGED
|
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { ClientPublicTestnet, Eip6963 } from "@ckb-ccc/ccc";
|
|
8
8
|
import { LitElement, css, html } from "lit";
|
|
9
9
|
import { customElement, property, state } from "lit/decorators.js";
|
|
10
10
|
import { repeat } from "lit/directives/repeat.js";
|
|
@@ -18,7 +18,7 @@ let WebComponentConnector = class WebComponentConnector extends LitElement {
|
|
|
18
18
|
}
|
|
19
19
|
connectedCallback() {
|
|
20
20
|
super.connectedCallback();
|
|
21
|
-
const client = new
|
|
21
|
+
const client = new ClientPublicTestnet();
|
|
22
22
|
const eip6963Manager = new Eip6963.SignerFactory(client);
|
|
23
23
|
eip6963Manager.subscribeSigners((signer) => {
|
|
24
24
|
if (this.signers.some((s) => s.id === signer.detail.info.uuid)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/connector",
|
|
3
|
-
"version": "0.0.3-alpha.
|
|
3
|
+
"version": "0.0.3-alpha.1",
|
|
4
4
|
"description": "Common Chains Connector UI",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@ckb-ccc/ccc": "0.0.3-alpha.0",
|
|
41
41
|
"lit": "^3.1.3"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "6a5c042c79baa5d9f473dbdaacf0b09ebf3e6826"
|
|
44
44
|
}
|
package/src/connector.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientPublicTestnet, Eip6963 } from "@ckb-ccc/ccc";
|
|
2
2
|
import { LitElement, css, html } from "lit";
|
|
3
3
|
import { customElement, property, state } from "lit/decorators.js";
|
|
4
4
|
import { repeat } from "lit/directives/repeat.js";
|
|
@@ -16,7 +16,7 @@ export class WebComponentConnector extends LitElement {
|
|
|
16
16
|
connectedCallback(): void {
|
|
17
17
|
super.connectedCallback();
|
|
18
18
|
|
|
19
|
-
const client = new
|
|
19
|
+
const client = new ClientPublicTestnet();
|
|
20
20
|
const eip6963Manager = new Eip6963.SignerFactory(client);
|
|
21
21
|
eip6963Manager.subscribeSigners((signer) => {
|
|
22
22
|
if (this.signers.some((s) => s.id === signer.detail.info.uuid)) {
|