querier

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryValidators                    = "validators"
	QueryValidator                     = "validator"
	QueryDelegatorDelegations          = "delegatorDelegations"
	QueryDelegatorUnbondingDelegations = "delegatorUnbondingDelegations"
	QueryDelegatorRedelegations        = "delegatorRedelegations"
	QueryValidatorUnbondingDelegations = "validatorUnbondingDelegations"
	QueryValidatorRedelegations        = "validatorRedelegations"
	QueryDelegator                     = "delegator"
	QueryDelegation                    = "delegation"
	QueryRedelegation                  = "redelegation"
	QueryUnbondingDelegation           = "unbondingDelegation"
	QueryDelegatorValidators           = "delegatorValidators"
	QueryDelegatorValidator            = "delegatorValidator"
	QueryPool                          = "pool"
	QueryParameters                    = "parameters"
	QueryTopValidators                 = "topValidators"
	QueryAllValidatorsCount            = "allValidatorsCount"
	QueryAllUnJailValidatorsCount      = "allUnJailValidatorsCount"
	QueryCrossStakeInfoByAxcAddress    = "crossStakeInfoByAxcAddress"
)

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

func RequestPrepare

func RequestPrepare(ctx sdk.Context, k keep.Keeper, req abci.RequestQuery, p types.SideChainIder) (newCtx sdk.Context, err sdk.Error)

Types

type BaseParams

type BaseParams struct {
	SideChainId string
}

BaseParams

func NewBaseParams

func NewBaseParams(sideChainId string) BaseParams

func (BaseParams) GetSideChainId

func (p BaseParams) GetSideChainId() string

type QueryBondsParams

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

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

type QueryCrossStakeInfoParams

type QueryCrossStakeInfoParams struct {
	BaseParams
	AxcAddress sdk.SmartChainAddress
}

defines the params for 'custom/stake/crossStakeInfo'

type QueryDelegatorParams

type QueryDelegatorParams struct {
	BaseParams
	DelegatorAddr sdk.AccAddress
}

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

type QueryRedelegationParams

type QueryRedelegationParams struct {
	BaseParams
	DelegatorAddr sdk.AccAddress
	ValSrcAddr    sdk.ValAddress
	ValDstAddr    sdk.ValAddress
}

type QueryTopValidatorsParams

type QueryTopValidatorsParams struct {
	BaseParams
	Top int
}

defines the params for 'custom/stake/topValidators'

type QueryValidatorParams

type QueryValidatorParams struct {
	BaseParams
	ValidatorAddr sdk.ValAddress
}

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

Jump to

Keyboard shortcuts

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