Repository navigation
chore: sync Vm interface cheatcodes - #948
Merged
Merged
Conversation
Regenerate `src/Vm.sol` from Foundry's `cheatcodes.json` at 681c9f3 (identical to current master) with `scripts/vm.py --from`: - add the Tempo configurable account cheatcodes `deriveConfigurableAccount`, `configurableAccountDigest`, `encodeConfigurableAccountSignature`, `signConfigurableAccount` (`uint256[]` and `OwnerKey[]` overloads) and `signKeychainConfigurableAccount`, with the `ConfigurableAccountOwner`, `ConfigurableAccountConfig` and `OwnerKey` structs and the `OwnerKeyType` enum; `signKeychainAdmin` and `expectKeychainAdminVerified` are now deprecated (foundry#18408) - add `loadTransient` and `storeTransient` (foundry#17484) - document that `recordLogs` drops logs from reverted frames (foundry#17866) - clarify `mockFunction` matching (foundry#17595) - clarify that JSON cheatcode keys are JSONPath selectors (foundry#17159) - update the `setEvmVersion` description (foundry#17278) - update the interface IDs in `test/Vm.t.sol`: `Vm` `0x9ae1b86f` -> `0x13541ca2`, `VmSafe` `0x2653dfa6` -> `0x51b4d304` Amp-Thread-ID: https://ampcode.com/threads/T-01a1d00e-6c1b-707e-8391-7e4fce507cac Co-authored-by: Amp <[email protected]>
mablr
requested review from
0xrusowsky,
DaniPopes,
grandizzy,
mattsse and
onbjerg
as code owners
November 12, 2026 14:07
mablr
enabled auto-merge (squash)
November 12, 2026 14:44
stevencartavia
approved these changes
Nov 12, 2026
grandizzy
approved these changes
Nov 12, 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.
Syncs
src/Vm.solwith foundry master at 681c9f3, generated withscripts/vm.py --fromfrom that commit'scrates/cheatcodes/assets/cheatcodes.json.It adds the Tempo configurable account cheatcodes from foundry-rs/foundry#18408:
deriveConfigurableAccount,configurableAccountDigest,encodeConfigurableAccountSignature, twosignConfigurableAccountoverloads andsignKeychainConfigurableAccount. They come with theConfigurableAccountOwner,ConfigurableAccountConfigandOwnerKeystructs and theOwnerKeyTypeenum. Foundry now markssignKeychainAdminandexpectKeychainAdminVerifiedas deprecated.It also picks up
loadTransient/storeTransient(foundry-rs/foundry#17484) and doc updates forrecordLogs,mockFunction,setEvmVersionand the JSON cheatcodes'key.The interface IDs in
test/Vm.t.solchange:Vm0x9ae1b86f->0x13541ca2,VmSafe0x2653dfa6->0x51b4d304.forge testpasses locally (226 tests).