remote

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 6 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 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