forwarders

package
v1.6.0-debug-vrfv1-rin... Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewORM

func NewORM(db *sqlx.DB, lggr logger.Logger, cfg pg.LogConfig) *orm

Types

type Forwarder

type Forwarder struct {
	ID         int64
	Address    common.Address
	EVMChainID utils.Big
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

Forwarder is the struct for Forwarder Addresses

type FwdMgr added in v1.5.0

type FwdMgr struct {
	utils.StartStopOnce
	ORM ORM
	// contains filtered or unexported fields
}

func NewFwdMgr added in v1.5.0

func NewFwdMgr(db *sqlx.DB, client evmclient.Client, logpoller evmlogpoller.LogPoller, l logger.Logger, cfg pg.LogConfig) *FwdMgr

func (*FwdMgr) MaybeForwardTransaction added in v1.5.0

func (f *FwdMgr) MaybeForwardTransaction(from common.Address, to common.Address, encodedPayload []byte) (fwdAddr common.Address, fwdPayload []byte, err error)

func (*FwdMgr) Start added in v1.5.0

func (f *FwdMgr) Start() error

Start starts Forwarder Manager.

func (*FwdMgr) Stop added in v1.5.0

func (f *FwdMgr) Stop() error

Stop cancels all outgoings calls and stops internal ticker loop.

type ORM

type ORM interface {
	CreateForwarder(addr common.Address, evmChainId utils.Big) (fwd Forwarder, err error)
	FindForwarders(offset, limit int) ([]Forwarder, int, error)
	FindForwardersByChain(evmChainId utils.Big) ([]Forwarder, error)
	DeleteForwarder(id int32) error
	FindForwardersInListByChain(evmChainId utils.Big, addrs []common.Address) ([]Forwarder, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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