Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type Validators = Module ValidatorsName EmptyTxServer EmptyTxServer QueryApi ValidatorsEffs '[] Source #
validatorsModule :: Members (ModuleEffs Validators) r => Validators r Source #
data ValidatorsKeeper m a where Source #
GetValidatorsKeys :: ValidatorsKeeper m (Set PubKey_) | |
GetPowerOf :: PubKey_ -> ValidatorsKeeper m Word64 | |
GetQueuedUpdates :: ValidatorsKeeper m (Map PubKey_ Word64) | |
QueueUpdate :: PubKey_ -> Word64 -> ValidatorsKeeper m () |
Instances
type DefiningModule (ValidatorsKeeper :: k -> Type -> Type) Source # | |
Defined in Tendermint.SDK.Modules.Validators.Keeper type DefiningModule (ValidatorsKeeper :: k -> Type -> Type) = "Tendermint.SDK.Modules.Validators.Keeper" |
queueUpdate :: forall r. MemberWithError ValidatorsKeeper r => PubKey_ -> Word64 -> Sem r () Source #
getQueuedUpdates :: forall r. MemberWithError ValidatorsKeeper r => Sem r (Map PubKey_ Word64) Source #
getPowerOf :: forall r. MemberWithError ValidatorsKeeper r => PubKey_ -> Sem r Word64 Source #
getValidatorsKeys :: forall r. MemberWithError ValidatorsKeeper r => Sem r (Set PubKey_) Source #
type ValidatorsEffs = '[ValidatorsKeeper] Source #
eval :: Members [ReadStore, WriteStore, Error AppError] r => Sem (ValidatorsKeeper ': r) a -> Sem r a Source #
queueUpdateF :: Members [ReadStore, WriteStore, Error AppError] r => PubKey_ -> Word64 -> Sem r () Source #
data ValidatorsNameSpace Source #
type ValidatorsName = "validators" Source #
newtype ValidatorUpdate_ Source #
Instances
Instances
Instances
Generic KeySet Source # | |
FromJSON KeySet Source # | |
Defined in Tendermint.SDK.Modules.Validators.Types parseJSON :: Value -> Parser KeySet parseJSONList :: Value -> Parser [KeySet] | |
ToJSON KeySet Source # | |
Defined in Tendermint.SDK.Modules.Validators.Types toEncoding :: KeySet -> Encoding toJSONList :: [KeySet] -> Value toEncodingList :: [KeySet] -> Encoding | |
HasCodec KeySet Source # | |
Defined in Tendermint.SDK.Modules.Validators.Types | |
type Rep KeySet Source # | |
Defined in Tendermint.SDK.Modules.Validators.Types |
endBlock :: Members BlockEffs r => Members ValidatorsEffs r => EndBlock -> Sem r EndBlockResult Source #