zk-agent-cli 0.1.0-beta.1 → 0.1.0-beta.2
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 +15 -6
- package/dist/builtin-account-profiles/artifacts/daily-spend-limit/Account.json +693 -0
- package/dist/builtin-account-profiles/artifacts/sed-lite/Account.json +970 -0
- package/dist/builtin-account-profiles/artifacts/sed-lite/EOAValidator.json +50 -0
- package/dist/builtin-account-profiles/artifacts/sed-lite/NativePerTxLimitHook.json +267 -0
- package/dist/builtin-account-profiles/artifacts/sed-lite/TargetAllowlistHook.json +346 -0
- package/dist/builtin-account-profiles/artifacts/sed-lite/TargetSelectorAllowlistHook.json +643 -0
- package/dist/builtin-account-profiles/contracts/daily-spend-limit/AAFactory.sol +28 -0
- package/dist/builtin-account-profiles/contracts/daily-spend-limit/Account.sol +179 -0
- package/dist/builtin-account-profiles/contracts/daily-spend-limit/SpendLimit.sol +85 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/Account.sol +230 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/Auth.sol +16 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/BootloaderAuth.sol +11 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/EOAValidator.sol +23 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/IValidationHook.sol +20 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/IValidator.sol +11 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/ModuleAuth.sol +11 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/ModuleManager.sol +46 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/NativePerTxLimitHook.sol +67 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/OwnerManager.sol +25 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/SelfAuth.sol +9 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/TargetAllowlistHook.sol +110 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/TargetSelectorAllowlistHook.sol +263 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/ValidationHookManager.sol +76 -0
- package/dist/builtin-account-profiles/contracts/sed-lite/ValidatorManager.sol +31 -0
- package/dist/builtin-account-profiles/package.json +5 -0
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,9 @@ zksync-agent --help
|
|
|
34
34
|
|
|
35
35
|
## Prerequisites
|
|
36
36
|
|
|
37
|
-
- Node.js `>=24`
|
|
37
|
+
- Node.js `>=24` for either `npx zk-agent-cli ...` or global install.
|
|
38
|
+
Older Node versions may still start the CLI, but the current package is not
|
|
39
|
+
supported there and npm will emit `EBADENGINE` warnings.
|
|
38
40
|
- The default local approval path expects the connector UI to be reachable at
|
|
39
41
|
`http://localhost:4444`. Override it with
|
|
40
42
|
`zk-agent setup --connector-url <url>` when needed.
|
|
@@ -124,18 +126,25 @@ Common files created by the default path:
|
|
|
124
126
|
|
|
125
127
|
## Smart-Account Profiles
|
|
126
128
|
|
|
127
|
-
The published package
|
|
129
|
+
The published package ships built-in profile artifacts for the first-party
|
|
130
|
+
smart-account presets:
|
|
128
131
|
|
|
129
132
|
```bash
|
|
130
133
|
zk-agent wallet smart-account profiles --json
|
|
131
134
|
```
|
|
132
135
|
|
|
136
|
+
That means the packaged CLI can use:
|
|
137
|
+
|
|
138
|
+
- `zk-agent wallet smart-account predict --profile sed-lite`
|
|
139
|
+
- `zk-agent wallet smart-account deploy --profile sed-lite`
|
|
140
|
+
- the same built-in path for `daily-spend-limit`
|
|
141
|
+
|
|
133
142
|
Current boundary:
|
|
134
143
|
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
|
|
138
|
-
|
|
144
|
+
- built-in profiles work from the packaged CLI
|
|
145
|
+
- custom profile artifacts still use `--artifact <json|@file>`
|
|
146
|
+
- `ZK_AGENT_ACCOUNT_PROFILES_ROOT` is now only a source-checkout override for
|
|
147
|
+
development or custom runtime layouts
|
|
139
148
|
|
|
140
149
|
## Common Failures
|
|
141
150
|
|