chain

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLOCKNUM = "blockNum"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BNBListener

type BNBListener struct {
	// contains filtered or unexported fields
}

func (*BNBListener) Accept

func (bl *BNBListener) Accept(fromAddr, toAddr string) bool

func (*BNBListener) AttachObserver

func (bl *BNBListener) AttachObserver(observer cache.Observer)

func (*BNBListener) NewBlockFilter

func (bl *BNBListener) NewBlockFilter() error

func (*BNBListener) Notify

func (bl *BNBListener) Notify(event interface{})

func (*BNBListener) SingleBlockFilter

func (bl *BNBListener) SingleBlockFilter(height *big.Int) error

type BscListener

type BscListener struct {
	// contains filtered or unexported fields
}

func NewBscListener

func NewBscListener() (*BscListener, error)

func (*BscListener) Run

func (bl *BscListener) Run()

type ERC20Listener

type ERC20Listener struct {
	// contains filtered or unexported fields
}

func (*ERC20Listener) Accept

func (e *ERC20Listener) Accept(fromAddr, toAddr string) bool

func (*ERC20Listener) AttachObserver

func (e *ERC20Listener) AttachObserver(observer cache.Observer)

func (*ERC20Listener) NewEventFilter

func (el *ERC20Listener) NewEventFilter(contractAddr string) error

func (*ERC20Listener) Notify

func (e *ERC20Listener) Notify(event interface{})

type ERC721Listener

type ERC721Listener struct {
	// contains filtered or unexported fields
}

func (*ERC721Listener) Accept

func (e *ERC721Listener) Accept(fromAddr, toAddr string) bool

func (*ERC721Listener) AttachObserver

func (e *ERC721Listener) AttachObserver(observer cache.Observer)

func (*ERC721Listener) NewEventFilter

func (el *ERC721Listener) NewEventFilter() error

func (*ERC721Listener) Notify

func (e *ERC721Listener) Notify(event interface{})

type ErrMsg

type ErrMsg struct {
	// contains filtered or unexported fields
}

type Listener

type Listener interface {
	TxFilter
	// contains filtered or unexported methods
}

type TxFilter

type TxFilter interface {
	Accept(fromAddr, toAddr string) bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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