contracts

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustGetABI

func MustGetABI(json string) abi.ABI

func NewFlagsDecodingLogListener

func NewFlagsDecodingLogListener(
	contract *Flags,
	innerListener log.Listener,
) log.Listener

Types

type ConnectedContract

type ConnectedContract interface {
	eth.ContractCodec
	Call(result interface{}, methodName string, args ...interface{}) error
	SubscribeToLogs(listener log.Listener) (connected bool, _ UnsubscribeFunc)
}

func NewConnectedContract

func NewConnectedContract(
	codec eth.ContractCodec,
	address common.Address,
	ethClient eth.Client,
	logBroadcaster log.Broadcaster,
) ConnectedContract

type Flags

type Flags struct {
	Address common.Address
	flags_wrapper.Flags
}

func NewFlagsContract

func NewFlagsContract(address common.Address, backend bind.ContractBackend) (*Flags, error)

type UnsubscribeFunc

type UnsubscribeFunc func()

Jump to

Keyboard shortcuts

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