remote

package
v2.0.2-stargate Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

Source implements stakingsource.Source using a remote node

func NewSource

func NewSource(source *remote.Source, stakingClient stakingtypes.QueryClient) *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