package tezos-client-014-PtKathma

  1. Overview
  2. Docs
Tezos/Protocol: protocol specific library for `tezos-client`

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-client-014-PtKathma.commands/Tezos_client_014_PtKathma_commands/Client_proto_stresstest_contracts/index.html

Module Tezos_client_014_PtKathma_commands.Client_proto_stresstest_contractsSource

Sourcetype contract_parameters = {
  1. probability : float;
    (*

    The probability of calling this smart contract

    *)
  2. invocation_fee : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t;
    (*

    Fee to use for invocations during the stress test

    *)
  3. invocation_gas_limit : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Gas.Arith.integral;
    (*

    Gas limit to use for invocations during the stress test

    *)
}

The information that the user has to provide for every smart contract they want to call during the stress test.

Sourceval contract_parameters_encoding : contract_parameters Tezos_base.TzPervasives.Data_encoding.t

Encoding of contract_parameters.

Sourceval contract_parameters_collection_encoding : (string * contract_parameters) list Tezos_base.TzPervasives.Data_encoding.t

Contract parameters collection encoding.

Sourcetype t

An opaque type that stores all the information that is necessary for efficient sampling of smart contract calls.

Sourceval no_contracts : t

A value with no smart contracts.

Convert a map of probabilities per smart contract alias to a t value.

Sourcetype invocation_parameters = {
  1. destination : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Contract.t;
  2. entrypoint : Tezos_protocol_014_PtKathma.Protocol.Entrypoint_repr.t;
  3. arg : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Script.expr;
  4. fee : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Tez.t;
  5. gas_limit : Tezos_protocol_014_PtKathma.Protocol.Alpha_context.Gas.Arith.integral;
}

All information that is necessary for performing a smart contract call during the stress test.

Sourceval select : t -> float -> invocation_parameters option

Given t initialized earlier and a float in 0;1, decide which smart contract is going to be chosen for the next call, if any.

A ready-to-use command that originates all supported smart contracts.

Sourceval with_every_known_smart_contract : Tezos_client_014_PtKathma.Protocol_client_context.full -> (t -> 'a Tezos_base.TzPervasives.tzresult Lwt.t) -> (string * 'a) list Tezos_base.TzPervasives.tzresult Lwt.t

Call the callback function once per supported smart contract by passing it t that only selects that smart contract. Collect the results and pair them with the respective smart contract aliases. This is used for e.g. gas estimations.

Sourceval mainnet_address_to_alias : string -> string option

Return the alias that corresponds to the smart contract address on the Mainnet. Return None if the given address is not supported.

OCaml

Innovation. Community. Security.