contract

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddContract

func AddContract(name string, deployer ContractDeployer)

func AddressOf

func AddressOf(name string) common.Address

func Deploy

func Deploy(ctx context.Context, name string, network *network.Network) error

func LoadDeployments

func LoadDeployments(network *network.Network) error

func RecordDeployments

func RecordDeployments(network *network.Network) error

func Reset

func Reset()

func Session

func Session(name string) interface{}

Types

type Contract

type Contract struct {
	Address common.Address

	Session interface{} `json:"-"`
	// contains filtered or unexported fields
}

func (*Contract) Deploy

func (c *Contract) Deploy(ctx context.Context, network *network.Network) error

type ContractDeployer

type ContractDeployer interface {
	Deploy(context.Context, *network.Network) (common.Address, *types.Transaction, interface{}, error)
	Bind(context.Context, *network.Network, common.Address) (interface{}, error)
}

Jump to

Keyboard shortcuts

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