kt

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatcherParams

type BatcherParams struct {
	Image string `yaml:"image"`
}

BatcherParams represents batcher-specific parameters

type ChainConfig

type ChainConfig struct {
	Participants     []ParticipantConfig `yaml:"participants"`
	NetworkParams    NetworkParams       `yaml:"network_params"`
	BatcherParams    BatcherParams       `yaml:"batcher_params"`
	ChallengerParams ChallengerParams    `yaml:"challenger_params"`
	ProposerParams   ProposerParams      `yaml:"proposer_params"`
}

ChainConfig represents a single chain configuration

type ChallengerParams

type ChallengerParams struct {
	Image              string `yaml:"image"`
	CannonPrestatesURL string `yaml:"cannon_prestates_url,omitempty"`
}

ChallengerParams represents challenger-specific parameters

type EthereumNetworkParams

type EthereumNetworkParams struct {
	Preset                       string `yaml:"preset"`
	GenesisDelay                 int    `yaml:"genesis_delay"`
	AdditionalPreloadedContracts string `yaml:"additional_preloaded_contracts"`
}

EthereumNetworkParams represents Ethereum network parameters

type EthereumPackage

type EthereumPackage struct {
	NetworkParams EthereumNetworkParams `yaml:"network_params"`
}

EthereumPackage represents Ethereum-specific configuration

type KurtosisParams

type KurtosisParams struct {
	OptimismPackage OptimismPackage `yaml:"optimism_package"`
	EthereumPackage EthereumPackage `yaml:"ethereum_package"`
}

KurtosisParams represents the top-level Kurtosis configuration

type KurtosisVisitor

type KurtosisVisitor struct {
	// contains filtered or unexported fields
}

KurtosisVisitor implements the manifest.ManifestVisitor interface

func NewKurtosisVisitor

func NewKurtosisVisitor() *KurtosisVisitor

NewKurtosisVisitor creates a new KurtosisVisitor

func (*KurtosisVisitor) BuildKurtosisParams

func (v *KurtosisVisitor) BuildKurtosisParams(l2 *l2Visitor)

BuildKurtosisParams builds the final Kurtosis parameters from the collected visitor data

func (*KurtosisVisitor) GetParams

func (v *KurtosisVisitor) GetParams() *KurtosisParams

GetParams returns the generated Kurtosis parameters

func (*KurtosisVisitor) VisitL1

func (v *KurtosisVisitor) VisitL1() manifest.ChainVisitor

func (*KurtosisVisitor) VisitL2

func (v *KurtosisVisitor) VisitL2() manifest.L2Visitor

func (*KurtosisVisitor) VisitName

func (v *KurtosisVisitor) VisitName(name string)

func (*KurtosisVisitor) VisitType

func (v *KurtosisVisitor) VisitType(manifestType string)

type NetworkParams

type NetworkParams struct {
	Network         string `yaml:"network"`
	NetworkID       string `yaml:"network_id"`
	SecondsPerSlot  int    `yaml:"seconds_per_slot"`
	Name            string `yaml:"name"`
	FundDevAccounts bool   `yaml:"fund_dev_accounts"`
	TimeOffsets     `yaml:",inline"`
}

NetworkParams represents network-specific parameters

type OpContractDeployerParams

type OpContractDeployerParams struct {
	Image              string `yaml:"image"`
	L1ArtifactsLocator string `yaml:"l1_artifacts_locator"`
	L2ArtifactsLocator string `yaml:"l2_artifacts_locator"`
}

OpContractDeployerParams represents contract deployer parameters

type OptimismPackage

type OptimismPackage struct {
	Chains                   []ChainConfig            `yaml:"chains"`
	OpContractDeployerParams OpContractDeployerParams `yaml:"op_contract_deployer_params"`
	Persistent               bool                     `yaml:"persistent"`
}

OptimismPackage represents the Optimism-specific configuration

type Overrides

type Overrides struct {
	SecondsPerSlot int `yaml:"seconds_per_slot"`
	TimeOffsets    `yaml:",inline"`
}

Overrides represents deployment overrides

type ParticipantConfig

type ParticipantConfig struct {
	ElType  string `yaml:"el_type"`
	ElImage string `yaml:"el_image"`
	ClType  string `yaml:"cl_type"`
	ClImage string `yaml:"cl_image"`
	Count   int    `yaml:"count"`
}

ParticipantConfig represents a participant in the network

type ProposerParams

type ProposerParams struct {
	Image            string `yaml:"image"`
	GameType         int    `yaml:"game_type"`
	ProposalInterval string `yaml:"proposal_interval"`
}

ProposerParams represents proposer-specific parameters

type TimeOffsets

type TimeOffsets map[string]int

TimeOffsets represents a map of time offset values

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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