@ckb-ccc/ccc 0.0.2 → 0.0.3

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.
@@ -1,3 +1,5 @@
1
1
  export * from "@ckb-ccc/core/advancedBarrel";
2
2
  export * from "@ckb-ccc/eip6963/advanced";
3
+ export * from "@ckb-ccc/okx/advanced";
4
+ export * from "@ckb-ccc/uni-sat/advanced";
3
5
  //# sourceMappingURL=advancedBarrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"advancedBarrel.d.ts","sourceRoot":"","sources":["../src/advancedBarrel.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
@@ -1,2 +1,4 @@
1
1
  export * from "@ckb-ccc/core/advancedBarrel";
2
2
  export * from "@ckb-ccc/eip6963/advanced";
3
+ export * from "@ckb-ccc/okx/advanced";
4
+ export * from "@ckb-ccc/uni-sat/advanced";
package/dist/barrel.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  export * from "@ckb-ccc/core/barrel";
2
2
  export * from "@ckb-ccc/eip6963";
3
+ export * from "@ckb-ccc/okx";
4
+ export * from "@ckb-ccc/uni-sat";
5
+ export * from "./signers";
3
6
  //# sourceMappingURL=barrel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../src/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
package/dist/barrel.js CHANGED
@@ -1,2 +1,5 @@
1
1
  export * from "@ckb-ccc/core/barrel";
2
2
  export * from "@ckb-ccc/eip6963";
3
+ export * from "@ckb-ccc/okx";
4
+ export * from "@ckb-ccc/uni-sat";
5
+ export * from "./signers";
@@ -0,0 +1,15 @@
1
+ import { Signer } from "@ckb-ccc/core";
2
+ export declare enum SignerType {
3
+ Eip6963 = "Eip6963",
4
+ UniSat = "UniSat",
5
+ OkxBitcoin = "OkxBitcoin"
6
+ }
7
+ export declare class SignerInfo {
8
+ type: SignerType;
9
+ id: string;
10
+ name: string;
11
+ icon: string;
12
+ signer: Signer;
13
+ constructor(type: SignerType, id: string, name: string, icon: string, signer: Signer);
14
+ }
15
+ //# sourceMappingURL=signers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signers.d.ts","sourceRoot":"","sources":["../src/signers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,qBAAa,UAAU;IAEZ,IAAI,EAAE,UAAU;IAChB,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,MAAM;gBAJd,IAAI,EAAE,UAAU,EAChB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM;CAExB"}
@@ -0,0 +1,15 @@
1
+ export var SignerType;
2
+ (function (SignerType) {
3
+ SignerType["Eip6963"] = "Eip6963";
4
+ SignerType["UniSat"] = "UniSat";
5
+ SignerType["OkxBitcoin"] = "OkxBitcoin";
6
+ })(SignerType || (SignerType = {}));
7
+ export class SignerInfo {
8
+ constructor(type, id, name, icon, signer) {
9
+ this.type = type;
10
+ this.id = id;
11
+ this.name = name;
12
+ this.icon = icon;
13
+ this.signer = signer;
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@ckb-ccc/ccc",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Common Chains Connector",
5
5
  "author": "Hanssen0 <hanssen0@hanssen0.com>",
6
6
  "license": "MIT",
7
7
  "private": false,
8
+ "homepage": "https://github.com/Hanssen0/ccc",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git://github.com/Hanssen0/ccc.git"
12
+ },
8
13
  "main": "dist/index.js",
9
14
  "exports": {
10
15
  ".": "./dist/index.js",
@@ -32,8 +37,10 @@
32
37
  "access": "public"
33
38
  },
34
39
  "dependencies": {
35
- "@ckb-ccc/core": "0.0.2",
36
- "@ckb-ccc/eip6963": "0.0.2"
40
+ "@ckb-ccc/core": "0.0.3",
41
+ "@ckb-ccc/eip6963": "0.0.3",
42
+ "@ckb-ccc/okx": "0.0.3",
43
+ "@ckb-ccc/uni-sat": "0.0.3"
37
44
  },
38
- "gitHead": "34b7f8d8443258188d47aad71246e787b544300b"
45
+ "gitHead": "9df1bbe0007136568914d8a73fe39f898d636a12"
39
46
  }
@@ -1,2 +1,4 @@
1
1
  export * from "@ckb-ccc/core/advancedBarrel";
2
2
  export * from "@ckb-ccc/eip6963/advanced";
3
+ export * from "@ckb-ccc/okx/advanced";
4
+ export * from "@ckb-ccc/uni-sat/advanced";
package/src/barrel.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  export * from "@ckb-ccc/core/barrel";
2
2
  export * from "@ckb-ccc/eip6963";
3
+ export * from "@ckb-ccc/okx";
4
+ export * from "@ckb-ccc/uni-sat";
5
+ export * from "./signers";
package/src/signers.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { Signer } from "@ckb-ccc/core";
2
+
3
+ export enum SignerType {
4
+ Eip6963 = "Eip6963",
5
+ UniSat = "UniSat",
6
+ OkxBitcoin = "OkxBitcoin",
7
+ }
8
+
9
+ export class SignerInfo {
10
+ constructor(
11
+ public type: SignerType,
12
+ public id: string,
13
+ public name: string,
14
+ public icon: string,
15
+ public signer: Signer,
16
+ ) {}
17
+ }
package/.prettierignore DELETED
@@ -1,12 +0,0 @@
1
- node_modules/
2
-
3
- dist/
4
-
5
- .npmignore
6
- .prettierrc
7
- tsconfig.json
8
- eslint.config.mjs
9
- .prettierrc
10
-
11
- tsconfig.tsbuildinfo
12
- .github/