Module Mavryk_client_002_PtBoreas.Injection

type fee_parameter = {
  1. minimal_fees : Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t;
  2. minimal_nanomav_per_byte : Q.t;
  3. minimal_nanomav_per_gas_unit : Q.t;
  4. force_low_fee : bool;
  5. fee_cap : Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t;
  6. burn_cap : Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t;
}

Perform simulation of the given operations and return the corresponding preapply_results.

val inject_operation : Protocol_client_context.full -> chain:Mavryk_shell_services.Shell_services.chain -> block:Mavryk_shell_services.Shell_services.block -> ?confirmations:int -> ?dry_run:bool -> ?simulation:bool -> ?successor_level:bool -> ?branch:int -> ?src_sk:Mavryk_client_base.Client_keys.sk_uri -> ?verbose_signing:bool -> ?fee_parameter:fee_parameter -> 'kind Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.contents_list -> 'kind result_list Mavryk_base.TzPervasives.tzresult Lwt.t

/!\ inject_operation does not perform automatic patching of gas, storage and fees; use inject_manager_operation to inject manager operations.

Collects the addresses of all contracts originated by a batch of operations by looking at the operation results. Fails if an operation in the batch is failed unless force is given.