Documentation
¶
Index ¶
- Constants
- func AsyncGetPrefixedWs[T any, Out any](t devtest.T, node *dsl.L2CLNode, prefix string, method string, ...) <-chan Out
- func GetDevWS[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) []uint64
- func GetDevWSAsync[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) <-chan uint64
- func GetKonaWs[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) []eth.L2BlockRef
- func GetKonaWsAsync[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) <-chan eth.L2BlockRef
- func GetNodeRPCEndpoint(node *dsl.L2CLNode) client.RPC
- func GetPrefixedWs[T any, Out any](t devtest.T, node *dsl.L2CLNode, prefix string, method string, ...) []Out
- func MatchedWithinRange(t devtest.T, baseNode, refNode dsl.L2CLNode, delta uint64, ...) dsl.CheckFunc
- func NewSharedMixedOpKonaRuntime(pkg devtest.P) *sysgo.MixedSingleChainRuntime
- func NewSharedMixedOpKonaRuntimeForConfig(pkg devtest.P, cfg L2NodeConfig) *sysgo.MixedSingleChainRuntime
- func SendRPCRequest[T any](clientRPC client.RPC, method string, resOutput *T, params ...any) error
- type L2NodeConfig
- type MinimalWithConductors
- type MinimalWithTestSequencersPreset
- type MixedOpKonaPreset
- func NewMixedOpKona(t devtest.T) *MixedOpKonaPreset
- func NewMixedOpKonaForConfig(t devtest.T, l2NodeConfig L2NodeConfig) *MixedOpKonaPreset
- func NewMixedOpKonaFromRuntime(t devtest.T, runtime *sysgo.MixedSingleChainRuntime) *MixedOpKonaPreset
- func NewSharedMixedOpKona(pkg devtest.P) *MixedOpKonaPreset
- func NewSharedMixedOpKonaForConfig(pkg devtest.P, cfg L2NodeConfig) *MixedOpKonaPreset
- func (m *MixedOpKonaPreset) L2CLKonaNodes() []dsl.L2CLNode
- func (m *MixedOpKonaPreset) L2CLNodes() []dsl.L2CLNode
- func (m *MixedOpKonaPreset) L2CLSequencerNodes() []dsl.L2CLNode
- func (m *MixedOpKonaPreset) L2CLValidatorNodes() []dsl.L2CLNode
- func (m *MixedOpKonaPreset) L2ELNodes() []dsl.L2ELNode
- func (m *MixedOpKonaPreset) L2ELSequencerNodes() []dsl.L2ELNode
- func (m *MixedOpKonaPreset) L2ELValidatorNodes() []dsl.L2ELNode
- func (m *MixedOpKonaPreset) L2Networks() []*dsl.L2Network
Constants ¶
View Source
const ( DefaultOpSequencerGeth = 0 DefaultOpSequencerReth = 0 DefaultKonaSequencerGeth = 0 DefaultKonaSequencerReth = 1 DefaultOpValidatorGeth = 0 DefaultOpValidatorReth = 0 DefaultKonaValidatorGeth = 3 DefaultKonaValidatorReth = 3 )
View Source
const (
DEFAULT_TIMEOUT = 10 * time.Second
)
View Source
const DefaultL1ID = 900
View Source
const DefaultL2ID = 901
Variables ¶
This section is empty.
Functions ¶
func AsyncGetPrefixedWs ¶
func GetDevWSAsync ¶
func GetKonaWsAsync ¶
func GetPrefixedWs ¶
func MatchedWithinRange ¶
func NewSharedMixedOpKonaRuntime ¶ added in v1.16.9
func NewSharedMixedOpKonaRuntime(pkg devtest.P) *sysgo.MixedSingleChainRuntime
func NewSharedMixedOpKonaRuntimeForConfig ¶ added in v1.16.9
func NewSharedMixedOpKonaRuntimeForConfig(pkg devtest.P, cfg L2NodeConfig) *sysgo.MixedSingleChainRuntime
Types ¶
type L2NodeConfig ¶
type L2NodeConfig struct {
OpSequencerNodesWithGeth int
OpSequencerNodesWithReth int
KonaSequencerNodesWithGeth int
KonaSequencerNodesWithReth int
OpNodesWithGeth int
OpNodesWithReth int
KonaNodesWithGeth int
KonaNodesWithReth int
}
func ParseL2NodeConfigFromEnv ¶
func ParseL2NodeConfigFromEnv() L2NodeConfig
func (L2NodeConfig) KonaSequencerNodes ¶
func (l2NodeConfig L2NodeConfig) KonaSequencerNodes() int
func (L2NodeConfig) KonaValidatorNodes ¶
func (l2NodeConfig L2NodeConfig) KonaValidatorNodes() int
func (L2NodeConfig) OpSequencerNodes ¶
func (l2NodeConfig L2NodeConfig) OpSequencerNodes() int
func (L2NodeConfig) OpValidatorNodes ¶
func (l2NodeConfig L2NodeConfig) OpValidatorNodes() int
func (L2NodeConfig) TotalNodes ¶
func (l2NodeConfig L2NodeConfig) TotalNodes() int
type MinimalWithConductors ¶
type MinimalWithConductors = presets.MinimalWithConductors
func NewMixedOpKonaWithConductors ¶
func NewMixedOpKonaWithConductors(t devtest.T) *MinimalWithConductors
func NewMixedOpKonaWithConductorsForConfig ¶ added in v1.16.9
func NewMixedOpKonaWithConductorsForConfig(t devtest.T, _ L2NodeConfig, opts ...presets.Option) *MinimalWithConductors
type MinimalWithTestSequencersPreset ¶
type MinimalWithTestSequencersPreset struct {
*MixedOpKonaPreset
TestSequencer dsl.TestSequencer
}
func NewMixedOpKonaWithTestSequencer ¶
func NewMixedOpKonaWithTestSequencer(t devtest.T) *MinimalWithTestSequencersPreset
func NewMixedOpKonaWithTestSequencerForConfig ¶ added in v1.16.9
func NewMixedOpKonaWithTestSequencerForConfig(t devtest.T, l2Config L2NodeConfig) *MinimalWithTestSequencersPreset
type MixedOpKonaPreset ¶
type MixedOpKonaPreset struct {
Log log.Logger
T devtest.T
L1Network *dsl.L1Network
L1EL *dsl.L1ELNode
L1CL *dsl.L1CLNode
L2Chain *dsl.L2Network
L2Batcher *dsl.L2Batcher
L2ELKonaSequencerNodes []dsl.L2ELNode
L2CLKonaSequencerNodes []dsl.L2CLNode
L2ELOpSequencerNodes []dsl.L2ELNode
L2CLOpSequencerNodes []dsl.L2CLNode
L2ELOpValidatorNodes []dsl.L2ELNode
L2CLOpValidatorNodes []dsl.L2CLNode
L2ELKonaValidatorNodes []dsl.L2ELNode
L2CLKonaValidatorNodes []dsl.L2CLNode
Wallet *dsl.HDWallet
FaucetL1 *dsl.Faucet
Faucet *dsl.Faucet
FunderL1 *dsl.Funder
Funder *dsl.Funder
}
func NewMixedOpKona ¶
func NewMixedOpKona(t devtest.T) *MixedOpKonaPreset
func NewMixedOpKonaForConfig ¶ added in v1.16.9
func NewMixedOpKonaForConfig(t devtest.T, l2NodeConfig L2NodeConfig) *MixedOpKonaPreset
func NewMixedOpKonaFromRuntime ¶ added in v1.16.9
func NewMixedOpKonaFromRuntime(t devtest.T, runtime *sysgo.MixedSingleChainRuntime) *MixedOpKonaPreset
func NewSharedMixedOpKona ¶ added in v1.16.9
func NewSharedMixedOpKona(pkg devtest.P) *MixedOpKonaPreset
func NewSharedMixedOpKonaForConfig ¶ added in v1.16.9
func NewSharedMixedOpKonaForConfig(pkg devtest.P, cfg L2NodeConfig) *MixedOpKonaPreset
func (*MixedOpKonaPreset) L2CLKonaNodes ¶
func (m *MixedOpKonaPreset) L2CLKonaNodes() []dsl.L2CLNode
func (*MixedOpKonaPreset) L2CLNodes ¶
func (m *MixedOpKonaPreset) L2CLNodes() []dsl.L2CLNode
func (*MixedOpKonaPreset) L2CLSequencerNodes ¶
func (m *MixedOpKonaPreset) L2CLSequencerNodes() []dsl.L2CLNode
func (*MixedOpKonaPreset) L2CLValidatorNodes ¶
func (m *MixedOpKonaPreset) L2CLValidatorNodes() []dsl.L2CLNode
func (*MixedOpKonaPreset) L2ELNodes ¶
func (m *MixedOpKonaPreset) L2ELNodes() []dsl.L2ELNode
func (*MixedOpKonaPreset) L2ELSequencerNodes ¶
func (m *MixedOpKonaPreset) L2ELSequencerNodes() []dsl.L2ELNode
func (*MixedOpKonaPreset) L2ELValidatorNodes ¶
func (m *MixedOpKonaPreset) L2ELValidatorNodes() []dsl.L2ELNode
func (*MixedOpKonaPreset) L2Networks ¶
func (m *MixedOpKonaPreset) L2Networks() []*dsl.L2Network
Click to show internal directories.
Click to hide internal directories.