test(evm-wallet-experiment): Add local docker e2e test#912
Draft
test(evm-wallet-experiment): Add local docker e2e test#912
Conversation
packages/evm-wallet-experiment/docker/entrypoint-llm-proxy.mjs
Dismissed
Show dismissed
Hide dismissed
c77a70b to
c21c392
Compare
c4d8613 to
ca1a2c5
Compare
Contributor
Coverage Report
File Coverage |
ce8d6ee to
f036a65
Compare
… delegation redemption - Add Compose stack: Anvil + contract deploy, Pimlico Alto, home/away kernels, optional LLM/Ollama profiles, interactive OpenClaw override - Host-driven bootstrap: setup-wallets, scenarios (bundler-7702 / bundler-hybrid / peer-relay), docker-exec + wallet-setup helpers - Vitest docker-e2e suite (yarn test:e2e:docker); daemon socket client for manual docker:delegate - Shared delegation-transfer helper; setup-openclaw.mjs; docker-e2e-stack-constants (JSON) - Coordinator: direct EIP-7702 delegation redemption; export sdk utilities as needed - Kernel Docker image: strip postinstall, rebuild native addons, pin Alto/OpenClaw/EVM npm deps; MAINTAINERS.md - Shell scripts and home-interactive Docker-friendly; vitest config avoids fetch mock in docker tests Made-with: Cursor
eda0887 to
1f895b9
Compare
Made-with: Cursor
DelegationManager.redeemDelegations requires the leaf delegate to equal msg.sender. Peer-relay redeems on the home wallet, so createDelegation must use the home smart account address, not the away EOA. Made-with: Cursor
Hybrid away redeems via ERC-4337; sendTransaction returns a UserOp hash, so the burn address balance was read before inclusion. Extend callVat daemon timeout for waitForUserOpReceipt and raise Docker Vitest test timeout. Made-with: Cursor
- Add three home/away compose pairs (one per DELEGATION_MODE) with isolated QUIC ports; health checks list all required services. - Support optional SRP addressIndex in keyring, keyring vat, and coordinator initializeKeyring (encrypted baggage preserves index). - Docker E2E runs bundler-7702, bundler-hybrid, and peer-relay in one Vitest run; DELEGATION_MODE filters to a single mode. - Per-pair home HD index on the Anvil test mnemonic avoids duplicate EOAs across parallel kernels. Made-with: Cursor
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.
Add a Docker Compose stack for isolated E2E testing with five services:
evm: Anvil chain with EIP-7702 support + contract deploymentbundler: Pimlico Alto ERC-4337 bundlerllm: lightweight proxy forwarding to an upstream LLMhome: home kernel node (EOA + DeleGator smart account)away: away kernel node (delegation recipient)Supports three delegation modes, narrowed via DELEGATION_MODE env var:
bundler-7702, bundler-hybrid, and peer-relay.