Skip to content

chore: sync Vm interface cheatcodes - #948

Merged
mablr merged 1 commit into
masterfrom
chore/sync-configurable-account-cheatcodes
Nov 12, 2026
Merged

mablr merged 1 commit into
masterfrom
chore/sync-configurable-account-cheatcodes

Conversation

@mablr

@mablr mablr commented Nov 12, 2026

Copy link
Copy Markdown
Member

Syncs src/Vm.sol with foundry master at 681c9f3, generated with scripts/vm.py --from from that commit's crates/cheatcodes/assets/cheatcodes.json.

It adds the Tempo configurable account cheatcodes from foundry-rs/foundry#18408: deriveConfigurableAccount, configurableAccountDigest, encodeConfigurableAccountSignature, two signConfigurableAccount overloads and signKeychainConfigurableAccount. They come with the ConfigurableAccountOwner, ConfigurableAccountConfig and OwnerKey structs and the OwnerKeyType enum. Foundry now marks signKeychainAdmin and expectKeychainAdminVerified as deprecated.

It also picks up loadTransient/storeTransient (foundry-rs/foundry#17484) and doc updates for recordLogs, mockFunction, setEvmVersion and the JSON cheatcodes' key.

The interface IDs in test/Vm.t.sol change: Vm 0x9ae1b86f -> 0x13541ca2, VmSafe 0x2653dfa6 -> 0x51b4d304. forge test passes locally (226 tests).

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
mablr merged commit 15b2df9 into master Nov 12, 2026
21 checks passed
@mablr
mablr deleted the chore/sync-configurable-account-cheatcodes branch November 12, 2026 15:49
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