remote

package
v0.0.0-...-b9e5fcc Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 5 Imported by: 0

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) GetDelegation

func (s Source) GetDelegation(height int64, delegator string, valOperAddr string) (stakingtypes.DelegationResponse, error)

GetDelegation implements stakingsource.Source

func (Source) GetDelegatorDelegations

func (s Source) GetDelegatorDelegations(height int64, delegator string) ([]stakingtypes.DelegationResponse, error)

GetDelegatorDelegations 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) GetValidator

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

GetValidator implements stakingsource.Source

func (Source) GetValidatorDelegations

func (s Source) GetValidatorDelegations(height int64, validator string) ([]stakingtypes.DelegationResponse, error)

GetValidatorDelegations 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