ingest

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: LGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OldExpired  Status = 2
	OldExecuted        = 3
	NewExecuted        = 5
	NewExpired         = 7
)
View Source
const (
	PROPOSAS_STATUS_EXECUTED = 3
)

Variables

View Source
var VotingEvents = map[string]int64{
	"qTokenHolderVote": 0,
	"rootNodeVote":     1,
	"rootNodeProposal": 2,
}

Functions

func NewContractsRegistry added in v1.0.0

func NewContractsRegistry(client *ethclient.Client, chainID *big.Int) *contracts.Registry

Types

type Notifier

type Notifier interface {
	NewTransaction(tx *data.Transaction)
	NewPayment(pmnt *data.Payment)
	SendNotifications(timestamp int64) error
}

type Service

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

Service ingests history.

func New

func New(cfg config.Config) (*Service, error)

New Service.

func (*Service) GetStartBlockByEvent added in v1.0.0

func (s *Service) GetStartBlockByEvent(voteOrProposal int64, votingType string) (int64, error)

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Run service.

type Status added in v1.0.0

type Status uint8

type SystemContract added in v1.0.0

type SystemContract struct {
	Contract       common.Address
	Implementation common.Address
	Key            string
}

type SystemContracts added in v1.0.0

type SystemContracts []SystemContract

Jump to

Keyboard shortcuts

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