Documentation ¶
Index ¶
- func CustomQuerier(poeKeeper ViewKeeper) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)
- func StakingQuerier(poeKeeper ViewKeeper) func(ctx sdk.Context, request *wasmvmtypes.StakingQuery) ([]byte, error)
- type ContractAddrResponse
- type PoEContractAddressQuery
- type TgradeQuery
- type ValidatorVote
- type ValidatorVotesResponse
- type ViewKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomQuerier ¶
func CustomQuerier(poeKeeper ViewKeeper) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)
func StakingQuerier ¶
func StakingQuerier(poeKeeper ViewKeeper) func(ctx sdk.Context, request *wasmvmtypes.StakingQuery) ([]byte, error)
Types ¶
type ContractAddrResponse ¶
type ContractAddrResponse struct {
Addr sdk.AccAddress `json:"address"`
}
type PoEContractAddressQuery ¶
type PoEContractAddressQuery struct {
ContractType string `json:"contract_type"`
}
type TgradeQuery ¶
type TgradeQuery struct { PoEContractAddress *PoEContractAddressQuery `json:"poe_contract_address,omitempty"` ValidatorVotes *struct{} `json:"validator_votes,omitempty"` }
type ValidatorVote ¶
type ValidatorVote struct { Addr sdk.AccAddress `json:"address"` Power uint64 `json:"power"` Voted bool `json:"voted"` }
type ValidatorVotesResponse ¶
type ValidatorVotesResponse struct {
Votes []ValidatorVote `json:"votes"`
}
type ViewKeeper ¶
type ViewKeeper interface { GetBondDenom(ctx sdk.Context) string DistributionContract(ctx sdk.Context) keeper.DistributionContract ValsetContract(ctx sdk.Context) keeper.ValsetContract StakeContract(ctx sdk.Context) keeper.StakeContract GetPoEContractAddress(ctx sdk.Context, ctype types.PoEContractType) (sdk.AccAddress, error) GetValidatorVotes() []abcitypes.VoteInfo }
Click to show internal directories.
Click to hide internal directories.