Commit Graph

4316 Commits (77b311ff40e12f28ad0fe4784283bbec2ff8a586)

Author SHA1 Message Date
Kieran Prasch 2ccc46b86a Refactor contract registry CLI integration testing to implement condensed Blockchain API. 2019-07-04 11:23:50 +02:00
Kieran Prasch b59d12d89c Iterating on BlockchainInterface Composition for accuracy; Use interface cache. 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 88c6cbbcd6 move middleware injection to W3Client 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 5fb4aee80b Deployers implement BlockchainInterface.send_transaction 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 91bc12e06b Routes calls to .transact() through Blockchain via composed BlockchainPower (soon to be TransactingPower). 2019-07-04 11:23:50 +02:00
Kieran Prasch 2bade6e996 Fixes EthereumTesterClient private key access, adds sign transaction method. 2019-07-04 11:23:50 +02:00
Kieran Prasch 45020a2012 Tear out '@transaction' 2019-07-04 11:23:50 +02:00
Kieran Prasch 963edebd74 Refinements for Testerchain, Integration with Capitalism, Touch-ups. 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
Kieran Prasch 7bff901177 Use condensed Blockchain API in network and crypto 2019-07-04 11:23:50 +02:00
Kieran Prasch 1ec087e3d7 Use condensed Blockchain API in CLI 2019-07-04 11:23:50 +02:00
Kieran Prasch eb4eade032 Use condensed Blockchain API in Characters 2019-07-04 11:23:50 +02:00
Kieran Prasch 1886527a1c Makes Testerchain a subclass of BlockchainDeployer 2019-07-04 11:23:50 +02:00
Kieran Prasch 47d221a9f9 Use condensed Blockchain API nucypher.blockchian 2019-07-04 11:23:50 +02:00
Kieran Prasch 37fd61c675 Use condensed Blockchain API in config 2019-07-04 11:23:50 +02:00
Kieran Prasch d26c9b10d9 Combines Blockchain and BlockchainInterface. 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
David Núñez 2150723cca Skip other tests affected by the lack of CLI for staking 2019-07-04 11:23:49 +02:00
David Núñez 903b06f59e Make Ursula.rest_interface() a property. Remove Character.rest_interface 2019-07-04 11:23:49 +02:00
David Núñez e1b0f3319b First stub of withdraw functionality for StakingEscrow agent and stakers 2019-07-04 11:23:49 +02:00
David Núñez 01832638e5 Forced node verification resets all verification attributes to False 2019-07-04 11:23:49 +02:00
David Núñez c9f7057dd3 Skip staking ursula tests until #1056 2019-07-04 11:23:49 +02:00
David Núñez 9d63900837 Staker and StakeTrackers get the singleton StakingEscrowAgent 2019-07-04 11:23:49 +02:00
Kieran Prasch 35f39001c3 Removes assumption that last web3 account is non-staking, in dialog faut-tolerance test. 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 d04094c1e9 Skip Vladimir tests in accordance with Issue #1075 2019-07-04 11:23:49 +02:00
Kieran Prasch ea7d07eaef Ensure DetachedWorker is raised when a worker address has a null address as a staker. 2019-07-04 11:23:49 +02:00
Kieran Prasch 8ec8c40727 Optimize StakeTracker read operations, Handle stake tracker as part of UrsulaConfifguration.dynamic_payload 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 21bb66d0c3 Fix all network tests and almost all character tests. 2019-07-04 11:23:49 +02:00
David Núñez fa1673c9ed Node extracts worker_address from decentralized_identity_evidence
Since it's possible to get the worker's address from the signature in decetralized_identity_evidence, it's not necessary to include it in node's metadata
2019-07-04 11:23:49 +02:00
David Núñez bfc50ecb45 Introduce nucypher.crypto.api.recover_address_eip_191() to get address from signatures 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
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