v0.0.8 Latest Latest

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

Go to latest
Published: Oct 3, 2019 License: AGPL-3.0 Imports: 5 Imported by: 11




This section is empty.


This section is empty.


This section is empty.


type Event

type Event struct {
	Name      string
	Anonymous bool
	Fields    []Field

func NewEvent

func NewEvent(e abi.Event) Event

Unpack abi.Event into our custom Event struct

func (Event) Sig

func (e Event) Sig() common.Hash

type Field

type Field struct {
	abi.Argument        // Name, Type, Indexed
	PgType       string // Holds type used when committing data held in this field to postgres

type Log

type Log struct {
	Id     int64             // VulcanizeIdLog for full sync and header ID for header sync contract watcher
	Values map[string]string // Map of event input names to their values

	// Used for full sync only
	Block int64
	Tx    string

	// Used for headerSync only
	LogIndex         uint
	TransactionIndex uint
	Raw              []byte // json.Unmarshalled byte array of geth/core/types.Log{}

Struct to hold instance of an event log data

type Method

type Method struct {
	Name   string
	Const  bool
	Args   []Field
	Return []Field

func NewMethod

func NewMethod(m abi.Method) Method

Unpack abi.Method into our custom Method struct

func (Method) Sig

func (m Method) Sig() common.Hash

type Mode

type Mode int
const (
	HeaderSync Mode = iota

func (Mode) IsValid

func (mode Mode) IsValid() bool

func (Mode) MarshalText

func (mode Mode) MarshalText() ([]byte, error)

func (Mode) String

func (mode Mode) String() string

func (*Mode) UnmarshalText

func (mode *Mode) UnmarshalText(text []byte) error

type Result

type Result struct {
	Inputs []interface{} // Will only use addresses
	Output interface{}
	PgType string // Holds output pg type
	Block  int64

Struct to hold instance of result from method call with given inputs and block

Jump to

Keyboard shortcuts

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