package octez-protocol-alpha-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-protocol-alpha-libs.test-helpers/Tezos_alpha_test_helpers/Transfers/index.html
Module Tezos_alpha_test_helpers.Transfers
Source
val transfer_and_check_balances :
?with_burn:bool ->
loc:string ->
Incremental.t ->
?fee:Tezos_protocol_alpha.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_alpha.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
(Incremental.t * Tezos_protocol_alpha.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
val n_transactions :
int ->
Incremental.t ->
?fee:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Contract.t ->
Tezos_protocol_alpha.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.