@reown/appkit-experimental 1.6.8 → 1.6.9-rc.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.
@@ -0,0 +1,2 @@
1
+ export declare function convertCaip10ToErc3770(caipAddress: string): string;
2
+ export declare function createErc3770Address(address: string, chainId: string): string;
@@ -0,0 +1,5 @@
1
+ type ChainMapping = Record<string, string>;
2
+ export declare const ConstantsUtil: {
3
+ CHAIN_NAMES: ChainMapping;
4
+ };
5
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const ConverterUtil: {
2
+ convertCaip10ToErc3770: (caipAddress: string) => string;
3
+ createErc3770Address: (address: string, chainId: string) => string;
4
+ };
@@ -3,9 +3,10 @@ import type { CreateSubscriptionRequest, CreateSubscriptionResponse, SmartSessio
3
3
  export type SmartSessionsControllerState = {
4
4
  sessions: SmartSession[];
5
5
  };
6
+ type StateKey = keyof SmartSessionsControllerState;
6
7
  export declare const SmartSessionsController: {
7
8
  state: SmartSessionsControllerState;
8
- subscribeKey<K extends "sessions">(key: K, callback: (value: SmartSessionsControllerState[K]) => void): () => void;
9
+ subscribeKey<K extends StateKey>(key: K, callback: (value: SmartSessionsControllerState[K]) => void): () => void;
9
10
  getSmartSessions(): Promise<SmartSession[]>;
10
11
  grantPermissions(request: SmartSessionGrantPermissionsRequest): Promise<SmartSessionGrantPermissionsResponse>;
11
12
  validateRequestForSupportedPermissionsCapability(request: SmartSessionGrantPermissionsRequest, capabilities: PermissionsCapability): void;
@@ -13,3 +14,4 @@ export declare const SmartSessionsController: {
13
14
  revokeSmartSession(session: SmartSession): Promise<void>;
14
15
  createSubscription(request: CreateSubscriptionRequest): Promise<CreateSubscriptionResponse>;
15
16
  };
17
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-experimental",
3
- "version": "1.6.8",
3
+ "version": "1.6.9-rc.0",
4
4
  "type": "module",
5
5
  "main": "./dist/esm/exports/index.js",
6
6
  "types": "./dist/types/exports/index.d.ts",
@@ -18,27 +18,36 @@
18
18
  "types": "./dist/types/exports/smart-session/index.d.ts",
19
19
  "import": "./dist/esm/exports/smart-session/index.js",
20
20
  "default": "./dist/esm/exports/smart-session/index.js"
21
+ },
22
+ "./erc3770": {
23
+ "types": "./dist/types/exports/erc3770/index.d.ts",
24
+ "import": "./dist/esm/exports/erc3770/index.js",
25
+ "default": "./dist/esm/exports/erc3770/index.js"
21
26
  }
22
27
  },
23
28
  "typesVersions": {
24
29
  "*": {
25
30
  "smart-session": [
26
31
  "./dist/types/exports/smart-session/index.d.ts"
32
+ ],
33
+ "erc3770": [
34
+ "./dist/types/exports/erc3770/index.d.ts"
27
35
  ]
28
36
  }
29
37
  },
30
38
  "dependencies": {
31
39
  "lit": "3.1.0",
32
40
  "valtio": "1.13.2",
41
+ "viem": "2.23.0",
33
42
  "zod": "3.22.4",
34
- "@reown/appkit": "1.6.8",
35
- "@reown/appkit-common": "1.6.8",
36
- "@reown/appkit-core": "1.6.8",
37
- "@reown/appkit-ui": "1.6.8"
43
+ "@reown/appkit": "1.6.9-rc.0",
44
+ "@reown/appkit-ui": "1.6.9-rc.0",
45
+ "@reown/appkit-common": "1.6.9-rc.0",
46
+ "@reown/appkit-core": "1.6.9-rc.0"
38
47
  },
39
48
  "devDependencies": {
40
49
  "@vitest/coverage-v8": "2.1.3",
41
- "vitest": "2.1.3"
50
+ "vitest": "2.1.9"
42
51
  },
43
52
  "keywords": [
44
53
  "web3",