@cfxdevkit/wallet 0.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/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # @cfxdevkit/wallet
2
+
3
+ Focused wallet abstractions for Conflux applications — session keys,
4
+ transaction batching, and embedded (server-side custody) wallets.
5
+
6
+ This package is a **re-export facade** over `@cfxdevkit/core/wallet`.
7
+ Use it when you only need wallet features without importing the full blockchain
8
+ client layer.
9
+
10
+ ---
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ pnpm add @cfxdevkit/wallet
16
+ ```
17
+
18
+ `@cfxdevkit/core` is a peer dependency that is resolved automatically in
19
+ monorepo context via `workspace:*`.
20
+
21
+ ---
22
+
23
+ ## Usage
24
+
25
+ ```typescript
26
+ import {
27
+ TransactionBatcher,
28
+ SessionKeyManager,
29
+ EmbeddedWalletManager,
30
+ } from '@cfxdevkit/wallet';
31
+ ```
32
+
33
+ ### Sub-path imports (tree-shaking)
34
+
35
+ ```typescript
36
+ import { TransactionBatcher } from '@cfxdevkit/wallet/batching';
37
+ import { SessionKeyManager } from '@cfxdevkit/wallet/session-keys';
38
+ import { EmbeddedWalletManager } from '@cfxdevkit/wallet/embedded';
39
+ ```
40
+
41
+ ---
42
+
43
+ ## What it exports
44
+
45
+ | Class | Description |
46
+ |-------|-------------|
47
+ | `TransactionBatcher` | Accumulate and submit multiple transactions in one batch |
48
+ | `SessionKeyManager` | Issue short-lived signing keys with permission scopes |
49
+ | `EmbeddedWalletManager` | Server-side custodial wallet management |
50
+
51
+ All types (`SessionKey`, `BatchTransaction`, …) and error classes
52
+ (`BatcherError`, `SessionKeyError`, `WalletError`, …) are also exported.
53
+
54
+ ---
55
+
56
+ ## Relationship to @cfxdevkit/core
57
+
58
+ `sdk-core` is the canonical implementation. This package exists so that
59
+ consumers that only need wallet features do not have to pull in the full
60
+ blockchain client layer (viem clients, contract deployer, chain config, etc.).
61
+
62
+ If you are already depending on `@cfxdevkit/core`, you can import wallet
63
+ features directly from there:
64
+
65
+ ```typescript
66
+ import { TransactionBatcher } from '@cfxdevkit/core';
67
+ // or
68
+ import { TransactionBatcher } from '@cfxdevkit/core/wallet';
69
+ ```
70
+
71
+ ---
72
+
73
+ ## License
74
+
75
+ Apache-2.0 — see [LICENSE](./LICENSE).
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/batching/index.ts
21
+ var batching_exports = {};
22
+ __export(batching_exports, {
23
+ TransactionBatcher: () => import_wallet.TransactionBatcher
24
+ });
25
+ module.exports = __toCommonJS(batching_exports);
26
+
27
+ // src/batching/batcher.ts
28
+ var import_wallet = require("@cfxdevkit/core/wallet");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ TransactionBatcher
32
+ });
33
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/batching/index.ts","../../src/batching/batcher.ts"],"sourcesContent":["/*\n * Copyright 2025 Conflux DevKit Team\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type {\n BatcherOptions,\n BatchResult,\n BatchTransaction,\n} from '../types/index.js';\nexport { TransactionBatcher } from './batcher.js';\n","/*\n * @cfxdevkit/wallet — re-export stub\n *\n * TransactionBatcher is implemented in @cfxdevkit/core.\n * This file exists so that the `./batching` subpath export resolves correctly.\n */\nexport { TransactionBatcher } from '@cfxdevkit/core/wallet';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMA,oBAAmC;","names":[]}
@@ -0,0 +1 @@
1
+ export { BatchResult, BatchTransaction, BatcherOptions, TransactionBatcher } from '@cfxdevkit/core/wallet';
@@ -0,0 +1 @@
1
+ export { BatchResult, BatchTransaction, BatcherOptions, TransactionBatcher } from '@cfxdevkit/core/wallet';
@@ -0,0 +1,6 @@
1
+ // src/batching/batcher.ts
2
+ import { TransactionBatcher } from "@cfxdevkit/core/wallet";
3
+ export {
4
+ TransactionBatcher
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/batching/batcher.ts"],"sourcesContent":["/*\n * @cfxdevkit/wallet — re-export stub\n *\n * TransactionBatcher is implemented in @cfxdevkit/core.\n * This file exists so that the `./batching` subpath export resolves correctly.\n */\nexport { TransactionBatcher } from '@cfxdevkit/core/wallet';\n"],"mappings":";AAMA,SAAS,0BAA0B;","names":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/embedded/index.ts
21
+ var embedded_exports = {};
22
+ __export(embedded_exports, {
23
+ EmbeddedWalletManager: () => import_wallet.EmbeddedWalletManager
24
+ });
25
+ module.exports = __toCommonJS(embedded_exports);
26
+
27
+ // src/embedded/custody.ts
28
+ var import_wallet = require("@cfxdevkit/core/wallet");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ EmbeddedWalletManager
32
+ });
33
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/embedded/index.ts","../../src/embedded/custody.ts"],"sourcesContent":["/*\n * Copyright 2025 Conflux DevKit Team\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type {\n EmbeddedWallet,\n EmbeddedWalletOptions,\n WalletExport,\n} from '../types/index.js';\nexport { EmbeddedWalletManager } from './custody.js';\n","/*\n * @cfxdevkit/wallet — re-export stub\n *\n * EmbeddedWalletManager is implemented in @cfxdevkit/core.\n * This file exists so that the `./embedded` subpath export resolves correctly.\n */\nexport { EmbeddedWalletManager } from '@cfxdevkit/core/wallet';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMA,oBAAsC;","names":[]}
@@ -0,0 +1 @@
1
+ export { EmbeddedWallet, EmbeddedWalletManager, EmbeddedWalletOptions, WalletExport } from '@cfxdevkit/core/wallet';
@@ -0,0 +1 @@
1
+ export { EmbeddedWallet, EmbeddedWalletManager, EmbeddedWalletOptions, WalletExport } from '@cfxdevkit/core/wallet';
@@ -0,0 +1,6 @@
1
+ // src/embedded/custody.ts
2
+ import { EmbeddedWalletManager } from "@cfxdevkit/core/wallet";
3
+ export {
4
+ EmbeddedWalletManager
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/embedded/custody.ts"],"sourcesContent":["/*\n * @cfxdevkit/wallet — re-export stub\n *\n * EmbeddedWalletManager is implemented in @cfxdevkit/core.\n * This file exists so that the `./embedded` subpath export resolves correctly.\n */\nexport { EmbeddedWalletManager } from '@cfxdevkit/core/wallet';\n"],"mappings":";AAMA,SAAS,6BAA6B;","names":[]}
package/dist/index.cjs ADDED
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ BatcherError: () => import_wallet.BatcherError,
24
+ EmbeddedWalletError: () => import_wallet.EmbeddedWalletError,
25
+ EmbeddedWalletManager: () => import_wallet.EmbeddedWalletManager,
26
+ SessionKeyError: () => import_wallet.SessionKeyError,
27
+ SessionKeyManager: () => import_wallet.SessionKeyManager,
28
+ TransactionBatcher: () => import_wallet.TransactionBatcher,
29
+ VERSION: () => VERSION,
30
+ WalletError: () => import_wallet.WalletError
31
+ });
32
+ module.exports = __toCommonJS(src_exports);
33
+ var import_wallet = require("@cfxdevkit/core/wallet");
34
+ var VERSION = "0.1.0";
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ BatcherError,
38
+ EmbeddedWalletError,
39
+ EmbeddedWalletManager,
40
+ SessionKeyError,
41
+ SessionKeyManager,
42
+ TransactionBatcher,
43
+ VERSION,
44
+ WalletError
45
+ });
46
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2025 Conflux DevKit Team\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @cfxdevkit/wallet\n *\n * Focused re-export of @cfxdevkit/core's wallet abstractions.\n *\n * Use this package when you only need wallet features (session keys,\n * transaction batching, embedded custody) without pulling in the full\n * blockchain client layer.\n *\n * @example\n * ```typescript\n * import { TransactionBatcher, SessionKeyManager } from '@cfxdevkit/wallet';\n *\n * // Or import from a sub-path for tighter tree-shaking:\n * import { TransactionBatcher } from '@cfxdevkit/wallet/batching';\n * import { SessionKeyManager } from '@cfxdevkit/wallet/session-keys';\n * import { EmbeddedWalletManager } from '@cfxdevkit/wallet/embedded';\n * ```\n */\n\n// Types\nexport type {\n BatcherOptions,\n BatchResult,\n BatchTransaction,\n EmbeddedWallet,\n EmbeddedWalletOptions,\n SessionKey,\n SessionKeyOptions,\n SessionKeyPermissions,\n SignedTransaction,\n SignTransactionRequest,\n WalletExport,\n WalletManagerOptions,\n} from '@cfxdevkit/core/wallet';\n// Classes\nexport {\n // Error classes\n BatcherError,\n EmbeddedWalletError,\n EmbeddedWalletManager,\n SessionKeyError,\n SessionKeyManager,\n TransactionBatcher,\n WalletError,\n} from '@cfxdevkit/core/wallet';\n\nexport const VERSION = '0.1.0';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoDA,oBASO;AAEA,IAAM,UAAU;","names":[]}
@@ -0,0 +1,25 @@
1
+ export { BatchResult, BatchTransaction, BatcherError, BatcherOptions, EmbeddedWallet, EmbeddedWalletError, EmbeddedWalletManager, EmbeddedWalletOptions, SessionKey, SessionKeyError, SessionKeyManager, SessionKeyOptions, SessionKeyPermissions, SignTransactionRequest, SignedTransaction, TransactionBatcher, WalletError, WalletExport, WalletManagerOptions } from '@cfxdevkit/core/wallet';
2
+
3
+ /**
4
+ * @cfxdevkit/wallet
5
+ *
6
+ * Focused re-export of @cfxdevkit/core's wallet abstractions.
7
+ *
8
+ * Use this package when you only need wallet features (session keys,
9
+ * transaction batching, embedded custody) without pulling in the full
10
+ * blockchain client layer.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * import { TransactionBatcher, SessionKeyManager } from '@cfxdevkit/wallet';
15
+ *
16
+ * // Or import from a sub-path for tighter tree-shaking:
17
+ * import { TransactionBatcher } from '@cfxdevkit/wallet/batching';
18
+ * import { SessionKeyManager } from '@cfxdevkit/wallet/session-keys';
19
+ * import { EmbeddedWalletManager } from '@cfxdevkit/wallet/embedded';
20
+ * ```
21
+ */
22
+
23
+ declare const VERSION = "0.1.0";
24
+
25
+ export { VERSION };
@@ -0,0 +1,25 @@
1
+ export { BatchResult, BatchTransaction, BatcherError, BatcherOptions, EmbeddedWallet, EmbeddedWalletError, EmbeddedWalletManager, EmbeddedWalletOptions, SessionKey, SessionKeyError, SessionKeyManager, SessionKeyOptions, SessionKeyPermissions, SignTransactionRequest, SignedTransaction, TransactionBatcher, WalletError, WalletExport, WalletManagerOptions } from '@cfxdevkit/core/wallet';
2
+
3
+ /**
4
+ * @cfxdevkit/wallet
5
+ *
6
+ * Focused re-export of @cfxdevkit/core's wallet abstractions.
7
+ *
8
+ * Use this package when you only need wallet features (session keys,
9
+ * transaction batching, embedded custody) without pulling in the full
10
+ * blockchain client layer.
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * import { TransactionBatcher, SessionKeyManager } from '@cfxdevkit/wallet';
15
+ *
16
+ * // Or import from a sub-path for tighter tree-shaking:
17
+ * import { TransactionBatcher } from '@cfxdevkit/wallet/batching';
18
+ * import { SessionKeyManager } from '@cfxdevkit/wallet/session-keys';
19
+ * import { EmbeddedWalletManager } from '@cfxdevkit/wallet/embedded';
20
+ * ```
21
+ */
22
+
23
+ declare const VERSION = "0.1.0";
24
+
25
+ export { VERSION };
package/dist/index.js ADDED
@@ -0,0 +1,22 @@
1
+ // src/index.ts
2
+ import {
3
+ BatcherError,
4
+ EmbeddedWalletError,
5
+ EmbeddedWalletManager,
6
+ SessionKeyError,
7
+ SessionKeyManager,
8
+ TransactionBatcher,
9
+ WalletError
10
+ } from "@cfxdevkit/core/wallet";
11
+ var VERSION = "0.1.0";
12
+ export {
13
+ BatcherError,
14
+ EmbeddedWalletError,
15
+ EmbeddedWalletManager,
16
+ SessionKeyError,
17
+ SessionKeyManager,
18
+ TransactionBatcher,
19
+ VERSION,
20
+ WalletError
21
+ };
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*\n * Copyright 2025 Conflux DevKit Team\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @cfxdevkit/wallet\n *\n * Focused re-export of @cfxdevkit/core's wallet abstractions.\n *\n * Use this package when you only need wallet features (session keys,\n * transaction batching, embedded custody) without pulling in the full\n * blockchain client layer.\n *\n * @example\n * ```typescript\n * import { TransactionBatcher, SessionKeyManager } from '@cfxdevkit/wallet';\n *\n * // Or import from a sub-path for tighter tree-shaking:\n * import { TransactionBatcher } from '@cfxdevkit/wallet/batching';\n * import { SessionKeyManager } from '@cfxdevkit/wallet/session-keys';\n * import { EmbeddedWalletManager } from '@cfxdevkit/wallet/embedded';\n * ```\n */\n\n// Types\nexport type {\n BatcherOptions,\n BatchResult,\n BatchTransaction,\n EmbeddedWallet,\n EmbeddedWalletOptions,\n SessionKey,\n SessionKeyOptions,\n SessionKeyPermissions,\n SignedTransaction,\n SignTransactionRequest,\n WalletExport,\n WalletManagerOptions,\n} from '@cfxdevkit/core/wallet';\n// Classes\nexport {\n // Error classes\n BatcherError,\n EmbeddedWalletError,\n EmbeddedWalletManager,\n SessionKeyError,\n SessionKeyManager,\n TransactionBatcher,\n WalletError,\n} from '@cfxdevkit/core/wallet';\n\nexport const VERSION = '0.1.0';\n"],"mappings":";AAoDA;AAAA,EAEE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,IAAM,UAAU;","names":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/session-keys/index.ts
21
+ var session_keys_exports = {};
22
+ __export(session_keys_exports, {
23
+ SessionKeyManager: () => import_wallet.SessionKeyManager
24
+ });
25
+ module.exports = __toCommonJS(session_keys_exports);
26
+
27
+ // src/session-keys/manager.ts
28
+ var import_wallet = require("@cfxdevkit/core/wallet");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ SessionKeyManager
32
+ });
33
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/session-keys/index.ts","../../src/session-keys/manager.ts"],"sourcesContent":["/*\n * Copyright 2025 Conflux DevKit Team\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type {\n SessionKey,\n SessionKeyOptions,\n SessionKeyPermissions,\n} from '../types/index.js';\nexport { SessionKeyManager } from './manager.js';\n","/*\n * @cfxdevkit/wallet — re-export stub\n *\n * SessionKeyManager is implemented in @cfxdevkit/core.\n * This file exists so that the `./session-keys` subpath export resolves correctly.\n */\nexport { SessionKeyManager } from '@cfxdevkit/core/wallet';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMA,oBAAkC;","names":[]}
@@ -0,0 +1 @@
1
+ export { SessionKey, SessionKeyManager, SessionKeyOptions, SessionKeyPermissions } from '@cfxdevkit/core/wallet';
@@ -0,0 +1 @@
1
+ export { SessionKey, SessionKeyManager, SessionKeyOptions, SessionKeyPermissions } from '@cfxdevkit/core/wallet';
@@ -0,0 +1,6 @@
1
+ // src/session-keys/manager.ts
2
+ import { SessionKeyManager } from "@cfxdevkit/core/wallet";
3
+ export {
4
+ SessionKeyManager
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/session-keys/manager.ts"],"sourcesContent":["/*\n * @cfxdevkit/wallet — re-export stub\n *\n * SessionKeyManager is implemented in @cfxdevkit/core.\n * This file exists so that the `./session-keys` subpath export resolves correctly.\n */\nexport { SessionKeyManager } from '@cfxdevkit/core/wallet';\n"],"mappings":";AAMA,SAAS,yBAAyB;","names":[]}
package/package.json ADDED
@@ -0,0 +1,93 @@
1
+ {
2
+ "name": "@cfxdevkit/wallet",
3
+ "version": "0.1.0",
4
+ "description": "Advanced wallet abstractions for Conflux - session keys, transaction batching, and embedded wallets",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist/**/*",
10
+ "README.md",
11
+ "LICENSE"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.cjs"
21
+ },
22
+ "./session-keys": {
23
+ "types": "./dist/session-keys/index.d.ts",
24
+ "import": "./dist/session-keys/index.js",
25
+ "require": "./dist/session-keys/index.cjs"
26
+ },
27
+ "./batching": {
28
+ "types": "./dist/batching/index.d.ts",
29
+ "import": "./dist/batching/index.js",
30
+ "require": "./dist/batching/index.cjs"
31
+ },
32
+ "./embedded": {
33
+ "types": "./dist/embedded/index.d.ts",
34
+ "import": "./dist/embedded/index.js",
35
+ "require": "./dist/embedded/index.cjs"
36
+ },
37
+ "./package.json": "./package.json"
38
+ },
39
+ "dependencies": {
40
+ "viem": "^2.43.3",
41
+ "@cfxdevkit/core": "0.1.0"
42
+ },
43
+ "devDependencies": {
44
+ "@biomejs/biome": "^2.3.10",
45
+ "@types/node": "^25.0.3",
46
+ "@vitest/coverage-v8": "^4.0.16",
47
+ "@vitest/ui": "^4.0.16",
48
+ "tsx": "^4.21.0",
49
+ "tsup": "^8.5.1",
50
+ "typescript": "^5.9.3",
51
+ "vitest": "^4.0.16"
52
+ },
53
+ "keywords": [
54
+ "conflux",
55
+ "blockchain",
56
+ "wallet",
57
+ "session-keys",
58
+ "transaction-batching",
59
+ "embedded-wallet",
60
+ "custody",
61
+ "evm",
62
+ "web3"
63
+ ],
64
+ "author": "Conflux DevKit Team",
65
+ "license": "Apache-2.0",
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "git+https://github.com/cfxdevkit/conflux-devkit.git",
69
+ "directory": "packages/wallet"
70
+ },
71
+ "homepage": "https://github.com/cfxdevkit/conflux-devkit#readme",
72
+ "bugs": {
73
+ "url": "https://github.com/cfxdevkit/conflux-devkit/issues"
74
+ },
75
+ "scripts": {
76
+ "build": "tsup",
77
+ "build:watch": "tsup --watch",
78
+ "type-check": "tsc --noEmit",
79
+ "dev": "tsx src/index.ts",
80
+ "test": "vitest run --pass-with-no-tests",
81
+ "test:ui": "vitest --ui",
82
+ "test:run": "vitest --run",
83
+ "test:coverage": "vitest --run --coverage",
84
+ "test:watch": "vitest --watch",
85
+ "clean": "rm -rf dist",
86
+ "lint": "biome lint src/",
87
+ "lint:fix": "biome lint --write src/",
88
+ "format": "biome format src/",
89
+ "format:fix": "biome format --write src/",
90
+ "check": "biome check src/",
91
+ "check:fix": "biome check --write src/"
92
+ }
93
+ }