Tezos_024_PtTALLiN_test_helpers.Contextval get_alpha_ctxt :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.context
Tezos_base.TzPervasives.tzresult
Lwt.tval branch : t -> Tezos_base.TzPervasives.Block_hash.tval pred_branch : t -> Tezos_base.TzPervasives.Block_hash.ttype attester =
Tezos_protocol_plugin_024_PtTALLiN.Plugin.RPC.Validators.delegate =
{delegate : Signature.public_key_hash;consensus_key : Signature.public_key_hash;companion_key : Tezos_024_PtTALLiN_test_helpers.Signature.Bls.Public_key_hash.t
option;rounds : Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Round.t list;attesting_power : int64;attestation_slot : Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Slot.t;}A delegate's keys and attesting slots at a given level.
val get_attesters : t -> attester list Tezos_base.TzPervasives.tzresult Lwt.tRetrieves the attesting rights at the level of the given context by calling Plugin.RPC.Validators.S.validators.
val get_attester :
?manager_pkh:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash ->
t ->
attester Tezos_base.TzPervasives.tzresult Lwt.tReturns an attester at the level of the given context.
If manager_pkh is provided, returns the attester with this manager key (delegate) and fails if there is no such attester. If manager_pkh is omitted, returns the first element of the output of get_attesters.
val get_first_different_attesters :
t ->
(attester * attester) Tezos_base.TzPervasives.tzresult Lwt.tReturn the two first elements of the list returns by get_attesters.
val get_attester_n :
t ->
int ->
(Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash
* Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Round.t list)
Tezos_base.TzPervasives.tzresult
Lwt.tReturn the nth element of the list returns by get_attesters.
val get_attesters_with_bls_key :
t ->
attester list Tezos_base.TzPervasives.tzresult Lwt.tSame as get_attesters but returns only attesters with a BLS consensus key.
val get_attester_with_bls_key :
t ->
attester Tezos_base.TzPervasives.tzresult Lwt.tReturns an attester with a BLS consensus key (the first eligible attester returned by get_attesters).
val get_attesting_power_for_delegate :
t ->
?level:Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Raw_level.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash ->
int64 Tezos_base.TzPervasives.tzresult Lwt.tCounts the number of attesting slots that the given delegate has in the requested level. If ommited, level defaults to the next level.
val get_cumulated_attesting_power_for_delegate :
t ->
levels:Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Raw_level.t list ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash ->
int64 Tezos_base.TzPervasives.tzresult Lwt.tSums the result of get_attesting_power_for_delegate over a list of levels.
val get_current_voting_power :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash ->
int64 Tezos_protocol_024_PtTALLiN.Environment.Error_monad.shell_tzresult
Lwt.tval get_voting_power :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash ->
int64 Tezos_protocol_024_PtTALLiN.Environment.Error_monad.shell_tzresult
Lwt.tval get_total_voting_power :
t ->
int64 Tezos_protocol_024_PtTALLiN.Environment.Error_monad.shell_tzresult
Lwt.tval get_current_baking_power :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash ->
int64 Tezos_protocol_024_PtTALLiN.Environment.Error_monad.shell_tzresult
Lwt.tval get_bakers :
?filter:
(Tezos_protocol_plugin_024_PtTALLiN.Plugin.RPC.Baking_rights.t -> bool) ->
?cycle:Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Cycle.t ->
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash list
Tezos_base.TzPervasives.tzresult
Lwt.tval get_first_different_bakers :
?excluding:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash list ->
t ->
(Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash
* Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash)
Tezos_base.TzPervasives.tzresult
Lwt.tval get_seed_nonce_hash :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Nonce_hash.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_seed :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Seed.seed
Tezos_base.TzPervasives.tzresult
Lwt.tReturns the seed of the cycle to which the block belongs to.
val get_seed_computation :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Seed.seed_computation_status
Tezos_base.TzPervasives.tzresult
Lwt.tval get_constants :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.t
Tezos_base.TzPervasives.tzresult
Lwt.tReturns all the constants of the protocol
val default_test_constants :
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.tThe default constants used in the test framework. To be used with init_with_constants.
val get_issuance_per_minute :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_baking_reward_fixed_portion :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_bonus_reward :
t ->
attesting_power:int ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_attesting_reward :
t ->
expected_attesting_power:int ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_liquidity_baking_subsidy :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_liquidity_baking_cpmm_address :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Contract_hash.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_adaptive_issuance_launch_cycle :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Cycle.t option
Tezos_base.TzPervasives.tzresult
Lwt.tval get_total_frozen_stake :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_total_supply :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_seed_nonce_revelation_tip :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_vdf_revelation_tip :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tval get_ai_current_yearly_rate :
t ->
string Tezos_base.TzPervasives.tzresult Lwt.tval get_ai_current_yearly_rate_exact :
t ->
Q.t Tezos_base.TzPervasives.tzresult Lwt.tval get_ai_expected_issuance :
t ->
Tezos_protocol_plugin_024_PtTALLiN.Adaptive_issuance_services.expected_rewards
list
Tezos_base.TzPervasives.tzresult
Lwt.tval get_denunciations :
t ->
(Tezos_024_PtTALLiN_test_helpers.Signature.Public_key_hash.t
* Tezos_protocol_024_PtTALLiN.Protocol.Denunciations_repr.item)
list
Tezos_base.TzPervasives.tzresult
Lwt.tval get_denunciations_for_delegate :
t ->
Tezos_024_PtTALLiN_test_helpers.Signature.Public_key_hash.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Denunciations_repr.item list
Tezos_base.TzPervasives.tzresult
Lwt.tval get_consecutive_round_zero :
t ->
Stdlib.Int32.t Tezos_base.TzPervasives.tzresult Lwt.tval estimated_own_pending_slashed_amount :
t ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.public_key_hash ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t
Tezos_base.TzPervasives.tzresult
Lwt.tmodule Vote : sig ... endmodule Dal : sig ... endmodule Contract : sig ... endmodule Delegate : sig ... endmodule Sc_rollup : sig ... endval tup_hd : ('a, 'elts) tup -> 'elts -> 'atype 'accounts init :=
?rng_state:Stdlib.Random.State.t ->
?commitments:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Commitment.t list ->
?bootstrap_balances:int64 list ->
?bootstrap_delegations:
Tezos_024_PtTALLiN_test_helpers.Signature.Public_key_hash.t option list ->
?bootstrap_consensus_keys:
Tezos_024_PtTALLiN_test_helpers.Signature.Public_key.t option list ->
?consensus_committee_size:int ->
?consensus_threshold_size:int ->
?min_proposal_quorum:int32 ->
?bootstrap_contracts:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Parameters.bootstrap_contract
list ->
?level:int32 ->
?cost_per_byte:Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Tez.t ->
?issuance_weights:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.issuance_weights ->
?origination_size:int ->
?blocks_per_cycle:int32 ->
?cycles_per_voting_period:int32 ->
?sc_rollup_arith_pvm_enable:bool ->
?sc_rollup_private_enable:bool ->
?sc_rollup_riscv_pvm_enable:bool ->
?dal_enable:bool ->
?dal_incentives_enable:bool ->
?zk_rollup_enable:bool ->
?hard_gas_limit_per_block:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Gas.Arith.integral ->
?nonce_revelation_threshold:int32 ->
?dal:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.dal ->
?adaptive_issuance:
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.adaptive_issuance ->
?allow_tz4_delegate_enable:bool ->
?aggregate_attestation:bool ->
unit ->
(Block.t * 'accounts) Tezos_base.TzPervasives.tzresult Lwt.tval init_gen :
(Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t, 'accounts)
tup ->
'accounts initReturns an initial block and the implicit contracts corresponding to its bootstrap accounts. The number of bootstrap accounts, and the structure of the returned contracts, are specified by the tup argument.
val init_n :
int ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t list initinit_n n : returns an initial block with n initialized accounts and the associated implicit contracts
init1 : returns an initial block with 1 initialized bootstrap account and the associated implicit contract
val init2 :
(Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t
* Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t)
initinit2 : returns an initial block with 2 initialized bootstrap accounts and the associated implicit contracts
val init3 :
(Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t
* Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t
* Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t)
initinit3 : returns an initial block with 3 initialized bootstrap accounts and the associated implicit contracts
val init_with_constants_gen :
?algo:Signature.algo ->
?prepare_context:raw_context_modifier ->
(Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t, 'contracts)
tup ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.t ->
(Block.t * 'contracts) Tezos_base.TzPervasives.tzresult Lwt.tval init_with_constants_n :
?algo:Signature.algo ->
?prepare_context:raw_context_modifier ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.t ->
int ->
(Block.t * Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t list)
Tezos_base.TzPervasives.tzresult
Lwt.tval init_with_constants_algo_list :
?prepare_context:raw_context_modifier ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.t ->
Signature.algo option list ->
(Block.t * Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t list)
Tezos_base.TzPervasives.tzresult
Lwt.tval init_with_parameters_gen :
?prepare_context:raw_context_modifier ->
(Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t, 'contracts)
tup ->
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Parameters.t ->
(Block.t * 'contracts) Tezos_base.TzPervasives.tzresult Lwt.tinit_with_parameters_gen tup params returns an initial block parametrised with params and the implicit contracts corresponding to its bootstrap accounts. The number of bootstrap accounts, and the structure of the returned contracts, are specified by the tup argument.
val init_with_parameters_n :
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Parameters.t ->
int ->
(Block.t * Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t list)
Tezos_base.TzPervasives.tzresult
Lwt.tinit_with_parameters_n params n returns an initial block parametrized with params with n initialized accounts and the associated implicit contracts
val init_with_parameters1 :
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Parameters.t ->
(Block.t * Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t)
Tezos_base.TzPervasives.tzresult
Lwt.tinit_with_parameters1 params returns an initial block parametrized with params with one initialized account and the associated implicit contract.
val init_with_parameters2 :
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Parameters.t ->
(Block.t
* (Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t
* Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Contract.t))
Tezos_base.TzPervasives.tzresult
Lwt.tinit_with_parameters2 params returns an initial block parametrized with params with two initialized accounts and the associated implicit contracts
val default_raw_context :
unit ->
Tezos_protocol_024_PtTALLiN.Protocol.Raw_context.t
Tezos_base.TzPervasives.tzresult
Lwt.tdefault_raw_context returns a Raw_context.t for use in tests below Alpha_context
val raw_context_from_constants :
Tezos_protocol_024_PtTALLiN.Protocol.Alpha_context.Constants.Parametric.t ->
Tezos_protocol_024_PtTALLiN.Protocol.Raw_context.t
Tezos_base.TzPervasives.tzresult
Lwt.traw_context_from_constants returns a Raw_context.t for use in tests below Alpha_context