Documentation
¶
Index ¶
- func DoMain(m *testing.M, opts ...stack.CommonOption)
- func Orchestrator() stack.Orchestrator
- func WithInteropNotAtGenesis() stack.CommonOption
- func WithRedundantInterop() stack.CommonOption
- func WithSimpleInterop() stack.CommonOption
- func WithSuggestedInteropActivationOffset(offset uint64) stack.CommonOption
- type RedundantInterop
- type SimpleInterop
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoMain ¶
func DoMain(m *testing.M, opts ...stack.CommonOption)
DoMain runs M with the pre- and post-processing of tests, to setup the default global orchestrator and global logger. This will os.Exit(code) and not return.
func Orchestrator ¶
func Orchestrator() stack.Orchestrator
Orchestrator returns the globally configured orchestrator.
Add a TestMain to your test package init the orchestrator:
func TestMain(m *testing.M) {
presets.DoMain(m)
}
func WithInteropNotAtGenesis ¶
func WithInteropNotAtGenesis() stack.CommonOption
WithInteropNotAtGenesis adds a test-gate that checks if the interop hardfork is configured at a non-genesis time.
func WithRedundantInterop ¶
func WithRedundantInterop() stack.CommonOption
func WithSimpleInterop ¶
func WithSimpleInterop() stack.CommonOption
WithSimpleInterop specifies a system that meets the SimpleInterop criteria.
func WithSuggestedInteropActivationOffset ¶
func WithSuggestedInteropActivationOffset(offset uint64) stack.CommonOption
WithSuggestedInteropActivationOffset suggests a hardfork time offset to use. This is applied e.g. to the deployment if running against sysgo.
Types ¶
type RedundantInterop ¶
type RedundantInterop struct {
SimpleInterop
L2ELA2 *dsl.L2ELNode
L2CLA2 *dsl.L2CLNode
}
func NewRedundantInterop ¶
func NewRedundantInterop(t devtest.T) *RedundantInterop
type SimpleInterop ¶
type SimpleInterop struct {
Log log.Logger
T devtest.T
Supervisor *dsl.Supervisor
Sequencer *dsl.Sequencer
ControlPlane stack.ControlPlane
L1Network *dsl.L1Network
L2ChainA *dsl.L2Network
L2ChainB *dsl.L2Network
L2BatcherA *dsl.L2Batcher
L2BatcherB *dsl.L2Batcher
L2ELA *dsl.L2ELNode
L2ELB *dsl.L2ELNode
L2CLA *dsl.L2CLNode
L2CLB *dsl.L2CLNode
Wallet *dsl.HDWallet
FaucetA *dsl.Faucet
FaucetB *dsl.Faucet
FunderA *dsl.Funder
FunderB *dsl.Funder
}
func NewSimpleInterop ¶
func NewSimpleInterop(t devtest.T) *SimpleInterop
func (*SimpleInterop) L2Networks ¶
func (s *SimpleInterop) L2Networks() []*dsl.L2Network
Click to show internal directories.
Click to hide internal directories.