@ckb-ccc/okx 0.0.4-alpha.1 → 0.0.4-alpha.11
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/README.md +12 -7
- package/dist/signer.d.ts +1 -0
- package/dist/signer.d.ts.map +1 -1
- package/dist/signer.js +3 -0
- package/dist/signersFactory.d.ts +2 -1
- package/dist/signersFactory.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/signer.ts +4 -0
- package/src/signersFactory.ts +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
<h1 align="center" style="font-size:
|
|
2
|
-
CCC
|
|
1
|
+
<h1 align="center" style="font-size: 48px;">
|
|
2
|
+
CCC's support for OKX
|
|
3
3
|
</h1>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
<img alt="
|
|
6
|
+
<a href="https://www.npmjs.com/package/@ckb-ccc/okx"><img
|
|
7
|
+
alt="NPM Version" src="https://img.shields.io/npm/v/%40ckb-ccc%2okx"
|
|
8
|
+
/></a>
|
|
9
|
+
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/ckb-ecofund/ccc" />
|
|
10
|
+
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/ckb-ecofund/ccc/master" />
|
|
11
|
+
<img alt="GitHub deployments" src="https://img.shields.io/github/deployments/ckb-ecofund/ccc/production" />
|
|
12
|
+
<a href="https://ckbccc-demo.vercel.app/"><img
|
|
13
|
+
alt="Demo" src="https://img.shields.io/website?url=https%3A%2F%2Fckbccc-demo.vercel.app%2F&label=Demo"
|
|
14
|
+
/></a>
|
|
10
15
|
</p>
|
|
11
16
|
|
|
12
17
|
<p align="center">
|
|
@@ -29,4 +34,4 @@ This project is still under active development, and we are looking forward to yo
|
|
|
29
34
|
|
|
30
35
|
<h3 align="center">
|
|
31
36
|
Read more about CCC on its <a href="https://github.com/ckb-ecofund/ccc">GitHub Repo</a>.
|
|
32
|
-
</h3>
|
|
37
|
+
</h3>
|
package/dist/signer.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ import { BitcoinProvider } from "./advanced";
|
|
|
4
4
|
export declare class BitcoinSigner extends UniSat.Signer {
|
|
5
5
|
readonly provider: BitcoinProvider;
|
|
6
6
|
constructor(client: ccc.Client, provider: BitcoinProvider);
|
|
7
|
+
replaceClient(client: ccc.Client): Promise<BitcoinSigner>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=signer.d.ts.map
|
package/dist/signer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,qBAAa,aAAc,SAAQ,MAAM,CAAC,MAAM;aAG5B,QAAQ,EAAE,eAAe;gBADzC,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,QAAQ,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../src/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,qBAAa,aAAc,SAAQ,MAAM,CAAC,MAAM;aAG5B,QAAQ,EAAE,eAAe;gBADzC,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,QAAQ,EAAE,eAAe;IAKrC,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGhE"}
|
package/dist/signer.js
CHANGED
package/dist/signersFactory.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
|
-
|
|
2
|
+
import { BitcoinSigner } from "./signer";
|
|
3
|
+
export declare function getOKXBitcoinSigner(client: ccc.Client): BitcoinSigner | undefined;
|
|
3
4
|
//# sourceMappingURL=signersFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signersFactory.d.ts","sourceRoot":"","sources":["../src/signersFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"signersFactory.d.ts","sourceRoot":"","sources":["../src/signersFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,GAAG,CAAC,MAAM,GACjB,aAAa,GAAG,SAAS,CAQ3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/okx",
|
|
3
|
-
"version": "0.0.4-alpha.
|
|
3
|
+
"version": "0.0.4-alpha.11",
|
|
4
4
|
"description": "Common Chains Connector's support for OKX",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ckb-ccc/core": "0.0.4-alpha.
|
|
39
|
-
"@ckb-ccc/uni-sat": "0.0.4-alpha.
|
|
38
|
+
"@ckb-ccc/core": "0.0.4-alpha.11",
|
|
39
|
+
"@ckb-ccc/uni-sat": "0.0.4-alpha.11"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "db0297c0753349e2650d2845f42f546316078d5d"
|
|
42
42
|
}
|
package/src/signer.ts
CHANGED
package/src/signersFactory.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BitcoinSigner } from "./signer";
|
|
|
4
4
|
|
|
5
5
|
export function getOKXBitcoinSigner(
|
|
6
6
|
client: ccc.Client,
|
|
7
|
-
):
|
|
7
|
+
): BitcoinSigner | undefined {
|
|
8
8
|
const windowRef = window as { okxwallet?: { bitcoin: BitcoinProvider } };
|
|
9
9
|
|
|
10
10
|
if (typeof windowRef.okxwallet === "undefined") {
|