deployer

package
v0.0.0-...-eb934a0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChainID = big.NewInt(1337)

ChainID is the chain id used for simulated backends

View Source
var TestAddress = crypto.PubkeyToAddress(TestKey.PublicKey)
View Source
var TestKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")

TestKey is the same test key that geth uses

Functions

func NewBackend

func NewBackend() *backends.SimulatedBackend

func NewBackendWithGenesisTimestamp

func NewBackendWithGenesisTimestamp(ts uint64) *backends.SimulatedBackend

Types

type Constructor

type Constructor struct {
	Name string
	Args []interface{}
}

type Deployment

type Deployment struct {
	Name     string
	Bytecode hexutil.Bytes
	Address  common.Address
}

func Deploy

func Deploy(backend *backends.SimulatedBackend, constructors []Constructor, cb Deployer) ([]Deployment, error)

Jump to

Keyboard shortcuts

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