Proto
module Encoding : sig ... end
type 'a encoding = 'a Encoding.encoding = {
json : 'a Json_encoding.encoding;
bin : 'a Binary.Encoding.encoding;
}
type hex = Crypto.H.t
val hex_enc : hex Encoding.encoding
module A : sig ... end
type primitive = [
|
`parameter
|
`storage
|
`code
|
`False
|
`Elt
|
`Left
|
`None
|
`Pair
|
`Right
|
`Some
|
`True
|
`Unit
|
`PACK
|
`UNPACK
|
`BLAKE2B
|
`SHA256
|
`SHA512
|
`ABS
|
`ADD
|
`AMOUNT
|
`AND
|
`BALANCE
|
`CAR
|
`CDR
|
`CHECK_SIGNATURE
|
`COMPARE
|
`CONCAT
|
`CONS
|
`CREATE_ACCOUNT
|
`CREATE_CONTRACT
|
`IMPLICIT_ACCOUNT
|
`DIP
|
`DROP
|
`DUP
|
`EDIV
|
`EMPTY_MAP
|
`EMPTY_SET
|
`EQ
|
`EXEC
|
`FAILWITH
|
`GE
|
`GET
|
`GT
|
`HASH_KEY
|
`IF
|
`IF_CONS
|
`IF_LEFT
|
`IF_NONE
|
`INT
|
`LAMBDA
|
`LE
|
`LEFT
|
`LOOP
|
`LSL
|
`LSR
|
`LT
|
`MAP
|
`MEM
|
`MUL
|
`NEG
|
`NEQ
|
`NIL
|
`NONE
|
`NOT
|
`NOW
|
`OR
|
`PAIR
|
`PUSH
|
`RIGHT
|
`SIZE
|
`SOME
|
`SOURCE
|
`SENDER
|
`SELF
|
`STEPS_TO_QUOTA
|
`SUB
|
`SWAP
|
`TRANSFER_TOKENS
|
`SET_DELEGATE
|
`UNIT
|
`UPDATE
|
`XOR
|
`ITER
|
`LOOP_LEFT
|
`ADDRESS
|
`CONTRACT
|
`ISNAT
|
`CAST
|
`RENAME
|
`bool
|
`contract
|
`int
|
`key
|
`key_hash
|
`lambda
|
`list
|
`map
|
`big_map
|
`nat
|
`option
|
`or_
|
`pair
|
`set
|
`signature
|
`string
|
`bytes
|
`mutez
|
`timestamp
|
`unit
|
`operation
|
`address
|
`SLICE
|
`DIG
|
`DUG
|
`EMPTY_BIG_MAP
|
`APPLY
|
`chain_id
|
`CHAIN_ID
|
`LEVEL
|
`SELF_ADDRESS
|
`never
|
`NEVER
|
`UNPAIR
|
`VOTING_POWER
|
`TOTAL_VOTING_POWER
|
`KECCAK
|
`SHA3
|
`PAIRING_CHECK
|
`bls12_381_g1
|
`bls12_381_g2
|
`bls12_381_fr
|
`sapling_state
|
`sapling_transaction_deprecated
|
`SAPLING_EMPTY_STATE
|
`SAPLING_VERIFY_UPDATE
|
`ticket
|
`TICKET_DEPRECATED
|
`READ_TICKET
|
`SPLIT_TICKET
|
`JOIN_TICKETS
|
`GET_AND_UPDATE
|
`chest
|
`chest_key
|
`OPEN_CHEST
|
`VIEW
|
`view
|
`constant
|
`SUB_MUTEZ
|
`tx_rollup_l2_address
|
`MIN_BLOCK_TIME
|
`sapling_transaction
|
`EMIT
|
`Lambda_rec
|
`LAMBDA_REC
|
`TICKET
|
`BYTES
|
`NAT
]
val primitive_enc : primitive Encoding.encoding
val primitives : (string * primitive) list
val primitive_or_macro_enc : primitive_or_macro Encoding.encoding
type micheline =
| Mint of A.zarith
| Mstring of string
| Mbytes of hex
| Mprim of {
prim : primitive_or_macro;
args : micheline list;
annots : string list;
}
| Mseq of micheline list
val micheline_enc : micheline Encoding.encoding
val prim :
?args:micheline list ->
?annots:string list ->
primitive_or_macro ->
micheline
val entrypoint_enc : entrypoint Encoding.encoding
val script_expr_enc : script_expr Encoding.encoding
val parameters_enc : 'p Encoding.encoding -> 'p parameters Encoding.encoding
val contract_script_enc :
'p Encoding.encoding ->
'p contract_script Encoding.encoding
val freezer_content_enc : freezer_content Encoding.encoding
type freezer =
| Legacy_rewards of freezer_content
| Legacy_fees of freezer_content
| Legacy_deposits of freezer_content
| Deposits of A.pkh
val freezer_enc : freezer Encoding.encoding
val minted_enc : minted Encoding.encoding
type burned =
| Storage_fees
| Punishments
| Lost_endorsing_rewards of {
delegate : A.pkh;
participation : bool;
revelation : bool;
}
val burned_enc : burned Encoding.encoding
type balance_update_base =
| Contract of A.contract
| Freezer of freezer
| Accumulator of unit
| Minted of minted
| Burned of burned
| Commitment of string
| Ignore of string
val balance_update_base_enc : balance_update_base Encoding.encoding
type balance_update = {
bu_change : A.zarith;
bu_update : balance_update_base;
bu_origin : string option;
}
val balance_update_enc : balance_update Encoding.encoding
val node_error_enc : node_error Encoding.encoding
type 'p transaction_info = {
amount : A.uint64;
destination : A.contract;
parameters : 'p parameters option;
}
val transaction_info_enc :
'p Encoding.encoding ->
'p transaction_info Encoding.encoding
val origination_info_enc :
'p Encoding.encoding ->
'p origination_info Encoding.encoding
type tx_rollup_commitment = {
txrc_level : A.uint32;
txrc_messages : A.tx_message_result_hash list;
txrc_predecessor : A.tx_commitment_hash option;
txrc_inbox_merkle_root : A.tx_inbox_hash;
}
val tx_rollup_commitment_enc : tx_rollup_commitment Encoding.encoding
type sc_rollup_commitment = {
scrc_compressed_state : A.sc_state_hash;
scrc_inbox_level : A.uint32;
scrc_predecessor : A.sc_commitment_hash;
scrc_number_of_messages : A.uint32;
scrc_number_of_ticks : A.uint32;
}
val sc_rollup_commitment_enc : sc_rollup_commitment Encoding.encoding
type transfer_ticket = {
tt_contents : script_expr;
tt_type : script_expr;
tt_ticketer : A.contract;
tt_amount : A.uint64;
tt_destination : A.contract;
tt_entrypoint : entrypoint;
}
val transfer_ticket_enc : transfer_ticket Encoding.encoding
val unknown_kind_enc : string Encoding.encoding
val dal_slot_enc : dal_slot Encoding.encoding
type 'p manager_operation_kind =
| Reveal of A.pk
| Transaction of 'p transaction_info
| Origination of 'p origination_info
| Delegation of A.pkh option
| Event of {
}
| Constant of 'p
| Deposits_limit of A.uint64 option
| Increase_paid_storage of {
amount : A.zarith;
destination : A.contract;
}
| Update_consensus_key of A.pk
| Tx_rollup_origination of unit
| Tx_rollup_submit_batch of {
rollup : A.tx_rollup_hash;
content : hex;
burn_limit : A.uint64 option;
}
| Tx_rollup_commit of {
rollup : A.tx_rollup_hash;
commitment : tx_rollup_commitment;
}
| Tx_rollup_return_bond of A.tx_rollup_hash
| Tx_rollup_finalize_commitment of A.tx_rollup_hash
| Tx_rollup_remove_commitment of A.tx_rollup_hash
| Tx_rollup_rejection of unit
| Tx_rollup_dispatch_tickets of unit
| Transfer_ticket of transfer_ticket
| Sc_rollup_originate of {
pvm_kind : unit;
boot_sector : string;
origination_proof : string;
parameters_ty : script_expr;
}
| Dal_publish of dal_slot
| Sc_rollup_add_messages of {
rollup : A.sc_rollup_hash;
message : string list;
}
| Sc_rollup_cement of {
rollup : A.sc_rollup_hash;
commitment : A.sc_commitment_hash;
}
| Sc_rollup_publish of {
rollup : A.sc_rollup_hash;
commitment : sc_rollup_commitment;
}
| Sc_rollup_refute of {
rollup : A.sc_rollup_hash;
opponent : A.pkh;
refutation : unit;
}
| Sc_rollup_timeout of {
rollup : A.sc_rollup_hash;
stakers : A.pkh * A.pkh;
}
| Sc_rollup_execute of {
rollup : A.sc_rollup_hash;
cemented_commitment : sc_rollup_commitment;
output_proof : string;
}
| Sc_rollup_recover of A.sc_rollup_hash
| Sc_rollup_dal_slot_subscribe of {
rollup : A.sc_rollup_hash;
slot_index : int;
}
| Unknown of string
val manager_operation_kind_enc :
'p Encoding.encoding ->
'p manager_operation_kind Encoding.encoding
val manager_operation_numbers_enc : manager_operation_numbers Encoding.encoding
val manager_operation_info_gen_enc :
'kind Encoding.encoding ->
'kind manager_operation_info_gen Encoding.encoding
type 'p manager_operation_info =
'p manager_operation_kind manager_operation_info_gen
val manager_operation_info_enc :
'p Encoding.encoding ->
'p manager_operation_info Encoding.encoding
type big_map_update = {
bm_key_hash : A.script_expr_hash;
bm_key : micheline;
bm_value : micheline option;
}
val big_map_update_enc : big_map_update Encoding.encoding
type big_map_diff =
| SDUpdate of big_map_update list
| SDRemove
| SDCopy of {
source : string;
updates : big_map_update list;
}
| SDAlloc of {
updates : big_map_update list;
key_type : micheline;
value_type : micheline;
}
val big_map_diff_enc : big_map_diff Encoding.encoding
val storage_diff_item_enc : storage_diff_item Encoding.encoding
val op_status_enc : op_status Encoding.encoding
type op_metadata = {
op_status : op_status;
op_consumed_milligas : A.zarith;
op_balance_updates : balance_update list;
op_allocated_destination_contract : bool;
op_originated_contracts : A.contract list;
op_storage_size : A.zarith;
op_storage : micheline option;
op_paid_storage_size_diff : A.zarith;
op_lazy_storage_diff : storage_diff_item list;
op_errors : node_error list;
op_originated_rollup : A.tx_rollup_hash option;
op_global_address : A.script_expr_hash option;
}
val op_metadata_enc : op_metadata Encoding.encoding
type internal_manager_operation = {
in_content : micheline manager_operation_info;
in_nonce : A.uint32;
in_result : op_metadata;
}
val internal_manager_operation_enc :
internal_manager_operation Encoding.encoding
type manager_metadata = {
man_balance_updates : balance_update list;
man_operation_result : op_metadata;
man_internal_operation_results : internal_manager_operation list;
}
val manager_metadata_enc : manager_metadata Encoding.encoding
type 'kind manager_operation_gen = {
man_info : 'kind manager_operation_info_gen;
man_numbers : manager_operation_numbers;
man_metadata : manager_metadata option;
}
val manager_operation_gen_enc :
'kind Encoding.encoding ->
'kind manager_operation_gen Encoding.encoding
type 'p manager_operation = 'p manager_operation_kind manager_operation_gen
val manager_operation_enc :
'p Encoding.encoding ->
'p manager_operation Encoding.encoding
type 'a block_operation = {
op_protocol : A.protocol_hash;
op_chain_id : A.chain_id;
op_hash : A.operation_hash;
op_branch : A.block_hash;
op_contents : 'a list;
op_signature : A.signature option;
}
val block_operation_enc :
'a Encoding.encoding ->
'a block_operation Encoding.encoding
val operations_enc :
micheline manager_operation block_operation list Encoding.encoding
val fitness_enc : fitness Encoding.encoding
type shell = {
level : A.uint32;
proto : A.uint32;
predecessor : A.block_hash;
timestamp : A.timestamp;
validation_pass : A.uint32;
operations_hash : A.operations_hash;
fitness : fitness;
context : A.context_hash;
}
val shell_enc : shell Encoding.encoding
type header = {
shell : shell;
proof_of_work_nonce : hex;
seed_nonce_hash : A.nonce_hash option;
signature : A.signature;
}
val header_enc : header Encoding.encoding
val level_enc : level Encoding.encoding
type metadata = {
meta_baker : A.pkh;
meta_level : level;
meta_nonce_hash : A.nonce_hash option;
meta_consumed_gas : A.uint64;
meta_consumed_milligas : A.uint64;
meta_deactivated : string list;
meta_balance_updates : balance_update list;
}
val metadata_enc : metadata Encoding.encoding
type 'a block0 = {
protocol : A.protocol_hash;
chain_id : A.chain_id;
hash : A.block_hash;
header : header;
metadata : metadata option;
operations : 'a;
}
val block0_enc : 'a Encoding.encoding -> 'a block0 Encoding.encoding
type block = A.operation_hash list block0
val block_enc : block Encoding.encoding
type full_block = micheline manager_operation block_operation list block0
val full_block_enc : full_block Encoding.encoding
type account = {
ac_balance : A.uint64;
ac_delegate : A.pkh option;
ac_script : micheline contract_script option;
ac_counter : A.zarith option;
}
val account_enc : account Encoding.encoding
val time_between_blocks_enc : float Encoding.encoding
val constants_enc : constants Encoding.encoding