subgraph

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoPath                   = "/info"
	GenerateSignaturePath      = "/validator-registration"
	BatchGenerateSignaturePath = "/batch-validator-registration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaQuery

type MetaQuery struct {
	Meta struct {
		HasIndexingErrors bool
		Block             struct {
			Number int
			Hash   string
		}
	} `graphql:"_meta"`
}

type NodeRunnerByIdsQuery

type NodeRunnerByIdsQuery struct {
	NodeRunners []struct {
		Id            common.Address
		BlsPublicKeys []struct {
			Id phase0.BLSPubKey
		} `graphql:"blsPublicKeys (skip: $skip_validators, first: $limit_validators)"`
	} `graphql:"nodeRunners(where: {id_in: $ids}, first: 1000)"`
}

type SubgraphService

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

func NewSubgraphService

func NewSubgraphService() *SubgraphService

func (*SubgraphService) Configure

func (s *SubgraphService) Configure(url *url.URL) error

func (*SubgraphService) ConnectedChainId

func (s *SubgraphService) ConnectedChainId() *big.Int

no need to lock as the setConfiguredChainID is called before the service is used

func (*SubgraphService) GetValidatorsByRepresentative

func (s *SubgraphService) GetValidatorsByRepresentative(representatives []common.Address, limit uint64) (response NodeRunnerByIdsQuery, err error)

func (*SubgraphService) MetaInfo

func (s *SubgraphService) MetaInfo() (response MetaQuery, err error)

func (*SubgraphService) SetConnectedChainID

func (s *SubgraphService) SetConnectedChainID(chainID *big.Int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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