ethdeploy

package
v1.27.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: LGPL-3.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployContract

func DeployContract(auth *bind.TransactOpts, backend bind.ContractBackend, contractABI, contractBytecodeHex string, contractConstructorArgs ...interface{}) (common.Address, *types.Transaction, *bind.BoundContract, error)

Types

type Deployer

type Deployer struct {
	Provider *ethrpc.Provider
}

func NewDeployer

func NewDeployer(provider *ethrpc.Provider) *Deployer

func (*Deployer) DeployContract

func (d *Deployer) DeployContract(ctx context.Context, wallet *ethwallet.Wallet, contractABI, contractBytecodeHex string, contractConstructorArgs ...interface{}) (common.Address, *types.Transaction, *bind.BoundContract, error)

TODO: accept optional *TransactOpts argument, can be nil and we'll populate ourselves or make our own structs like DeployOpts with nonce, gasPrice and gasLimit

Jump to

Keyboard shortcuts

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