contract

package
v0.0.0-...-3f23628 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 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