Skip to content

Commit 9fc544f

Browse files
marino39claude
andcommitted
contracts: add v3 Stage7702Module (EIP-7702) Go bindings
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>
1 parent 2290a97 commit 9fc544f

4 files changed

Lines changed: 2075 additions & 8 deletions

File tree

contracts/artifacts/wallet-contracts-v3/Stage7702Module.sol/Stage7702Module.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

contracts/contracts.go

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import (
3838
v3Simulator "github.com/0xsequence/go-sequence/contracts/gen/v3/walletsimulator"
3939
v3Stage1 "github.com/0xsequence/go-sequence/contracts/gen/v3/walletstage1"
4040
v3Stage2 "github.com/0xsequence/go-sequence/contracts/gen/v3/walletstage2"
41+
v3Stage7702 "github.com/0xsequence/go-sequence/contracts/gen/v3/walletstage7702"
4142
"github.com/0xsequence/go-sequence/contracts/gen/valueforwarder"
4243
)
4344

@@ -87,14 +88,15 @@ var V2 struct {
8788
}
8889

8990
var V3 struct {
90-
WalletFactory ethartifact.Artifact
91-
WalletStage1Module ethartifact.Artifact
92-
WalletStage2Module ethartifact.Artifact
93-
WalletGuestModule ethartifact.Artifact
94-
WalletEstimator ethartifact.Artifact
95-
WalletSimulator ethartifact.Artifact
96-
SessionManager ethartifact.Artifact
97-
CreationCode []byte
91+
WalletFactory ethartifact.Artifact
92+
WalletStage1Module ethartifact.Artifact
93+
WalletStage2Module ethartifact.Artifact
94+
WalletStage7702Module ethartifact.Artifact
95+
WalletGuestModule ethartifact.Artifact
96+
WalletEstimator ethartifact.Artifact
97+
WalletSimulator ethartifact.Artifact
98+
SessionManager ethartifact.Artifact
99+
CreationCode []byte
98100
}
99101

100102
var (
@@ -123,6 +125,7 @@ func init() {
123125
V3.WalletFactory = artifact("WALLET_FACTORY", v3Factory.WalletFactoryABI, v3Factory.WalletFactoryBin)
124126
V3.WalletStage1Module = artifact("WALLET_STAGE_1", v3Stage1.WalletStage1ABI, v3Stage1.WalletStage1Bin)
125127
V3.WalletStage2Module = artifact("WALLET_STAGE_2", v3Stage2.WalletStage2ABI, v3Stage2.WalletStage2Bin)
128+
V3.WalletStage7702Module = artifact("WALLET_STAGE_7702", v3Stage7702.WalletStage7702ABI, v3Stage7702.WalletStage7702Bin)
126129
V3.WalletGuestModule = artifact("WALLET_GUEST", v3Guest.WalletGuestABI, v3Guest.WalletGuestBin)
127130
V3.WalletEstimator = artifact("WALLET_ESTIMATOR", v3Estimator.WalletEstimatorABI, v3Estimator.WalletEstimatorBin, v3Estimator.WalletEstimatorDeployedBin)
128131
V3.WalletSimulator = artifact("WALLET_SIMULATOR", v3Simulator.WalletSimulatorABI, v3Simulator.WalletSimulatorBin, v3Simulator.WalletSimulatorDeployedBin)

contracts/gen/gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=walletfactory --type=WalletFactory --outFile=./v3/walletfactory/wallet_factory.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Factory.sol/Factory.json
3131
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=walletstage1 --type=WalletStage1 --outFile=./v3/walletstage1/wallet_stage1.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Stage1Module.sol/Stage1Module.json
3232
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=walletstage2 --type=WalletStage2 --outFile=./v3/walletstage2/wallet_stage2.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Stage2Module.sol/Stage2Module.json
33+
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=walletstage7702 --type=WalletStage7702 --outFile=./v3/walletstage7702/wallet_stage7702.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Stage7702Module.sol/Stage7702Module.json
3334
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=walletguest --type=WalletGuest --outFile=./v3/walletguest/wallet_guest.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Guest.sol/Guest.json
3435

3536
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=passkeys --type=Passkeys --outFile=./v3/passkeys/passkeys.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Passkeys.sol/Passkeys.json

0 commit comments

Comments
 (0)