The simple version of the validator manager v2 with its utils and tests, based on the doc.md, without the implementation of txToShard(To be implemented in the next step).
Description
sharding/contracts/validator_manager.v.py
Contains the contract validator_manager written in viper, with functions deposit, withdraw, sample, add_header, get_ancestor(commented), get_ancestor_distance(not yet implemented), get_collation_gas_limit
sharding/validator_manager_utils.py
Contains the utils functions of the contract validation_manager, including the series of call_xxx functions, most of all, the create_valmgr_tx and mk_initiating_contracts, which create validator manager contract transaction and its dependent contracts and transactions.
sharding/tests/test_validator_manager.py
The tester of the contract validator_manager
sharding/tests/test_validator_manager_utils.py
The test for sharding/validator_manager_utils.py
TODO
Finish txToShard in validator_manager and its utils and tests.
Add USED_RECEIPT_STORE and finish the logic for Receipt-consuming transactions
Dependency versions
pyethereum: develop HEAD - current 85efc8688a3adb45cf9e74fa17022ca4df3ad16a
viper: master HEAD - current fb7333abd7e6460a0ebfea1ecc8a24d2e0f478d2
The simple version of the validator manager v2 with its utils and tests, based on the doc.md, without the implementation of
txToShard
(To be implemented in the next step).Description
sharding/contracts/validator_manager.v.py
Contains the contract
validator_manager
written in viper, with functionsdeposit
,withdraw
,sample
,add_header
,get_ancestor
(commented),get_ancestor_distance
(not yet implemented),get_collation_gas_limit
sharding/validator_manager_utils.py
Contains the utils functions of the contract
validation_manager
, including the series ofcall_xxx
functions, most of all, thecreate_valmgr_tx
andmk_initiating_contracts
, which create validator manager contract transaction and its dependent contracts and transactions.sharding/tests/test_validator_manager.py
The tester of the contract
validator_manager
sharding/tests/test_validator_manager_utils.py
The test for
sharding/validator_manager_utils.py
TODO
txToShard
invalidator_manager
and its utils and tests.USED_RECEIPT_STORE
and finish the logic for Receipt-consuming transactionsDependency versions
develop HEAD
- current85efc8688a3adb45cf9e74fa17022ca4df3ad16a
master HEAD
- currentfb7333abd7e6460a0ebfea1ecc8a24d2e0f478d2