ingest

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: LGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProposalStatusExecuted = 5
)

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, cfg config.ContractsRegistry) *contracts.Registry

Types

type Notifier

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

type Provider added in v1.1.0

type Provider interface {
	GetStatus(opts *bind.CallOpts, _id *big.Int) (uint8, error)
	GetProposal(opts *bind.CallOpts, _id *big.Int) (generated.IVotingBaseProposal, error)
	GetProposalStats(opts *bind.CallOpts, _proposalId *big.Int) (generated.IVotingVotingStats, error)
}

type Service

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

Service ingests history.

func New

func New(ctx context.Context, 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 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