immutables

package
v0.0.0-...-de38b6f Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Name string
}

TODO(tynes): we are planning on making some constructor arguments into immutables before the final deployment of the system. This means that this struct will need to be updated with an additional parameter: Args []interface{}{} and each step will need to typecast each argument before doing the simulated deployment

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 Build

func Build(deployments []Deployment) (DeploymentResults, error)

Build 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.

func BuildOptimism

func BuildOptimism() (DeploymentResults, error)

TODO(tynes): once there are deploy time config params, pass in a config struct to this function that comes from a JSON file/cli flags and then populate the Deployment Args.

Jump to

Keyboard shortcuts

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