immutables

package
v1.0.3-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentResults

type DeploymentResults map[string]hexutil.Bytes

DeploymentResults represents the output of deploying each of the contracts so that the immutables can be set properly in the bytecode.

func BuildKroma

func BuildKroma(immutable ImmutableConfig, zktrie bool) (DeploymentResults, error)

BuildKroma will deploy the L2 predeploys so that their immutables are set correctly.

func BuildL2

func BuildL2(constructors []deployer.Constructor, zktrie bool) (DeploymentResults, error)

BuildL2 will deploy contracts to a simulated backend so that their immutables can be properly set. The bytecode returned in the results is suitable to be inserted into the state via state surgery.

type ImmutableConfig

type ImmutableConfig map[string]ImmutableValues

ImmutableConfig represents the immutable configuration for the L2 predeploy contracts.

func (ImmutableConfig) Check

func (i ImmutableConfig) Check() error

Check does a sanity check that the specific values that Kroma uses are set inside of the ImmutableConfig.

type ImmutableValues

type ImmutableValues map[string]any

ImmutableValues represents the values to be set in immutable code. The key is the name of the variable and the value is the value to set in immutable code.

Jump to

Keyboard shortcuts

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