Module TON.ENCODING

type info_in = {
ton_version : string;
ton_time : int64;
}
val info_in_enc : info_in Json_encoding.encoding
type info = info_in
val info_enc : info Json_encoding.encoding
type z = Z.t
val z_enc : z Json_encoding.encoding
type account = {
acc_id : string;
acc_type_name : string option;
acc_balance : z option;
acc_boc : string option;
acc_code : string option;
acc_code_hash : string option;
acc_data : string option;
acc_data_hash : string option;
acc_last_paid : float option;
acc_last_trans_lt : string option;
acc_library : string option;
acc_library_hash : string option;
acc_proof : string option;
acc_split_depth : int option;
acc_state_hash : string option;
acc_tick : bool option;
acc_tock : bool option;
acc_workchain_id : int option;
}
val account_enc : account Json_encoding.encoding
type accounts = account list
val accounts_enc : accounts Json_encoding.encoding
type ext_blk_ref = {
ebr_end_lt : string;
ebr_seq_no : int;
ebr_root_hash : string;
ebr_file_hash : string;
}
val ext_blk_ref_enc : ext_blk_ref Json_encoding.encoding
type block_value_flow = {
bl_volume : z;
bl_fees : z;
bl_minted : z;
}
val block_value_flow_enc : block_value_flow Json_encoding.encoding
type out_message = {
out_import_block_lt : string option;
out_msg_env_hash : string option;
out_msg_id : string option;
out_msg_type_name : string option;
out_next_addr_pfx : string option;
out_next_workchain : int option;
out_transaction_id : string option;
}
val out_message_enc : out_message Json_encoding.encoding
type in_message = {
in_fwd_fee : string option;
in_ihr_fee : string option;
in_msg_id : string option;
in_msg_type_name : string option;
in_proof_created : string option;
in_proof_delivered : string option;
in_transaction_id : string option;
in_transit_fee : string option;
}
val in_message_enc : in_message Json_encoding.encoding
type block = {
bl_id : string;
bl_seq_no : int;
bl_created_by : string option;
bl_time : int64;
bl_in_msg_descr : in_message list option;
bl_key_block : bool option;
bl_out_msg_descr : out_message list option;
bl_prev_ref : ext_blk_ref option;
bl_shard : string option;
bl_start_lt : string option;
bl_status_name : string option;
bl_tr_count : int option;
bl_value_flow : block_value_flow option;
bl_workchain_id : int option;
}
val block_enc : block Json_encoding.encoding
type blocks = block list
val blocks_enc : blocks Json_encoding.encoding
type transaction_summary = {
trs_id : string;
}
val transaction_summary_enc : transaction_summary Json_encoding.encoding
type message = {
msg_id : string;
msg_block_id : string option;
msg_boc : string option;
msg_body : string option;
msg_body_hash : string option;
msg_bounce : bool option;
msg_bounced : bool option;
msg_code : string option;
msg_code_hash : string option;
msg_created_at : int64 option;
msg_created_at_string : string option;
msg_created_lt : string option;
msg_data : string option;
msg_data_hash : string option;
msg_dst : string;
msg_dst_transaction : transaction_summary option;
msg_dst_workchain_id : int option;
msg_fwd_fee : z option;
msg_ihr_disabled : bool option;
msg_ihr_fee : z option;
msg_import_fee : z option;
msg_library : string option;
msg_library_hash : string option;
msg_msg_type_name : string option;
msg_proof : string option;
msg_split_depth : int option;
msg_src : string;
msg_src_transaction : transaction_summary option;
msg_src_workchain_id : int option;
msg_status_name : string option;
msg_tick : bool option;
msg_tock : bool option;
msg_value : z option;
}
val message_enc : message Json_encoding.encoding
type messages = message list
val messages_enc : messages Json_encoding.encoding
type transactionAction = {
action_list_hash : string option;
msgs_created : int option;
no_funds : bool option;
result_arg : int option;
result_code : int option;
skipped_actions : int option;
spec_actions : int option;
status_change_name : string option;
success : bool option;
tot_actions : int option;
total_action_fees : z option;
total_fwd_fees : z option;
total_msg_size_bits : int option;
total_msg_size_cells : int option;
valid : bool option;
}
val transactionAction_enc : transactionAction Json_encoding.encoding
type transactionBounce = {
bounce_type_name : string option;
fwd_fees : z option;
msg_fees : z option;
msg_size_bits : int option;
msg_size_cells : int option;
req_fwd_fees : z option;
}
val transactionBounce_enc : transactionBounce Json_encoding.encoding
type transactionCompute = {
account_activated : bool option;
compute_type_name : string option;
exit_arg : int option;
exit_code : int option;
gas_credit : int option;
gas_fees : z option;
gas_limit : z option;
gas_used : z option;
mode : int option;
msg_state_used : bool option;
skipped_reason_name : string option;
success : bool option;
vm_final_state_hash : string option;
vm_init_state_hash : string option;
vm_steps : int option;
}
val transactionCompute_enc : transactionCompute Json_encoding.encoding
type transactionCredit = {
credit : z option;
due_fees_collected : z option;
}
val transactionCredit_enc : transactionCredit Json_encoding.encoding
type transactionStorage = {
status_change_name : string option;
storage_fees_collected : z option;
storage_fees_due : z option;
x : unit option;
}
val transactionStorage_enc : transactionStorage Json_encoding.encoding
type transaction = {
tr_id : string;
tr_aborted : bool;
tr_account_addr : string;
tr_action : transactionAction option;
tr_balance_delta : z;
tr_block_id : string;
tr_boc : string option;
tr_bounce : transactionBounce option;
tr_compute : transactionCompute option;
tr_credit : transactionCredit option;
tr_credit_first : bool option;
tr_destroyed : bool option;
tr_end_status_name : string option;
tr_in_msg : string;
tr_installed : bool option;
tr_lt : string option;
tr_new_hash : string option;
tr_now : float option;
tr_old_hash : string option;
tr_orig_status_name : string option;
tr_out_msgs : string list;
tr_prepare_transaction : string option;
tr_prev_trans_hash : string option;
tr_prev_trans_lt : string option;
tr_proof : string option;
tr_status_name : string;
tr_storage : transactionStorage option;
tr_total_fees : z;
tr_tr_type_name : string option;
tr_tt : string option;
tr_workchain_id : int option;
}
val transaction_enc : transaction Json_encoding.encoding
type transaction_with_messages = {
tr : transaction;
in_message : message option;
out_messages : message list;
}
val transaction_with_messages_enc : transaction_with_messages Json_encoding.encoding
type transactions = transaction list
val transactions_enc : transactions Json_encoding.encoding
val string_of_transaction : transaction -> string
val string_of_transactions : transaction list -> string
val string_of_transactions_with_messages : transaction_with_messages list -> string
val string_of_account : account -> string
val string_of_accounts : account list -> string
val string_of_message : message -> string
val string_of_messages : message list -> string
val string_of_block : block -> string
val string_of_blocks : block list -> string