package octez-protocol-019-PtParisB-libs

  1. Overview
  2. Docs
Octez protocol 019-PtParisB libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-protocol-019-PtParisB-libs.test-helpers/Tezos_019_PtParisB_test_helpers/Transfers/index.html

Module Tezos_019_PtParisB_test_helpers.TransfersSource

Sourceval transfer_and_check_balances : ?with_burn:bool -> loc:string -> Incremental.t -> ?fee:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Tez.t -> ?expect_apply_failure: (Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace -> unit Tezos_base.TzPervasives.tzresult Lwt.t) -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Tez.t -> (Incremental.t * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.packed_operation) Tezos_base.TzPervasives.tzresult Lwt.t

transfer_and_check_balances b fee src dst amount this function takes a block, an optional parameter fee if fee does not given it will be set to zero tez, a source contract, a destination contract and the amount that one wants to transfer.

1- Transfer the amount of tez (w/wo fee) from a source contract to a destination contract.

2- Check the equivalent of the balance of the source/destination contract before and after transfer is validated.

This function returns a pair:

  • A block that added a valid operation
  • a valid operation
Sourceval n_transactions : int -> Incremental.t -> ?fee:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Tez.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Tez.t -> Incremental.t Tezos_base.TzPervasives.tzresult Lwt.t

n_transactions n b fee source dest amount this function takes a number of "n" that one wish to transfer, a block, an optional parameter fee, a source contract, a destination contract and an amount one wants to transfer.

This function will do a transaction from a source contract to a destination contract with the amount "n" times.

OCaml

Innovation. Community. Security.