Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainID = big.NewInt(1337)
ChainID is the chain id used for simulated backends
View Source
var TestAddress = crypto.PubkeyToAddress(TestKey.PublicKey)
View Source
var TestKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
TestKey is the same test key that geth uses
Functions ¶
func NewBackendWithGenesisTimestamp ¶
func NewBackendWithGenesisTimestamp(ts uint64, shanghai bool) *backends.SimulatedBackend
func NewL1Backend ¶ added in v1.2.0
func NewL1Backend() *backends.SimulatedBackend
NewL1Backend returns a SimulatedBackend suitable for L1. It has the latest L1 hardforks enabled.
func NewL2Backend ¶ added in v1.2.0
func NewL2Backend() *backends.SimulatedBackend
NewL2Backend returns a SimulatedBackend suitable for L2. It has the latest L2 hardforks enabled.
Types ¶
type Constructor ¶
type Constructor struct { Name string Args []interface{} }
type Deployer ¶
type Deployer func(*backends.SimulatedBackend, *bind.TransactOpts, Constructor) (*types.Transaction, error)
type Deployment ¶
func Deploy ¶
func Deploy(backend *backends.SimulatedBackend, constructors []Constructor, cb Deployer) ([]Deployment, error)
type SuperchainPredeploy ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.