remote

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 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 {
	*remote.Source
	// contains filtered or unexported fields
}

Source implements distrsource.Source querying the data from a remote node

func NewSource

func NewSource(source *remote.Source, distrClient distrtypes.QueryClient) *Source

NewSource returns a new Source instace

func (Source) CommunityPool

func (s Source) CommunityPool(height int64) (sdk.DecCoins, error)

CommunityPool implements distrsource.Source

func (Source) DelegatorTotalRewards

func (s Source) DelegatorTotalRewards(delegator string, height int64) ([]distrtypes.DelegationDelegatorReward, error)

DelegatorTotalRewards implements distrsource.Source

func (Source) DelegatorWithdrawAddress

func (s Source) DelegatorWithdrawAddress(delegator string, height int64) (string, error)

DelegatorWithdrawAddress implements distrsource.Source

func (Source) Params

func (s Source) Params(height int64) (distrtypes.Params, error)

Params implements distrsource.Source

func (Source) ValidatorCommission

func (s Source) ValidatorCommission(valOperAddr string, height int64) (sdk.DecCoins, error)

ValidatorCommission implements distrsource.Source

Jump to

Keyboard shortcuts

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