Documentation
¶
Index ¶
Constants ¶
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 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 ¶
func (c *PrestateBuilderClient) BuildPrestate(ctx context.Context, opts ...PrestateBuilderOption) (PrestateManifest, error)
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 ¶
PrestateManifest maps prestate identifiers to their hashes