ponpool

package
v0.0.0-...-7a2e46d Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuilderRequest      = "{\"query\":\"{\\n  builders(first:1000){\\n    id\\n    status\\n    balanceStaked\\n  }\\n}\",\"variables\":{}}"
	ProposerRequest     = "{\"query\":\"{\\n  proposers(first:1000){\\n    id\\n    status\\n    reportCount\\n  }\\n}\",\"variables\":{}}"
	ReporterRequest     = "{\"query\":\"{\\n  reporters(first:1000){\\n    id\\n    active\\n    numberOfReports\\n  }\\n}\",\"variables\":{}}"
	BuilderStakeRequest = "{\"query\":\"\\n{globalValue(id: \\\"1\\\") { builderMinimumStake }}\",\"variables\":{}}"
)

Functions

This section is empty.

Types

type PonRegistrySubgraph

type PonRegistrySubgraph struct {
	Client  http.Client
	URL     string
	API_KEY string
}

func NewPonPool

func NewPonPool(url string, apiKey string) *PonRegistrySubgraph

func (*PonRegistrySubgraph) GetBuilders

func (*PonRegistrySubgraph) GetReporters

func (s *PonRegistrySubgraph) GetReporters() ([]ponPoolTypes.Reporter, error)

func (*PonRegistrySubgraph) GetValidators

func (s *PonRegistrySubgraph) GetValidators() ([]ponPoolTypes.Validator, error)

Jump to

Keyboard shortcuts

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