Mavryk_benchmark_002_PtBoreas.Michelson_samplersSampling various Michelson values.
This module exposes a functor implementing various samplers for Michelson. These allow to sample:
Note that some kind of values might not be supported. At the time of writing, the value sampler doesn't handle the following types:
For the latter, consider using the samplers in Michelson_mcmc_samplers.
type parameters = {base_parameters : Michelson_samplers_base.parameters;list_size : Mavryk_benchmark.Base_samplers.range;The range of the size, measured in number of elements, in which lists must be sampled.
*)set_size : Mavryk_benchmark.Base_samplers.range;The range of the size, measured in number of elements, in which sets must be sampled.
*)map_size : Mavryk_benchmark.Base_samplers.range;The range of the size, measured in number of bindings, in which maps must be sampled.
*)}Parameters for the Michelson samplers.
val parameters_encoding : parameters Data_encoding.tEncoding for sampler prameters.
type type_name = [ | `TUnit| `TInt| `TNat| `TSignature| `TString| `TBytes| `TMumav| `TKey_hash| `TKey| `TTimestamp| `TAddress| `TBool| `TPair| `TOr| `TLambda| `TOption| `TList| `TSet| `TMap| `TBig_map| `TContract| `TSapling_transaction| `TSapling_transaction_deprecated| `TSapling_state| `TOperation| `TChain_id| `TBls12_381_g1| `TBls12_381_g2| `TBls12_381_fr| `TTicket ]module type S = sig ... endThe module type produced by the Make functor.
module Make
(P : sig ... end)
(Crypto_samplers : Mavryk_benchmark.Crypto_samplers.Finite_key_pool_S) :
SInstantiate a module of type S.
module Internal_for_tests : sig ... end