feat(contracts): add v3 SessionManager and Stage7702Module (EIP-7702) Go bindings - #366
Merged
Conversation
Wire abigen bindings for the concrete SessionManager sapient signer from wallet-contracts-v3 (artifact already vendored). Adds one go:generate directive, the generated contracts/gen/v3/sessionmanager package, and the V3.SessionManager artifact. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Vendor the compiled Stage7702Module artifact from wallet-contracts-v3 (built from source at 7a864d6, solc 0.8.28 / viaIR / paris, matching the canonical settings of the sibling v3 artifacts) and wire its abigen Go bindings, following the Stage1Module/Stage2Module pattern. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…binding Add --includeDeployedBin to the walletstage7702 abigen directive and wire WalletStage7702DeployedBin into V3.WalletStage7702Module so the runtime bytecode is available (needed for EIP-7702 delegated-code verification). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
marino39
marked this pull request as ready for review
July 24, 2026 13:59
patrislav
approved these changes
Jul 24, 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.
Summary
Adds Go contract bindings for two v3 contracts from
wallet-contracts-v3:recoverSapientSignature,validatePermission,getLimitUsage,incrementUsageLimit,MAX_SPACE,VALUE_TRACKING_ADDRESS). Its compiled artifact was already vendored; this wires the Go bindings.Both follow the existing v3 abigen codegen convention.
Changes
contracts/gen/gen.go— two//go:generate ethkit abigendirectives (sessionmanagerwith--includeDeployedBinmatching the Estimator/Simulator siblings;walletstage7702without it, matching Stage1/Stage2).contracts/gen/v3/sessionmanager/session_manager.gen.go,contracts/gen/v3/walletstage7702/wallet_stage7702.gen.go— generated abigen bindings (new packages).contracts/artifacts/wallet-contracts-v3/Stage7702Module.sol/Stage7702Module.json— newly vendored compiled artifact.contracts/contracts.go— new imports andV3.SessionManager/V3.WalletStage7702Moduleartifact wiring.Verification
go build ./...,go vet ./contracts/...,go test ./contracts/...all pass.V3.WalletStage7702Moduleinitializes with non-emptyBin(16608 bytes) and its 23 ABI functions match the vendored artifact's 23 function entries.Provenance (Stage7702Module)
wallet-contracts-v3ships no pre-built artifacts or release tags. Stage7702Module was compiled from source at commit7a864d6(master) using the repo's ownfoundry.toml— solc 0.8.28, via-ir, optimizer runs 4294967295, evm_version paris — matching the compiler settings of the already-vendored sibling v3 artifacts. Because it is a newly built artifact, its bytecode cannot be diffed against a prior vendored reference; fidelity rests on the matching compiler settings.Scope / follow-ups
SessionManageronly (the abstract Explicit/Implicit/PermissionValidator interfaces are not bound).Stage7702Moduleonly.Stage7702AuthandImplementation7702are not bound in this PR.🤖 Generated with Claude Code