Commit Graph

6439 Commits (a935dc8e2de4d9f384adbcecea61e700505638c4)

Author SHA1 Message Date
Kieran R. Prasch a58af7daf3 Mock and functional-scoped test grouping (fixtures) 2020-05-08 19:20:54 -07:00
Kieran R. Prasch cab7b1dced Adjust eth tester client to handle the mock backend accounts as well as teserchain accounts. 2020-05-08 19:20:54 -07:00
Kieran Prasch d7f99e7a53 Introduce MockBlockchain; pytestfixture tweaks. 2020-05-08 19:20:54 -07:00
Kieran Prasch 7f67226fe3 Detailing worklock functionality test assertions with new agent mocking API 2020-05-08 19:20:54 -07:00
Kieran Prasch 83d847c4ab Tight spy based test on worklock bidding CLI 2020-05-08 19:20:54 -07:00
Kieran R. Prasch c8bf00cd69 Spy on mocked transactions and calls through mock agents 2020-05-08 19:20:54 -07:00
Kieran R. Prasch 6aec7c634d Mock at the ContractAgent level while preserving agent routing 2020-05-08 19:20:54 -07:00
Kieran R. Prasch 5f5ed65618 Promote several Bidder methods to public 2020-05-08 19:20:54 -07:00
Kieran Prasch 5c6f2a5e8c Transaction and call mocking scheme implmentation 2020-05-08 19:20:54 -07:00
Kieran Prasch 5954b75084 Improve mockability of worklock agent attrs 2020-05-08 19:20:54 -07:00
Kieran Prasch 570e656a17 Complete example of mocking at the agent layer 2020-05-08 19:20:54 -07:00
Kieran Prasch 0c2f684d71 Neat layout for agent mocking and cli unit testing 2020-05-08 19:20:54 -07:00
Kieran R. Prasch a731b749b4 Small bug fixes found while unit testing worklock 2020-05-08 19:20:54 -07:00
Kieran R. Prasch cf1c40c919 Proof of Concept fast CLI test. 2020-05-08 19:20:54 -07:00
Kieran Prasch 923832b3c5 Hack and slash with mock web3 backend 2020-05-08 19:20:54 -07:00
Kieran Prasch 2c9467ad7f
Try harder to ensure mixed config tests start with no known nodes... 2020-05-08 18:08:31 -07:00
Kieran R. Prasch 83bfefc9a1
Use pathlib in test mixed configuration cli test 2020-05-08 15:29:40 -07:00
Kieran Prasch 31e3a1afbe
Fixes mixed configuration test innacuracy. 2020-05-08 14:02:04 -07:00
Kieran Prasch 5d80b5166e
Bump version: 2.1.0-beta.5 → 2.1.0-beta.6 2020-05-08 10:02:31 -07:00
K Prasch 6e1ae2fe8f
Merge pull request #1964 from KPrasch/squash
Bug Fixes: WSS Provider, Keystore file Handling
2020-05-08 09:59:27 -07:00
David Núñez 6f7f778247
Merge pull request #1946 from cygnusv/batch
CLI tool for batch deposit of allocations
2020-05-08 01:37:51 +02:00
David Núñez 9c152e68ec Improve preprocessing and code organization in Allocator 2020-05-08 01:07:48 +02:00
K Prasch fb83ba37cc
Merge pull request #1966 from vepkenez/fix-dev-docker
install nucypher before solc in dev/docker Dockerfile
2020-05-07 13:25:00 -07:00
David Núñez c09db77c1e Handle batch deposit failures more gracefully
* In case of failures, show which addresses are pending, print the failure, and save the successful receipts
* Change the fairly negative 0xdeadbeef to 0xFABADA, more friendly (and tasty).
2020-05-07 20:36:49 +02:00
Kieran Prasch 8b6e932837
Adjust keyfile reader mock to reflect filesystem walking. 2020-05-07 10:51:30 -07:00
David Núñez 8e7951558d
Add missing exception messages
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-05-07 19:36:52 +02:00
Kieran Prasch 20358ae9a2
Dont add test account twice in tests. 2020-05-07 10:10:34 -07:00
David Núñez e19a90bc59
Merge pull request #1965 from tuxxy/master
Deprecate and remove hardware module from CLI
2020-05-07 17:33:50 +02:00
tuxxy 2a4a8518ae Deprecate and remove hardware module from CLI 2020-05-07 15:08:35 +02:00
Kieran R. Prasch 33952847a9 Temp fix for planned changes around tx failure handling. 2020-05-06 19:12:30 -07:00
Kieran R. Prasch 9051bf31a7 Fixes #1962 - Keystore path management bugfix 2020-05-06 19:10:42 -07:00
Kieran R. Prasch 14144f65cc Fixes WSS provider prefix detection 2020-05-06 18:52:06 -07:00
damon 1268be0cc0 install nucypher before solc in dev/docker 2020-05-06 17:56:27 -07:00
David Núñez de77b6d40b Add StakingEscrowAgent.is_test_contract and use it to improve WL deployment checks
* Fixes #1795
* Also fixes a hidden bug when handling additional rules in check_deployment_readiness. It was working by sheer luck.
2020-05-06 03:49:28 +02:00
David Núñez ee54fcbbeb Allows to transfer ownership of StakingInterfaceRouter
* Fixes #1488
* Removes method to transfer ownership of all contracts at once.
2020-05-06 03:49:28 +02:00
David Núñez c820e124f6 Transferring ownership of proxied contracts should only affect the proxy
Fixes #1818
2020-05-06 01:29:42 +02:00
David Núñez 3dca9f00e4 Improve validity checks for allocation data 2020-05-06 01:29:42 +02:00
David Núñez 2aef36c7b0 Use estimateGas() instead of call() when trying to optimize batch deposits
Since estimateGas() with a provided gas limit doesn't fail in some backends (like eth tester), we always raise then the resulting TX is above the limit
2020-05-06 01:29:42 +02:00
David Núñez 3aa16ce84f Paint staged allocations prior the batch deposit TX 2020-05-06 01:29:42 +02:00
David Núñez 8df2ecf4a3 Allow `nucypher-deploy allocations` to use a user-defined gas limit 2020-05-06 01:29:42 +02:00
David Núñez 49c6358cf8 Support CSV allocation input files 2020-05-06 01:29:42 +02:00
David Núñez 45de39e394 In Allocator, using increaseAllowance() is more flexible than approve() 2020-05-06 01:29:42 +02:00
David Núñez b7bca790e6 Implement missing NuCypherTokenAgent.get_allowance() method 2020-05-06 01:29:42 +02:00
David Núñez 31797797d3 Use provider_uri envvar as default only in configurationless commands 2020-05-06 01:29:42 +02:00
David Núñez 6e0e9cf4dd Adapt tests to no allocations with PreallocationEscrow contracts 2020-05-06 01:29:42 +02:00
David Núñez 2423063541 Changes to allocations in CLI and actor levels
* Uses a helper actor called Allocator
* CLI tests
2020-05-06 01:29:42 +02:00
David Núñez d180d81c8a Batch deposit methods in StakingEscrowAgent and unit tests 2020-05-05 20:06:16 +02:00
David Núñez ec3b27d95a Extend gas estimation script for other batch deposit scenarios
For stakers with 24 substakes, gas cost per batch deposit is 850,000*N + 69,000
2020-05-05 20:06:16 +02:00
K Prasch 44f6e82aa3
Merge pull request #1948 from KPrasch/solcx
Deprecate nucypher py-solc fork; Use py-solc-x
2020-05-05 08:25:50 -07:00
K Prasch 5656629b29
Update scripts/installation/install_solc.py
Co-authored-by: David Núñez <david@nucypher.com>
2020-05-04 19:02:07 -07:00