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 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"`
}
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) }
Click to show internal directories.
Click to hide internal directories.