package octez-protocol-019-PtParisB-libs
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Octez protocol 019-PtParisB libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-protocol-019-PtParisB-libs.test-helpers/Tezos_019_PtParisB_test_helpers/Adaptive_issuance_helpers/index.html
Module Tezos_019_PtParisB_test_helpers.Adaptive_issuance_helpersSource
Representation of Tez with non integer values
Frozen_tez represents frozen stake and frozen unstaked funds. Properties:
Representation of Unstaked frozen deposits
Representation of unstaked finalizable tez
Abstraction of the staking parameters for tests
Source
type account_state = {pkh : Tezos_base.TzPervasives.Signature.Public_key_hash.t;contract : Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t;delegate : string option;parameters : staking_parameters;liquid : Tez.t;bonds : Tez.t;frozen_deposits : Frozen_tez.t;unstaked_frozen : Unstaked_frozen.t;unstaked_finalizable : Unstaked_finalizable.t;staking_delegator_numerator : Z.t;staking_delegate_denominator : Z.t;frozen_rights : Tez.t CycleMap.t;slashed_cycles : Cycle.t list;
}Abstract information of accounts
Source
val init_account :
?delegate:string ->
pkh:Tezos_base.TzPervasives.Signature.Public_key_hash.t ->
contract:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t ->
parameters:staking_parameters ->
?liquid:Tez.t ->
?bonds:Tez.t ->
?frozen_deposits:Frozen_tez.t ->
?unstaked_frozen:Unstaked_frozen.t ->
?unstaked_finalizable:Unstaked_finalizable.t ->
?staking_delegator_numerator:Z.t ->
?staking_delegate_denominator:Z.t ->
?frozen_rights:Tez.t CycleMap.t ->
?slashed_cycles:Cycle.t list ->
unit ->
account_stateSource
type balance = {liquid_b : Tez.t;bonds_b : Tez.t;staked_b : Partial_tez.t;unstaked_frozen_b : Tez.t;unstaked_finalizable_b : Tez.t;staking_delegator_numerator_b : Z.t;staking_delegate_denominator_b : Z.t;
}Balance returned by RPCs. Partial tez are rounded down
Source
val assert_balance_equal :
loc:string ->
string ->
balance ->
balance ->
(unit, Tezos_base.TzPervasives.tztrace) result Lwt.tSource
val update_account :
f:('a -> 'a) ->
Tezos_base.TzPervasives.String.Map.key ->
'a Tezos_base.TzPervasives.String.Map.t ->
'a Tezos_base.TzPervasives.String.Map.tSource
val add_liquid_rewards :
Tez.t ->
Tezos_base.TzPervasives.String.Map.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.tSource
val add_frozen_rewards :
Tez.t ->
Tezos_base.TzPervasives.String.Map.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.tSource
val stake_from_unstake :
Tez.t ->
Cycle.cycle ->
int ->
Tezos_base.TzPervasives.String.Map.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.t * Tez.tSource
val apply_stake :
Tez.t ->
Cycle.cycle ->
int ->
Tezos_base.TzPervasives.String.Map.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.tSource
val apply_unstake :
Cycle.t ->
Tez.t ->
Tezos_base.TzPervasives.String.Map.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.tSource
val apply_unslashable :
Cycle.t ->
Tezos_base.TzPervasives.String.Map.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.tSource
val apply_unslashable_for_all :
Cycle.t ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.tSource
val balance_and_total_balance_of_account :
Tezos_base.TzPervasives.String.Map.key ->
account_map ->
balance * Tez.tSource
val apply_slashing :
(Tezos_base.TzPervasives.Signature.Public_key_hash.t
* Tezos_protocol_019_PtParisB.Protocol.Denunciations_repr.item) ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Constants.Parametric.t ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.t * Tez.tSource
val update_frozen_rights_cycle :
CycleMap.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
account_state Tezos_base.TzPervasives.String.Map.tSource
val get_balance_from_context :
Tezos_019_PtParisB_test_helpers__Context.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t ->
(balance * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Tez.t,
Tezos_base.TzPervasives.tztrace)
result
Lwt.tSource
val assert_balance_check :
loc:string ->
Tezos_019_PtParisB_test_helpers__Context.t ->
Tezos_base.TzPervasives.String.Map.key ->
account_state Tezos_base.TzPervasives.String.Map.t ->
(unit, Tezos_base.TzPervasives.tztrace) result Lwt.tSource
val get_launch_cycle :
loc:string ->
Block.t ->
(Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Cycle.t,
Tezos_base.TzPervasives.tztrace)
result
Lwt.tAI operations
Source
val stake :
Context.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Tez.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Operation.packed
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val set_delegate_parameters :
Context.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t ->
parameters:staking_parameters ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Operation.packed
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val unstake :
Context.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Tez.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Operation.packed
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val finalize_unstake :
Context.t ->
?amount:Tez.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Operation.packed
Tezos_base.TzPervasives.tzresult
Lwt.tSource
val portion_of_rewards_to_liquid_for_cycle :
?policy:Block.baker_policy ->
Tezos_019_PtParisB_test_helpers__Context.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Cycle.t ->
Tezos_protocol_019_PtParisB.Protocol.Alpha_context.public_key_hash ->
Tez.t ->
(Tez.t, Tezos_base.TzPervasives.tztrace) result Lwt.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>