feat(forge): eip712 cheatcodes + forge cmd (eip712 + bind-json) with solar#10510
Merged
feat(forge): eip712 cheatcodes + forge cmd (eip712 + bind-json) with solar#10510
Conversation
DaniPopes
reviewed
May 14, 2025
DaniPopes
reviewed
May 14, 2025
6 tasks
grandizzy
reviewed
Jun 3, 2025
grandizzy
reviewed
Jun 3, 2025
grandizzy
approved these changes
Jun 3, 2025
Collaborator
grandizzy
left a comment
There was a problem hiding this comment.
lgtm! pending other reviews before merging
cc @DaniPopes
|
Looking forward to this feature! |
yash-atreya
added a commit
to foundry-rs/forge-std
that referenced
this pull request
Jun 11, 2025
Ref foundry-rs/foundry#10510 Add `eip712HashType`, `eip712HashStruct`, and `eip712HashTypedData` cheatcodes to VmSafe interface ```solidity function eip712HashType(string calldata typeNameOrDefinition) external pure returns (bytes32 typeHash); function eip712HashType(string calldata bindingsPath, string calldata typeName) external pure returns (bytes32 typeHash); function eip712HashStruct(string calldata typeNameOrDefinition, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash); function eip712HashStruct(string calldata bindingsPath, string calldata typeName, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash); function eip712HashTypedData(string calldata jsonData) external pure returns (bytes32 digest); ```
This was referenced Sep 6, 2025
aubBrooks919
added a commit
to aubBrooks919/forge-std
that referenced
this pull request
Sep 25, 2025
Ref foundry-rs/foundry#10510 Add `eip712HashType`, `eip712HashStruct`, and `eip712HashTypedData` cheatcodes to VmSafe interface ```solidity function eip712HashType(string calldata typeNameOrDefinition) external pure returns (bytes32 typeHash); function eip712HashType(string calldata bindingsPath, string calldata typeName) external pure returns (bytes32 typeHash); function eip712HashStruct(string calldata typeNameOrDefinition, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash); function eip712HashStruct(string calldata bindingsPath, string calldata typeName, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash); function eip712HashTypedData(string calldata jsonData) external pure returns (bytes32 digest); ```
davidLong89
added a commit
to davidLong89/forge-std
that referenced
this pull request
Sep 25, 2025
Ref foundry-rs/foundry#10510 Add `eip712HashType`, `eip712HashStruct`, and `eip712HashTypedData` cheatcodes to VmSafe interface ```solidity function eip712HashType(string calldata typeNameOrDefinition) external pure returns (bytes32 typeHash); function eip712HashType(string calldata bindingsPath, string calldata typeName) external pure returns (bytes32 typeHash); function eip712HashStruct(string calldata typeNameOrDefinition, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash); function eip712HashStruct(string calldata bindingsPath, string calldata typeName, bytes calldata abiEncodedData) external pure returns (bytes32 typeHash); function eip712HashTypedData(string calldata jsonData) external pure returns (bytes32 digest); ```
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.
this PR combines 3 smaller PRs which serve several purposes:
forge eip712andforge bind-jsonusing solar.motivation:
to-do
forge bind-json