@ckb-ccc/ccc 1.0.7 → 1.1.0
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 +19 -0
- package/dist/advancedBarrel.d.ts +1 -1
- package/dist/advancedBarrel.d.ts.map +1 -1
- package/dist/advancedBarrel.js +1 -1
- package/dist/barrel.d.ts +1 -1
- package/dist/barrel.d.ts.map +1 -1
- package/dist/barrel.js +1 -1
- package/dist/signersController.d.ts +1 -1
- package/dist/signersController.d.ts.map +1 -1
- package/dist/signersController.js +1 -1
- package/dist.commonjs/advancedBarrel.d.ts +1 -1
- package/dist.commonjs/advancedBarrel.d.ts.map +1 -1
- package/dist.commonjs/advancedBarrel.js +1 -1
- package/dist.commonjs/barrel.d.ts +1 -1
- package/dist.commonjs/barrel.d.ts.map +1 -1
- package/dist.commonjs/barrel.js +1 -1
- package/dist.commonjs/signersController.d.ts +1 -1
- package/dist.commonjs/signersController.d.ts.map +1 -1
- package/dist.commonjs/signersController.js +11 -11
- package/package.json +10 -10
- package/src/advancedBarrel.ts +1 -1
- package/src/barrel.ts +1 -1
- package/src/signersController.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ckb-ccc/ccc
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#130](https://github.com/ckb-devrel/ccc/pull/130) [`8c97c85`](https://github.com/ckb-devrel/ccc/commit/8c97c851db4a2d940c7e59116ca7620cfd0afae1) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat: export backend packages in @ckb-ccc/shell
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`8c97c85`](https://github.com/ckb-devrel/ccc/commit/8c97c851db4a2d940c7e59116ca7620cfd0afae1)]:
|
|
12
|
+
- @ckb-ccc/shell@1.1.0
|
|
13
|
+
- @ckb-ccc/eip6963@1.0.8
|
|
14
|
+
- @ckb-ccc/joy-id@1.0.8
|
|
15
|
+
- @ckb-ccc/nip07@1.0.8
|
|
16
|
+
- @ckb-ccc/okx@1.0.8
|
|
17
|
+
- @ckb-ccc/rei@1.0.8
|
|
18
|
+
- @ckb-ccc/uni-sat@1.0.8
|
|
19
|
+
- @ckb-ccc/utxo-global@1.0.8
|
|
20
|
+
- @ckb-ccc/xverse@1.0.8
|
|
21
|
+
|
|
3
22
|
## 1.0.7
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/advancedBarrel.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/advancedBarrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963/advanced";
|
|
3
2
|
export * from "@ckb-ccc/nip07/advanced";
|
|
4
3
|
export * from "@ckb-ccc/okx/advanced";
|
|
4
|
+
export * from "@ckb-ccc/shell/advancedBarrel";
|
|
5
5
|
export * from "@ckb-ccc/uni-sat/advanced";
|
|
6
6
|
export * from "@ckb-ccc/utxo-global/advanced";
|
|
7
7
|
export * from "@ckb-ccc/xverse/advanced";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC"}
|
package/dist/advancedBarrel.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/advancedBarrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963/advanced";
|
|
3
2
|
export * from "@ckb-ccc/nip07/advanced";
|
|
4
3
|
export * from "@ckb-ccc/okx/advanced";
|
|
4
|
+
export * from "@ckb-ccc/shell/advancedBarrel";
|
|
5
5
|
export * from "@ckb-ccc/uni-sat/advanced";
|
|
6
6
|
export * from "@ckb-ccc/utxo-global/advanced";
|
|
7
7
|
export * from "@ckb-ccc/xverse/advanced";
|
package/dist/barrel.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/barrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963";
|
|
3
2
|
export * from "@ckb-ccc/joy-id";
|
|
4
3
|
export * from "@ckb-ccc/nip07";
|
|
5
4
|
export * from "@ckb-ccc/okx";
|
|
6
5
|
export * from "@ckb-ccc/rei";
|
|
6
|
+
export * from "@ckb-ccc/shell/barrel";
|
|
7
7
|
export * from "@ckb-ccc/uni-sat";
|
|
8
8
|
export * from "@ckb-ccc/utxo-global";
|
|
9
9
|
export * from "@ckb-ccc/xverse";
|
package/dist/barrel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
package/dist/barrel.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/barrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963";
|
|
3
2
|
export * from "@ckb-ccc/joy-id";
|
|
4
3
|
export * from "@ckb-ccc/nip07";
|
|
5
4
|
export * from "@ckb-ccc/okx";
|
|
6
5
|
export * from "@ckb-ccc/rei";
|
|
6
|
+
export * from "@ckb-ccc/shell/barrel";
|
|
7
7
|
export * from "@ckb-ccc/uni-sat";
|
|
8
8
|
export * from "@ckb-ccc/utxo-global";
|
|
9
9
|
export * from "@ckb-ccc/xverse";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signersController.d.ts","sourceRoot":"","sources":["../src/signersController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signersController.d.ts","sourceRoot":"","sources":["../src/signersController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAarC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,GAAG;IAC3C,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAC3C,QAAQ,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,cAAc,CAAsB;;IAI5C,SAAS,CAAC,OAAO,CAAC,EAAE;QAClB,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;;;;;IA4CD,UAAU;IAKJ,OAAO,CACX,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,EAChD,OAAO,CAAC,EAAE;QACR,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAmBG,cAAc,CAAC,OAAO,EAAE,+BAA+B;IAwEvD,eAAe,CAAC,OAAO,EAAE,+BAA+B;IAmCxD,cAAc,CAClB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,GAAG,CAAC,UAAU,EAAE,EAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,+BAA+B;IAapC,UAAU,CACd,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE,EACzB,OAAO,EAAE,+BAA+B;cAS1B,SAAS,CACvB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,GAAG,CAAC,UAAU,EAC1B,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,+BAA+B,GACrD,OAAO,CAAC,IAAI,CAAC;CAkBjB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ccc } from "@ckb-ccc/core";
|
|
2
1
|
import { Eip6963 } from "@ckb-ccc/eip6963";
|
|
3
2
|
import { JoyId } from "@ckb-ccc/joy-id";
|
|
4
3
|
import { Nip07 } from "@ckb-ccc/nip07";
|
|
5
4
|
import { Okx } from "@ckb-ccc/okx";
|
|
6
5
|
import { Rei } from "@ckb-ccc/rei";
|
|
6
|
+
import { ccc } from "@ckb-ccc/shell";
|
|
7
7
|
import { UniSat } from "@ckb-ccc/uni-sat";
|
|
8
8
|
import { UtxoGlobal } from "@ckb-ccc/utxo-global";
|
|
9
9
|
import { Xverse } from "@ckb-ccc/xverse";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/advancedBarrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963/advanced";
|
|
3
2
|
export * from "@ckb-ccc/nip07/advanced";
|
|
4
3
|
export * from "@ckb-ccc/okx/advanced";
|
|
4
|
+
export * from "@ckb-ccc/shell/advancedBarrel";
|
|
5
5
|
export * from "@ckb-ccc/uni-sat/advanced";
|
|
6
6
|
export * from "@ckb-ccc/utxo-global/advanced";
|
|
7
7
|
export * from "@ckb-ccc/xverse/advanced";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC"}
|
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@ckb-ccc/core/advancedBarrel"), exports);
|
|
18
17
|
__exportStar(require("@ckb-ccc/eip6963/advanced"), exports);
|
|
19
18
|
__exportStar(require("@ckb-ccc/nip07/advanced"), exports);
|
|
20
19
|
__exportStar(require("@ckb-ccc/okx/advanced"), exports);
|
|
20
|
+
__exportStar(require("@ckb-ccc/shell/advancedBarrel"), exports);
|
|
21
21
|
__exportStar(require("@ckb-ccc/uni-sat/advanced"), exports);
|
|
22
22
|
__exportStar(require("@ckb-ccc/utxo-global/advanced"), exports);
|
|
23
23
|
__exportStar(require("@ckb-ccc/xverse/advanced"), exports);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/barrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963";
|
|
3
2
|
export * from "@ckb-ccc/joy-id";
|
|
4
3
|
export * from "@ckb-ccc/nip07";
|
|
5
4
|
export * from "@ckb-ccc/okx";
|
|
6
5
|
export * from "@ckb-ccc/rei";
|
|
6
|
+
export * from "@ckb-ccc/shell/barrel";
|
|
7
7
|
export * from "@ckb-ccc/uni-sat";
|
|
8
8
|
export * from "@ckb-ccc/utxo-global";
|
|
9
9
|
export * from "@ckb-ccc/xverse";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
package/dist.commonjs/barrel.js
CHANGED
|
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("@ckb-ccc/core/barrel"), exports);
|
|
18
17
|
__exportStar(require("@ckb-ccc/eip6963"), exports);
|
|
19
18
|
__exportStar(require("@ckb-ccc/joy-id"), exports);
|
|
20
19
|
__exportStar(require("@ckb-ccc/nip07"), exports);
|
|
21
20
|
__exportStar(require("@ckb-ccc/okx"), exports);
|
|
22
21
|
__exportStar(require("@ckb-ccc/rei"), exports);
|
|
22
|
+
__exportStar(require("@ckb-ccc/shell/barrel"), exports);
|
|
23
23
|
__exportStar(require("@ckb-ccc/uni-sat"), exports);
|
|
24
24
|
__exportStar(require("@ckb-ccc/utxo-global"), exports);
|
|
25
25
|
__exportStar(require("@ckb-ccc/xverse"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signersController.d.ts","sourceRoot":"","sources":["../src/signersController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signersController.d.ts","sourceRoot":"","sources":["../src/signersController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAarC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,MAAM,GAAG;IAC3C,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;IAC3C,QAAQ,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,CAAC;IACjD,OAAO,EAAE,iBAAiB,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,cAAc,CAAsB;;IAI5C,SAAS,CAAC,OAAO,CAAC,EAAE;QAClB,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;;;;;IA4CD,UAAU;IAKJ,OAAO,CACX,MAAM,EAAE,GAAG,CAAC,MAAM,EAClB,QAAQ,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,IAAI,EAChD,OAAO,CAAC,EAAE;QACR,iBAAiB,CAAC,EAAE,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAmBG,cAAc,CAAC,OAAO,EAAE,+BAA+B;IAwEvD,eAAe,CAAC,OAAO,EAAE,+BAA+B;IAmCxD,cAAc,CAClB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,GAAG,CAAC,UAAU,EAAE,EAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,+BAA+B;IAapC,UAAU,CACd,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,GAAG,CAAC,UAAU,EAAE,EACzB,OAAO,EAAE,+BAA+B;cAS1B,SAAS,CACvB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,GAAG,CAAC,UAAU,EAC1B,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,+BAA+B,GACrD,OAAO,CAAC,IAAI,CAAC;CAkBjB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SignersController = void 0;
|
|
4
|
-
const core_1 = require("@ckb-ccc/core");
|
|
5
4
|
const eip6963_1 = require("@ckb-ccc/eip6963");
|
|
6
5
|
const joy_id_1 = require("@ckb-ccc/joy-id");
|
|
7
6
|
const nip07_1 = require("@ckb-ccc/nip07");
|
|
8
7
|
const okx_1 = require("@ckb-ccc/okx");
|
|
9
8
|
const rei_1 = require("@ckb-ccc/rei");
|
|
9
|
+
const shell_1 = require("@ckb-ccc/shell");
|
|
10
10
|
const uni_sat_1 = require("@ckb-ccc/uni-sat");
|
|
11
11
|
const utxo_global_1 = require("@ckb-ccc/utxo-global");
|
|
12
12
|
const xverse_1 = require("@ckb-ccc/xverse");
|
|
@@ -39,22 +39,22 @@ class SignersController {
|
|
|
39
39
|
...(configs?.preferredNetworks ?? []),
|
|
40
40
|
{
|
|
41
41
|
addressPrefix: "ckb",
|
|
42
|
-
signerType:
|
|
42
|
+
signerType: shell_1.ccc.SignerType.BTC,
|
|
43
43
|
network: "btc",
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
addressPrefix: "ckt",
|
|
47
|
-
signerType:
|
|
47
|
+
signerType: shell_1.ccc.SignerType.BTC,
|
|
48
48
|
network: "btcTestnet",
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
addressPrefix: "ckb",
|
|
52
|
-
signerType:
|
|
52
|
+
signerType: shell_1.ccc.SignerType.Doge,
|
|
53
53
|
network: "doge",
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
addressPrefix: "ckt",
|
|
57
|
-
signerType:
|
|
57
|
+
signerType: shell_1.ccc.SignerType.Doge,
|
|
58
58
|
network: "dogeTestnet",
|
|
59
59
|
},
|
|
60
60
|
];
|
|
@@ -103,17 +103,17 @@ class SignersController {
|
|
|
103
103
|
}, context)));
|
|
104
104
|
}
|
|
105
105
|
async addDummySigners(context) {
|
|
106
|
-
await this.addLinkSigners("MetaMask", metamask_svg_js_1.METAMASK_SVG, [
|
|
107
|
-
await this.addLinkSigners("OKX Wallet", okx_svg_js_1.OKX_SVG, [
|
|
106
|
+
await this.addLinkSigners("MetaMask", metamask_svg_js_1.METAMASK_SVG, [shell_1.ccc.SignerType.EVM], `https://metamask.app.link/dapp/${window.location.href}`, context);
|
|
107
|
+
await this.addLinkSigners("OKX Wallet", okx_svg_js_1.OKX_SVG, [shell_1.ccc.SignerType.EVM, shell_1.ccc.SignerType.BTC], "https://www.okx.com/download?deeplink=" +
|
|
108
108
|
encodeURIComponent("okx://wallet/dapp/url?dappUrl=" +
|
|
109
109
|
encodeURIComponent(window.location.href)), context);
|
|
110
|
-
await this.addLinkSigners("UniSat", uni_sat_svg_js_1.UNI_SAT_SVG, [
|
|
111
|
-
await this.addLinkSigners("UTXO Global Wallet", utxo_global_svg_js_1.UTXO_GLOBAL_SVG, [
|
|
110
|
+
await this.addLinkSigners("UniSat", uni_sat_svg_js_1.UNI_SAT_SVG, [shell_1.ccc.SignerType.BTC], "https://unisat.io/download", context);
|
|
111
|
+
await this.addLinkSigners("UTXO Global Wallet", utxo_global_svg_js_1.UTXO_GLOBAL_SVG, [shell_1.ccc.SignerType.CKB, shell_1.ccc.SignerType.BTC], "https://chromewebstore.google.com/detail/lnamkkidoonpeknminiadpgjiofpdmle", context);
|
|
112
112
|
}
|
|
113
113
|
async addLinkSigners(walletName, icon, signerTypes, link, context) {
|
|
114
114
|
return this.addSigners(walletName, icon, signerTypes.map((type) => ({
|
|
115
115
|
name: type,
|
|
116
|
-
signer: new
|
|
116
|
+
signer: new shell_1.ccc.SignerOpenLink(context.client, type, link),
|
|
117
117
|
})), context);
|
|
118
118
|
}
|
|
119
119
|
async addSigners(walletName, icon, signers, context) {
|
|
@@ -129,7 +129,7 @@ class SignersController {
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
|
-
const signers = [...wallet.signers, signerInfo].filter(({ signer }) => !(signer instanceof
|
|
132
|
+
const signers = [...wallet.signers, signerInfo].filter(({ signer }) => !(signer instanceof shell_1.ccc.SignerDummy));
|
|
133
133
|
wallet.signers = signers.length !== 0 ? signers : [signerInfo];
|
|
134
134
|
}
|
|
135
135
|
onUpdate(wallets);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/ccc",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "CCC - CKBer's Codebase. Common Chains Connector.",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,15 +51,15 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@ckb-ccc/
|
|
55
|
-
"@ckb-ccc/
|
|
56
|
-
"@ckb-ccc/
|
|
57
|
-
"@ckb-ccc/
|
|
58
|
-
"@ckb-ccc/
|
|
59
|
-
"@ckb-ccc/
|
|
60
|
-
"@ckb-ccc/
|
|
61
|
-
"@ckb-ccc/xverse": "1.0.
|
|
62
|
-
"@ckb-ccc/
|
|
54
|
+
"@ckb-ccc/shell": "1.1.0",
|
|
55
|
+
"@ckb-ccc/eip6963": "1.0.8",
|
|
56
|
+
"@ckb-ccc/nip07": "1.0.8",
|
|
57
|
+
"@ckb-ccc/okx": "1.0.8",
|
|
58
|
+
"@ckb-ccc/uni-sat": "1.0.8",
|
|
59
|
+
"@ckb-ccc/joy-id": "1.0.8",
|
|
60
|
+
"@ckb-ccc/utxo-global": "1.0.8",
|
|
61
|
+
"@ckb-ccc/xverse": "1.0.8",
|
|
62
|
+
"@ckb-ccc/rei": "1.0.8"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "rimraf ./dist && rimraf ./dist.commonjs && tsc && tsc --project tsconfig.commonjs.json && copyfiles -u 2 misc/basedirs/**/* .",
|
package/src/advancedBarrel.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/advancedBarrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963/advanced";
|
|
3
2
|
export * from "@ckb-ccc/nip07/advanced";
|
|
4
3
|
export * from "@ckb-ccc/okx/advanced";
|
|
4
|
+
export * from "@ckb-ccc/shell/advancedBarrel";
|
|
5
5
|
export * from "@ckb-ccc/uni-sat/advanced";
|
|
6
6
|
export * from "@ckb-ccc/utxo-global/advanced";
|
|
7
7
|
export * from "@ckb-ccc/xverse/advanced";
|
package/src/barrel.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "@ckb-ccc/core/barrel";
|
|
2
1
|
export * from "@ckb-ccc/eip6963";
|
|
3
2
|
export * from "@ckb-ccc/joy-id";
|
|
4
3
|
export * from "@ckb-ccc/nip07";
|
|
5
4
|
export * from "@ckb-ccc/okx";
|
|
6
5
|
export * from "@ckb-ccc/rei";
|
|
6
|
+
export * from "@ckb-ccc/shell/barrel";
|
|
7
7
|
export * from "@ckb-ccc/uni-sat";
|
|
8
8
|
export * from "@ckb-ccc/utxo-global";
|
|
9
9
|
export * from "@ckb-ccc/xverse";
|
package/src/signersController.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ccc } from "@ckb-ccc/core";
|
|
2
1
|
import { Eip6963 } from "@ckb-ccc/eip6963";
|
|
3
2
|
import { JoyId } from "@ckb-ccc/joy-id";
|
|
4
3
|
import { Nip07 } from "@ckb-ccc/nip07";
|
|
5
4
|
import { Okx } from "@ckb-ccc/okx";
|
|
6
5
|
import { Rei } from "@ckb-ccc/rei";
|
|
6
|
+
import { ccc } from "@ckb-ccc/shell";
|
|
7
7
|
import { UniSat } from "@ckb-ccc/uni-sat";
|
|
8
8
|
import { UtxoGlobal } from "@ckb-ccc/utxo-global";
|
|
9
9
|
import { Xverse } from "@ckb-ccc/xverse";
|