[go: up one dir, main page]

Proto/tests: refactor State_account

What

Separate State_account in three files

Why

Separate functionalities for better navigation

How

  • Account_helpers: account_state and balance type 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.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Lucas Randazzo

Merge request reports

Loading