@ckb-ccc/okx 0.0.10-alpha.6 → 0.0.10-alpha.8
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/advanced.d.ts +1 -1
- package/dist/advanced.d.ts.map +1 -1
- package/dist/advanced.js +1 -1
- package/dist/barrel.d.ts +2 -2
- package/dist/barrel.d.ts.map +1 -1
- package/dist/barrel.js +2 -2
- package/dist/btc/index.d.ts +1 -1
- package/dist/btc/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/nostr/index.d.ts +1 -1
- package/dist/nostr/index.d.ts.map +1 -1
- package/dist/package.json +3 -0
- package/dist/signersFactory.js +2 -2
- package/dist.commonjs/advanced.d.ts +1 -1
- package/dist.commonjs/advanced.d.ts.map +1 -1
- package/dist.commonjs/advanced.js +1 -1
- package/dist.commonjs/barrel.d.ts +2 -2
- package/dist.commonjs/barrel.d.ts.map +1 -1
- package/dist.commonjs/barrel.js +2 -2
- package/dist.commonjs/btc/index.d.ts +1 -1
- package/dist.commonjs/btc/index.d.ts.map +1 -1
- package/dist.commonjs/index.d.ts +1 -1
- package/dist.commonjs/index.d.ts.map +1 -1
- package/dist.commonjs/index.js +1 -1
- package/dist.commonjs/nostr/index.d.ts +1 -1
- package/dist.commonjs/nostr/index.d.ts.map +1 -1
- package/dist.commonjs/package.json +3 -0
- package/dist.commonjs/signersFactory.js +4 -4
- package/package.json +7 -6
- package/src/advanced.ts +1 -1
- package/src/barrel.ts +2 -2
- package/src/btc/index.ts +1 -1
- package/src/index.ts +1 -1
- package/src/nostr/index.ts +1 -1
- package/src/signersFactory.ts +3 -3
package/dist/advanced.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as OkxA from "./advancedBarrel";
|
|
1
|
+
export * as OkxA from "./advancedBarrel.js";
|
|
2
2
|
//# sourceMappingURL=advanced.d.ts.map
|
package/dist/advanced.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC"}
|
package/dist/advanced.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as OkxA from "./advancedBarrel";
|
|
1
|
+
export * as OkxA from "./advancedBarrel.js";
|
package/dist/barrel.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./btc";
|
|
2
|
-
export * from "./signersFactory";
|
|
1
|
+
export * from "./btc/index.js";
|
|
2
|
+
export * from "./signersFactory.js";
|
|
3
3
|
//# sourceMappingURL=barrel.d.ts.map
|
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,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
package/dist/barrel.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./btc";
|
|
2
|
-
export * from "./signersFactory";
|
|
1
|
+
export * from "./btc/index.js";
|
|
2
|
+
export * from "./signersFactory.js";
|
package/dist/btc/index.d.ts
CHANGED
package/dist/btc/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/btc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/btc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,GAAG,CAAC,SAAS;aAU5B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAVpC,OAAO,CAAC,OAAO,CAAgB;IAE/B;;;;OAIG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EACzC,iBAAiB,GAAE,GAAG,CAAC,iBAAiB,EAWxD;IAKH,IAAI,QAAQ,IAAI,eAAe,CAwB9B;IAED;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAgBtC;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAYzC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAe5C;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAmBrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAMvE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as Okx from "./barrel";
|
|
1
|
+
export * as Okx from "./barrel.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Okx from "./barrel";
|
|
1
|
+
export * as Okx from "./barrel.js";
|
package/dist/nostr/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nostr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nostr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,GAAG,CAAC,WAAW;aAK5B,QAAQ,EAAE,aAAa;IAJzC,OAAO,CAAC,cAAc,CAAC,CAA8B;gBAGnD,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,QAAQ,EAAE,aAAa;IAKnC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAOrC,cAAc,CAClB,KAAK,EAAE,GAAG,CAAC,UAAU,GACpB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAO9B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAetC,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;CAGtC"}
|
package/dist/signersFactory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BitcoinSigner } from "./btc";
|
|
2
|
-
import { NostrSigner } from "./nostr";
|
|
1
|
+
import { BitcoinSigner } from "./btc/index.js";
|
|
2
|
+
import { NostrSigner } from "./nostr/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves the OKX Bitcoin signer if available.
|
|
5
5
|
* @param {ccc.Client} client - The client instance.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as OkxA from "./advancedBarrel";
|
|
1
|
+
export * as OkxA from "./advancedBarrel.js";
|
|
2
2
|
//# sourceMappingURL=advanced.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"advanced.d.ts","sourceRoot":"","sources":["../src/advanced.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,qBAAqB,CAAC"}
|
|
@@ -24,4 +24,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.OkxA = void 0;
|
|
27
|
-
exports.OkxA = __importStar(require("./advancedBarrel"));
|
|
27
|
+
exports.OkxA = __importStar(require("./advancedBarrel.js"));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./btc";
|
|
2
|
-
export * from "./signersFactory";
|
|
1
|
+
export * from "./btc/index.js";
|
|
2
|
+
export * from "./signersFactory.js";
|
|
3
3
|
//# sourceMappingURL=barrel.d.ts.map
|
|
@@ -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,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
package/dist.commonjs/barrel.js
CHANGED
|
@@ -14,5 +14,5 @@ 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("./btc"), exports);
|
|
18
|
-
__exportStar(require("./signersFactory"), exports);
|
|
17
|
+
__exportStar(require("./btc/index.js"), exports);
|
|
18
|
+
__exportStar(require("./signersFactory.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/btc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/btc/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;;GAIG;AACH,qBAAa,aAAc,SAAQ,GAAG,CAAC,SAAS;aAU5B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;IAC1D,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAVpC,OAAO,CAAC,OAAO,CAAgB;IAE/B;;;;OAIG;gBAED,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,EACzC,iBAAiB,GAAE,GAAG,CAAC,iBAAiB,EAWxD;IAKH,IAAI,QAAQ,IAAI,eAAe,CAwB9B;IAED;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAgBtC;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAYzC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ9B,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAe5C;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IAmBrC;;;;OAIG;IACG,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC;CAMvE"}
|
package/dist.commonjs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as Okx from "./barrel";
|
|
1
|
+
export * as Okx from "./barrel.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC"}
|
package/dist.commonjs/index.js
CHANGED
|
@@ -24,4 +24,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.Okx = void 0;
|
|
27
|
-
exports.Okx = __importStar(require("./barrel"));
|
|
27
|
+
exports.Okx = __importStar(require("./barrel.js"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nostr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nostr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,GAAG,CAAC,WAAW;aAK5B,QAAQ,EAAE,aAAa;IAJzC,OAAO,CAAC,cAAc,CAAC,CAA8B;gBAGnD,MAAM,EAAE,GAAG,CAAC,MAAM,EACF,QAAQ,EAAE,aAAa;IAKnC,iBAAiB,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IAOrC,cAAc,CAClB,KAAK,EAAE,GAAG,CAAC,UAAU,GACpB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAO9B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAetC,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;CAGtC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOKXBitcoinSigner = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const index_js_1 = require("./btc/index.js");
|
|
5
|
+
const index_js_2 = require("./nostr/index.js");
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves the OKX Bitcoin signer if available.
|
|
8
8
|
* @param {ccc.Client} client - The client instance.
|
|
@@ -14,8 +14,8 @@ function getOKXBitcoinSigner(client, preferredNetworks) {
|
|
|
14
14
|
return [];
|
|
15
15
|
}
|
|
16
16
|
return [
|
|
17
|
-
new
|
|
18
|
-
new
|
|
17
|
+
new index_js_1.BitcoinSigner(client, windowRef.okxwallet, preferredNetworks),
|
|
18
|
+
new index_js_2.NostrSigner(client, windowRef.okxwallet.nostr),
|
|
19
19
|
];
|
|
20
20
|
}
|
|
21
21
|
exports.getOKXBitcoinSigner = getOKXBitcoinSigner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckb-ccc/okx",
|
|
3
|
-
"version": "0.0.10-alpha.
|
|
3
|
+
"version": "0.0.10-alpha.8",
|
|
4
4
|
"description": "CCC - CKBer's Codebase. Common Chains Connector's support for OKX",
|
|
5
5
|
"author": "Hanssen0 <hanssen0@hanssen0.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,12 +23,13 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
|
-
"build": "rimraf ./dist && rimraf ./dist.commonjs && tsc && tsc --project tsconfig.commonjs.json",
|
|
26
|
+
"build": "rimraf ./dist && rimraf ./dist.commonjs && tsc && tsc --project tsconfig.commonjs.json && copyfiles -u 2 misc/basedirs/**/* .",
|
|
27
27
|
"lint": "eslint",
|
|
28
28
|
"format": "prettier --write . && eslint --fix"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@eslint/js": "^9.1.1",
|
|
32
|
+
"copyfiles": "^2.4.1",
|
|
32
33
|
"eslint": "^9.1.0",
|
|
33
34
|
"eslint-config-prettier": "^9.1.0",
|
|
34
35
|
"eslint-plugin-prettier": "^5.1.3",
|
|
@@ -42,9 +43,9 @@
|
|
|
42
43
|
"access": "public"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@ckb-ccc/core": "0.0.10-alpha.
|
|
46
|
-
"@ckb-ccc/nip07": "0.0.10-alpha.
|
|
47
|
-
"@ckb-ccc/uni-sat": "0.0.10-alpha.
|
|
46
|
+
"@ckb-ccc/core": "0.0.10-alpha.8",
|
|
47
|
+
"@ckb-ccc/nip07": "0.0.10-alpha.8",
|
|
48
|
+
"@ckb-ccc/uni-sat": "0.0.10-alpha.8"
|
|
48
49
|
},
|
|
49
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "b7481af6b71cd5d525462984750c9f0cb20800af"
|
|
50
51
|
}
|
package/src/advanced.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as OkxA from "./advancedBarrel";
|
|
1
|
+
export * as OkxA from "./advancedBarrel.js";
|
package/src/barrel.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./btc";
|
|
2
|
-
export * from "./signersFactory";
|
|
1
|
+
export * from "./btc/index.js";
|
|
2
|
+
export * from "./signersFactory.js";
|
package/src/btc/index.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as Okx from "./barrel";
|
|
1
|
+
export * as Okx from "./barrel.js";
|
package/src/nostr/index.ts
CHANGED
package/src/signersFactory.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ccc } from "@ckb-ccc/core";
|
|
2
|
-
import { BitcoinProvider, NostrProvider } from "./advancedBarrel";
|
|
3
|
-
import { BitcoinSigner } from "./btc";
|
|
4
|
-
import { NostrSigner } from "./nostr";
|
|
2
|
+
import { BitcoinProvider, NostrProvider } from "./advancedBarrel.js";
|
|
3
|
+
import { BitcoinSigner } from "./btc/index.js";
|
|
4
|
+
import { NostrSigner } from "./nostr/index.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Retrieves the OKX Bitcoin signer if available.
|