Proto/tests: refactor State_account
What
Separate State_account in three files
Why
Separate functionalities for better navigation
How
-
Account_helpers:account_stateandbalancetype definitions with basic functions -
Tez_staking_helpers: Tez manipulation for staking (pseudotokens, frozen tez distribution...) -
State_account: higher level account manipulation, operational effect on balances (stake, unstake, slashing...)
Manually testing the MR
Does not change the existing tests
dune exec src/proto_alpha/lib_protocol/test/integration/main.exe -- --match "test_scenario.*\.ml" -j 4 -k
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Lucas Randazzo