Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BlockEvent ¶
type Config ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(options ...ServiceOption) *Service
func (*Service) RegisterBlockEventListen ¶
func (w *Service) RegisterBlockEventListen(handler BlockEvent)
func (*Service) RegisterTransactionEventListen ¶
func (w *Service) RegisterTransactionEventListen(handler TransactionEvent)
type ServiceOption ¶
type ServiceOption func(s *Service)
func SetLastStateTo ¶
func SetLastStateTo(newState int64) ServiceOption
func WithAddressManager ¶
func WithAddressManager(pool *address.Manager) ServiceOption
func WithClient ¶
func WithClient(client types.ChainClient) ServiceOption
func WithConfigStorage ¶
func WithConfigStorage(storage storage.BinStorage) ServiceOption
func WithStateStorage ¶
func WithStateStorage(storage storage.BinStorage) ServiceOption
type TransactionEvent ¶
type TransactionEvent func(transactionInfo *types.TransferInfo)
Click to show internal directories.
Click to hide internal directories.