Versions in this module Expand all Collapse all v0 v0.23.1 Jul 27, 2018 Changes in this version + const CodeAlreadyProcessed + const CodeAlreadySigned + const CodeNotValidator + const CodeUnknownRequest + const Pending + const Processed + const Timeout + func ErrAlreadyProcessed(codespace sdk.CodespaceType) sdk.Error + func ErrAlreadySigned(codespace sdk.CodespaceType) sdk.Error + func ErrNotValidator(codespace sdk.CodespaceType, address sdk.AccAddress) sdk.Error + func GetInfoKey(p Payload, cdc *wire.Codec) []byte + func GetSignKey(p Payload, signer sdk.AccAddress, cdc *wire.Codec) []byte + func GetSignPrefix(p Payload, cdc *wire.Codec) []byte + type Handler func(ctx sdk.Context, p Payload) sdk.Error + type Info struct + Hash []byte + LastSigned int64 + Power sdk.Rat + Status InfoStatus + func EmptyInfo(ctx sdk.Context) Info + type InfoStatus int8 + type Keeper struct + func NewKeeper(key sdk.KVStoreGetter, cdc *wire.Codec, valset sdk.ValidatorSet, ...) Keeper + func (keeper Keeper) Handle(h Handler, ctx sdk.Context, o Msg, codespace sdk.CodespaceType) sdk.Result + func (keeper Keeper) Info(ctx sdk.Context, p Payload) (res Info) + type Msg struct + Signer sdk.AccAddress + func (msg Msg) GetSignBytes() []byte + func (msg Msg) GetSigners() []sdk.AccAddress + type Payload interface + Type func() string + ValidateBasic func() sdk.Error