genesis

package
v0.0.0-...-0e75302 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildCommand = map[string]string{
	"pnpm": "pnpm install --no-frozen-lockfile",
	"yarn": "yarn install --no-frozen-lockfile",
}
View Source
var GenesisCreationCommand = map[string]GeneratorFn{
	"opnode1": opnode1,
	"opnode2": opnode2,
	"forge1":  forge1,
}

GenesisCreationCommand stores various functions which return a command, encoded as a string, which can be used to generate the Genesis.allocs object at some historical commit or range of commits in the github.com/ethereum-optimism/optimism repo. For example, the command may be an op-node subcommand invocation, or a Foundry script invocation. The invocation has changed over time, including the format of the inputs specified in the command line arguments.

View Source
var ValidationInputs map[uint64]ValidationMetadata

Functions

This section is empty.

Types

type GeneratorFn

type GeneratorFn func(uint64, string) string

type ValidationMetadata

type ValidationMetadata struct {
	GenesisCreationCommit  string `toml:"genesis_creation_commit"` // in https://github.com/ethereum-optimism/optimism/
	NodeVersion            string `toml:"node_version"`
	MonorepoBuildCommand   string `toml:"monorepo_build_command"`
	GenesisCreationCommand string `toml:"genesis_creation_command"`
}

Jump to

Keyboard shortcuts

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