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
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_ * type_| Tset of type_| Tsignature| Tstring| Ttimestamp| Tunit| Tsapling_transaction| Tsapling_state| Tnever| Tbls12_381_g1| Tbls12_381_g2| Tbls12_381_fr| Tbaker_hash| Tbaker_operation| Tpvss_key
Source
val pp_type_node :
Ppx_deriving_runtime.Format.formatter ->
type_node ->
Ppx_deriving_runtime.unitSource
type code = | 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| PUSH of type_ * data| SWAP| ABS| ADD| COMPARE| EDIV| EQ| GE| GT| INT| ISNAT| LE| LSL| LSR| LT| MUL| NEG| NEQ| SUB| AND| NOT| OR| XOR| BLAKE2B| CHECK_SIGNATURE| HASH_KEY| SHA256| SHA512| ADDRESS| AMOUNT| BALANCE| CHAIN_ID| CONTRACT of type_ * Ident.ident option| CREATE_CONTRACT of code list| IMPLICIT_ACCOUNT| NOW| SELF| SENDER| SET_DELEGATE| SOURCE| TRANSFER_TOKENS| CAR| CDR| CONCAT| CONS| EMPTY_BIG_MAP of type_ * type_| EMPTY_MAP of type_ * type_| EMPTY_SET of type_| GET| LEFT of type_| MAP of code list| MEM| NIL of type_| NONE of type_| PACK| PAIR| RIGHT of type_| SIZE| SLICE| SOME| UNIT| UNPACK of type_| UPDATE| UNPAIR| SELF_ADDRESS| CAST| CREATE_ACCOUNT| RENAME| STEPS_TO_QUOTA| LEVEL| SAPLING_EMPTY_STATE| SAPLING_VERIFY_UPDATE| NEVER| VOTING_POWER| TOTAL_VOTING_POWER| KECCAK| SHA3| PAIRING_CHECK| SUBMIT_PROPOSALS| SUBMIT_BALLOT| SET_BAKER_ACTIVE| TOGGLE_BAKER_DELEGATIONS| SET_BAKER_CONSENSUS_KEY| SET_BAKER_PVSS_KEY
Source
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_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
type instruction = | Iseq of instruction list| IletIn of Ident.ident * instruction * instruction * bool| Ivar of Ident.ident| Icall of Ident.ident * instruction list * bool| Iassign of Ident.ident * instruction| IassignRec of Ident.ident * int * int * instruction| Iif of instruction * instruction * instruction * type_| Iifnone of instruction * instruction * Ident.ident * instruction| Iifcons of instruction * instruction * instruction| Iwhile of instruction * instruction| Iiter of Ident.ident list * instruction * instruction| Izop of z_operator| Iunop of un_operator * instruction| Ibinop of bin_operator * instruction * instruction| Iterop of ter_operator * instruction * instruction * instruction| Iconst of type_ * data| Icompare of cmp_operator * instruction * instruction| Iset of type_ * instruction list| Ilist of type_ * instruction list| Imap of type_ * type_ * (instruction * instruction) list| Irecord of instruction list| Irecupdate of instruction * int * (int * instruction) list| Ifold of Ident.ident * Ident.ident option * Ident.ident * instruction * instruction * instruction| Imichelson of instruction list * code * Ident.ident list
Source
val pp_instruction :
Ppx_deriving_runtime.Format.formatter ->
instruction ->
Ppx_deriving_runtime.unitSource
type entry = {name : Ident.ident;args : (Ident.ident * type_) list;eargs : (Ident.ident * type_) list;body : instruction;
}Source
val pp_michelson :
Ppx_deriving_runtime.Format.formatter ->
michelson ->
Ppx_deriving_runtime.unitSource
val pp_alpha_ident :
Ppx_deriving_runtime.Format.formatter ->
alpha_ident ->
Ppx_deriving_runtime.unitSource
type dexpr = | Dalpha of alpha_ident| Dvar of type_| Dstorage of type_| Doperations| Ddata of data| Dzop of z_operator| Duop of un_operator * dexpr| Dbop of bin_operator * dexpr * dexpr| Dtop of ter_operator * dexpr * dexpr * dexpr
Source
type dinstruction = | Dassign of dexpr * dexpr| Dif of dexpr * dinstruction list * dinstruction list| Dfail of dexpr| Ddecl of alpha_ident
Source
val pp_dinstruction :
Ppx_deriving_runtime.Format.formatter ->
dinstruction ->
Ppx_deriving_runtime.unitSource
val pp_sysofequations :
Ppx_deriving_runtime.Format.formatter ->
sysofequations ->
Ppx_deriving_runtime.unitSource
type dprogram = {name : Ident.ident;storage : type_;parameter : type_;storage_data : data;code : dinstruction list;
}Source
val pp_dprogram :
Ppx_deriving_runtime.Format.formatter ->
dprogram ->
Ppx_deriving_runtime.unitSource
val mk_entry :
Ident.ident ->
(Ident.ident * type_) list ->
(Ident.ident * type_) list ->
instruction ->
entrySource
val map_dinstruction_gen :
(dexpr -> dexpr) ->
(dinstruction -> dinstruction) ->
dinstruction ->
dinstruction