package archetype
Module Archetype.ModelSource
Source
val pp_namespace :
Ppx_deriving_runtime.Format.formatter ->
namespace ->
Ppx_deriving_runtime.unitSource
val pp_container :
Ppx_deriving_runtime.Format.formatter ->
container ->
Ppx_deriving_runtime.unitSource
type ntype = | Tasset of mident| Tenum of mident| Tstate| Tbuiltin of btyp| Tcontainer of type_ * container| Tlist of type_| Toption of type_| Ttuple of type_ list| Tset of type_| Tmap of type_ * type_| Tbig_map of type_ * type_| Titerable_big_map of type_ * type_| Tor of type_ * type_| Trecord of mident| Tevent of mident| Tlambda of type_ * type_| Tunit| Toperation| Tcontract of type_| Tticket of type_| Tsapling_state of int| Tsapling_transaction of int
Source
val pp_pattern_node :
Ppx_deriving_runtime.Format.formatter ->
pattern_node ->
Ppx_deriving_runtime.unitSource
val pp_pattern :
Ppx_deriving_runtime.Format.formatter ->
pattern ->
Ppx_deriving_runtime.unitSource
val pp_for_ident :
Ppx_deriving_runtime.Format.formatter ->
for_ident ->
Ppx_deriving_runtime.unitSource
val pp_comparison_operator :
Ppx_deriving_runtime.Format.formatter ->
comparison_operator ->
Ppx_deriving_runtime.unitSource
val pp_rat_arith_op :
Ppx_deriving_runtime.Format.formatter ->
rat_arith_op ->
Ppx_deriving_runtime.unitSource
val pp_assignment_operator :
Ppx_deriving_runtime.Format.formatter ->
assignment_operator ->
Ppx_deriving_runtime.unitSource
val pp_sort_kind :
Ppx_deriving_runtime.Format.formatter ->
sort_kind ->
Ppx_deriving_runtime.unitSource
val pp_assign_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term assign_kind_gen ->
Ppx_deriving_runtime.unitSource
val show_assign_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term assign_kind_gen ->
Ppx_deriving_runtime.stringSource
val pp_var_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term var_kind_gen ->
Ppx_deriving_runtime.unitSource
val show_var_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term var_kind_gen ->
Ppx_deriving_runtime.stringSource
type 'term container_kind_gen = | CKcoll| CKview of 'term| CKfield of Ident.ident * Ident.ident * 'term
Source
val pp_container_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term container_kind_gen ->
Ppx_deriving_runtime.unitSource
val show_container_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term container_kind_gen ->
Ppx_deriving_runtime.stringSource
type 'term iter_container_kind_gen = | ICKcoll of Ident.ident| ICKview of 'term| ICKfield of Ident.ident * Ident.ident * 'term| ICKset of 'term| ICKlist of 'term| ICKmap of 'term
Source
val pp_iter_container_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term iter_container_kind_gen ->
Ppx_deriving_runtime.unitSource
val show_iter_container_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term iter_container_kind_gen ->
Ppx_deriving_runtime.stringSource
type 'term transfer_kind_gen = | TKsimple of 'term * 'term| TKcall of 'term * Ident.ident * type_ * 'term * 'term| TKentry of 'term * 'term * 'term| TKgen of 'term * Ident.ident * Ident.ident * type_ * 'term * 'term| TKself of 'term * Ident.ident * (Ident.ident * 'term) list| TKoperation of 'term
Source
val pp_transfer_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term transfer_kind_gen ->
Ppx_deriving_runtime.unitSource
val show_transfer_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term transfer_kind_gen ->
Ppx_deriving_runtime.stringSource
val pp_map_kind :
Ppx_deriving_runtime.Format.formatter ->
map_kind ->
Ppx_deriving_runtime.unitSource
val pp_michelson_struct :
Ppx_deriving_runtime.Format.formatter ->
michelson_struct ->
Ppx_deriving_runtime.unitSource
type 'term detach_kind_gen = | DK_option of type_ * Ident.ident| DK_map of type_ * Ident.ident * 'term
Source
val pp_detach_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term detach_kind_gen ->
Ppx_deriving_runtime.unitSource
val show_detach_kind_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term detach_kind_gen ->
Ppx_deriving_runtime.stringSource
type 'term letin_value_gen = | LVsimple of 'term| LVreplace of mident * 'term detach_kind_gen * 'term
Source
val pp_letin_value_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term letin_value_gen ->
Ppx_deriving_runtime.unitSource
val show_letin_value_gen :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term letin_value_gen ->
Ppx_deriving_runtime.stringSource
type 'term mterm_node = | Mletin of mident list * 'term letin_value_gen * type_ option * 'term * 'term option| Mdeclvar of mident list * type_ option * 'term * bool| Mdeclvaropt of mident list * type_ option * 'term * 'term option * bool| Mapp of mident * 'term list| Massign of assignment_operator * type_ * 'term assign_kind_gen * 'term| Massignopt of assignment_operator * type_ * 'term assign_kind_gen * 'term * 'term| Mif of 'term * 'term * 'term option| Mmatchwith of 'term * (pattern * 'term) list| Minstrmatchoption of 'term * mident * 'term * 'term| Minstrmatchor of 'term * mident * 'term * mident * 'term| Minstrmatchlist of 'term * mident * mident * 'term * 'term| Minstrmatchdetach of 'term detach_kind_gen * mident * 'term * 'term| Mfor of for_ident * 'term iter_container_kind_gen * 'term| Miter of mident * 'term * 'term * 'term * bool| Mwhile of 'term * 'term| Mseq of 'term list| Mreturn of 'term| Mfail of fail_type| Mfailexpr of 'term| Mfailsome of 'term| Mtransfer of 'term transfer_kind_gen| Memit of mident * 'term| Msandboxexec of 'term * 'term * 'term| Mdetach of mident * 'term detach_kind_gen * type_ * 'term| Mmicheline of Michelson.obj_micheline| Mgetentrypoint of type_ * mident * 'term| Mcallview of type_ * 'term * mident * 'term| Mimportcallview of type_ * 'term * mident * 'term| Mself of mident| Mselfcallview of type_ * lident * 'term list| Moperations| Mmakeoperation of 'term * 'term * 'term| Mmakeevent of type_ * mident * 'term| Mmakesandboxexecoperation of 'term * 'term * 'term| Mcreatecontract of create_contract_type * 'term * 'term| Mint of Core.big_int| Mnat of Core.big_int| Mbool of bool| Mrational of Core.big_int * Core.big_int| Mstring of string| Mmutez of Core.big_int| Maddress of string| Mdate of Core.date| Mduration of Core.duration| Mtimestamp of Core.big_int| Mbytes of string| Mchain_id of string| Mkey of string| Mkey_hash of string| Msignature of string| Mbls12_381_fr of string| Mbls12_381_fr_n of Core.big_int| Mbls12_381_g1 of string| Mbls12_381_g2 of string| Munit| MsaplingStateEmpty of int| MsaplingTransaction of int * string| Mchest of string| Mchest_key of string| Mtz_expr of string| Mexprif of 'term * 'term * 'term| Mexprmatchwith of 'term * (pattern * 'term) list| Mmatchoption of 'term * mident * 'term * 'term| Mmatchor of 'term * mident * 'term * mident * 'term| Mmatchlist of 'term * mident * mident * 'term * 'term| Mternarybool of 'term * 'term * 'term| Mternaryoption of 'term * 'term * 'term| Mfold of 'term * mident * 'term| Mmap of 'term * mident * 'term| Mexeclambda of 'term * 'term| Mapplylambda of 'term * 'term| Mleft of type_ * 'term| Mright of type_ * 'term| Mnone| Msome of 'term| Mtuple of 'term list| Masset of 'term list| Massets of 'term list| Mlitset of 'term list| Mlitlist of 'term list| Mlitmap of map_kind * ('term * 'term) list| Mlitrecord of (Ident.ident * 'term) list| Mlitevent of (Ident.ident * 'term) list| Mlambda of type_ * mident * type_ * 'term| Mlambda_michelson of type_ * type_ * Michelson.obj_micheline| Mmicheline_expr of type_ * Michelson.obj_micheline * 'term list| Mdot of 'term * mident| Mdotassetfield of mident * 'term * mident| Mquestionoption of 'term * mident| Mequal of type_ * 'term * 'term| Mnequal of type_ * 'term * 'term| Mgt of 'term * 'term| Mge of 'term * 'term| Mlt of 'term * 'term| Mle of 'term * 'term| Mmulticomp of 'term * (comparison_operator * 'term) list| Mand of 'term * 'term| Mor of 'term * 'term| Mgreedyand of 'term * 'term| Mgreedyor of 'term * 'term| Mxor of 'term * 'term| Mnot of 'term| Mplus of 'term * 'term| Mminus of 'term * 'term| Mmult of 'term * 'term| Mdivrat of 'term * 'term| Mdiveuc of 'term * 'term| Mmodulo of 'term * 'term| Mdivmod of 'term * 'term| Muminus of 'term| MthreeWayCmp of 'term * 'term| Mshiftleft of 'term * 'term| Mshiftright of 'term * 'term| Msubnat of 'term * 'term| Msubmutez of 'term * 'term| Maddasset of Ident.ident * 'term| Mputsingleasset of Ident.ident * 'term| Mputasset of Ident.ident * 'term * 'term| Maddfield of Ident.ident * Ident.ident * 'term * 'term| Mremoveasset of Ident.ident * 'term| Mremovefield of Ident.ident * Ident.ident * 'term * 'term| Mremoveall of Ident.ident * 'term container_kind_gen| Mremoveif of Ident.ident * 'term container_kind_gen * (Ident.ident * type_) list * 'term * 'term list| Mclear of Ident.ident * 'term container_kind_gen| Mset of Ident.ident * Ident.ident list * 'term * 'term| Mupdate of Ident.ident * 'term * (mident * assignment_operator * 'term) list| Mupdateall of Ident.ident * 'term container_kind_gen * (mident * assignment_operator * 'term) list| Maddupdate of Ident.ident * 'term container_kind_gen * 'term * (mident * assignment_operator * 'term) list| Mputremove of Ident.ident * 'term container_kind_gen * 'term * 'term| Mget of Ident.ident * 'term container_kind_gen * 'term| Mgetsome of Ident.ident * 'term container_kind_gen * 'term| Mselect of Ident.ident * 'term container_kind_gen * (Ident.ident * type_) list * 'term * 'term list| Msort of Ident.ident * 'term container_kind_gen * (Ident.ident * sort_kind) list| Mcontains of Ident.ident * 'term container_kind_gen * 'term| Mnth of Ident.ident * 'term container_kind_gen * 'term| Mcount of Ident.ident * 'term container_kind_gen| Msum of Ident.ident * 'term container_kind_gen * 'term| Mhead of Ident.ident * 'term container_kind_gen * 'term| Mtail of Ident.ident * 'term container_kind_gen * 'term| Mcast of type_ * type_ * 'term| Mtupleaccess of 'term * Core.big_int| Mrecupdate of 'term * (Ident.ident * 'term) list| Mmakeasset of Ident.ident * 'term * 'term| Mtocontainer of Ident.ident| Mglobal_constant of type_ * 'term| Msetadd of type_ * 'term * 'term| Msetremove of type_ * 'term * 'term| Msetupdate of type_ * 'term * 'term * 'term| Msetcontains of type_ * 'term * 'term| Msetlength of type_ * 'term| Msetfold of type_ * mident * mident * 'term * 'term * 'term| Msetinstradd of type_ * 'term assign_kind_gen * 'term| Msetinstrremove of type_ * 'term assign_kind_gen * 'term| Mlistprepend of type_ * 'term * 'term| Mlistlength of type_ * 'term| Mlistcontains of type_ * 'term * 'term| Mlistnth of type_ * 'term * 'term| Mlisthead of type_ * 'term * 'term| Mlisttail of type_ * 'term * 'term| Mlistreverse of type_ * 'term| Mlistconcat of type_ * 'term * 'term| Mlistfold of type_ * mident * mident * 'term * 'term * 'term| Mlistinstrprepend of type_ * 'term assign_kind_gen * 'term| Mlistinstrconcat of type_ * 'term assign_kind_gen * 'term| Mmapput of map_kind * type_ * type_ * 'term * 'term * 'term| Mmapremove of map_kind * type_ * type_ * 'term * 'term| Mmapupdate of map_kind * type_ * type_ * 'term * 'term * 'term| Mmapget of map_kind * type_ * type_ * 'term * 'term * Ident.ident option| Mmapgetopt of map_kind * type_ * type_ * 'term * 'term| Mmapcontains of map_kind * type_ * type_ * 'term * 'term| Mmaplength of map_kind * type_ * type_ * 'term| Mmapfold of map_kind * type_ * mident * mident * mident * 'term * 'term * 'term| Mmapinstrput of map_kind * type_ * type_ * 'term assign_kind_gen * 'term * 'term| Mmapinstrremove of map_kind * type_ * type_ * 'term assign_kind_gen * 'term| Mmapinstrupdate of map_kind * type_ * type_ * 'term assign_kind_gen * 'term * 'term| Mmin of 'term * 'term| Mmax of 'term * 'term| Mabs of 'term| Mconcat of 'term * 'term| Mconcatlist of 'term| Mslice of 'term * 'term * 'term| Mlength of 'term| Misnone of 'term| Missome of 'term| Minttonat of 'term| Mfloor of 'term| Mceil of 'term| Mnattostring of 'term| Mbytestonat of 'term| Mnattobytes of 'term| Mbytestoint of 'term| Minttobytes of 'term| Mpack of 'term| Munpack of type_ * 'term| Msetdelegate of 'term| Mkeyhashtocontract of 'term| Mcontracttoaddress of 'term| Maddresstocontract of type_ * 'term| Mkeytoaddress of 'term| Msimplify_rational of 'term| Mget_numerator of 'term| Mget_denominator of 'term| Misimplicitaddress of 'term| Mexp_horner of 'term * 'term| Mblake2b of 'term| Msha256 of 'term| Msha512 of 'term| Msha3 of 'term| Mkeccak of 'term| Mkeytokeyhash of 'term| Mchecksignature of 'term * 'term * 'term| Mtotalvotingpower| Mvotingpower of 'term| Mcreateticket of 'term * 'term| Mreadticket of 'term| Msplitticket of 'term * 'term * 'term| Mjointickets of 'term * 'term| Msapling_empty_state of int| Msapling_verify_update of 'term * 'term| Mpairing_check of 'term| Mopen_chest of 'term * 'term * 'term| Mnow| Mtransferred| Mcaller| Mbalance| Msource| Mselfaddress| Mselfchainid| Mmetadata| Mlevel| Mminblocktime| Mvar of mident * 'term var_kind_gen| Menumval of mident * 'term list * mident| Mrateq of 'term * 'term| Mratcmp of comparison_operator * 'term * 'term| Mratarith of rat_arith_op * 'term * 'term| Mratuminus of 'term| Mrattez of 'term * 'term| Mnattoint of 'term| Mnattorat of 'term| Minttorat of 'term| Mratdur of 'term * 'term| Minttodate of 'term| Mmuteztonat of 'term
Source
and fail_type = | Invalid of mterm| InvalidCaller| InvalidSource| InvalidCondition of Ident.ident * mterm option| NotFound| AssetNotFound of Ident.ident| KeyExists of Ident.ident| KeyExistsOrNotFound of Ident.ident| DivByZero| NatNegAssign| NoTransfer| InvalidState
Source
and api_asset = | Get of Ident.ident| Set of Ident.ident| Add of Ident.ident| Remove of Ident.ident| Clear of Ident.ident * api_container_kind| Update of Ident.ident * (Ident.ident * assignment_operator * mterm) list| FieldAdd of Ident.ident * Ident.ident| FieldRemove of Ident.ident * Ident.ident| RemoveAll of Ident.ident * api_container_kind| RemoveIf of Ident.ident * api_container_kind * (Ident.ident * type_) list * mterm| Contains of Ident.ident * api_container_kind| Nth of Ident.ident * api_container_kind| Select of Ident.ident * api_container_kind * (Ident.ident * type_) list * mterm| Sort of Ident.ident * api_container_kind * (Ident.ident * sort_kind) list| Count of Ident.ident * api_container_kind| Sum of Ident.ident * api_container_kind * type_ * mterm| Head of Ident.ident * api_container_kind| Tail of Ident.ident * api_container_kind
Source
and api_storage_node = | APIAsset of api_asset| APIList of api_list| APIBuiltin of api_builtin| APIInternal of api_internal
Source
and create_contract_type = | CCTz of michelson_struct * mterm| CCArl of Ident.ident * (Ident.ident * mterm) list
Source
val pp_mterm_node :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'term mterm_node ->
Ppx_deriving_runtime.unitSource
val pp_assign_kind :
Ppx_deriving_runtime.Format.formatter ->
assign_kind ->
Ppx_deriving_runtime.unitSource
val pp_var_kind :
Ppx_deriving_runtime.Format.formatter ->
var_kind ->
Ppx_deriving_runtime.unitSource
val pp_container_kind :
Ppx_deriving_runtime.Format.formatter ->
container_kind ->
Ppx_deriving_runtime.unitSource
val pp_iter_container_kind :
Ppx_deriving_runtime.Format.formatter ->
iter_container_kind ->
Ppx_deriving_runtime.unitSource
val pp_transfer_kind :
Ppx_deriving_runtime.Format.formatter ->
transfer_kind ->
Ppx_deriving_runtime.unitSource
val pp_mterm_gen :
Ppx_deriving_runtime.Format.formatter ->
mterm ->
Ppx_deriving_runtime.unitSource
val pp_mterm__node :
Ppx_deriving_runtime.Format.formatter ->
mterm__node ->
Ppx_deriving_runtime.unitSource
val pp_fail_type :
Ppx_deriving_runtime.Format.formatter ->
fail_type ->
Ppx_deriving_runtime.unitSource
val pp_api_container_kind :
Ppx_deriving_runtime.Format.formatter ->
api_container_kind ->
Ppx_deriving_runtime.unitSource
val pp_api_asset :
Ppx_deriving_runtime.Format.formatter ->
api_asset ->
Ppx_deriving_runtime.unitSource
val pp_api_list :
Ppx_deriving_runtime.Format.formatter ->
api_list ->
Ppx_deriving_runtime.unitSource
val pp_api_builtin :
Ppx_deriving_runtime.Format.formatter ->
api_builtin ->
Ppx_deriving_runtime.unitSource
val pp_api_internal :
Ppx_deriving_runtime.Format.formatter ->
api_internal ->
Ppx_deriving_runtime.unitSource
val pp_api_storage_node :
Ppx_deriving_runtime.Format.formatter ->
api_storage_node ->
Ppx_deriving_runtime.unitSource
val pp_api_storage :
Ppx_deriving_runtime.Format.formatter ->
api_storage ->
Ppx_deriving_runtime.unitSource
val pp_letin_value :
Ppx_deriving_runtime.Format.formatter ->
letin_value ->
Ppx_deriving_runtime.unitSource
val pp_detach_kind :
Ppx_deriving_runtime.Format.formatter ->
detach_kind ->
Ppx_deriving_runtime.unitSource
val pp_create_contract_type :
Ppx_deriving_runtime.Format.formatter ->
create_contract_type ->
Ppx_deriving_runtime.unitSource
val show_mterm_node :
'term. (Ppx_deriving_runtime.Format.formatter ->
'term ->
Ppx_deriving_runtime.unit) ->
'term mterm_node ->
Ppx_deriving_runtime.stringSource
val pp_model_type :
Ppx_deriving_runtime.Format.formatter ->
model_type ->
Ppx_deriving_runtime.unitSource
type storage_item = {id : mident;model_type : model_type;typ : type_;const : bool;ghost : bool;default : mterm;namespace : Ident.ident option;no_storage : bool;loc : Location.t;
}Source
val pp_storage_item :
Ppx_deriving_runtime.Format.formatter ->
storage_item ->
Ppx_deriving_runtime.unitSource
val pp_storage :
Ppx_deriving_runtime.Format.formatter ->
storage ->
Ppx_deriving_runtime.unitSource
val pp_enum_item :
Ppx_deriving_runtime.Format.formatter ->
enum_item ->
Ppx_deriving_runtime.unitSource
val pp_variable_kind :
Ppx_deriving_runtime.Format.formatter ->
variable_kind ->
Ppx_deriving_runtime.unitSource
type var = {name : mident;type_ : type_;original_type : type_;kind : variable_kind;default : mterm option;loc : Location.t;
}Source
val pp_asset_item :
Ppx_deriving_runtime.Format.formatter ->
asset_item ->
Ppx_deriving_runtime.unitSource
val pp_init_asset :
Ppx_deriving_runtime.Format.formatter ->
init_asset ->
Ppx_deriving_runtime.unitSource
type asset = {name : mident;values : asset_item list;keys : Ident.ident list;sort : mident list;map_kind : map_kind;state : lident option;init : init_asset;no_storage : bool;loc : Location.t;
}Source
val pp_position :
Ppx_deriving_runtime.Format.formatter ->
position ->
Ppx_deriving_runtime.unitSource
val pp_record_field :
Ppx_deriving_runtime.Format.formatter ->
record_field ->
Ppx_deriving_runtime.unitSource
val pp_function_ :
Ppx_deriving_runtime.Format.formatter ->
function_ ->
Ppx_deriving_runtime.unitSource
val pp_argument :
Ppx_deriving_runtime.Format.formatter ->
argument ->
Ppx_deriving_runtime.unitSource
type function_struct = {name : mident;args : argument list;eargs : argument list;stovars : Ident.ident list;body : mterm;side_effect : bool;loc : Location.t;
}Source
val pp_function_struct :
Ppx_deriving_runtime.Format.formatter ->
function_struct ->
Ppx_deriving_runtime.unitSource
val pp_view_visibility :
Ppx_deriving_runtime.Format.formatter ->
view_visibility ->
Ppx_deriving_runtime.unitSource
val pp_returned_fun_type :
Ppx_deriving_runtime.Format.formatter ->
returned_fun_type ->
Ppx_deriving_runtime.unitSource
type function_node = | Function of function_struct * returned_fun_type| Getter of function_struct * type_| View of function_struct * type_ * view_visibility| Entry of function_struct
Source
val pp_function_node :
Ppx_deriving_runtime.Format.formatter ->
function_node ->
Ppx_deriving_runtime.unitSource
val pp_signature :
Ppx_deriving_runtime.Format.formatter ->
signature ->
Ppx_deriving_runtime.unitSource
val pp_decl_node :
Ppx_deriving_runtime.Format.formatter ->
decl_node ->
Ppx_deriving_runtime.unitSource
val pp_parameter :
Ppx_deriving_runtime.Format.formatter ->
parameter ->
Ppx_deriving_runtime.unitSource
val pp_metadata_kind :
Ppx_deriving_runtime.Format.formatter ->
metadata_kind ->
Ppx_deriving_runtime.unitSource
val pp_odel_asset :
Ppx_deriving_runtime.Format.formatter ->
odel_asset ->
Ppx_deriving_runtime.unitSource
val pp_odel_record :
Ppx_deriving_runtime.Format.formatter ->
odel_record ->
Ppx_deriving_runtime.unitSource
val pp_odel_enum :
Ppx_deriving_runtime.Format.formatter ->
odel_enum ->
Ppx_deriving_runtime.unitSource
val pp_original_decl :
Ppx_deriving_runtime.Format.formatter ->
original_decl ->
Ppx_deriving_runtime.unitSource
type model = {name : lident;parameters : parameter list;metadata : metadata_kind option;api_items : api_storage list;decls : decl_node list;storage : storage;functions : function_node list;extra : extra;cc_models : model list;loc : Location.t;
}Source
val mk_var :
?default:mterm ->
?loc:Location.t ->
mident ->
type_ ->
type_ ->
variable_kind ->
varSource
val mk_asset :
?values:asset_item list ->
?sort:mident list ->
?map_kind:map_kind ->
?state:lident ->
?keys:Ident.ident list ->
?init:init_asset ->
?loc:Location.t ->
?no_storage:bool ->
mident ->
assetSource
val mk_asset_item :
?default:mterm ->
?shadow:bool ->
?loc:Location.t ->
mident ->
type_ ->
type_ ->
asset_itemSource
val mk_record :
?fields:record_field list ->
?pos:position ->
?loc:Location.t ->
mident ->
recordSource
val mk_storage_item :
?const:bool ->
?ghost:bool ->
?namespace:Ident.ident ->
?no_storage:bool ->
?loc:Location.t ->
mident ->
model_type ->
type_ ->
mterm ->
storage_itemSource
val mk_function_struct :
?args:argument list ->
?eargs:argument list ->
?stovars:Ident.ident list ->
?side_effect:bool ->
?loc:Location.t ->
mident ->
mterm ->
function_structSource
val mk_model :
?parameters:parameter list ->
?metadata:metadata_kind ->
?api_items:api_storage list ->
?decls:decl_node list ->
?functions:function_node list ->
?storage:storage ->
?extra:extra ->
?cc_models:model list ->
?loc:Location.t ->
lident ->
modelSource
val cmp_mterm_node :
(mterm -> mterm -> bool) ->
(mident -> mident -> bool) ->
mterm mterm_node ->
mterm mterm_node ->
boolSource
val map_assign_kind :
(mident -> mident) ->
('a -> 'b) ->
'a assign_kind_gen ->
'b assign_kind_genSource
val map_container_kind :
(Ident.ident -> Ident.ident) ->
('a -> 'b) ->
'a container_kind_gen ->
'b container_kind_genSource
val map_iter_container_kind :
(Ident.ident -> Ident.ident) ->
('a -> 'b) ->
'a iter_container_kind_gen ->
'b iter_container_kind_genSource
val map_transfer_kind :
(Ident.ident -> Ident.ident) ->
(type_ -> type_) ->
('a -> 'b) ->
'a transfer_kind_gen ->
'b transfer_kind_genSource
val map_detach_kind :
(Ident.ident -> Ident.ident) ->
(type_ -> type_) ->
('a -> 'b) ->
'a detach_kind_gen ->
'b detach_kind_genSource
val map_create_contract_type :
(mterm -> mterm) ->
(Ident.ident -> Ident.ident) ->
create_contract_type ->
create_contract_typeSource
val map_term_node_internal :
(Ident.ident -> Ident.ident) ->
(mident -> mident) ->
(type_ -> type_) ->
(mterm -> mterm) ->
mterm mterm_node ->
mterm mterm_nodeSource
type 't ctx_model_gen = {formula : bool;fun_node : function_node option;fs : function_struct option;label : mident option;spec_id : mident option;invariant_id : mident option;custom : 't;
}Source
val mk_ctx_model :
?formula:bool ->
?fun_node:function_node ->
?fs:function_struct ->
?label:mident ->
?spec_id:mident ->
?invariant_id:mident ->
't ->
't ctx_model_genSource
val fold_map_assign_kind :
('a -> 'b -> 'c * 'a) ->
'a ->
'b assign_kind_gen ->
'c assign_kind_gen * 'aSource
val fold_map_var_kind :
('a -> 'b -> 'c * 'a) ->
'a ->
'b var_kind_gen ->
'c var_kind_gen * 'aSource
val fold_map_container_kind :
('a -> 'b -> 'c * 'a) ->
'a ->
'b container_kind_gen ->
'c container_kind_gen * 'aSource
val fold_map_iter_container_kind :
('a -> 'b -> 'c * 'a) ->
'a ->
'b iter_container_kind_gen ->
'c iter_container_kind_gen * 'aSource
val fold_map_transfer_kind :
('a -> 'b -> 'c * 'a) ->
'a ->
'b transfer_kind_gen ->
'c transfer_kind_gen * 'aSource
val fold_map_detach_kind :
('a -> 'b -> 'c * 'a) ->
'a ->
'b detach_kind_gen ->
'c detach_kind_gen * 'aSource
type kind_ident = | KIarchetype| KIparameter| KIdeclvarname| KIassetname| KIassetfield| KIassetstate| KIassetinit| KIrecordname| KIrecordfield| KIparamlambda| KIenumname| KIenumvalue| KIcontractname| KIcontractentry| KIstoragefield| KIentry| KIfunction| KIgetter| KIview| KIargument| KIlocalvar| KIlabel| KIpredicate| KIdefinition| KIdefinitionvar| KIinvariant| KIpostcondition| KIpostconditionuse| KIfaillabel| KIfailfid| KIfailarg| KIsecurityad| KIsecurityrole| KIsecurityentry| KImterm
Source
val map_model :
(kind_ident -> Ident.ident -> Ident.ident) ->
(type_ -> type_) ->
(mterm -> mterm) ->
model ->
model