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