Module RPC.Scripts

module S : sig ... end
module type UNPARSING_MODE = sig ... end
module Unparse_types : sig ... end
module Normalize_stack : sig ... end
type Mavryk_protocol_001_PtAtLas.Environment.Error_monad.error +=
  1. | Run_operation_does_not_support_consensus_operations

Validate and apply the operation but skip signature checks; do not support consensus operations.

Return the unchanged operation protocol data, and the operation receipt ie. metadata containing balance updates, consumed gas, application success or failure, etc.

val default_from_context : 'a -> ('b -> ('c, 'd) Stdlib.result Lwt.t) -> 'e option -> ('c, 'd) Stdlib.result Lwt.t
val register : unit -> unit
val run_code : unparsing_mode: Mavryk_protocol_001_PtAtLas.Protocol.Script_ir_unparser.unparsing_mode option -> gas: Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Gas.Arith.integral option -> entrypoint:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Entrypoint.t -> balance:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Tez.t option -> other_contracts:S.other_contract_description list option -> extra_big_maps:S.extra_big_map_description list option -> script:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr -> storage:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr -> input:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr -> amount:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Tez.t -> chain_id:Mavryk_protocol_001_PtAtLas.Environment.Chain_id.t -> sender:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Contract.t option -> payer: Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t option -> self:Mavryk_raw_protocol_001_PtAtLas.Contract_hash.t option -> now:Mavryk_protocol_001_PtAtLas.Protocol.Script_timestamp.t option -> level: Mavryk_protocol_001_PtAtLas.Protocol.Script_int.n Mavryk_protocol_001_PtAtLas.Protocol.Script_int.num option -> 'a Mavryk_protocol_001_PtAtLas.Environment.RPC_context.simple -> 'b -> (Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr * Mavryk_protocol_001_PtAtLas.Protocol.Apply_internal_results.packed_internal_operation list * Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Lazy_storage.diffs option) Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val trace_code : unparsing_mode: Mavryk_protocol_001_PtAtLas.Protocol.Script_ir_unparser.unparsing_mode option -> gas: Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Gas.Arith.integral option -> entrypoint:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Entrypoint.t -> balance:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Tez.t option -> other_contracts:S.other_contract_description list option -> extra_big_maps:S.extra_big_map_description list option -> script:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr -> storage:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr -> input:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr -> amount:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Tez.t -> chain_id:Mavryk_protocol_001_PtAtLas.Environment.Chain_id.t -> sender:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Contract.t option -> payer: Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t option -> self:Mavryk_raw_protocol_001_PtAtLas.Contract_hash.t option -> now:Mavryk_protocol_001_PtAtLas.Protocol.Script_timestamp.t option -> level: Mavryk_protocol_001_PtAtLas.Protocol.Script_int.n Mavryk_protocol_001_PtAtLas.Protocol.Script_int.num option -> 'a Mavryk_protocol_001_PtAtLas.Environment.RPC_context.simple -> 'b -> (Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr * Mavryk_protocol_001_PtAtLas.Protocol.Apply_internal_results.packed_internal_operation list * Mavryk_protocol_001_PtAtLas.Protocol.Script_typed_ir.execution_trace * Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Lazy_storage.diffs option) Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult Mavryk_protocol_environment_001_PtAtLas.Lwt.t

run_script_view is an helper function to call the corresponding RPC.

val run_instr : gas: Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Gas.Arith.integral option -> legacy:bool -> input: (Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr * Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr) list -> code:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr -> chain_id:Mavryk_protocol_001_PtAtLas.Environment.Chain_id.t -> now:Mavryk_protocol_001_PtAtLas.Protocol.Script_timestamp.t option -> level: Mavryk_protocol_001_PtAtLas.Protocol.Script_int.n Mavryk_protocol_001_PtAtLas.Protocol.Script_int.num option -> unparsing_mode: Mavryk_protocol_001_PtAtLas.Protocol.Script_ir_unparser.unparsing_mode option -> source: Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t option -> sender:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Contract.t option -> self:Mavryk_raw_protocol_001_PtAtLas.Contract_hash.t option -> parameter: Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr option -> amount:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Tez.t -> balance:Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Tez.t option -> other_contracts:S.other_contract_description list option -> extra_big_maps:S.extra_big_map_description list option -> 'a Mavryk_protocol_001_PtAtLas.Environment.RPC_context.simple -> 'b -> ((Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr * Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Script.expr) list * Mavryk_protocol_001_PtAtLas.Protocol.Alpha_context.Gas.t) Mavryk_protocol_environment_001_PtAtLas.Error_monad.shell_tzresult Mavryk_protocol_environment_001_PtAtLas.Lwt.t