@alchemy/smart-accounts 0.0.0-alpha.20 → 0.0.0-alpha.22
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/LICENSE +1 -1
- package/README.md +36 -0
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
- package/src/version.ts +1 -1
package/LICENSE
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @alchemy/smart-accounts
|
|
2
|
+
|
|
3
|
+
Viem-compatible smart account implementations for Alchemy's smart contract accounts. Supports LightAccount, Modular Account v1, and Modular Account v2 with EIP-7702.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @alchemy/smart-accounts @alchemy/common viem
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Key Exports
|
|
12
|
+
|
|
13
|
+
### LightAccount
|
|
14
|
+
|
|
15
|
+
- **`toLightAccount`** - Single-owner LightAccount
|
|
16
|
+
- **`toMultiOwnerLightAccount`** - Multi-owner variant
|
|
17
|
+
- **`predictLightAccountAddress`** / **`predictMultiOwnerLightAccountAddress`** - Counterfactual address prediction
|
|
18
|
+
- **`singleOwnerLightAccountActions`** / **`multiOwnerLightAccountActions`** - Client decorators
|
|
19
|
+
|
|
20
|
+
### Modular Account v1 (ERC-6900)
|
|
21
|
+
|
|
22
|
+
- **`toMultiOwnerModularAccountV1`** - Account constructor
|
|
23
|
+
- **`multiOwnerModularAccountV1Actions`** - Client decorator
|
|
24
|
+
- **`predictMultiOwnerModularAccountV1Address`** - Address prediction
|
|
25
|
+
|
|
26
|
+
### Modular Account v2
|
|
27
|
+
|
|
28
|
+
- **`toModularAccountV2`** - Account constructor with EIP-7702 support
|
|
29
|
+
- **`deferralActions`** / **`installValidationActions`** - Client decorators
|
|
30
|
+
- **Modules** - `AllowlistModule`, `NativeTokenLimitModule`, `PaymasterGuardModule`, `SingleSignerValidationModule`, `TimeRangeModule`
|
|
31
|
+
- **`PermissionBuilder`** - Fluent builder for session key permissions
|
|
32
|
+
- **Signature utilities** - `packUOSignature`, `pack1271Signature`, `toReplaySafeTypedData`
|
|
33
|
+
|
|
34
|
+
## License
|
|
35
|
+
|
|
36
|
+
MIT
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.0.0-alpha.21";
|
package/dist/esm/version.js
CHANGED
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"0.0.0-alpha.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,yBAAyB;AACzB,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"0.0.0-alpha.21\";\n"]}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.0-alpha.
|
|
1
|
+
export declare const VERSION = "0.0.0-alpha.21";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alchemy/smart-accounts",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.22",
|
|
4
4
|
"description": "This package contains all of the viem interfaces for Alchemy's Smart Contract Accounts",
|
|
5
5
|
"author": "Alchemy",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"test:run": "vitest run"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@alchemy/aa-infra": "^0.0.0-alpha.
|
|
42
|
+
"@alchemy/aa-infra": "^0.0.0-alpha.22",
|
|
43
43
|
"typescript-template": "*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@alchemy/common": "^0.0.0-alpha.
|
|
46
|
+
"@alchemy/common": "^0.0.0-alpha.22",
|
|
47
47
|
"viem": "^2.44.2"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"url": "https://github.com/alchemyplatform/aa-sdk/issues"
|
|
59
59
|
},
|
|
60
60
|
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "10e989504f15718c4c6b66e6856e509dfb3e6cfe"
|
|
62
62
|
}
|
package/src/version.ts
CHANGED