querier

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

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

View Source
const (
	QueryValidators                    = "validators"
	QueryValidator                     = "validator"
	QueryDelegatorDelegations          = "delegatorDelegations"
	QueryDelegatorUnbondingDelegations = "delegatorUnbondingDelegations"
	QueryDelegatorRedelegations        = "delegatorRedelegations"
	QueryValidatorDelegations          = "validatorDelegations"
	QueryValidatorUnbondingDelegations = "validatorUnbondingDelegations"
	QueryValidatorRedelegations        = "validatorRedelegations"
	QueryDelegator                     = "delegator"
	QueryDelegation                    = "delegation"
	QueryUnbondingDelegation           = "unbondingDelegation"
	QueryDelegatorValidators           = "delegatorValidators"
	QueryDelegatorValidator            = "delegatorValidator"
	QueryPool                          = "pool"
	QueryParameters                    = "parameters"
)

query endpoints supported by the staking Querier

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k keep.Keeper, cdc *codec.Codec) sdk.Querier

creates a querier for staking REST endpoints

Types

type QueryBondsParams

type QueryBondsParams struct {
	DelegatorAddr sdk.AccAddress
	ValidatorAddr sdk.ValAddress
}

defines the params for the following queries: - 'custom/stake/delegation' - 'custom/stake/unbondingDelegation' - 'custom/stake/delegatorValidator'

func NewQueryBondsParams added in v0.9.0

func NewQueryBondsParams(delegatorAddr sdk.AccAddress, validatorAddr sdk.ValAddress) QueryBondsParams

creates a new QueryBondsParams

type QueryDelegatorParams

type QueryDelegatorParams struct {
	DelegatorAddr sdk.AccAddress
}

defines the params for the following queries: - 'custom/stake/delegatorDelegations' - 'custom/stake/delegatorUnbondingDelegations' - 'custom/stake/delegatorRedelegations' - 'custom/stake/delegatorValidators'

func NewQueryDelegatorParams added in v0.9.0

func NewQueryDelegatorParams(delegatorAddr sdk.AccAddress) QueryDelegatorParams

creates a new QueryDelegatorParams

type QueryValidatorParams

type QueryValidatorParams struct {
	ValidatorAddr sdk.ValAddress
}

defines the params for the following queries: - 'custom/stake/validator' - 'custom/stake/validatorDelegations' - 'custom/stake/validatorUnbondingDelegations' - 'custom/stake/validatorRedelegations'

func NewQueryValidatorParams added in v0.9.0

func NewQueryValidatorParams(validatorAddr sdk.ValAddress) QueryValidatorParams

creates a new QueryValidatorParams

Jump to

Keyboard shortcuts

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