Mavryk_raw_protocol_alpha.Ticket_token
A module for handling ticket-tokens. A ticket-token represents the combination of a ticketer (creator of a ticket) and the content. That is, a ticket comprises a ticket-token and an amount.
type 'a parsed_token = {
ticketer : Alpha_context.Contract.t;
contents_type : 'a Script_typed_ir.comparable_ty;
contents : 'a;
}
A type for representing existentially quantified ticket-tokens. A ticket-token consists of a pair of ticketer and contents.
type unparsed_token = {
ticketer : Alpha_context.Contract.t;
contents_type : Alpha_context.Script.expr;
contents : Alpha_context.Script.expr;
}
Unparsed version of parsed_token
. Used to encode/decode ticket-token in receipt, RPC, etc.
val unparsed_token_encoding :
unparsed_token Mavryk_protocol_environment_alpha.Data_encoding.t