package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Receipt_repr/index.html

Module Tezos_raw_protocol_alpha.Receipt_reprSource

Sourcetype balance =
  1. | Contract of Contract_repr.t
  2. | Block_fees
  3. | Deposits of staker
  4. | Unstaked_deposits of staker * Cycle_repr.t
  5. | Nonce_revelation_rewards
  6. | Attesting_rewards
  7. | Baking_rewards
  8. | Baking_bonuses
  9. | Storage_fees
  10. | Double_signing_punishments
  11. | Lost_attesting_rewards of Tezos_protocol_environment_alpha.Signature.Public_key_hash.t * bool * bool
  12. | Liquidity_baking_subsidies
  13. | Burned
  14. | Commitments of Blinded_public_key_hash.t
  15. | Bootstrap
  16. | Invoice
  17. | Initial_commitments
  18. | Minted
  19. | Frozen_bonds of Contract_repr.t * Bond_id_repr.t
  20. | Sc_rollup_refutation_punishments
  21. | Sc_rollup_refutation_rewards

Places where tez can be found in the ledger's state.

Sourceval compare_balance : balance -> balance -> int

Compares two balances.

Sourcetype balance_update =
  1. | Debited of Tez_repr.t
  2. | Credited of Tez_repr.t

A credit or debit of tez to a balance.

Sourcetype update_origin =
  1. | Block_application
    (*

    Update from a block application

    *)
  2. | Protocol_migration
    (*

    Update from a protocol migration

    *)
  3. | Subsidy
    (*

    Update from an inflationary subsidy

    *)
  4. | Simulation
    (*

    Simulation of an operation *

    *)

An origin of a balance update

Sourceval compare_update_origin : update_origin -> update_origin -> int

Compares two origins.

Sourcetype balance_updates = (balance * balance_update * update_origin) list

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.

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).

Sourceval 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.

Group updates by (balance x origin), and remove zero-valued balances.

OCaml

Innovation. Community. Security.