Commit Graph

496 Commits (64d40a7f809dc31b905e651c9c4c392e0b38f54d)

Author SHA1 Message Date
David Núñez cef7e17279
UserEscrowProxyDeployer was incorrectly deploying a new Linker each time
New behavior is to look first for an existing Linker, and just in case it's not found, deploy it.
2019-07-25 15:18:29 -07:00
David Núñez f4325520dd
Fixtures can't use @pytest.mark.usefixtures
See warning in https://docs.pytest.org/en/latest/fixture.html#using-fixtures-from-classes-modules-or-projects
2019-07-25 15:18:29 -07:00
Kieran Prasch 0b52cd2c74
Routes Ursula keyring attchment by federated/decentralized mode. 2019-07-25 15:18:29 -07:00
Kieran Prasch f947e6f747
Extracts manual staker and worker fixtures, Fixes incorrect address in to/from UrsulaConfiguration; Attempting to fix reward collection CLI integration tests. 2019-07-25 15:18:29 -07:00
Kieran Prasch 4b9b5f0559
Respond to RFCs in PR #1056; Test and CLI touch-ups. 2019-07-25 15:18:29 -07:00
Kieran Prasch 2e70aebd01
Bug Fix: Functional inflation reward collection; Refactors internal stakeholder stake tracking 2019-07-25 15:18:29 -07:00
Kieran Prasch b83f8f9595
Move deployment secrets named tuple to Deployer and implement it. 2019-07-25 15:18:29 -07:00
Kieran Prasch 879afef6a7
Restore Federated CLI functionality; Refactor CLI lifecycle integration testing to implement --work-address 2019-07-25 15:18:29 -07:00
Kieran Prasch 28c1b39845
post #1029 rebase touch ups. 2019-07-25 15:18:29 -07:00
Kieran Prasch cf0fd49008
Functional stakeholder persistence via CLI, Implements software-keyring entrypoints for StakeHolder; geth deploy integration testing. 2019-07-25 15:18:29 -07:00
Kieran Prasch 7b16196765
Adds integration test for creating new geth accounts over RPC clients. 2019-07-25 15:18:29 -07:00
Kieran Prasch 362aff4824
Respond to RFCs in PR #1064 - Staker to/from blockchain, @michwill's funding account recipt fix; Touch Ups. 2019-07-25 15:18:29 -07:00
Kieran Prasch f7d780639d
BYOK for stakeholder and worker - Passing collect inflation reward test. 2019-07-25 15:18:29 -07:00
Kieran Prasch 13ed3501dc
xAdvance Stakeholder rewards integration testing. 2019-07-25 15:18:29 -07:00
Kieran Prasch e1cb849a3a
Improve Stakeholder API tests. 2019-07-25 15:18:29 -07:00
Kieran Prasch 7006891313
Updates stakeholder to used unified BlockchainInterface API 2019-07-25 15:18:29 -07:00
Kieran Prasch 3953da73ad
Detailing StakeHolder actions 2019-07-25 15:18:29 -07:00
Kieran Prasch d7b03de176
Second daraft of StakeHolder including JSON config. 2019-07-25 15:18:29 -07:00
Kieran Prasch 6326340151
test touch-up. 2019-07-15 12:06:44 -07:00
Kieran Prasch 118262a9f4
Make accomodations for geth managed wallets (#1117) in TransactingPower. 2019-07-15 12:06:44 -07:00
Kieran Prasch 959c3dc35f
Ensure powerup activates in adjudicator agent and contract tests. 2019-07-15 12:06:44 -07:00
Kieran Prasch 70803d3e22
Post rebase renames. 2019-07-15 12:06:44 -07:00
Kieran Prasch a5aef6f030
Manually call connect in client tests. 2019-07-15 12:06:44 -07:00
Kieran Prasch 7bb4c55e5c
Use TransactingPower.activate in Actor/Agent tests. 2019-07-15 12:06:44 -07:00
Kieran Prasch dc22bdede0
post rebase BlockchainPower -> TransactingPower 2019-07-15 12:06:44 -07:00
David Núñez ad2d63fd5e Touchups to test_staker 2019-07-04 11:23:51 +02:00
David Núñez 9d0089102e Some improvements to PolicyManager and StakingEscrow deployer tests. See #1102 2019-07-04 11:23:51 +02:00
David Núñez f77c46bbe4 Basic tests of AdjudicatorDeployer and slashing with AdjudicatorAgent. 2019-07-04 11:23:51 +02:00
David Núñez 051bbbc02f Use testerchain.client.sign_message() in tests for EIP191 signatures 2019-07-04 11:23:51 +02:00
David Núñez f43365ca93 First stub of AdjudicatorAgent tests 2019-07-04 11:23:51 +02:00
David Núñez fd3b8603fa Touchups in some tests 2019-07-04 11:23:50 +02:00
David Núñez f6fac7c073 Adapting other adjudicator tests and gas estimation to latest changes 2019-07-04 11:23:50 +02:00
David Núñez 28eb4a16f1 Use blockchain_ursulas in test_adjudicator 2019-07-04 11:23:50 +02:00
David Núñez e53415e8b0 On-chain verification of EIP191 signatures now supports versions 0 and E 2019-07-04 11:23:50 +02:00
David Núñez ba5da0dfec Verify EIP191 signatures in SignatureVerifier
Not really an EIP191-compliant method, as it only supports version E, but this is what we currently use in nucypher
2019-07-04 11:23:50 +02:00
Kieran Prasch 420c30f079 Respond to RFCs in PR #1089 2019-07-04 11:23:50 +02:00
Kieran Prasch 46e424d49d Pretending to consume BlockchainPower in actor and agent tests. 2019-07-04 11:23:50 +02:00
Kieran Prasch 68b8a2735d Returning to a single-account BlockchainPower;TODO annotations for BlockchainPower. 2019-07-04 11:23:50 +02:00
Kieran Prasch 19d30b355c Adapting Felix to consume BlockchainPower at init-time. 2019-07-04 11:23:50 +02:00
Kieran Prasch 2ccc46b86a Refactor contract registry CLI integration testing to implement condensed Blockchain API. 2019-07-04 11:23:50 +02:00
Damon C aebac62dd8 remove most other direct blockchain.w3 references 2019-07-04 11:23:50 +02:00
Damon C 595293c4b5 cleanup access to blockchain.client properties 2019-07-04 11:23:50 +02:00
Kieran Prasch 898925c8ad Integrating more tests with condensed blockchain interface, straggler Mock BlockchainPower. 2019-07-04 11:23:50 +02:00
Kieran Prasch 08fe94fea7 Moving (mocked) BlockchainPower usage in the direction of TransactingPower; Touch-ups. 2019-07-04 11:23:50 +02:00
Kieran Prasch cd9b2366c8 Blockchain -> BlockchainInterface 2019-07-04 11:23:50 +02:00
Kieran Prasch 1a2dabd095 Use Condensed Blockchain API in tests. credit to @vepkenez. 2019-07-04 11:23:50 +02:00
David Núñez 11e477c562 Consider @szotov's comment on setWorker: stakers have to wait to unset
The only way to use setWorker without waiting is that there's no worker set.
2019-07-04 11:23:49 +02:00
Kieran Prasch 14dd22427b Fix off-by-one error calculating stake end-period in Stake integration test. 2019-07-04 11:23:49 +02:00
Kieran Prasch 75cd104c59 Extract StakeTracker from Worker/Staker 2019-07-04 11:23:49 +02:00
Kieran Prasch 2595623fa8 Passing character tests, adding a test for Vladimir 2019-07-04 11:23:49 +02:00
David Núñez ecc656a205 Allow stakers to release workers in StakingEscrow 2019-07-04 11:23:49 +02:00
David Núñez 6638e7ea3a Workers must confirm activity directly. They can't do it via a contract 2019-07-04 11:23:49 +02:00
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
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
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 357ff2a7cd Stakers will need their own test ETH accounts, different than Ursulas' 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
David Núñez 9638dc86bf Fix name of StakingEscrowAgent. It was StakingEscrow 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 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
szotov 69b21a2a85 Tests for worker events 2019-07-04 11:22:38 +02:00
szotov f237389ca7 Tests for slashing worker 2019-07-04 11:22:38 +02:00
szotov 946ec2b2f1 Added way to slash intermediary contracts 2019-07-04 11:22:38 +02:00
szotov 8747177c5a Moved minimum worker periods to constructor 2019-07-04 11:22:38 +02:00
szotov 1a76d9984b Fixed agent tests 2019-07-04 11:22:38 +02:00
szotov 727a074503 Added test for setting worker 2019-07-04 11:22:38 +02:00
szotov b545e3ec9b Fixed small issues, added setWorker to UserEscrow 2019-07-04 11:22:38 +02:00
szotov 8bc89805ff Fix agents tests 2019-07-04 11:22:38 +02:00
szotov f850a42f58 Added worker role, excluded minting and activity confirmation from lock method 2019-07-04 11:22:38 +02:00
Bogdan Opanchuk f1db1622cf Temporarily skip test_deploy_multiple()
Fixing `usefixtures` mark makes it fail due to issue #1102
2019-06-27 14:45:34 -07:00
Bogdan Opanchuk 39ecedd724 Rename TesterBlockchain on import in tests to prevent py.test from trying to pick it up 2019-06-26 22:48:33 -07:00
Bogdan Opanchuk d83697648a Fix typo: replace `usesfixtures` with `usefixtures` 2019-06-26 22:41:54 -07:00
K Prasch d743e3b791
Respond to RFCs in PR #984; Apply suggestions from code review
Co-Authored-By: David Núñez <david@nucypher.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2019-06-08 14:32:35 -07:00
Kieran Prasch cf64e5f114
Restores skipped stake division test on MinerAgent 2019-06-08 14:26:07 -07:00
Kieran Prasch 9430997aa7
Refining blockchian sync management for internal geth processes 2019-06-08 14:26:07 -07:00
Kieran Prasch 6097c83eb7
Almost all of checksum_public_address -> checksum_address 2019-06-08 14:25:35 -07:00
Kieran Prasch 4a7a881d3e
Realize the Agency metaclass 2019-06-08 14:25:26 -07:00
David Núñez b6ba1ff435
Conditional skip for Geth client integration. Fix #1037 2019-06-03 22:52:22 +03:00
Kieran R. Prasch c6c6f66b8b
New client test module; Skip geth client signature integration test on CI until a better solution is found. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch e74ba944f8
Handle geth --dev process as a fixture to stop when finished. Additional test bug fixes, found missing assertions. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch f9d9346c0f
Test integration for geth client signing and nucypher.crypto verification 2019-06-03 22:52:22 +03:00
David Núñez e913677354
Fix eth clients bugs. Improved tests for clients. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 2dfdb4ac63
Recompose verify_eip_191 into crypto.api, off of Interfaces, Clients, and Powers. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch ed1436aac4
Use EIP-191 Signatures on Geth and PyEVM backends 2019-06-03 22:52:22 +03:00
Kieran R. Prasch f2c655efae
Inheretence improvements for web3 abstractions, Handle 4-part version strings in EthereumTester and Parity. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 25c5a4a846
Supporting EIP-191 Geth message signatures 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 828b19b2ee
Consider provider process handling with new web3 abstractions 2019-06-03 22:52:22 +03:00
Damon C b78cedbb1e
tests for w3 client classes 2019-06-03 22:52:22 +03:00
derekpierre 8b68990649
Initial work to abstract web3 test clients - not tested 2019-06-03 22:52:22 +03:00
Kieran Prasch 81cbdd7404
Oo he's Tryin' 2019-06-03 22:50:40 +03:00
Kieran Prasch ba996f5d0c
Alter CLI deply tests to tests geth provder, First pass. 2019-06-03 22:50:40 +03:00