Versions in this module Expand all Collapse all v0 v0.1.1 Sep 19, 2018 v0.1.0 Aug 15, 2018 Changes in this version + var TestAccountKVStoreKey = sdk.NewKVStoreKey("account") + var TestGlobalKVStoreKey = sdk.NewKVStoreKey("global") + var TestParamKVStoreKey = sdk.NewKVStoreKey("param") + var TestValidatorKVStoreKey = sdk.NewKVStoreKey("validator") + var TestVoteKVStoreKey = sdk.NewKVStoreKey("vote") + func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, vm ValidatorManager) (panelty types.Coin) + func ErrAccountNotFound() sdk.Error + func ErrIllegalWithdraw() sdk.Error + func ErrInsufficientDeposit() sdk.Error + func ErrInvalidCoin() sdk.Error + func ErrInvalidUsername() sdk.Error + func ErrInvalidWebsite() sdk.Error + func ErrUnbalancedAccount() sdk.Error + func ErrValidatorPubKeyAlreadyExist() sdk.Error + func FindAccountInList(me types.AccountKey, lst []types.AccountKey) int + func InitGlobalManager(ctx sdk.Context, gm global.GlobalManager) error + func NewHandler(am acc.AccountManager, valManager ValidatorManager, ...) sdk.Handler + func RegisterWire(cdc *wire.Codec) + type ValidatorDepositMsg struct + Deposit types.LNO + Link string + Username types.AccountKey + ValPubKey crypto.PubKey + func NewValidatorDepositMsg(validator string, deposit types.LNO, pubKey crypto.PubKey, link string) ValidatorDepositMsg + func (msg ValidatorDepositMsg) GetConsumeAmount() types.Coin + func (msg ValidatorDepositMsg) GetPermission() types.Permission + func (msg ValidatorDepositMsg) GetSignBytes() []byte + func (msg ValidatorDepositMsg) GetSigners() []sdk.AccAddress + func (msg ValidatorDepositMsg) String() string + func (msg ValidatorDepositMsg) Type() string + func (msg ValidatorDepositMsg) ValidateBasic() sdk.Error + type ValidatorManager struct + func NewValidatorManager(key sdk.StoreKey, holder param.ParamHolder) ValidatorManager + func (vm ValidatorManager) AdjustValidatorList(ctx sdk.Context) sdk.Error + func (vm ValidatorManager) Deposit(ctx sdk.Context, username types.AccountKey, coin types.Coin, link string) sdk.Error + func (vm ValidatorManager) DoesValidatorExist(ctx sdk.Context, accKey types.AccountKey) bool + func (vm ValidatorManager) FireIncompetentValidator(ctx sdk.Context, byzantineValidators []abci.Evidence) (types.Coin, sdk.Error) + func (vm ValidatorManager) GetUpdateValidatorList(ctx sdk.Context) ([]abci.Validator, sdk.Error) + func (vm ValidatorManager) GetValidatorDeposit(ctx sdk.Context, accKey types.AccountKey) (types.Coin, sdk.Error) + func (vm ValidatorManager) GetValidatorList(ctx sdk.Context) (*model.ValidatorList, sdk.Error) + func (vm ValidatorManager) InitGenesis(ctx sdk.Context) error + func (vm ValidatorManager) IsBalancedAccount(ctx sdk.Context, accKey types.AccountKey, votingDeposit types.Coin) bool + func (vm ValidatorManager) IsLegalWithdraw(ctx sdk.Context, username types.AccountKey, coin types.Coin) bool + func (vm ValidatorManager) PunishOncallValidator(ctx sdk.Context, username types.AccountKey, penalty types.Coin, ...) (types.Coin, sdk.Error) + func (vm ValidatorManager) PunishValidatorsDidntVote(ctx sdk.Context, penaltyList []types.AccountKey) (types.Coin, sdk.Error) + func (vm ValidatorManager) RegisterValidator(ctx sdk.Context, username types.AccountKey, pubKey crypto.PubKey, ...) sdk.Error + func (vm ValidatorManager) RemoveValidatorFromAllLists(ctx sdk.Context, username types.AccountKey) sdk.Error + func (vm ValidatorManager) SetValidatorList(ctx sdk.Context, lst *model.ValidatorList) sdk.Error + func (vm ValidatorManager) TryBecomeOncallValidator(ctx sdk.Context, username types.AccountKey) sdk.Error + func (vm ValidatorManager) UpdateSigningValidator(ctx sdk.Context, signingValidators []abci.SigningValidator) sdk.Error + func (vm ValidatorManager) ValidatorWithdraw(ctx sdk.Context, username types.AccountKey, coin types.Coin) sdk.Error + func (vm ValidatorManager) ValidatorWithdrawAll(ctx sdk.Context, username types.AccountKey) (types.Coin, sdk.Error) + type ValidatorRevokeMsg struct + Username types.AccountKey + func NewValidatorRevokeMsg(validator string) ValidatorRevokeMsg + func (msg ValidatorRevokeMsg) GetConsumeAmount() types.Coin + func (msg ValidatorRevokeMsg) GetPermission() types.Permission + func (msg ValidatorRevokeMsg) GetSignBytes() []byte + func (msg ValidatorRevokeMsg) GetSigners() []sdk.AccAddress + func (msg ValidatorRevokeMsg) String() string + func (msg ValidatorRevokeMsg) Type() string + func (msg ValidatorRevokeMsg) ValidateBasic() sdk.Error + type ValidatorWithdrawMsg struct + Amount types.LNO + Username types.AccountKey + func NewValidatorWithdrawMsg(validator string, amount types.LNO) ValidatorWithdrawMsg + func (msg ValidatorWithdrawMsg) GetConsumeAmount() types.Coin + func (msg ValidatorWithdrawMsg) GetPermission() types.Permission + func (msg ValidatorWithdrawMsg) GetSignBytes() []byte + func (msg ValidatorWithdrawMsg) GetSigners() []sdk.AccAddress + func (msg ValidatorWithdrawMsg) String() string + func (msg ValidatorWithdrawMsg) Type() string + func (msg ValidatorWithdrawMsg) ValidateBasic() sdk.Error