Mavryk_002_PtBoreas_test_helpers.Opval pack_operation :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.signature option ->
'a Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.contents_list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operationAssemble the given signature and contents_list into a packed_operation.
The context argument is used to retrieve the branch.
If the signature option argument is None, then the resulting operation is unsigned.
This function is mainly useful to craft an operation with a missing or invalid signatue. Otherwise, it is often better to use one of the helpers below: they handle the signature internally to directly return well-signed operations.
val sign :
?watermark:Mavryk_base.TzPervasives.Signature.watermark ->
Mavryk_base.TzPervasives.Signature.secret_key ->
Mavryk_base.TzPervasives.Block_hash.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_contents_list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operationval raw_attestation :
?delegate:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
?slot:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Slot.t ->
?level:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Raw_level.t ->
?round:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Round.t ->
?block_payload_hash:
Mavryk_protocol_002_PtBoreas.Protocol.Block_payload_hash.t ->
?dal_content:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.dal_content ->
?branch:Mavryk_base.TzPervasives.Block_hash.t ->
Block.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.attestation
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.t
Mavryk_base.TzPervasives.tzresult
Lwt.tCreate an unpacked attestation that is expected for given Block.t.
Optional parameters allow to specify the attested values: level, round, block_payload_hash, and/or dal_content.
They also allow to specify the attester (delegate), and/or the slot. These default to the first slot and its delegate.
Finally, the operation branch can be specified. It defaults to the predecessor of the attested block.
val raw_preattestation :
?delegate:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
?slot:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Slot.t ->
?level:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Raw_level.t ->
?round:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Round.t ->
?block_payload_hash:
Mavryk_protocol_002_PtBoreas.Protocol.Block_payload_hash.t ->
?branch:Mavryk_base.TzPervasives.Block_hash.t ->
Block.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.preattestation
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.t
Mavryk_base.TzPervasives.tzresult
Lwt.tCreate an unpacked preattestation that is expected for a given Block.t.
Optional parameters are the same than raw_attestation.
val attestation :
?delegate:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
?slot:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Slot.t ->
?level:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Raw_level.t ->
?round:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Round.t ->
?block_payload_hash:
Mavryk_protocol_002_PtBoreas.Protocol.Block_payload_hash.t ->
?dal_content:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.dal_content ->
?branch:Mavryk_base.TzPervasives.Block_hash.t ->
Block.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tCreate a packed attestation that is expected for a given Block.t by packing the result of raw_attestation.
val preattestation :
?delegate:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
?slot:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Slot.t ->
?level:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Raw_level.t ->
?round:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Round.t ->
?block_payload_hash:
Mavryk_protocol_002_PtBoreas.Protocol.Block_payload_hash.t ->
?branch:Mavryk_base.TzPervasives.Block_hash.t ->
Block.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tCreate a packed preattestation that is expected for a given Block.t by packing the result of raw_preattestation.
type gas_limit = | MaxMax corresponds to the max_gas_limit_per_operation constant.
| HighHigh corresponds to 50_000 gas unit which should cover a majority of use-cases. This is the default used when forging manager operations.
| LowLow corresponds to the gas entry cost of a manager operation
*)| Zero| Custom_gas of Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Gas.Arith.integralval pp_gas_limit : Stdlib.Format.formatter -> gas_limit -> unitPretty printer for gas_limit type.
val transaction :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
?parameters:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.lazy_expr ->
?entrypoint:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Entrypoint.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tval unsafe_transaction :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
?parameters:
Mavryk_protocol_002_PtBoreas.Protocol.Michelson_v1_primitives.prim
Mavryk_micheline.Micheline.canonical
Mavryk_base.TzPervasives.Data_encoding.lazy_t ->
?entrypoint:Mavryk_protocol_002_PtBoreas.Protocol.Entrypoint_repr.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation
Mavryk_base.TzPervasives.tzresult
Lwt.tSame as transaction, but with a more generic destination parameter. It is said unsafe because it can construct transactions that will always fail, such as
Optional arguments allow to override defaults:
?force_reveal:bool: prepend the operation to reveal source's public key if the latter has not been revealed yet. Disabled (set to false) by default.val delegation :
?force_reveal:bool ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash option ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tval set_deposits_limit :
?force_reveal:bool ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t option ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tval increase_paid_storage :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
source:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
destination:Mavryk_protocol_002_PtBoreas.Protocol.Contract_hash.t ->
Z.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tval revelation :
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?forge_pkh:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash option ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation,
Mavryk_base.TzPervasives.tztrace)
Stdlib.result
Lwt.trevelation ?fee ?gas_limit ?forge_pkh ctxt pkh Creates a new Reveal manager_operation to reveal a public key pkh applying to current context ctxt.
Optional arguments allow to override defaults:
?fee:Tez.t: specify a fee, otherwise set to Tez.zero.?gas_limit:Gas.Arith.integral: force a gas limit, otherwise set to 10000 gas units.?forge_pkh: use a provided pkh as source, instead of hashing pkh. Useful for forging non-honest reveal operations?storage_limit:Z.t: forces a storage limit, otherwise set to Z.zeroval contract_origination :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?delegate:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
script:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.t ->
?public_key:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key ->
?credit:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
* Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t)
Mavryk_base.TzPervasives.tzresult
Lwt.tcontract_origination ctxt source Create a new contract origination operation, sign it with source and returns it alongside the contract address. The contract address is using the initial origination nonce with the hash of the operation. If this operation is combined with combine_operations then the contract address is false as the nonce is not based on the correct operation hash.
Optional arguments allow to override defaults:
?force_reveal:bool: prepend the operation to reveal source's public key if the latter has not been revealed yet. Disabled (set to false) by default.val contract_origination_hash :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?delegate:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
script:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.t ->
?public_key:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key ->
?credit:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
* Mavryk_protocol_002_PtBoreas.Protocol.Contract_hash.t)
Mavryk_base.TzPervasives.tzresult
Lwt.tval register_global_constant :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?public_key:Mavryk_base.TzPervasives.Signature.public_key ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
source:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
value:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.lazy_expr ->
(Mavryk_protocol_002_PtBoreas.Protocol.operation,
Mavryk_base.TzPervasives.tztrace)
Stdlib.result
Lwt.tval double_attestation :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.attestation
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.attestation
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packedval double_preattestation :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.preattestation
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.preattestation
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packedval combine_operations :
?public_key:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?spurious_operation:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation ->
source:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation
Mavryk_base.TzPervasives.tzresult
Lwt.tval batch_operations :
?recompute_counters:bool ->
source:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation
Mavryk_base.TzPervasives.tzresult
Lwt.tBatch a list of (already signed) operations and (re-)sign with the source. No revelation is inserted and the counters are kept as they are unless recompute_counters is set to true (defaults false).
val seed_nonce_revelation :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Raw_level.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Nonce.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packedReveals a seed_nonce that was previously committed at a certain level
val vdf_revelation :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Seed.vdf_solution ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packedReveals a VDF with a proof of correctness
val proposals_contents :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
?period:int32 ->
Mavryk_base.TzPervasives.Protocol_hash.t list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.proposals
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.contents_list
Mavryk_base.TzPervasives.tzresult
Lwt.tCraft the contents_list for a Proposals operation.
Invocation: proposals_contents ctxt source ?period proposals.
val proposals :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
?period:int32 ->
Mavryk_base.TzPervasives.Protocol_hash.t list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tCraft a Proposals operation.
Invocation: proposals ctxt source ?period proposals.
val ballot_contents :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
?period:int32 ->
Mavryk_base.TzPervasives.Protocol_hash.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Vote.ballot ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Kind.ballot
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.contents_list
Mavryk_base.TzPervasives.tzresult
Lwt.tCraft the contents_list for a Ballot operation.
Invocation: ballot_contents ctxt source ?period proposal ballot.
val ballot :
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
?period:int32 ->
Mavryk_base.TzPervasives.Protocol_hash.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Vote.ballot ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tCraft a Ballot operation.
Invocation: ballot ctxt source ?period proposal ballot.
val dummy_script : Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.tval dummy_script_cost :
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.tval transfer_ticket :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
source:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
contents:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.lazy_expr ->
ty:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.lazy_expr ->
ticketer:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
amount:Mavryk_protocol_002_PtBoreas.Protocol.Ticket_amount.t ->
destination:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
entrypoint:Mavryk_protocol_002_PtBoreas.Protocol.Entrypoint_repr.t ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation,
Mavryk_base.TzPervasives.tztrace)
Stdlib.result
Lwt.ttransfer_ticket allows an implicit account to transfer tickets they owned.
The arguments are:
Context.t: the context on which to apply the operationsource:Contract.t: the source contract of the operationTx_rollup.t: the rollup to which the withdrawal pertainsTx_rollup_level.t: the level on which the withdrawal was commitedcontents:Script.lazy_expr: the contents of the ticket of the withdrawalty:Script.lazy_expr: the type of the ticket of the withdrawalticketer:Contract.t: the ticketer of the ticket of the withdrawalZ.t: the quantity of the ticket of the withdrawaldestination:Contract.t: the destination contract that should receive the ticket of the withdrawalEntrypoint_repr.t: the entrypoint of the destination contract to which the ticket should be sentOptional arguments allow to override defaults:
?force_reveal:bool: prepend the operation to reveal source's public key if the latter has not been revealed yet. Disabled (set to false) by default.val sc_rollup_origination :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
?whitelist:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.Whitelist.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.Kind.t ->
boot_sector:string ->
parameters_ty:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Script.lazy_expr ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation
* Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.t)
Mavryk_base.TzPervasives.tzresult
Lwt.tsc_rollup_origination ctxt source kind boot_sector originates a new smart contract rollup of some given kind booting using boot_sector.
Optional arguments allow to override defaults:
?force_reveal:bool: prepend the operation to reveal source's public key if the latter has not been revealed yet. Disabled (set to false) by default.val sc_rollup_publish :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.Commitment.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tsc_rollup_publish ctxt source rollup commitment tries to publish a commitment to the SCORU. Optional arguments allow to override defaults:
Optional arguments allow to override defaults:
?force_reveal:bool: prepend the operation to reveal source's public key if the latter has not been revealed yet. Disabled (set to false) by default.val sc_rollup_cement :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tsc_rollup_cement ctxt source rollup tries to cement a commitment.
Optional arguments allow to override defaults:
?force_reveal:bool: prepend the operation to reveal source's public key if the latter has not been revealed yet. Disabled (set to false) by default.val sc_rollup_execute_outbox_message :
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
?force_reveal:bool ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.Commitment.Hash.t ->
output_proof:string ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation,
Mavryk_base.TzPervasives.tztrace)
Stdlib.result
Lwt.tval sc_rollup_recover_bond :
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
?force_reveal:bool ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tsc_rollup_recover_bond ctxt source sc_rollup staker recovers the commitment bond of staker.
val sc_rollup_add_messages :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
string list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tval sc_rollup_refute :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key_hash ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.Game.refutation ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tval sc_rollup_timeout :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Sc_rollup.Game.Index.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tval dal_publish_commitment :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Dal.Operations.Publish_commitment.t ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation,
Mavryk_base.TzPervasives.tztrace)
Stdlib.result
Lwt.tval zk_rollup_origination :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
public_parameters:Plonk.Main_protocol.verifier_public_parameters ->
circuits_info:
[ `Public | `Private | `Fee ]
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.Account.SMap.t ->
init_state:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.State.t ->
nb_ops:int ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
* Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.t)
Mavryk_base.TzPervasives.tzresult
Lwt.tzk_rollup_origination ctxt source ~public_parameters ~circuits_info
~init_state ~nb_ops tries to originate a ZK Rollup.
val update_consensus_key :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.public_key ->
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation,
Mavryk_base.TzPervasives.tztrace)
Stdlib.result
Lwt.tval drain_delegate :
Context.t ->
consensus_key:Mavryk_base.TzPervasives.Signature.Public_key_hash.t ->
delegate:Mavryk_base.TzPervasives.Signature.Public_key_hash.t ->
destination:Mavryk_base.TzPervasives.Signature.Public_key_hash.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.packed_operation
Mavryk_base.TzPervasives.tzresult
Lwt.tval zk_rollup_publish :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
zk_rollup:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.t ->
ops:
(Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.Operation.t
* Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.Ticket.t
option)
list ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tzk_rollup_publish ctxt source ~zk_rollup ~op tries to add an operation to the pending list of a ZK Rollup.
val zk_rollup_update :
?force_reveal:bool ->
?counter:
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Manager_counter.t ->
?fee:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Tez.t ->
?gas_limit:gas_limit ->
?storage_limit:Z.t ->
Context.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Contract.t ->
zk_rollup:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.t ->
update:Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Zk_rollup.Update.t ->
Mavryk_protocol_002_PtBoreas.Protocol.Alpha_context.Operation.packed
Mavryk_base.TzPervasives.tzresult
Lwt.tzk_rollup_update ctxt source ~zk_rollup ~update tries to apply an update to a ZK Rollup.