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/Contract_helpers/index.html

Module Tezos_019_PtParisB_test_helpers.Contract_helpersSource

Sourceval init : unit -> (Block.t * Tezos_raw_protocol_019_PtParisB__Alpha_context.public_key_hash * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t, Tezos_base.TzPervasives.tztrace) result Lwt.t

Initializes 2 addresses to do only operations plus one that will be used to bake.

Sourceval read_file : string -> string

Return contents of a given file as string.

Sourceval load_script : storage:string -> string -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Script.t

Loads a script from file.

Sourceval originate_contract_hash : string -> string -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> Block.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.public_key_hash -> (Tezos_protocol_019_PtParisB.Protocol.Contract_hash.t * Block.t, Tezos_base.TzPervasives.tztrace) result Lwt.t

Returns a block in which the contract is originated.

Sourceval originate_contract : string -> string -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> Block.t -> Tezos_protocol_019_PtParisB.Protocol.Alpha_context.public_key_hash -> (Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t * Block.t, Tezos_base.TzPervasives.tztrace) result Lwt.t
Sourceval fake_KT1 : Tezos_protocol_019_PtParisB.Protocol.Contract_hash.t
Sourceval default_self : Tezos_protocol_019_PtParisB.Protocol.Contract_hash.t
Sourceval default_payer : Tezos_base.TzPervasives.Signature.Public_key_hash.t
Sourceval default_sender : Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t
Sourceval default_step_constants : Tezos_protocol_019_PtParisB.Protocol.Script_interpreter.step_constants
Sourceval run_script : Tezos_raw_protocol_019_PtParisB.Alpha_context.t -> ?logger:Tezos_raw_protocol_019_PtParisB.Script_typed_ir.logger -> ?step_constants: Tezos_protocol_019_PtParisB.Protocol.Script_interpreter.step_constants -> ?internal:bool -> string -> ?entrypoint:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Entrypoint.t -> storage:string -> parameter:string -> unit -> (Tezos_protocol_019_PtParisB.Protocol.Script_interpreter.execution_result * Tezos_raw_protocol_019_PtParisB.Alpha_context.context) Tezos_base.TzPervasives.tzresult Lwt.t

Helper function that parses and typechecks a script, its initial storage and parameters from strings. It then executes the typed script with the storage and parameters and returns the result.

The step_constants argument passes in some data which remains constant throughout script's execution, hence the name. This includes addresses of the sender and payer, the address of the smart contract, the amount of Tez transferred to it and so on.

An internal operation is an operation generated by smart contract's execution rather than by an implicit account.

Sourceval originate_contract_from_string_hash : script:string -> storage:string -> source_contract:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> baker:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.public_key_hash -> Block.t -> (Tezos_protocol_019_PtParisB.Protocol.Contract_hash.t * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Script.t * Block.t, Tezos_base.TzPervasives.tztrace) result Lwt.t
Sourceval originate_contract_from_string : script:string -> storage:string -> source_contract:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t -> baker:Tezos_protocol_019_PtParisB.Protocol.Alpha_context.public_key_hash -> Block.t -> (Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Contract.t * Tezos_protocol_019_PtParisB.Protocol.Alpha_context.Script.t * Block.t, Tezos_base.TzPervasives.tztrace) result Lwt.t
OCaml

Innovation. Community. Security.