prestate

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InteropDepSetName = "depsets.json"
)

These constants should be in sync with op-program/chainconfig/chaincfg.go

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency added in v1.13.0

type Dependency struct {
	ChainIndex     uint32 `json:"chainIndex"`
	ActivationTime uint64 `json:"activationTime"`
	HistoryMinTime uint64 `json:"historyMinTime"`
}

type DependencySet added in v1.13.0

type DependencySet struct {
	Dependencies map[string]Dependency `json:"dependencies"`
}

func RenderInteropDepSet added in v1.13.0

func RenderInteropDepSet(chains []string) DependencySet

type FileInput

type FileInput struct {
	Name    string    // Name of the file (used for identification)
	Content io.Reader // Content of the file
	Type    string    // Type information (e.g., "rollup-config", "genesis-config", "interop")
}

FileInput represents a file to be used in the build process

type PrestateBuilderClient

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

PrestateBuilderClient is a client for the prestate builder service

func NewPrestateBuilderClient

func NewPrestateBuilderClient(url string) *PrestateBuilderClient

NewPrestateBuilderClient creates a new client for the prestate builder service

func (*PrestateBuilderClient) BuildPrestate

BuildPrestate sends the files to the prestate builder service and returns a manifest of the built prestates

type PrestateBuilderOption

type PrestateBuilderOption func(*buildContext)

PrestateBuilderOption is a functional option for configuring a build

func WithChainConfig

func WithChainConfig(chainId string, rollupContent io.Reader, genesisContent io.Reader) PrestateBuilderOption

WithChainConfig adds a pair of rollup and genesis config files to the build

func WithGeneratedInteropDepSet

func WithGeneratedInteropDepSet() PrestateBuilderOption

func WithInteropDepSet

func WithInteropDepSet(content io.Reader) PrestateBuilderOption

WithInteropDepSet adds an interop dependency set file to the build

type PrestateManifest

type PrestateManifest map[string]string

PrestateManifest maps prestate identifiers to their hashes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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