node_utils

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT, MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 GetNodeRPCEndpoint

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

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 RollupWS added in v1.20.1

func RollupWS(t devtest.T, node *dsl.L2CLNode) *sources.RollupClient

RollupWS exercises ordinary rollup RPC methods over the WebSocket transport.

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