Commit Graph

4126 Commits (3a4df6adea877c6467c8e7d6af42955de7682cd1)

Author SHA1 Message Date
David Núñez 3a4df6adea Fix remaining tests in test_policy_manager_agent 2019-07-04 11:23:49 +02:00
Kieran Prasch 1868f96bdc API conversion -Implementing @transact receipt handing in-test. 2019-07-04 11:23:49 +02:00
Kieran Prasch edc49e2dae Implement functool.wraps on @transact; Web3 exception catching, Transaction logging, and receipt status checks. 2019-07-04 11:23:49 +02:00
David Núñez a85adfdc55 Fix actors/test_staker and agents/test_token_agent 2019-07-04 11:23:49 +02:00
David Núñez a8d77c40a9 Fix test_staking_escrow_agent tests. Start usingnew @transaction decorator. 2019-07-04 11:23:49 +02:00
David Núñez e1df9a7d1b Use stakers fixture in test_token_and_stake 2019-07-04 11:23:49 +02:00
Kieran Prasch b5c5e82a65 Implement @transaction on agency methods 2019-07-04 11:23:49 +02:00
Kieran Prasch 670ae403f7 Introduces @transaction decorator for agent subclass methods 2019-07-04 11:23:49 +02:00
David Núñez 991f2429d7 Touchups here and there 2019-07-04 11:23:46 +02:00
David Núñez c728c1afe0 Introduce simple PRE lifecycle test with blockchain ursulas 2019-07-04 11:22:39 +02:00
David Núñez a6e839dfee New stakers fixture, consistent with blockchain_ursulas 2019-07-04 11:22:39 +02:00
David Núñez 6cd4d2fde3 Worker validation pursuant to consensus on #1003. Closes #1033. 2019-07-04 11:22:39 +02:00
David Núñez edb95407c3 StakingEscrowAgent API for checking staker-worker relationship 2019-07-04 11:22:39 +02:00
David Núñez 8b446a904b Change "by" to "from" in getWorkerByStaker and getStakerByWorker 2019-07-04 11:22:39 +02:00
David Núñez 09ac916319 Ursula character is not a Staker anymore, but a Worker 2019-07-04 11:22:39 +02:00
David Núñez 54d12b8827 Ursula.rest_information()[0] --> Ursula.rest_interface() 2019-07-04 11:22:39 +02:00
David Núñez 357ff2a7cd Stakers will need their own test ETH accounts, different than Ursulas' 2019-07-04 11:22:39 +02:00
David Núñez dd23408ca7 Simplify StakingEscrow.confirmActivity(): only direct calls from Worker 2019-07-04 11:22:39 +02:00
David Núñez 1387683e35 First stub of Worker class, extracted from Staker 2019-07-04 11:22:39 +02:00
David Núñez de73bc020d Staker doesn't confirm activity anymore 2019-07-04 11:22:39 +02:00
David Núñez da8fd0c3de Missing renamings to "worker" and "staker" in agents.py 2019-07-04 11:22:39 +02:00
Kieran Prasch b98dfb9986 Respond to RFCs in PR #1066; Docstrings and annotations for Baseconfiguration. 2019-07-04 11:22:39 +02:00
Kieran Prasch 66b0e25165 Robust tests for BaseConfiguration API; Second layer for character configurations; Return of ABC. 2019-07-04 11:22:39 +02:00
Kieran Prasch 97eabc8dee delete obsolete files from the codebase 2019-07-04 11:22:39 +02:00
Kieran Prasch 09c8847c14 Dehydration and cleanup of keyring attachment and checksum address selection. Touch ups. 2019-07-04 11:22:39 +02:00
Kieran Prasch add336af3f Ensure that known_nodes passed into configs are retained for re-use 2019-07-04 11:22:38 +02:00
Kieran Prasch b7012f607f NodeConfiguration -> CharacterConfiguration 2019-07-04 11:22:38 +02:00
Kieran Prasch 568420a9c6 Refinine NodeConfiguration to handle only common parameters; Dehydration and reorg. Optimize character config production file I/O. 2019-07-04 11:22:38 +02:00
Kieran Prasch 65d1b7aa51 Allow contract registry to write to a globally default location (config root) despite using a custom configuration root at init time. 2019-07-04 11:22:38 +02:00
Kieran Prasch 4e8cdf27a9 Removing enode (for now) 2019-07-04 11:22:38 +02:00
Kieran Prasch 0565893be6 Accurately reflect destruction operations; Simplify usage; UrsulaConfiguration implements BaseConfiguration. 2019-07-04 11:22:38 +02:00
Kieran Prasch 4c4abec366 keyring_dir -> keyring_root; update registry default paths. 2019-07-04 11:22:38 +02:00
Kieran Prasch 656f224913 Removes GH registry publication code; Fixes #965- Remove registry publication from CLI tooling. 2019-07-04 11:22:38 +02:00
Kieran Prasch 5c50a4efad Ensure config_root is preserved on BaseConfiguration init. 2019-07-04 11:22:38 +02:00
Kieran Prasch 701c7b5f15 CharacterConfiguration subclasses implemnt BaseConfiguration class attrs; Reorganize tests.config 2019-07-04 11:22:38 +02:00
Kieran Prasch d888c60607 Adds BaseConfiguration and Ursula standard configurations tests; Style touchups, Preserving 'checksum_address'. 2019-07-04 11:22:38 +02:00
Kieran Prasch ec7ba627e8 Refactors NodeConfiguration to implement BaseConfiguration; Removes stranger configuration support, Cleanup NodeConfiguration interfaces 2019-07-04 11:22:38 +02:00
Kieran Prasch 8fcdf8e2f4 Makes NuCypherKeyring disk write operations more lazy. 2019-07-04 11:22:38 +02:00
Kieran Prasch 3c949192f0 Introduces BaseConfiguration 2019-07-04 11:22:38 +02:00
David Núñez 9638dc86bf Fix name of StakingEscrowAgent. It was StakingEscrow 2019-07-04 11:22:38 +02:00
David Núñez b9dd215421 Fix test for emission of unknown LL version warnings. Closes #1039 2019-07-04 11:22:38 +02:00
David Núñez 9eee8e6c9d Removing some re-emerging garbage, probably from a rebase 2019-07-04 11:22:38 +02:00
David Núñez 398896d2ab Leftovers: Miner --> Staker, MiningAdjudicator --> Adjudicator, etc. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 877833aaf3 Understand Staker and Staking to be separate ideas. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 3a80eec247 Goodbye, Three Agents. Hello, Agency. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 5551ce950c MinerEscrow -> StakingEscrow, and MiningAdjudicator -> Adjudicator in agency, and in-test 2019-07-04 11:22:38 +02:00
szotov 8e85deec07 Apply suggestions from code review 2019-07-04 11:22:38 +02:00
szotov 33e97a9c2f miner->staker in tests and docs 2019-07-04 11:22:38 +02:00
szotov 821b0dcdbc Renamed miner-> staker in contracts 2019-07-04 11:22:38 +02:00
szotov fbe4493951 Changed restriction on miner<->worker relationship 2019-07-04 11:22:38 +02:00