package octez-protocol-alpha-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-protocol-alpha-libs.test-helpers/Tezos_alpha_test_helpers/index.html
Module Tezos_alpha_test_helpers
Source
Account_helpers
defines a type abstracting the information of an account in the protocol. This includes its pkh, delegate, any funds, staking parameters, etc...
Dummy ZK Rollup for testing the ZKRU integration in the protocol. The library Plompiler is used to build the circuits (in a module V as verifier) and the corresponding functions to produce the inputs for the circuits (in a module P as prover).
This module provides a set of abstractions to reason about the so-called “liquidity baking” feature1
.
This module provides the means to test extensively the Liquidity Baking (LB) feature. We recall that this feature is built upon three smart contracts: (1) a CPMM contract initially based on Dexter 2, and (2) two tokens contracts. Our objective is to run “scenarios” consisting in interleaved, realistic calls to these contracts, and to assert these scenarios do not yield any undesirable behaviors.
Extends the Lwt_result_syntax
with additional utilities for wrapping results produced by the protocol, i.e. Environment.Error_monad.tzresult
, to tzresult Lwt.t
values used in the tests.
These generators aims at generating operations which are not necessary correct. The goal is to tests functions such as
Operation.compare
with as much as possible parameters that play a role in operation weight
computation.
Extends the Result_syntax
with additional utilities for wrapping results produced by the protocol, i.e. Environment.Error_monad.tzresult
, to tzresult
values used in the tests.
This module centralises all modules related to Scenario
writing and execution. Most scenario tests would use most if not all of them, so they only need to open Scenario
.
This module gathers the basic operations used in test scenarios. This includes starting a scenario, baking, checking and manipulating the state, and various wait functions
This module gathers many protocol operations in the form of scenarios. This includes (but is not limited to) transfers and such (stake, unstake...), as well as various ways to forge double signings.
Helpers related to denunciations and slashing.
State_account
is dedicated to operations in State.t
that would modify an account_state
. This includes any operation like transfer
, stake
, unstake
, set_delegate_parameters
, anything related to slashing or rewards, etc...
This module handles the logic of flags for AI/AS in the State
Tez_staking_helpers
defines different kinds of tez Modules that manipulate them in different ways. They involve more complicated operations, as they are related to staking, thus are represented as partial amounts, and are related to pseudotokens.