Skip to content

feat: update Vm.sol with new cheatcodes#819

Merged
grandizzy merged 2 commits intomasterfrom
gakonst/update-cheatcodes
Feb 16, 2026
Merged

feat: update Vm.sol with new cheatcodes#819
grandizzy merged 2 commits intomasterfrom
gakonst/update-cheatcodes

Conversation

@gakonst
Copy link
Member

@gakonst gakonst commented Feb 16, 2026

Summary

Update Vm.sol with all new cheatcodes from foundry.

New cheatcodes

  • createEd25519Key(bytes32 salt) — generate Ed25519 key pair from deterministic salt
  • publicKeyEd25519(bytes32 privateKey) — derive Ed25519 public key
  • signEd25519(bytes namespace, bytes message, bytes32 privateKey) — sign with namespace using Ed25519
  • verifyEd25519(bytes signature, bytes namespace, bytes message, bytes32 publicKey) — verify Ed25519 signature
  • executeTransaction(bytes rawTx) — execute RLP-encoded signed tx with full EVM semantics (like --isolate mode)

Generation

Regenerated via scripts/vm.py --from cheatcodes.json using foundry's latest cheatcodes.json.

Prompted by: georgen

gakonst and others added 2 commits February 16, 2026 18:41
New cheatcodes added from foundry:
- createEd25519Key: generate Ed25519 key pair from salt
- publicKeyEd25519: derive Ed25519 public key from private key
- signEd25519: sign with namespace using Ed25519
- verifyEd25519: verify Ed25519 signature
- executeTransaction: execute RLP-encoded signed tx with full EVM semantics

Generated via scripts/vm.py from foundry cheatcodes.json.

Amp-Thread-ID: https://ampcode.com/threads/T-019c67c1-03c9-704e-b73d-5c1ce8c4722a
Co-authored-by: Amp <amp@ampcode.com>
@grandizzy grandizzy marked this pull request as ready for review February 16, 2026 18:46
@grandizzy grandizzy merged commit e72518e into master Feb 16, 2026
19 checks passed
@grandizzy grandizzy deleted the gakonst/update-cheatcodes branch February 16, 2026 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants