Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions contracts/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ import (
v2Main "github.com/0xsequence/go-sequence/contracts/gen/v2/walletmain"
v2Upgradable "github.com/0xsequence/go-sequence/contracts/gen/v2/walletupgradable"
v2Utils "github.com/0xsequence/go-sequence/contracts/gen/v2/walletutils"
v3SessionManager "github.com/0xsequence/go-sequence/contracts/gen/v3/sessionmanager"
v3Estimator "github.com/0xsequence/go-sequence/contracts/gen/v3/walletestimator"
v3Factory "github.com/0xsequence/go-sequence/contracts/gen/v3/walletfactory"
v3Guest "github.com/0xsequence/go-sequence/contracts/gen/v3/walletguest"
v3Simulator "github.com/0xsequence/go-sequence/contracts/gen/v3/walletsimulator"
v3Stage1 "github.com/0xsequence/go-sequence/contracts/gen/v3/walletstage1"
v3Stage2 "github.com/0xsequence/go-sequence/contracts/gen/v3/walletstage2"
v3Stage7702 "github.com/0xsequence/go-sequence/contracts/gen/v3/walletstage7702"
"github.com/0xsequence/go-sequence/contracts/gen/valueforwarder"
)

Expand Down Expand Up @@ -86,13 +88,15 @@ var V2 struct {
}

var V3 struct {
WalletFactory ethartifact.Artifact
WalletStage1Module ethartifact.Artifact
WalletStage2Module ethartifact.Artifact
WalletGuestModule ethartifact.Artifact
WalletEstimator ethartifact.Artifact
WalletSimulator ethartifact.Artifact
CreationCode []byte
WalletFactory ethartifact.Artifact
WalletStage1Module ethartifact.Artifact
WalletStage2Module ethartifact.Artifact
WalletStage7702Module ethartifact.Artifact
WalletGuestModule ethartifact.Artifact
WalletEstimator ethartifact.Artifact
WalletSimulator ethartifact.Artifact
SessionManager ethartifact.Artifact
CreationCode []byte
}

var (
Expand Down Expand Up @@ -121,9 +125,11 @@ func init() {
V3.WalletFactory = artifact("WALLET_FACTORY", v3Factory.WalletFactoryABI, v3Factory.WalletFactoryBin)
V3.WalletStage1Module = artifact("WALLET_STAGE_1", v3Stage1.WalletStage1ABI, v3Stage1.WalletStage1Bin)
V3.WalletStage2Module = artifact("WALLET_STAGE_2", v3Stage2.WalletStage2ABI, v3Stage2.WalletStage2Bin)
V3.WalletStage7702Module = artifact("WALLET_STAGE_7702", v3Stage7702.WalletStage7702ABI, v3Stage7702.WalletStage7702Bin, v3Stage7702.WalletStage7702DeployedBin)
V3.WalletGuestModule = artifact("WALLET_GUEST", v3Guest.WalletGuestABI, v3Guest.WalletGuestBin)
V3.WalletEstimator = artifact("WALLET_ESTIMATOR", v3Estimator.WalletEstimatorABI, v3Estimator.WalletEstimatorBin, v3Estimator.WalletEstimatorDeployedBin)
V3.WalletSimulator = artifact("WALLET_SIMULATOR", v3Simulator.WalletSimulatorABI, v3Simulator.WalletSimulatorBin, v3Simulator.WalletSimulatorDeployedBin)
V3.SessionManager = artifact("SESSION_MANAGER", v3SessionManager.SessionManagerABI, v3SessionManager.SessionManagerBin, v3SessionManager.SessionManagerDeployedBin)
V3.CreationCode = hexutil.MustDecode("0x6041600e3d396021805130553df33d3d36153402601f57363d3d373d363d30545af43d82803e903d91601f57fd5bf3")

GasEstimator = artifact("GAS_ESTIMATOR", gasestimator.GasEstimatorABI, gasestimator.GasEstimatorBin, gasestimator.GasEstimatorDeployedBin)
Expand Down
2 changes: 2 additions & 0 deletions contracts/gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@
//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
//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
//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
//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 --includeDeployedBin
//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

//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

//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=walletestimator --type=WalletEstimator --outFile=./v3/walletestimator/wallet_estimator.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Estimator.sol/Estimator.json --includeDeployedBin
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=walletsimulator --type=WalletSimulator --outFile=./v3/walletsimulator/wallet_simulator.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/Simulator.sol/Simulator.json --includeDeployedBin
//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=sessionmanager --type=SessionManager --outFile=./v3/sessionmanager/session_manager.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/SessionManager.sol/SessionManager.json --includeDeployedBin

//go:generate go run github.com/0xsequence/ethkit/cmd/ethkit abigen --pkg=sapientmock --type=SapientMock --outFile=./sapientmock/sapient_mock.gen.go --artifactsFile=../artifacts/wallet-contracts-v3/MockSapient.sol/MockSapient.json

Expand Down
564 changes: 564 additions & 0 deletions contracts/gen/v3/sessionmanager/session_manager.gen.go

Large diffs are not rendered by default.

2,065 changes: 2,065 additions & 0 deletions contracts/gen/v3/walletstage7702/wallet_stage7702.gen.go

Large diffs are not rendered by default.

Loading