Module Mavryk_raw_protocol_001_PtAtLas.Script_interpreter_defs

type Mavryk_protocol_environment_001_PtAtLas.Error_monad.error +=
  1. | Rollup_invalid_transaction_amount
  2. | Rollup_invalid_entrypoint
val cost_of_instr : 'a 's 'r 'f. ('a, 's, 'r, 'f) Script_typed_ir.kinstr -> 'a -> 's -> Alpha_context.Gas.cost
val cost_of_control : 'a 's 'r 'f. ('a, 's, 'r, 'f) Script_typed_ir.continuation -> Alpha_context.Gas.cost
val consume_instr : Local_gas_counter.local_gas_counter -> ('a, 'b, 'c, 'd) Script_typed_ir.kinstr -> 'e -> 'f -> Local_gas_counter.local_gas_counter option
val kundip : 'a 's 'e 'z 'c 'u 'd 'w 'b 't. ('a, 's, 'e, 'z, 'c, 'u, 'd, 'w) Script_typed_ir.stack_prefix_preservation_witness -> 'c -> 'u -> ('d, 'w, 'b, 't) Script_typed_ir.continuation -> 'a * 's * ('e, 'z, 'b, 't) Script_typed_ir.continuation

emit_event generates an internal operation that will effect an event emission if the contract code returns this successfully.

create_contract (ctxt, sc) gas storage_ty code delegate credit init creates an origination operation for a contract represented by code, some initial credit (withdrawn from the contract being executed), and an initial storage init of type storage_ty.

val unpack : Mavryk_raw_protocol_001_PtAtLas__Alpha_context.t -> ty:('a, 'b) Script_typed_ir.ty -> bytes:bytes -> ('c option * Mavryk_raw_protocol_001_PtAtLas__Alpha_context.t, Mavryk_protocol_environment_001_PtAtLas.Error_monad.error Mavryk_protocol_environment_001_PtAtLas.Error_monad.trace) Mavryk_protocol_environment_001_PtAtLas.Pervasives.result Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val interp_stack_prefix_preserving_operation : 'a 's 'b 't 'c 'u 'd 'w 'result. ('a -> 's -> ('b * 't) * 'result) -> ('a, 's, 'b, 't, 'c, 'u, 'd, 'w) Script_typed_ir.stack_prefix_preservation_witness -> 'c -> 'u -> ('d * 'w) * 'result
type ('a, 'b, 'c, 'd) cont_instrumentation = ('a, 'b, 'c, 'd) Script_typed_ir.continuation -> ('a, 'b, 'c, 'd) Script_typed_ir.continuation
val id : 'a -> 'b