wasm

package
v0.0.0-...-7205676 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 GridironQuery

type GridironQuery struct {
	PoEContractAddress *PoEContractAddressQuery `json:"poe_contract_address,omitempty"`
	ValidatorVotes     *struct{}                `json:"validator_votes,omitempty"`
}

type PoEContractAddressQuery

type PoEContractAddressQuery struct {
	ContractType string `json:"contract_type"`
}

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
}

Jump to

Keyboard shortcuts

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