local

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	*local.Source
	// contains filtered or unexported fields
}

Source implements stakingsource.Source using a local node

func NewSource

func NewSource(source *local.Source, querier stakingtypes.QueryServer) *Source

NewSource returns a new Source instance

func (Source) GetDelegationsWithPagination

func (s Source) GetDelegationsWithPagination(height int64, delegator string, pagination *query.PageRequest) (*stakingtypes.QueryDelegatorDelegationsResponse, error)

GetDelegationsWithPagination implements stakingsource.Source

func (Source) GetParams

func (s Source) GetParams(height int64) (stakingtypes.Params, error)

GetParams implements stakingsource.Source

func (Source) GetPool

func (s Source) GetPool(height int64) (stakingtypes.Pool, error)

GetPool implements stakingsource.Source

func (Source) GetRedelegations

GetRedelegations implements stakingsource.Source

func (Source) GetUnbondingDelegations

func (s Source) GetUnbondingDelegations(height int64, delegator string, pagination *query.PageRequest) (*stakingtypes.QueryDelegatorUnbondingDelegationsResponse, error)

GetUnbondingDelegations implements stakingsource.Source

func (Source) GetUnbondingDelegationsFromValidator

func (s Source) GetUnbondingDelegationsFromValidator(
	height int64, validator string, pagination *query.PageRequest,
) (*stakingtypes.QueryValidatorUnbondingDelegationsResponse, error)

GetUnbondingDelegationsFromValidator implements stakingsource.Source

func (Source) GetValidator

func (s Source) GetValidator(height int64, valOper string) (stakingtypes.Validator, error)

GetValidator implements stakingsource.Source

func (Source) GetValidatorDelegationsWithPagination

func (s Source) GetValidatorDelegationsWithPagination(
	height int64, validator string, pagination *query.PageRequest,
) (*stakingtypes.QueryValidatorDelegationsResponse, error)

GetValidatorDelegationsWithPagination implements stakingsource.Source

func (Source) GetValidatorsWithStatus

func (s Source) GetValidatorsWithStatus(height int64, status string) ([]stakingtypes.Validator, error)

GetValidatorsWithStatus implements stakingsource.Source

Jump to

Keyboard shortcuts

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