package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Receipt_repr/index.html
Module Tezos_raw_protocol_alpha.Receipt_repr
Source
type balance =
| Contract of Contract_repr.t
| Block_fees
| Deposits of staker
| Unstaked_deposits of staker * Cycle_repr.t
| Nonce_revelation_rewards
| Attesting_rewards
| Baking_rewards
| Baking_bonuses
| Storage_fees
| Double_signing_punishments
| Lost_attesting_rewards of Tezos_protocol_environment_alpha.Signature.Public_key_hash.t * bool * bool
| Liquidity_baking_subsidies
| Burned
| Commitments of Blinded_public_key_hash.t
| Bootstrap
| Invoice
| Initial_commitments
| Minted
| Frozen_bonds of Contract_repr.t * Bond_id_repr.t
| Sc_rollup_refutation_punishments
| Sc_rollup_refutation_rewards
Places where tez can be found in the ledger's state.
A credit or debit of tez to a balance.
An origin of a balance update
Compares two origins.
A list of balance updates. Duplicates may happen. For example, an entry of the form (Rewards (b,c), Credited am, ...)
indicates that the balance of frozen rewards has been increased by am
for baker b
and cycle c
.
val balance_updates_encoding :
balance_updates Tezos_protocol_environment_alpha.Data_encoding.t
The property Json.destruct (Json.construct balance_updates) = balance_updates
does not always hold for balance_updates_encoding
when balance_updates
contains entries of the form (_, _ Tez_repr.zero, _)
. This is because the balance_update
(_ Tez_repr.zero)
always decodes into (Credited Tez_repr.zero)
.
val balance_updates_encoding_with_legacy_attestation_name :
balance_updates Tezos_protocol_environment_alpha.Data_encoding.t
Balance updates encoding that uses legacy attestation name : `endorsing right` and `lost endorsing right` when encoding to JSON
https://gitlab.com/tezos/tezos/-/issues/5529
This encoding is temporary and should be removed when the endorsements kinds in JSON will not be accepted any more by the protocol.
val group_balance_updates :
balance_updates ->
balance_updates Tezos_protocol_environment_alpha.Error_monad.tzresult
Group updates by (balance x origin), and remove zero-valued balances.