node_utils

package
v1.19.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2026 License: MIT, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultOpSequencerReth   = 0
	DefaultKonaSequencerReth = 1
	DefaultOpValidatorReth   = 0
	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 AsyncGetPrefixedWs[T any, Out any](t devtest.T, node *dsl.L2CLNode, prefix string, method string, runUntil <-chan T) <-chan Out

func GetDevWS

func GetDevWS[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) []uint64

func GetDevWSAsync

func GetDevWSAsync[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) <-chan uint64

func GetKonaWs

func GetKonaWs[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) []eth.L2BlockRef

func GetKonaWsAsync

func GetKonaWsAsync[T any](t devtest.T, node *dsl.L2CLNode, method string, runUntil <-chan T) <-chan eth.L2BlockRef

func GetNodeRPCEndpoint

func GetNodeRPCEndpoint(node *dsl.L2CLNode) client.RPC

func GetPrefixedWs

func GetPrefixedWs[T any, Out any](t devtest.T, node *dsl.L2CLNode, prefix string, method string, runUntil <-chan T) []Out

func MatchedWithinRange

func MatchedWithinRange(t devtest.T, baseNode, refNode dsl.L2CLNode, delta uint64, lvl safety.Level, attempts int) dsl.CheckFunc

func NewSharedMixedOpKonaRuntime

func NewSharedMixedOpKonaRuntime(pkg devtest.P) *sysgo.MixedSingleChainRuntime

func NewSharedMixedOpKonaRuntimeForConfig

func NewSharedMixedOpKonaRuntimeForConfig(pkg devtest.P, cfg L2NodeConfig, deployerOpts ...sysgo.DeployerOption) *sysgo.MixedSingleChainRuntime

func SendRPCRequest

func SendRPCRequest[T any](clientRPC client.RPC, method string, resOutput *T, params ...any) error

Types

type L2NodeConfig

type L2NodeConfig struct {
	OpSequencerNodesWithReth   int
	KonaSequencerNodesWithReth int
	OpNodesWithReth            int
	KonaNodesWithReth          int
}

func ParseL2NodeConfigFromEnv

func ParseL2NodeConfigFromEnv() L2NodeConfig

func (L2NodeConfig) TotalNodes

func (l2NodeConfig L2NodeConfig) TotalNodes() int

type MinimalWithConductors

type MinimalWithConductors = presets.MinimalWithConductors

func NewMixedOpKonaWithConductors

func NewMixedOpKonaWithConductors(t devtest.T) *MinimalWithConductors

func NewMixedOpKonaWithConductorsForConfig

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

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

	FunderL1 *dsl.FunderEOA
	Funder   *dsl.FunderEOA
}

func NewMixedOpKona

func NewMixedOpKona(t devtest.T) *MixedOpKonaPreset

func NewMixedOpKonaForConfig

func NewMixedOpKonaForConfig(t devtest.T, l2NodeConfig L2NodeConfig) *MixedOpKonaPreset

func NewMixedOpKonaFromRuntime

func NewMixedOpKonaFromRuntime(t devtest.T, runtime *sysgo.MixedSingleChainRuntime) *MixedOpKonaPreset

func NewSharedMixedOpKona

func NewSharedMixedOpKona(pkg devtest.P) *MixedOpKonaPreset

func NewSharedMixedOpKonaForConfig

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL