Actions CLI - Initial scaffolding#421
Merged
its-everdred merged 45 commits intomainfrom May 5, 2026
Merged
Conversation
✅ Deploy Preview for actions-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
added 22 commits
April 23, 2026 10:51
its-everdred
commented
May 4, 2026
Comment on lines
+6
to
+11
| const SHORTNAMES: Record<string, SupportedChainId> = { | ||
| base: base.id, | ||
| 'base-sepolia': baseSepolia.id, | ||
| optimism: optimism.id, | ||
| 'op-sepolia': optimismSepolia.id, | ||
| } |
Collaborator
Author
There was a problem hiding this comment.
Since actions sdk will need to retain a list of supported chains anyway, id prefer this moved to the sdk in a future PR
Comment on lines
+7
to
+8
| BASE_SEPOLIA_RPC_URL: string | undefined | ||
| OP_SEPOLIA_RPC_URL: string | undefined |
Collaborator
Author
There was a problem hiding this comment.
a future PR will abstract these away and simply use the values set in the ActionsConfig.chains object
| */ | ||
| export async function walletContext(): Promise<WalletContext> { | ||
| const base = baseContext() | ||
| const signer = parseSigner(requireEnv('PRIVATE_KEY')) |
Collaborator
Author
There was a problem hiding this comment.
In a future PR, we wont be so opinionated about wallet setup
Comment on lines
+21
to
+35
| export function getDemoConfig(): NodeActionsConfig<never> { | ||
| return { | ||
| wallet: { | ||
| smartWalletConfig: { | ||
| provider: { type: 'default', attributionSuffix: 'actions' }, | ||
| }, | ||
| }, | ||
| lend: { | ||
| morpho: { marketAllowlist: [GauntletUSDCDemo] }, | ||
| aave: { marketAllowlist: [AaveETH] }, | ||
| }, | ||
| assets: { allow: [USDC_DEMO, OP_DEMO, ETH] }, | ||
| chains: getDemoChains(), | ||
| } | ||
| } |
Collaborator
Author
There was a problem hiding this comment.
A future PR moves this config and the other demo files out of the CLI into opie, the example consumer of the CLI.
tremarkley
approved these changes
May 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #408. Scaffolds
packages/cli/(npmactions-cli, binactions): agent-first subprocess that emits JSON on stdout and JSON error envelopes on stderr, with five exit-code categories. Next up: #409 (lend), #410 (swap), #422 (smart wallet + periphery).What's in
packages/cli/wired into the pnpm workspaceassets,chains,wallet address,wallet balancewriteJson(bigint-aware) +writeErrorwithCliErrortaxonomy andsafeDetailsredactionrequireEnv-cleanEnvnever runs at import time, enforced by spy testactions.wallet.toActionsWallet(localAccount)- no bundler, no UserOps, signer pays gasUSDC_DEMO,OP_DEMO,ETH;GauntletUSDCDemo,AaveETH; Base Sepolia, OP Sepolia, Unichain)--chain <shortname>/--chain-id <id>flags onwallet balance, mutually exclusive via the sharedresolveChainFlagsresolverSKILL.md(Agent Skills spec) +README.md--helponly; stdout JSON stays ANSI-freedist/index.js)SDK -> CLI mapping
Wallet model
EOA only in this PR.
actions.wallet.toActionsWallet(localAccount)wraps the signer in aLocalWallet; transactions are signed and submitted directly (no bundler, no UserOps, signer pays gas from its own ETH balance on Base Sepolia). Lend and swap dispatch throughwallet.sendBatch, whichEOAWalletimplements as sequential sends with nonce confirmations - approvals + calls become multiple transactions instead of one batched UserOp.#422 re-adds the ERC-4337 smart wallet path + the direct wallet commands (
wallet send,send-batch,transferfrom #413) once bundlers are wired.