package tezos-protocol-017-PtNairob
Tezos/Protocol: economic-protocol definition
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-017-PtNairob.raw/Tezos_raw_protocol_017_PtNairob/Ticket_operations_diff/index.html
Module Tezos_raw_protocol_017_PtNairob.Ticket_operations_diff
Source
A module that provides functionality for extracting ticket-token differences from a list of operations.
Source
type ticket_token_diff = private {
ticket_token : Ticket_token.ex_token;
total_amount : Script_int.n Script_int.num;
destinations : (Alpha_context.Destination.t * Script_typed_ir.ticket_amount) list;
}
A type representing ticket-token balance differences. Each value consists of:
ticket_token
- the type of the ticket.total_amount
- the total amount of transferred ticket-tokens.destinations
- a list of amount and contract pairs. Invariant:total_amount
is the sum of the amounts indestinations
.
Source
val ticket_diffs_of_operations :
Alpha_context.context ->
Script_typed_ir.packed_internal_operation list ->
(ticket_token_diff list * Alpha_context.context)
Tezos_protocol_environment_017_PtNairob.Error_monad.tzresult
Tezos_protocol_environment_017_PtNairob.Lwt.t
ticket_diffs_of_operations ctxt ops
returns a list of ticket-tokens diffs given a context, ctxt
, and list of packed operations, ops
. The diffs result from either a Transaction
operation with parameters containing tickets, or an Origination
operation with the initial storage containing tickets.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>