tron2

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(c *config.Chain, x *xlog.XLog, store collect.StoreTaskInterface, nodeId string, transferTopic string) collect.BlockChainInterface

Types

type Service

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

func (*Service) CheckAddress

func (s *Service) CheckAddress(txValue []byte, monitorAddress map[string]int64) bool

func (*Service) GetBlockByHash

func (s *Service) GetBlockByHash(blockHash string, eLog *logrus.Entry, flag bool) (*collect.BlockInterface, []*collect.TxInterface)

func (*Service) GetBlockByNumber

func (s *Service) GetBlockByNumber(blockNumber string, eLog *logrus.Entry, flag bool) (*collect.BlockInterface, []*collect.TxInterface)

func (*Service) GetMultiBlockByNumber

func (s *Service) GetMultiBlockByNumber(blockNumber string, log *logrus.Entry, flag bool) ([]*collect.BlockInterface, []*collect.TxInterface)

func (*Service) GetReceipt

func (s *Service) GetReceipt(txHash string, eLog *logrus.Entry) (*collect.ReceiptInterface, error)

func (*Service) GetReceiptByBlock

func (s *Service) GetReceiptByBlock(blockHash, number string, eLog *logrus.Entry) ([]*collect.ReceiptInterface, error)

func (*Service) GetTx

func (s *Service) GetTx(txHash string, eLog *logrus.Entry) *collect.TxInterface

func (*Service) Monitor

func (s *Service) Monitor()

Jump to

Keyboard shortcuts

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