package tezos-protocol-015-PtLimaPt
- Overview
 - No Docs
 
You can search for identifiers within the package.
in-package search v0.2.0
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
    
    
  sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
    
    
  doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Voting_period_storage/index.html
Module Tezos_raw_protocol_015_PtLimaPt.Voting_period_storageSource
val init : 
  Raw_context.t ->
  Voting_period_repr.t ->
  Raw_context.t Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tInitializes the current context with voting period information.
val init_first_period : 
  Raw_context.t ->
  start_position:Tezos_protocol_environment_015_PtLimaPt.Int32.t ->
  Raw_context.t Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tSets the initial period to {voting_period = root; kind = Proposal; start_position}.
val reset : 
  Raw_context.t ->
  Raw_context.t Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tIncrement the index by one and set the kind to Proposal.
val succ : 
  Raw_context.t ->
  Raw_context.t Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tIncrement the index by one and set the kind to its successor.
val get_current : 
  Raw_context.t ->
  Voting_period_repr.t
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tReturns information about the current voting period.
val get_current_kind : 
  Raw_context.t ->
  Voting_period_repr.kind
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tReturns the current voting period kind.
val is_last_block : 
  Raw_context.t ->
  bool Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tReturns true if the context level is the last of current voting period.
val blocks_before_activation : 
  Raw_context.t ->
  int32 option Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tblocks_before_activation ctxt returns Some b if the current voting period is the Adoption and b blocks must be waited before activation of the next protocol amendment. Returns None if the current period is not Adoption (then more than Constants_storage.blocks_per_voting_period must be waited before activation).
val get_rpc_current_info : 
  Raw_context.t ->
  Voting_period_repr.info
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tReturns the voting period information for the current level.
val get_rpc_succ_info : 
  Raw_context.t ->
  Voting_period_repr.info
    Tezos_protocol_environment_015_PtLimaPt.Error_monad.tzresult
    Tezos_protocol_environment_015_PtLimaPt.Lwt.tReturns the voting period information for the next level.