Documentation
¶
Index ¶
- Constants
- func DataToBigInt(vLog ethtypes.Log, index int64) *big.Int
- func DataToString(vLog ethtypes.Log, index int64) string
- func TopicToAddress(vLog ethtypes.Log, index int64) common.Address
- func TopicToHash(vLog ethtypes.Log, index int64) common.Hash
- type DepositEvent
- type IndexerService
- type WithdrawEvent
Constants ¶
View Source
const ( IndexerServiceName = "RollupIndexerService" WaitHandleTime = 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DepositEvent ¶
type IndexerService ¶
type IndexerService struct { service.BaseService // contains filtered or unexported fields }
IndexerService indexes transactions for json-rpc service.
func NewIndexerService ¶
func NewIndexerService( ethCli *ethclient.Client, config *config.BitcoinConfig, db *gorm.DB, log log.Logger, ) *IndexerService
NewIndexerService returns a new service instance.
func (*IndexerService) OnStart ¶
func (bis *IndexerService) OnStart() error
OnStart implements service.Service by subscribing for new blocks and indexing them by events.
Click to show internal directories.
Click to hide internal directories.