package archetype
Module Archetype.MichelsonSource
Source
val pp_with_annot :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'a with_annot ->
Ppx_deriving_runtime.unitSource
val show_with_annot :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
'a with_annot ->
Ppx_deriving_runtime.stringSource
val pp_position :
Ppx_deriving_runtime.Format.formatter ->
position ->
Ppx_deriving_runtime.unitSource
val pp_obj_stack :
Ppx_deriving_runtime.Format.formatter ->
obj_stack ->
Ppx_deriving_runtime.unitSource
val pp_obj_debug :
Ppx_deriving_runtime.Format.formatter ->
obj_debug ->
Ppx_deriving_runtime.unitSource
and obj_micheline = | Oprim of prim| Ostring of string| Obytes of string| Oint of string| Oarray of obj_micheline list| Ovar of obj_micheline_var
Source
and obj_micheline_var = | OMVfree of Ident.ident| OMVint of Ident.ident * bool| OMVstring of Ident.ident| OMVbytes of Ident.ident| OMVif of Ident.ident * obj_micheline * obj_micheline
Source
val obj_micheline_of_yojson :
Yojson.Safe.t ->
obj_micheline Ppx_deriving_yojson_runtime.error_orSource
val obj_micheline_var_of_yojson :
Yojson.Safe.t ->
obj_micheline_var Ppx_deriving_yojson_runtime.error_orSource
val pp_obj_micheline :
Ppx_deriving_runtime.Format.formatter ->
obj_micheline ->
Ppx_deriving_runtime.unitSource
val pp_obj_micheline_var :
Ppx_deriving_runtime.Format.formatter ->
obj_micheline_var ->
Ppx_deriving_runtime.unitSource
type type_node = | Taddress| Tbig_map of type_ * type_| Tbool| Tbytes| Tchain_id| Tcontract of type_| Tint| Tkey| Tkey_hash| Tlambda of type_ * type_| Tlist of type_| Tmap of type_ * type_| Tmutez| Tnat| Toperation| Toption of type_| Tor of type_ * type_| Tpair of type_ list| Tset of type_| Tsignature| Tstring| Ttimestamp| Tunit| Tticket of type_| Tsapling_state of int| Tsapling_transaction of int| Tbls12_381_fr| Tbls12_381_g1| Tbls12_381_g2| Tnever| Tchest| Tchest_key| Tvar of int
Source
val pp_type_node :
Ppx_deriving_runtime.Format.formatter ->
type_node ->
Ppx_deriving_runtime.unitSource
type data = | Dint of Core.big_int| Dstring of string| Dbytes of string| Dunit| Dtrue| Dfalse| Dpair of data list| Dleft of data| Dright of data| Dsome of data| Dnone| Dlist of data list| Delt of data * data| Dvar of Ident.ident * type_ * bool| DIrCode of Ident.ident * instruction| Dcode of code| Dlambda_rec of code| Dconstant of string
Source
and code_node = | SEQ of code list| APPLY| EXEC| FAILWITH| IF of code list * code list| IF_CONS of code list * code list| IF_LEFT of code list * code list| IF_NONE of code list * code list| ITER of code list| LAMBDA of type_ * type_ * code list| LOOP of code list| LOOP_LEFT of code list| DIG of int| DIP of int * code list| DROP of int| DUG of int| DUP| DUP_N of int| PUSH of type_ * data| SWAP| ABS| ADD| COMPARE| EDIV| EQ| GE| GT| NAT| INT| BYTES| ISNAT| LE| LSL| LSR| LT| MUL| NEG| NEQ| SUB| SUB_MUTEZ| AND| NOT| OR| XOR| BLAKE2B| CHECK_SIGNATURE| HASH_KEY| KECCAK| PAIRING_CHECK| SAPLING_EMPTY_STATE of int| SAPLING_VERIFY_UPDATE| SHA256| SHA512| SHA3| ADDRESS| AMOUNT| BALANCE| CHAIN_ID| CONTRACT of type_ * Ident.ident option| CREATE_CONTRACT of obj_micheline| EMIT of type_ * Ident.ident option| IMPLICIT_ACCOUNT| LEVEL| MIN_BLOCK_TIME| NOW| SELF of Ident.ident option| SELF_ADDRESS| SENDER| SET_DELEGATE| SOURCE| TOTAL_VOTING_POWER| TRANSFER_TOKENS| VOTING_POWER| CAR| CDR| CONCAT| CONS| EMPTY_BIG_MAP of type_ * type_| EMPTY_MAP of type_ * type_| EMPTY_SET of type_| GET| GET_N of int| GET_AND_UPDATE| LEFT of type_| MAP of code list| MEM| NEVER| NIL of type_| NONE of type_| PACK| PAIR| PAIR_N of int| RIGHT of type_| SIZE| SLICE| SOME| UNIT| UNPACK of type_| UNPAIR| UNPAIR_N of int| UPDATE| UPDATE_N of int| JOIN_TICKETS| READ_TICKET| SPLIT_TICKET| TICKET| CAST of type_| RENAME| VIEW of Ident.ident * type_| OPEN_CHEST| CAR_N of int| CDR_N of int| CUSTOM of obj_micheline
Source
and un_operator = | Ucar| Ucdr| Uleft of type_| Uright of type_| Uneg| Unat| Uint| Ubytes| Unot| Uabs| Uisnat| Usome| Usize| Upack| Uunpack of type_| Ublake2b| Usha256| Usha512| Usha3| Ukeccak| Uhash_key| Ufail| Ucontract of type_ * Ident.ident option| Usetdelegate| Uimplicitaccount| Ueq| Une| Ugt| Uge| Ult| Ule| Uvotingpower| Ureadticket| Ujointickets| Upairing_check| Uconcat| Uaddress| UcarN of int| UcdrN of int| UforcePair| Uemit of type_ * Ident.ident option
Source
and bin_operator = | Badd| Bsub| Bmul| Bediv| Blsl| Blsr| Bor| Band| Bxor| Bcompare| Bget| Bmem| Bconcat| Bcons| Bpair| Bexec| Bapply| Bcreateticket| Bsplitticket| Bsapling_verify_update| Bview of Ident.ident * type_| Bsubmutez
Source
and ter_operator = | Tcheck_signature| Tslice| Tupdate| Ttransfer_tokens| Topen_chest| Tcreate_contract of obj_micheline
Source
and g_operator = [ | `Zop of z_operator| `Uop of un_operator| `Bop of bin_operator| `Top of ter_operator
]Source
and access_value = {av_ident : Ident.ident;av_path : access_item list;av_source_no_dup : bool;av_value_no_dup : bool;
}Source
and instruction_node = | Iseq of instruction list| IletIn of Ident.ident list * instruction * instruction * bool| Ivar_access of access_value| Icall of Ident.ident * instruction list * bool| Iassign of Ident.ident * instruction| Iassigntuple of Ident.ident * int * int * instruction| Iif of instruction * instruction * instruction * type_| Iifnone of instruction * instruction * Ident.ident * instruction * type_| Iifleft of instruction * Ident.ident * instruction * Ident.ident * instruction * type_| Iifcons of instruction * Ident.ident * Ident.ident * instruction * instruction * type_| Iloop of instruction * instruction| Iiter of Ident.ident list * instruction * instruction| Iloopleft of instruction * Ident.ident * instruction| Ilambda of type_ * Ident.ident * type_ * instruction| Ilambda_michelson of type_ * type_ * obj_micheline| Izop of z_operator| Iunop of un_operator * instruction| Ibinop of bin_operator * instruction * instruction| Iterop of ter_operator * instruction * instruction * instruction| Iupdate of ukind * aoperator| Iconst of type_ * data| Icompare of cmp_operator * instruction * instruction| Iset of type_ * instruction list| Ilist of type_ * instruction list| Imap of bool * type_ * type_ * (instruction * instruction) list| Irecord of ritem| Irecupdate of instruction * ruitem| Imap_ of instruction * Ident.ident * instruction| Ifold of Ident.ident * Ident.ident option * Ident.ident * instruction * instruction * instruction| Ireverse of type_ * instruction| Imichelson of instruction list * code * Ident.ident list| Iwildcard of type_ * Ident.ident| Ireplace of Ident.ident * Ident.ident * klv * instruction| Ireadticket of instruction| Imicheline of obj_micheline * type_ list * instruction list| Irep of Ident.ident * klv
Source
and ruitem = | RUnodes of int * (int * ruitem) list| RUassign of int * (int * instruction) list
Source
and aoperator = | Aunop of un_operator| Abinop of bin_operator * instruction| Aterop of ter_operator * instruction * instruction
Source
val pp_code_node :
Ppx_deriving_runtime.Format.formatter ->
code_node ->
Ppx_deriving_runtime.unitSource
val pp_stack_item :
Ppx_deriving_runtime.Format.formatter ->
stack_item ->
Ppx_deriving_runtime.unitSource
val pp_decl_bound :
Ppx_deriving_runtime.Format.formatter ->
decl_bound ->
Ppx_deriving_runtime.unitSource
val pp_z_operator :
Ppx_deriving_runtime.Format.formatter ->
z_operator ->
Ppx_deriving_runtime.unitSource
val pp_un_operator :
Ppx_deriving_runtime.Format.formatter ->
un_operator ->
Ppx_deriving_runtime.unitSource
val pp_bin_operator :
Ppx_deriving_runtime.Format.formatter ->
bin_operator ->
Ppx_deriving_runtime.unitSource
val pp_ter_operator :
Ppx_deriving_runtime.Format.formatter ->
ter_operator ->
Ppx_deriving_runtime.unitSource
val pp_g_operator :
Ppx_deriving_runtime.Format.formatter ->
g_operator ->
Ppx_deriving_runtime.unitSource
val pp_cmp_operator :
Ppx_deriving_runtime.Format.formatter ->
cmp_operator ->
Ppx_deriving_runtime.unitSource
val pp_builtin :
Ppx_deriving_runtime.Format.formatter ->
builtin ->
Ppx_deriving_runtime.unitSource
val pp_access_item :
Ppx_deriving_runtime.Format.formatter ->
access_item ->
Ppx_deriving_runtime.unitSource
val pp_access_value :
Ppx_deriving_runtime.Format.formatter ->
access_value ->
Ppx_deriving_runtime.unitSource
val pp_instruction_node :
Ppx_deriving_runtime.Format.formatter ->
instruction_node ->
Ppx_deriving_runtime.unitSource
val pp_instruction :
Ppx_deriving_runtime.Format.formatter ->
instruction ->
Ppx_deriving_runtime.unitSource
val pp_aoperator :
Ppx_deriving_runtime.Format.formatter ->
aoperator ->
Ppx_deriving_runtime.unitSource
val pp_ctx_func :
Ppx_deriving_runtime.Format.formatter ->
ctx_func ->
Ppx_deriving_runtime.unitSource
type func = {name : Ident.ident;targ : type_;tret : type_;ctx : ctx_func;body : implem;loc : Location.t;
}Source
type entry = {name : Ident.ident;args : (Ident.ident * type_) list;eargs : (Ident.ident * type_) list;body : instruction;loc : Location.t;
}Source
type ir = {name : Ident.ident;storage_type : type_;storage_data : data;storage_list : (Ident.ident * type_ * data) list;with_operations : bool;parameter : type_;funs : func list;views : func list;offchain_views : func list;entries : entry list;parameters : Ident.ident list;
}Source
val pp_view_struct :
Ppx_deriving_runtime.Format.formatter ->
view_struct ->
Ppx_deriving_runtime.unitSource
type michelson = {storage : type_;parameter : type_;code : code;views : view_struct list;parameters : Ident.ident list;
}Source
val pp_michelson :
Ppx_deriving_runtime.Format.formatter ->
michelson ->
Ppx_deriving_runtime.unitSource
type micheline = {code : obj_micheline list;storage : obj_micheline;parameters : Ident.ident list;views : obj_micheline list;
}Source
val pp_micheline :
Ppx_deriving_runtime.Format.formatter ->
micheline ->
Ppx_deriving_runtime.unitSource
val pp_annotation_struct :
Ppx_deriving_runtime.Format.formatter ->
annotation_struct ->
Ppx_deriving_runtime.unitSource
type michelson_storage_view_struct = {code : obj_micheline;parameter : obj_micheline option;returnType : obj_micheline option;annotations : annotation_struct list;version : string option;
}Source
val pp_michelson_storage_view_struct :
Ppx_deriving_runtime.Format.formatter ->
michelson_storage_view_struct ->
Ppx_deriving_runtime.unitSource
val show_michelson_storage_view_struct :
michelson_storage_view_struct ->
Ppx_deriving_runtime.stringSource
val pp_rest_api_query_struct :
Ppx_deriving_runtime.Format.formatter ->
rest_api_query_struct ->
Ppx_deriving_runtime.unitSource
type offchain_view_implem_kind = | OVIKMichelsonStorageView of michelson_storage_view_struct| OVIKRestApiQuery of rest_api_query_struct
Source
val pp_offchain_view_implem_kind :
Ppx_deriving_runtime.Format.formatter ->
offchain_view_implem_kind ->
Ppx_deriving_runtime.unitSource
val pp_offchain_view :
Ppx_deriving_runtime.Format.formatter ->
offchain_view ->
Ppx_deriving_runtime.unitSource
val pp_dexpr_node :
Ppx_deriving_runtime.Format.formatter ->
dexpr_node ->
Ppx_deriving_runtime.unitSource
val pp_dpattern :
Ppx_deriving_runtime.Format.formatter ->
dpattern ->
Ppx_deriving_runtime.unitSource
val pp_dprogram :
Ppx_deriving_runtime.Format.formatter ->
dprogram ->
Ppx_deriving_runtime.unitSource
val pp_rstack1 :
Ppx_deriving_runtime.Format.formatter ->
rstack1 ->
Ppx_deriving_runtime.unitSource
val mk_ctx_func :
?args:(Ident.ident * type_) list ->
?stovars:Ident.ident list ->
'a ->
ctx_funcSource
val mk_entry :
Ident.ident ->
(Ident.ident * type_) list ->
(Ident.ident * type_) list ->
instruction ->
Location.t ->
entrySource
val mk_ir :
?parameters:Ident.ident list ->
Ident.ident ->
type_ ->
data ->
(Ident.ident * type_ * data) list ->
?with_operations:bool ->
type_ ->
func list ->
func list ->
func list ->
entry list ->
irSource
val mk_michelson :
?parameters:Ident.ident list ->
type_ ->
type_ ->
?views:view_struct list ->
code ->
michelsonSource
val mk_micheline :
?parameters:Ident.ident list ->
?views:obj_micheline list ->
obj_micheline list ->
obj_micheline ->
michelineSource
val iletIn :
?loc:Location.t ->
Ident.ident list ->
instruction ->
instruction ->
bool ->
instructionSource
val iif :
?loc:Location.t ->
instruction ->
instruction ->
instruction ->
type_ ->
instructionSource
val iifnone :
?loc:Location.t ->
instruction ->
instruction ->
Ident.ident ->
instruction ->
type_ ->
instructionSource
val iifleft :
?loc:Location.t ->
instruction ->
Ident.ident ->
instruction ->
Ident.ident ->
instruction ->
type_ ->
instructionSource
val iifcons :
?loc:Location.t ->
instruction ->
Ident.ident ->
Ident.ident ->
instruction ->
instruction ->
type_ ->
instructionSource
val iterop :
?loc:Location.t ->
ter_operator ->
instruction ->
instruction ->
instruction ->
instructionSource
val imap :
?loc:Location.t ->
bool ->
type_ ->
type_ ->
(instruction * instruction) list ->
instructionSource
val ifold :
?loc:Location.t ->
Ident.ident ->
Ident.ident option ->
Ident.ident ->
instruction ->
instruction ->
instruction ->
instructionSource
val imichelson :
?loc:Location.t ->
instruction list ->
code ->
Ident.ident list ->
instructionSource
val ireplace :
?loc:Location.t ->
Ident.ident ->
Ident.ident ->
klv ->
instruction ->
instructionSource
val imicheline :
?loc:Location.t ->
obj_micheline ->
type_ list ->
instruction list ->
instruction