Commit Graph

2274 Commits (fed0f362b10fcbe5aab1ba1c42f35ee54f1a9083)

Author SHA1 Message Date
jMyles 24ab7a6e4f Test showing multiple-Enrico retrieve. 2020-02-08 01:18:51 -08:00
jMyles dc202da06e Include enrico instance when resetting capsule_side_channel for test convenience. 2020-02-08 01:18:51 -08:00
jMyles 447b9b6e5c We don't need the temporary download_registry fix anymore. 2020-02-08 01:18:51 -08:00
jMyles 5f0c7ce5ef Several test fixes, most notable including that, in the capsule_side_channel fixture, we now keep the same enrico until it is reset(). 2020-02-08 01:18:51 -08:00
jMyles da2d2a0be1 Showing multiple retrievals in network without retaining CFrags. 2020-02-08 01:18:50 -08:00
jMyles 3b9cb9212a Better WorkOrder repr; updating tests to be more precise for replete WorkOrders. 2020-02-08 01:18:50 -08:00
jMyles 9acac0cb0d Saving replete WorkOrders where appropriate. 2020-02-08 01:18:50 -08:00
jMyles c4937b78bf Introducing designation of a WorkOrder that is 'replete' with CFrags for each PRETask. 2020-02-08 01:18:50 -08:00
jMyles 74fa1803ab Fixing up retrieve() params, adding type hints. 2020-02-08 01:18:50 -08:00
jMyles 404446b7ac Removing the 'cache' conceptr from work_orders_for_capsule. 2020-02-08 01:18:50 -08:00
jMyles 305fffdbf6 Single-track for incomplete WorkOrders. 2020-02-08 01:18:50 -08:00
jMyles 1957507a09 Not saving pending WorkOrders anymore; only completed. 2020-02-08 01:18:50 -08:00
jMyles c74f465e8d Always include completed WorkOrders. (Though we'll remove this entirely soon.) 2020-02-08 01:18:50 -08:00
jMyles f507952a14 Starting to separately store WorkOrders on Bob. 2020-02-08 01:18:50 -08:00
jMyles 55f96bdc38 Splitting the argument previously called 'cache' into three more coherent and granular parameters. 2020-02-08 01:18:50 -08:00
jMyles 677c8ddcfb When generating WorkOrder, if CFrags are being retained, return two tuples of WorkOrders - one complete, the other incomplete. Also some refactoring. 2020-02-08 01:18:50 -08:00
jMyles 577dc0fe0a Test showing complete flow of both Bob modes. 2020-02-08 01:18:50 -08:00
jMyles 7aab0c64c6 Test showing that Bob can't partially retrieve and then resume without caching. 2020-02-08 01:18:49 -08:00
jMyles 9aaf696fb5 Bob retrieves again! 2020-02-08 01:18:49 -08:00
jMyles adba29ec1b Affirmatively setting reuse_already_attached to False to show that this works the first time. 2020-02-08 01:18:49 -08:00
jMyles 630dec68c0 A test for Bob using a CFrag attached to a previously completed WorkOrder. 2020-02-08 01:18:49 -08:00
jMyles 78bad1cad1 Fixing up frag handling tests for new API. 2020-02-08 01:18:49 -08:00
jMyles a0b5ea7393 Testing show successful second retrieval. 2020-02-08 01:18:49 -08:00
jMyles 83e44a63f2 Not necessarily generating new WorkOrders anymore; maybe looking them up. And they aren't necessarily 'generated' anymore; they're instead just known to be useful. 2020-02-08 01:18:49 -08:00
jMyles 0cb4f71709 Beginnings of a test; clearer logs. 2020-02-08 01:18:49 -08:00
Kieran R. Prasch 22ccdb4d68 Rebase touchups; bobkey spec bugfix. 2020-02-07 13:26:40 -08:00
David Núñez c756b4ef14 Use new agency_local_registry fixture for CLI tests, and fix broken tests
Previously, we were supporting the consistency of our registry usage in a weird combination of fixtures' side-effects. Not anymore. CLI tests should use agency_local_registry, since it's a file-based mirror of the test_registry fixture when agency is assumed.
2020-02-07 11:28:34 +01:00
David Núñez 1356346533 Fix test for CLI multisig deployment. Remove unused registry fixture 2020-02-07 11:22:08 +01:00
David Núñez 2f090b3b44 First pass at CLI command to build upgrade TX via MultiSig: nucypher-deploy upgrade --multisig ... 2020-02-07 11:22:08 +01:00
David Núñez 554ce00923 First pass at deploying MultiSig contract with nucypher-deploy
* Adapting ContractAdministrator to additional, optional deployers (e.g, for MultiSig)
* Adds option --parameters to nucypher-deploy that allows to pass override arguments for contract deployment. Intended usage is MultiSig constructor arguments, but can be potentially used in other contracts (e.g., custom args to NuCypherToken).
* Tests for MultiSig deployment with the CLI
2020-02-07 11:22:08 +01:00
David Núñez 0058230c3d Janitorial stuff 2020-02-07 11:22:08 +01:00
David Núñez 4aeb64486e Touches to MultiSigDeployer and MultiSigAgent. Tests for both 2020-02-07 11:22:08 +01:00
David Núñez 88a365ac18 Obtain upgrading transactions for Dispatcher.upgrade()
Uses the new BlockhainInterface.build_transaction() endpoint to construct unsigned transactions.
The unsigned transactions in this commit are the raw data that is signed by MultiSig participates during a contract upgrade.
2020-02-07 11:22:08 +01:00
David Núñez 9a6a8be976 Touches to MultiSigAgent and MultiSig actors 2020-02-07 11:22:07 +01:00
David Núñez b311430490 First pass on block confirmations at the BlockchainInterface layer - see #1194 2020-02-07 11:22:07 +01:00
damon d656142974 field validation, tests, squashed 2020-02-06 03:23:19 -08:00
Kieran R. Prasch a3ee748555 Accomodate the usage of --rate for granting via LCI specs; Post rebase cleanup. 2020-02-06 03:23:19 -08:00
damon fcb9763959 handle kwargs based requests
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2020-02-06 03:22:42 -08:00
damon 75a84ffad9 remove specifications mappings
remove specifications references
remove bad idea
2020-02-06 03:22:06 -08:00
damon 44ce4b475f move nucypher command decorator to CharacterPublicInterface
fix rpc_control_blockchain test
2020-02-06 03:21:59 -08:00
Kieran R. Prasch 71a7fc7a1c Passing RPCController tests 2020-02-06 03:21:59 -08:00
Kieran R. Prasch 763e295299 Deprecates character control decorator in favor of new command specification API (successful policy creation by RPC controller) 2020-02-06 03:21:59 -08:00
Kieran R. Prasch d34e6df0b6 Aiming to unify command specifications, controllers, validations, serilaizers with schema modeling (Needs adiitional follow up). 2020-02-06 03:21:59 -08:00
damon c9f0d6c540 fix failing test on invalid rpc input
handle TypeError in invalid RPC input
2020-02-06 03:20:50 -08:00
damon 865b547ce3 more detailed validation test 2020-02-05 11:21:33 -08:00
damon e5688bdb42 update specification validation test with new exception 2020-02-05 11:21:33 -08:00
damon e26bb7a6cf all alice control refactored, tests working 2020-02-05 11:21:33 -08:00
damon 52551da5da initial specifications refactor commit 2020-02-05 11:21:33 -08:00
K Prasch cd1466883e
Merge pull request #1645 from KPrasch/missing-worklock
Fixes #1644; Economics without Worklock enrollment
2020-02-03 13:01:56 -08:00
Kieran R. Prasch 59f369cd6b Expand worklock deployment test to cover economics instantiation before deployment. 2020-02-01 13:11:45 -08:00
Kieran R. Prasch 6081e2f2f7 Include basic html and json rendering tests. 2020-01-31 20:09:21 -08:00
Kieran R. Prasch 9554eb45a6 Implement ethSupply, Renames and Tweaks with @vzotova 2020-01-30 17:19:06 -08:00
Kieran R. Prasch ec78da448e Expose more worklock methods on agency; Adjust claim requirements.; CLI warning for small bids. 2020-01-30 14:18:18 -08:00
Kieran R. Prasch a720070c75 Adjust Bidder tests for new requirements; Use blocktime as reference. 2020-01-30 11:57:11 -08:00
Kieran Prasch c8c8b7d552 Respond to RFCs in PR #1550; Touch ups 2020-01-30 10:27:29 -08:00
Kieran Prasch f0ac200cb7 Detailing the higher level functionality of Bidder. 2020-01-30 10:27:29 -08:00
Kieran Prasch db899e8452 Relocate worklock with the rest of the cli commands 2020-01-30 10:27:29 -08:00
Kieran Prasch a6ca5cbd6f Respond to RFCs in PR #1550 2020-01-30 10:27:29 -08:00
Kieran Prasch bbcb9e649c Updates worklock API to work-based unlock without allocation deployments. 2020-01-30 10:27:29 -08:00
Kieran Prasch bb55ac05d7 Alternate suggestion for worklock claim; Fix import in estimate gas 2020-01-30 10:27:29 -08:00
Kieran Prasch df4de9d0c6 Support worklock bid cancellation via CLI - Clean up outstanding TODOs 2020-01-30 10:27:29 -08:00
Kieran Prasch b403b291de Passing worklock CLI tests: baseline, Test showing single contract deployment (sneaking in seeder as a plceholder for worklock without params ready). 2020-01-30 10:27:29 -08:00
Kieran Prasch 5570d20df5 Unblocked by dnunez - Init stake via worklock allocation and ind. registry. 2020-01-30 10:27:29 -08:00
Kieran Prasch cc9b000fa3 Tightening worklock CLI assertions based on the layer below. Blocked by inability to set-worker to worklock allocation. 2020-01-30 10:27:29 -08:00
Kieran Prasch 657bc0b9a5 Third pass on Worklock CLI under new design\ patterns 2020-01-30 10:27:29 -08:00
Kieran Prasch 606c15493a Tearing up worklock CLI for compadability with the latest implementations 2020-01-30 10:27:29 -08:00
Kieran Prasch 355d7ff887 Deprecates TestEconomics; Adds worklock supply and funding management - Extracts statistical methods to worklock agent. 2020-01-30 10:27:29 -08:00
Kieran Prasch b2bf0f487d Live coding with vicky! 2020-01-30 10:27:29 -08:00
Kieran R. Prasch fc45282964 Additional tests to cover worklock bid reading and test registry management for worklock agent test module 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 5359ca9aec Trying to use deterministic preallocation address generation via worklock in tests. 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 4652daa176 Reconstruction of worklock CLI tests (without consideration for preallocations) 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 5ac52b1271 Integrating the worklock deployer with the rest of em' 2020-01-30 10:27:29 -08:00
Kieran R. Prasch ffd290cb59 Cherry-picking version 1 of the worklock CLI. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch ae0b1d1734 Adds new contract function agency for worklock: refunds, cancellation, tests to match. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch 717a84afd4 Incorporating new worklock contract functions into agents, deployers, and economics. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch 82dbfcfe89 First steps to integrate worklock deployment params via economics 2020-01-30 10:26:37 -08:00
Kieran Prasch 5c3c6a00e8 Properly bond worklock to staking escrow at deploy-time. 2020-01-30 10:26:37 -08:00
Kieran Prasch 1fe806bc57 Expand deployment class registry to include aux. contracts, Include single contract deployment CLI integration test based on WorkLock. 2020-01-30 10:26:37 -08:00
Kieran Prasch cff807eaff Bidding agent tests. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch e21a2da6c1 funding method for worklock deployer 2020-01-30 10:26:37 -08:00
Kieran Prasch 496f73680a Carving out worklock agent tests. 2020-01-30 10:26:37 -08:00
Kieran Prasch cdc8696855 Baseline Worklock deployer tests. 2020-01-30 10:26:37 -08:00
David Núñez 6d3db88a2d
Merge pull request #1627 from vzotova/force-solidity-version
Single version of solidity compiler
2020-01-30 18:18:34 +00:00
vzotova f4c2c4c668 solc bash installation script -> python script, to use solc version from the code 2020-01-29 17:01:11 +03:00
K Prasch a28584d63d
Merge pull request #1611 from cygnusv/fixes
Small fixes to grant: input validation, correct formatting of stakers' data from StakingEscrow
2020-01-25 15:24:49 -08:00
David Núñez 6d7c2abf13 Some input validation to `nucypher alice grant` 2020-01-24 12:07:26 +01:00
Kieran Prasch 46ab992c35
Allow seperate nucypher vs provider password for Felix 2020-01-23 11:44:24 -08:00
David Núñez c590538bbd Move "public" environment variables to `nucypher.config.constants` 2020-01-21 13:53:11 +01:00
David Núñez f1daae2463 Relocate NetworksInventory to nucypher.blockchain.eth.networks 2020-01-19 23:20:11 +01:00
David Núñez 3da6bdf087 Don't set globally a default domain in tests
Otherwise, tests are not modeling real behavior, where we don't have a default.
2020-01-19 19:58:38 +01:00
David Núñez 637a750b94 Make this test resistant to environments where the password envvar exists 2020-01-19 02:59:14 +01:00
David Núñez 4ca3ffe6de Adapt `nucypher stake` logic to inclusion of --network option 2020-01-19 02:59:14 +01:00
David Núñez b802af8223 A RegistrySourceManager for tests that only uses a tailored MockRegistrySource
It assumes that the only valid network is TEMPORARY_DOMAIN
2020-01-19 02:59:14 +01:00
David Núñez 0a64d09505 This test destroyed my local alice config file (╬ Ò ‸ Ó) 2020-01-19 02:59:14 +01:00
David Núñez fe55ffc42c Preoperative marking before replantation surgery
We want to connect learning to "registry" domains
2020-01-18 19:40:19 +01:00
Kieran Prasch 0db9f719cf
adjustments to wind down aagency test to acommodate prolong test. 2020-01-16 11:16:47 -08:00
Kieran Prasch d4cc1bd3c7
Code formatting suggestions; Ensure action period happens early 2020-01-15 11:48:53 -08:00
Kieran Prasch 923b2deb98
Prolong stake API and CLI entry; Deprecate Felix template and landing page 2020-01-15 11:48:53 -08:00
Kieran Prasch c28d5892bb
Introduces prolong stake agency and test 2020-01-15 11:48:53 -08:00
vzotova 06c588476f Fix after rebasing 2020-01-15 12:09:00 +03:00
vzotova 1cf543f0f1 Wind-down parameter for cli 2020-01-15 12:08:59 +03:00
vzotova 5648f41af7 Wind-down parameter for actors 2020-01-15 12:08:59 +03:00
vzotova 09e37375fe Wind-down parameter for agents 2020-01-15 12:08:58 +03:00
vzotova 6c5ef32aa2 Tests for wind-down parameter, wind-down parameter in PreallocationEscrow 2020-01-15 12:08:57 +03:00
vzotova a945c21ad3 Minor rename in test_intercontract_integration.py 2020-01-14 16:59:54 +03:00
vzotova b2d27046dd WorkLock: time-based lock -> stake-based lock, claim() locks token in StakingEscrow 2020-01-14 16:56:20 +03:00
derekpierre fe1a6c8fe4 The recommendation provided after detecting a missing configuration file was incorrect for the StakeHolder configuration.
Fix incorrect message for missing configuration file when default configuration file not found
2020-01-10 16:04:44 -05:00
David Núñez 345a09e2f8
Merge pull request #1459 from vzotova/policy
Policy refactoring
2020-01-10 10:42:33 +00:00
Victoria 35a0dd5528 Apply suggestions from code review #1459
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
Co-Authored-By: David Núñez <david@nucypher.com>
2020-01-10 13:14:04 +03:00
vzotova bd7d5ac43a Fix for test_sampling_distribution 2020-01-10 13:14:04 +03:00
vzotova 3fd751b638 PolicyManager: revocation using owner's signature 2020-01-10 13:14:03 +03:00
vzotova d0396ac86c PolicyManager: split creator role into creator and owner 2020-01-10 13:14:02 +03:00
vzotova 5fa515d295 Moved some gas spending from createPolicy to confimrAcivity 2020-01-10 13:14:02 +03:00
vzotova 5acb9abf76 PolicyManager: fix reentrancy test and small optimizations 2020-01-10 13:14:02 +03:00
vzotova 2e94f2cc02 Update estimate_gas script for new start/end policy time 2020-01-10 13:14:01 +03:00
vzotova 3f888c8b51 Fix cli tests with policy creation 2020-01-10 13:14:01 +03:00
vzotova 4c983fc045 Update character layer for new start/end policy time 2020-01-10 13:14:00 +03:00
vzotova 513c5a491d Agent tests for start/end policy time 2020-01-10 13:13:20 +03:00
vzotova 24d56a03cc Inter contract test for new start/end policy time 2020-01-10 13:13:19 +03:00
vzotova 8a4f079087 Tests for new policy start/end timestamp 2020-01-10 13:13:19 +03:00
Bogdan Opanchuk 8e11c96054 Remove GroupGeneralConfig attributes asignment and replace it with method calls
Attributes don't do anything anymore
2020-01-10 11:10:53 +01:00
Bogdan Opanchuk fa96c4722d global_config: move `mock_networking` option to the characters that actually use it, remove `etherscan` completely 2020-01-10 11:10:53 +01:00
Bogdan Opanchuk 9197f302d6 Group CLI options into structures (including the general options, formerly click_config) 2020-01-10 11:10:53 +01:00
jMyles 757b292f0c Comment responding to @dnunez' question. 2020-01-10 01:17:14 -08:00
jMyles b0d23b309a Don't need this regression test anymore; it doesn't actually show anything terribly interesting about #1554. 2020-01-08 16:43:39 -08:00
jMyles 99096b01c7 Test showing #1554. 2020-01-08 16:43:39 -08:00
jMyles d6d73612bb This lives in learning tests now. 2020-01-08 16:43:39 -08:00
jMyles c510c3531e For test purposes, we need to mature the sprout to see its cert. 2020-01-08 16:43:39 -08:00
jMyles 923f2377ba These assertions don't work at the moment, though it's not clear how important that is. 2020-01-08 16:43:39 -08:00
jMyles 332d072c40 This needs to be eager now, as we won't verify (and thus get the tested warning) otherwise. 2020-01-08 16:43:39 -08:00
jMyles 264b18e232 The end of automatic mixed operating mode. Removes and cleans up lots of federated_only kwargs. Closes #410. 2020-01-08 16:43:39 -08:00
jMyles bab41dd398 This mock needs to know about the node now. 2020-01-08 16:43:39 -08:00
jMyles 93d1f7f3dc It is no longer the case that Alice will get NotEnoughNodes here; in fact she can't help but learn about (and verify) the nodes she needs at grant time. 2020-01-08 16:43:39 -08:00
jMyles b49dcf98b3 Some more optimizations to lower test time. 2020-01-08 16:43:39 -08:00
jMyles 092d9049db Facility to convert fake key to real one for testing. 2020-01-08 16:43:39 -08:00
jMyles e88d0bcf42 A few updates to performance mocks. Most notably, and strangest, a quick list of all the integers which, when cast to string along with the test string, produce a value in bytes which can't be used as a public key. Seemed like the simplest way to proceed, but I'm open to ideas. 2020-01-08 16:43:39 -08:00
jMyles 32593b432c Flask wants testing set to true in order for this to be treated like a test client. 2020-01-08 16:43:39 -08:00
jMyles 3f372d4053 Comments and new mocks for highperf Alice test. 2020-01-08 16:43:39 -08:00
jMyles 91e757b021 highperf mocked ursula fleet is now variable in size. 2020-01-08 16:43:39 -08:00
jMyles 949cea211a Up and down in the water?! A mock Bob for working with highperf mock Ursulas. 2020-01-08 16:43:39 -08:00
jMyles 703aeeee02 Need mock message verification in more places than were initially obvious. 2020-01-08 16:43:39 -08:00
jMyles 2e0fb975ae We need to be able to mock specific routes individually to test this. 2020-01-08 16:43:39 -08:00
jMyles d06b92cd45 Testing showing JIT validation of Ursula, with TODO showing where we might eventually do that. 2020-01-08 16:43:39 -08:00
jMyles 5de196329a New fixture for high-performance mocked Alice, which is compatible with Ursulas fixture in previous commit. 2020-01-08 16:43:39 -08:00
jMyles 377d88c81c Making fixture out of high-performance mocked ursulas. 2020-01-08 16:43:39 -08:00
jMyles 367195d5e7 Moving performance mocks to separate module. 2020-01-08 16:43:39 -08:00
jMyles dd9f866ba7 Collating all mocks needed to make high-performance mock ursulas. 2020-01-08 16:43:39 -08:00
jMyles 80778dc957 Pass entire class throug in order to instantiate NodeSprout or node instance. 2020-01-08 16:43:39 -08:00
jMyles 7df1fde295 New test module for discovery phases. 2020-01-08 16:43:39 -08:00
jMyles f7e90f4bc3 Updating test to account for use of NodeSprout. 2020-01-08 16:43:39 -08:00
jMyles bc6950dd8f Better tracking of mock verifications. 2020-01-08 16:43:39 -08:00
jMyles 0555018ff1 Test showing #1450. 2020-01-08 16:43:39 -08:00
jMyles cd29869ac4 Crazy web of patches. These are the minimum mocks required to produce 5000 Ursulas in the timeframe required for a test. 2020-01-08 16:43:39 -08:00
jMyles d329b98293 A fast mock public key. 2020-01-08 16:43:39 -08:00
jMyles 6a336aecbd Insane monkey patching block. This is how you make several thousand Ursulas in a test. 2020-01-08 16:43:39 -08:00
David Núñez ebb58ae48d Enter the Sidekick: assisting ContractAdministrator to deploy preallocation contracts 2020-01-03 12:13:53 +01:00
David Núñez 4e8caac910 Use approveAndCall also when creating a stake in StakingEscrow
* Reduces stake creation to a single TX
2020-01-03 12:13:53 +01:00
vzotova d1cb098d1e receiveApproval method for PreallocationEscrow 2020-01-03 12:13:53 +01:00
Kieran R. Prasch 88386c91f9 Respond to RFCs in PR #1536 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 8cf8397726 Adjustments to config tests to loosen up a little and allow for config versioning to be seperately tested. 2020-01-02 12:41:44 -08:00
Kieran R. Prasch f501f6dedb Remove stale password assertions (UX no longer requires auth for 'view') 2020-01-02 12:41:44 -08:00
Kieran R. Prasch 4324618128 Disable hardcoded seednodes in conftest. 2020-01-02 12:41:44 -08:00
vzotova e66058530e Fixes #1349, enable re-staking by default 2019-12-26 13:21:12 +03:00
vzotova 4f0a49ff4a Upgradeability test revision 2019-12-26 13:01:11 +03:00
vzotova bb15e4bad1 Apply suggestions from code review #1407 2019-12-26 13:01:10 +03:00
vzotova 686a977f43 Test flag for StakingEscrow in administrator class 2019-12-26 13:01:10 +03:00
vzotova a473357eca Fix after rebasing 2019-12-26 13:01:10 +03:00
vzotova 6843f309f4 Reentrancy protection test for cancelBid 2019-12-26 13:01:09 +03:00
vzotova 3c000d5742 Fixed integration test 2019-12-26 13:01:08 +03:00
vzotova 5d522666d4 Fixed worklock tests 2019-12-26 13:01:08 +03:00
vzotova f7c0401ff5 Test flag for multiple worklock in StakingEscrow 2019-12-26 13:01:08 +03:00
vzotova acd8f50e16 Update test_worklock 2019-12-26 13:01:07 +03:00
vzotova b454a0fd40 Completed tests for burn tokens 2019-12-26 13:01:06 +03:00
vzotova 73e0b6378c Explicit StakingEscrow and WorkLock initialization 2019-12-26 13:01:06 +03:00
vzotova 4dcb5b201d Apply suggestions from code review #1470
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
Co-Authored-By: David Núñez <david@nucypher.com>
2019-12-24 19:01:06 +03:00
vzotova 9def52d817 Fixed tests after contract version integration 2019-12-24 19:01:05 +03:00
vzotova 52bba7884c Completed upgradeability test 2019-12-24 19:01:05 +03:00
vzotova adb11d6785 Test for multi-version contract deployment 2019-12-24 19:01:05 +03:00
vzotova 98185a99c4 Search using contract version, checking version while deployment 2019-12-24 19:01:04 +03:00
vzotova 24b7fc3539 Versioned contract class, contract version in registry, ability to remove parameters from constructor in deployers (overrides) 2019-12-24 19:01:04 +03:00
vzotova 4ce0a3658b Upgradability test: download contracts from github, master branch 2019-12-24 19:01:03 +03:00
vzotova 7002734e0b Test for multi-source solidity compilation 2019-12-24 19:01:03 +03:00
vzotova b140a03972 SolidityCompiler: ability to use multiple directories for compilation 2019-12-24 19:01:02 +03:00
vzotova 79f50206c6 Removed unnecessary * from solidity docs 2019-12-24 19:01:02 +03:00
Kieran R. Prasch 77b297ede3 Excavate reencryption logic onto Ursula proper. 2019-12-11 18:23:56 -08:00
Kieran R. Prasch eba53f3206 Prepare datastore models for storing WorkOrders 2019-12-11 17:14:40 -08:00
David Núñez 5cc04f6d1d Simplify PreallocationEscrow.withdrawTokens(). Thanks @vzotova, you rock
* Use StakingEscrow.getAllTokens instead of getLockedTokens, so unlocked tokens are also considered for the limit deduction
* This is fine since tokens are still in StakingEscrow, and only can leave via PreallocationEscrow
2019-12-11 13:32:03 +01:00
David Núñez 9b2d5d2fde Implement `nucypher stake preallocation` subactions as a click argument 2019-12-11 13:32:03 +01:00
David Núñez d3b961f9bd PreallocationEscrowAgent.available_balance returns the balance that can be collected, considering both locked and staked tokens 2019-12-11 13:32:02 +01:00
David Núñez 82b8dbd0d6 Test `nucypher stake preallocation --status` and `--withdraw-tokens` 2019-12-11 13:32:02 +01:00
David Núñez 428c7f2a0e TODOs and housekeeping 2019-12-11 13:27:08 +01:00
David Núñez 2caa88c68d Adapt tests to latests changes in PreallocationEscrow 2019-12-11 13:27:08 +01:00
David Núñez fe11752e58 Introduce mock_transacting_power_activation fixture 2019-12-11 13:27:08 +01:00
David Núñez da7a572549 Adapt tests to new registry fetching; extract common fixture. 2019-12-11 13:27:08 +01:00
David Núñez cf5cef9a20 Adapt PreallocationEscrow deployer and tests to latest changes 2019-12-11 13:27:08 +01:00
K Prasch e10bcf5647
Merge pull request #1493 from KPrasch/cadmium
Ensure all tests can run in a singe session; Docker adjustments
2019-12-10 00:41:41 -08:00
Kieran R. Prasch 40e5ed7934 Adds optional explicit allocation file output directory; Implement in tests. 2019-12-09 17:04:49 -08:00
David Núñez 193b53ee1b
Merge pull request #1498 from nucypher/todo-party
After TODO party clean-up 🎉
2019-12-07 17:54:42 +00:00
David Núñez c82d78b08b Inaugural TODO Party: Review TODOs in blockchian modules. 2019-12-06 20:59:59 -08:00
K Prasch 86cd87dad6
Merge pull request #963 from nucypher/doubtfire
[EPIC] Doubtfire: Modifications for Monitoring Applications
2019-12-06 12:18:56 -08:00
Kieran R. Prasch b49636c25c Remove superfluous registry assertion, since it is variable, often in-memory. 2019-12-04 18:53:58 -08:00
Kieran R. Prasch 42ee86b4d2 Ensure fresh mock registry for each module test. 2019-12-04 18:53:05 -08:00
Kieran R. Prasch 5d267e4fa5 Remove test allocation files at the end of deployer tests involving preallocations. 2019-12-04 17:45:50 -08:00
Kieran R. Prasch e814cc464e Include min password length when asking for it. 2019-12-04 17:44:57 -08:00
vzotova e0e648cf40 Reentrancy tests 2019-12-04 12:41:01 +01:00
David Núñez 376b8d1857
Merge pull request #1121 from vzotova/optimization
Contracts size optimizations
2019-12-04 11:23:26 +00:00
Kieran R. Prasch 57df8069a4 use random worker private key in manual worker fixture; remove stale script. 2019-12-03 21:05:25 -08:00
Kieran R. Prasch aa2c6b191e Fixes #1343 - Move StakeHolder to blockchain Actors. 2019-12-02 18:28:02 -08:00
derekpierre e3acb7788b Remove Moe CLI test. 2019-12-02 10:45:02 -05:00
Victoria fd5d0be500
Apply suggestions from code review #1121
Co-Authored-By: David Núñez <david@nucypher.com>
2019-11-27 10:09:48 +01:00
vzotova 131ebda9cc Few more contract optimizations 2019-11-27 11:50:24 +03:00
vzotova 693928c4e6 EstimateGas script refactoring 2019-11-27 11:50:24 +03:00
vzotova a14b4e5e8b createPolicy optimization 2019-11-27 11:50:24 +03:00
vzotova 4718569128 Small optimization for PolicyManager 2019-11-27 11:50:23 +03:00
vzotova 5d777b6a68 Few more size optimizations for StakingEscrow 2019-11-27 11:50:23 +03:00
vzotova 854b4d9eb7 First optimization step for StakingEscrow 2019-11-27 11:50:22 +03:00
derekpierre 1cacffa153 Fix in memory SQLite test case 2019-11-25 21:57:37 -05:00
Kieran R. Prasch b27aaa8f5d Use in-memory sqlite for sql node storage testing. 2019-11-25 17:09:09 -08:00
Kieran R. Prasch a4ce120e1d Removes selenium conftest setup. 2019-11-25 16:22:50 -08:00
Kieran R. Prasch 9059ddf660 Extricate Status Apps. 2019-11-25 16:22:50 -08:00
derekpierre 1da11ed1d6 Initial code for SQLiteForgetfulNodeStorage to eventually be used for tracking network status 2019-11-25 16:22:50 -08:00
derekpierre 83ca610c6a Initial separation of Moe crawler vs dashboard 2019-11-25 16:22:50 -08:00
derekpierre 0417f3540a Fixed Ursula status pages test to pass once federated ursula status pages work
Add circleci_only marker for tests
2019-11-25 16:22:50 -08:00
derekpierre 748fd0e34d Update reasoning for skipping Ursula status page tests 2019-11-25 16:22:50 -08:00
derekpierre 95bbc502f0 Remove pytest-dash from all dependencies
Rebuild dependencies to include dash[testing]
2019-11-25 16:22:50 -08:00
derekpierre 7daedf4bf6 Initial code to transition tests to dash[testing] from pytest-dash.
Note, tests are skipped and don't yet work with dash[testing] - this is to allow for CI builds to pass
2019-11-25 16:22:50 -08:00
derekpierre b2e98930e4 Setup tests to work once latest stable Chrome version can be used by instapy-chromedriver
Specify named parameters to UrsulaStatusPage
2019-11-25 16:22:50 -08:00
derekpierre 5335eae273 Moe/Ursula status page: separate network tests for status pages into subfolder.
Only tests in the network folder itself are run (not subdirectories)
Created status subdirectory for status tests so that they are run separately
2019-11-25 16:22:50 -08:00
derekpierre 9106231ccb Moe/Ursula status page: Updated unit tests for ursula status page
Hooked up pytest-dash/selenium for UI test
Removed extra logging
2019-11-25 16:22:50 -08:00
Kieran R. Prasch 6105ffe235 Accommodate inter-test-module transacting power unlocking where needed (eth-test =>0.3.0b0). 2019-11-25 13:32:04 -08:00
Kieran R. Prasch fede665c49 Fixes for #1463. 2019-11-22 15:08:43 -08:00
Victoria 3743ccde1b Apply suggestions from code review
Co-Authored-By: MacLane S Wilkison <maclane@nucypher.com>
2019-11-19 16:12:37 +03:00
vzotova 1dee796bbd Added marker for "light" client to blockchain interface, used "light" parameter for pagination, test for pagination 2019-11-19 16:12:37 +03:00
vzotova f428984401 Pagination for getAllACtiveStakers method 2019-11-19 16:12:36 +03:00
David Núñez 9613aeb6a2 Improve collection of allocation receipts 2019-11-07 23:21:36 +01:00
K Prasch 88d5d38b66
Merge pull request #1327 from nucypher/biznaga
[EPIC] Biznaga: Integration of testnet with staking contracts
2019-10-25 15:36:42 -07:00
K Prasch a518aa9767
Merge pull request #1364 from szotov/extract-sample
Extract sample() from solidity to python
2019-10-25 15:34:40 -07:00
David Núñez a2b4cc9d82 Apply suggestions from code review
Co-Authored-By: MacLane S Wilkison <maclane@nucypher.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2019-10-23 22:06:48 +02:00
David Núñez e124fe50e6 Merge remote-tracking branch 'upstream/master' into biznaga
Fix conflicts in nucypher stake and nucypher-deploy
2019-10-22 22:53:23 +02:00
derekpierre e84f3b56a7 RFC changes based on reviews for PR 1417. 2019-10-21 09:27:23 -04:00
David Núñez 72fca457c9 test_blockchain_ursulas_reencrypt now works for N=10. Also test for down nodes. 2019-10-21 01:56:35 +02:00
David Núñez 6f33b2b53a Adapt test for sampling distribution and relocate to agent tests 2019-10-20 19:11:21 +02:00
David Núñez 9d88930e3c Remove test for sampling in contract 2019-10-20 18:15:32 +02:00
szotov f330f5504b Fixed tests for new method 2019-10-20 17:50:47 +02:00
David Núñez c157a51312 RFCs to PR #1402 (vol 2) 2019-10-20 00:29:45 +02:00
David Núñez 0a3683286d RFCs to PR #1402 2019-10-19 23:59:42 +02:00
David Núñez 377eb0dcf9 Test IndividualAllocationRegistry. Fix some broken stuff. 2019-10-19 23:59:37 +02:00
David Núñez 09591a1a78 Simplify UX of CLI when staking via contract
* Remove --escrow flag
* No account selection; use individual allocation file or explicit addresses
2019-10-19 23:59:37 +02:00
David Núñez d363108661 Stake should be the locked tokens, not locked + rewards. Fix #1369 2019-10-19 23:59:36 +02:00
David Núñez d968cdd848 Add account selection to collect-reward. Complete tests for stake via contract. 2019-10-19 23:59:30 +02:00
David Núñez 8e2bb3e217 Don't use a ContractAdministrator for painting nucypher-deploy inspect 2019-10-19 22:54:24 +02:00
szotov 0976b2bcbe Added prolongStake to PreallocationEscrow 2019-10-19 22:48:47 +02:00
szotov d8621c17be Fixed tests after renaming 2019-10-19 22:48:47 +02:00
szotov dd0be915c4 Rename UserEscrow in python 2019-10-19 22:48:47 +02:00
szotov 7d445203ea UserEscrow renaming in contracts 2019-10-19 22:48:47 +02:00
David Núñez 3515dad296 Fixes to assorted comments: docs, tests, etc. 2019-10-19 22:48:47 +02:00
David Núñez 8433316b0d Better integration of registry when selecting accounts and logging 2019-10-19 22:48:47 +02:00
David Núñez cfe6504393 More tests for staking via contract: set-worker, restake. Assorted fixes 2019-10-19 22:48:47 +02:00
David Núñez 0c4ce00d16 CLI tests for staking via a UserEscrow contract
* Based on tests/cli/ursula/test_stakeholder_and_ursula.py
2019-10-19 22:48:47 +02:00
David Núñez 3c33fe8281 New mock_allocation_registry fixture. Fix mock_allocation_infile and broken tests 2019-10-19 22:48:47 +02:00
David Núñez 78b0c579dd Staker now can deposit tokens on behalf of an allocation user 2019-10-19 22:48:47 +02:00
David Núñez b726b8ce9d Improve regex in test_status. Solve pytest regex warnings. 2019-10-19 22:48:47 +02:00
David Núñez 08c2f45865 @validate_checksum_address now checks all parameters ending with "_address".
Closes #1084
2019-10-19 22:48:47 +02:00
David Núñez 0e4e32c90f Allow UserEscrow.withdrawPolicyReward() to accept a recipient address, like PolicyManager 2019-10-19 22:48:46 +02:00
David Núñez 66efc2af9e Minor touches to UserEscrowAgent 2019-10-19 22:48:46 +02:00
David Núñez aed5d14bee Touches to nucypher-deploy 2019-10-19 22:48:46 +02:00
David Núñez 137db286ee Touches to allocation tests 2019-10-19 22:48:46 +02:00
David Núñez 5a26441f44 Use @validate_checksum_address in UserEscrowProxyDeployer.assign_beneficiary() 2019-10-19 22:48:46 +02:00
derekpierre b1039a3e78 Added test to ensure that options and parameters for commands match. 2019-10-18 11:16:13 -04:00
derekpierre b9ae88979e Improve cli command help testing 2019-10-18 11:16:13 -04:00
derekpierre 4580a0bcc1 Changed CLI format for "stake" command - improve help and detection of invalid commands
Update unit tests.
2019-10-18 11:16:13 -04:00
derekpierre 802f56d2eb Code cleanup and improvement of test code coverage 2019-10-18 11:16:13 -04:00
derekpierre ae6ac4b2aa Fixed broken CLI tests based on refactor 2019-10-18 11:16:13 -04:00
derekpierre 16bf950020 Changed CLI format for "ursula" command - improve help and detection of invalid commands
Update unit tests.
2019-10-18 11:16:13 -04:00
derekpierre 068f02e2af Changed CLI format for "bob" command - improve help and detection of invalid commands
Update unit tests
2019-10-18 11:16:13 -04:00
Michael Egorov f0014f4b13
All characters use keyring 2019-10-14 12:30:11 -07:00
Michael Egorov 038f822e27
Unlock keyring before test 2019-10-12 13:15:39 -04:00
Michael Egorov 6521fcc53b
Test Alice with keyring: fail 2019-10-12 13:10:56 -04:00
Tux 37110bf8e0
Merge pull request #1384 from cygnusv/noche
Final touches to nightly build
2019-10-02 05:03:40 -06:00
David Núñez dac6e0cffb Statistical test: Raise number of samples to 1000. Expected runtime 5 min 2019-10-02 11:37:17 +02:00
Michael Egorov d0c889a72b
Rename confusing f,b to federated,blockchain 2019-10-01 12:14:39 -07:00
Michael Egorov 8c27398204
Reset test rpc message ID before test b/c it's shared globally 2019-10-01 12:14:38 -07:00
Michael Egorov 40287ef7c5
Blockchain and federated tests 2019-10-01 12:14:38 -07:00
Michael Egorov f32a937854
Web character control tests pass 2019-10-01 12:14:38 -07:00
Michael Egorov f365c82627
Blockchainy RPC tests pass 2019-10-01 12:14:38 -07:00
Michael Egorov 1c5b579ef0
ursulas -> handpicked_ursulas 2019-10-01 12:14:38 -07:00
Michael Egorov baf964e83e
Test started being fixed (unfinished yet) 2019-10-01 12:14:38 -07:00
Michael Egorov 6736a60f3e
Change character control spec format to include optional arguments 2019-10-01 12:14:33 -07:00
David Núñez 38e71dd02b
Merge pull request #1372 from cygnusv/noche
Add @pytest.mark.nightly marker to specify nightly tests
2019-10-01 15:18:35 +02:00
David Núñez 87996ba35f New statistical_tests job for nightly CI builds. Test sampling there 2019-09-30 23:09:15 +02:00
David Núñez 6add1d8275 Add support to @pytest.mark.nightly marker to signal nightly tests 2019-09-30 23:05:07 +02:00
Kieran R. Prasch 82c377234b
Respond to RFCs in PR #1344 2019-09-30 11:45:51 -07:00
Kieran R. Prasch c3be5a7854
Basic upgrade and re-target deployer CLI painting. 2019-09-30 09:04:09 -07:00
Kieran R. Prasch 2e7a886391
Clean-up on isle 4... the registries are spraying all over the codebase 2019-09-30 09:04:09 -07:00
Kieran Prasch de61088faa
Extact deployer CLI registry acquisition to actions 2019-09-30 09:04:09 -07:00
Kieran Prasch dab1a13e11
Registry In/Out file management, CLI test integration with proxy retargeting. 2019-09-30 09:04:09 -07:00
Kieran Prasch 0a713c1e51
Bare deployment and Retargeting tests for deployer and CLI 2019-09-30 09:04:09 -07:00
Kieran Prasch 2567bdd3ec
Deployer tooling for accessing untarget, but enrolled contracts by version index. 2019-09-30 09:04:09 -07:00
Kieran Prasch 859e572587
Creates a 'bare' deployment workflow for deployment; Only engage deploy_essential, optionally. 2019-09-30 09:04:09 -07:00
Kieran Prasch 22be285fb2
Buildout deployer proxy contract retargeting via CLI 2019-09-30 09:04:09 -07:00
szotov 770e75389d
Fix StakingEscrow state for upgrading 2019-09-30 09:04:09 -07:00
David Núñez 07af77d74d
Merge pull request #1318 from szotov/tests-optimization
Contracts tests time optimization
2019-09-25 15:27:45 +02:00
K Prasch 314ab277b1
Merge pull request #1339 from KPrasch/restake
Restaking Control
2019-09-19 11:46:48 -07:00
Kieran R. Prasch 6761fde377
Respond to RFCs in PR #1339: Remove duplicated restaking methods, Docs touchups; ContractAgency, restaing agency layer assertions. 2019-09-19 10:54:25 -07:00
szotov 390bf0ba46 Remove unused import 2019-09-18 18:23:06 +03:00
Kieran R. Prasch 00a52f0ca7 Stronger restaking CLI assertions. 2019-09-17 22:42:18 -07:00
Kieran Prasch 80382ad88c
Use LocalContractRegistry in deployment command tests; Add ID to registry repr. 2019-09-17 14:34:58 -07:00
Kieran Prasch 3af265916c
Crafting CLI access to enable/diable restaking. 2019-09-16 21:42:29 -07:00
Kieran Prasch 6af7813e6a
Restaking control via Staker Actor. 2019-09-16 20:59:28 -07:00
Kieran Prasch 5860075142
Restaking access by Agency. 2019-09-16 20:45:50 -07:00
Kieran Prasch 6bdf968a61
Describe ownablity on deployer classes. 2019-09-16 18:09:18 -07:00
Kieran Prasch c2de8d5a57
Re-encapsulate and dehydrate upgradeable and ownable logic in deployers. 2019-09-16 09:45:41 -07:00
szotov 800876638f Reset chain using block hash 2019-09-15 18:22:27 +03:00
Kieran Prasch ab20afc45c
Test modifications for CLI lifecycle to accomodate ImMemoryRegistry as the default. 2019-09-14 10:01:27 -07:00
Michael Egorov 2ba62bbf5b
CLI test bugfix - cli bug revealed 2019-09-13 23:31:39 -07:00
szotov f58eb7a090 Monkey patch to prevent gas estimates 2019-09-12 11:09:00 +03:00
szotov c0a4f976c6 Reset state in testerchain 2019-09-12 11:08:59 +03:00
David Núñez 76103e806c Skip test_sampling_distribution until we have a solution for snail tests
See #1288
2019-09-10 22:14:30 +02:00
David Núñez 9614646593 Use regex matching in tests for nucypher status output. Fix broken stuff here and there. 2019-09-10 22:14:29 +02:00
David Núñez 7b8b31df22 Getting rid of old `session_agency` fixture. Use `agency` instead. 2019-09-10 22:14:29 +02:00
David Núñez 812349ffd5 Reduce probability of skewed stake distribution in stakers fixture 2019-09-10 22:14:29 +02:00
David Núñez e1b4de272e Tests for `nucypher status stakers` and `nucypher status network` 2019-09-10 22:14:29 +02:00
David Núñez 20de10ea6f Add round() to NU 2019-09-10 22:14:29 +02:00
Kieran Prasch 3b3c2f2f1c
Respond to RFCs in PR #1157 Pt. II. 2019-09-10 12:35:51 -07:00
Kieran R. Prasch 07c8d58057 Restores UserEscrow Deployer Testing; Clarify test naming for user escrow ( to be preallocation escrow ). 2019-09-09 18:41:42 -07:00
Kieran R. Prasch baf55630d2
Passing ownership transfer CLI tests + consolidation. 2019-09-09 14:51:12 -07:00
Kieran R. Prasch fa3285a310
Use session-based deployment secrets for testing upgrades; Adjustments for ownership CLI tests. 2019-09-09 14:51:11 -07:00
Kieran R. Prasch ec5fab3b4f
UserEscrowProxy is now part of agency. Divergence amendments for status testing. 2019-09-09 14:50:46 -07:00
Kieran R. Prasch 562e5c6b2d
Working ownership inspection and status commands. 2019-09-09 14:50:46 -07:00
Kieran Prasch f210ce0688
Details nucypher status output; Passing nucypher transfer-ownership tests; Deploy UserEscrowProxy in agency fixture. 2019-09-09 14:50:44 -07:00
Kieran Prasch a3be973700
Extract ownership transfer CLI tests to new test module. 2019-09-09 14:49:38 -07:00
Kieran Prasch d5c5412f42
nucypher-deploy status command detailing contract deployment ownerships; introduce nucypher-deploy transfer-ownership entry point. 2019-09-09 14:49:38 -07:00
Kieran Prasch c2bde46878
Tests describing nucypher-transfer and status commands. 2019-09-09 14:47:49 -07:00
Kieran R. Prasch ac25da7e56 Allow chain ID to be used in transaction building after upstream fixes via web3.py 2019-09-06 11:59:05 +02:00
Kieran R. Prasch 6bdfc6c331 Re-implements some ursula mocking via pytest-mock spy. 2019-09-06 11:59:01 +02:00
szotov 5588600ada Factory for economics, fixed tests 2019-09-04 18:20:02 +03:00
szotov 14086d538a Fix after rebasing 2019-09-04 13:24:03 +03:00
szotov 8646541619 Extended `init` in `StandardEconomics` 2019-09-04 13:24:03 +03:00
szotov 7be142a8d8 estimate_gas script uses custom parameters 2019-09-04 13:24:03 +03:00
szotov e9d2b1f3c7 Combine TokenEconomics and SlashingEconomics 2019-09-04 13:24:02 +03:00
szotov a36bf80dc8 Fix after rebasing 2019-09-04 13:24:02 +03:00
szotov f05454b855 Fix tests 2019-09-04 13:24:02 +03:00
szotov 44717dcca6 Split TokenEconomics into two classes 2019-09-04 13:24:01 +03:00
szotov 3ccc18082d Apply suggestions from code review 2019-09-04 13:24:01 +03:00
szotov 15c9a7569b Fixes #642 2019-09-04 13:24:01 +03:00
szotov adc7b3f826 Test for economics in contract 2019-09-04 13:24:00 +03:00
David Núñez f1b5ed4861 Additional functions in TokenEconomics for checking token supply 2019-09-04 13:24:00 +03:00
damon c 3cd061b152
Merge pull request #1294 from vepkenez/felix-live-rebased
Felix live
2019-09-04 03:02:45 -07:00
damon c cae5247bfe
Merge pull request #1280 from cygnusv/sample
Touches to StakingEscrow.sample()
2019-09-03 14:51:45 -07:00
damon 4120d6f293 reinstate felix eth distribution test 2019-09-03 11:45:52 -07:00
Damon C 5cec6ca322 amount tweaks 2019-09-03 09:08:07 -07:00
David Núñez 27d11090bb Test that sampling distribution is as expected. Closes #1019 2019-09-02 23:22:49 +02:00
David Núñez b75d6884ea Sets N=6 in test_blockchain_ursulas_reencrypt. Closes #1090. 2019-09-02 19:22:57 +02:00
David Núñez 4bb83cf180 Adapt sampling tests to new changes 2019-09-02 19:22:57 +02:00
Kieran R. Prasch 63d941117d Respond to RFCs in PR #1283. 2019-09-02 08:22:41 -07:00
Kieran Prasch 307bfe3ad6
Fixes #1283 - Allow staking to maximum amount per address. 2019-09-01 09:41:19 -07:00
Kieran Prasch 22fc7d16b4 Adapt PeriodTracker to WorkTracker; Geth client duration bug fix. 2019-08-31 11:32:25 -07:00
Kieran R. Prasch ea47bfa4c5 Disable account auto-relocking during pytests. 2019-08-30 21:05:57 -07:00
Kieran Prasch 43d2ff34fe
Add worker init flag to indicate insta-confirm. 2019-08-30 20:53:32 -07:00
Kieran Prasch aa73f9265e
Test demonstrating auto-confirmation via PeriodTracker and Twisted Clock. 2019-08-30 20:38:38 -07:00
Kieran Prasch 7afc134e6a
Fixes #1279; Uses injected registry to verify stranger-Ursulas with lazy StakingAgent. Use fallback storage backend. 2019-08-30 17:55:53 -07:00
Kieran Prasch c70ed348c0
Test replicating #1279 using the CLI. 2019-08-30 15:41:32 -07:00
Kieran R. Prasch 9941a3db7b
Rebase amendment for worklock divergence. 2019-08-30 11:08:35 -07:00
Kieran R. Prasch 25f0caa23c Post rebase adjustment for new auto provider detection support. Fixes for ursula receipt painting. 2019-08-28 06:41:37 -07:00
Kieran R. Prasch f6cf2b6dfd Fixes missing default filepath call; Better Exception handling for outdated configuration file. 2019-08-27 09:56:41 -07:00
Kieran R. Prasch feeeee133a new-stakeholder -> init-stakeholder 2019-08-27 09:56:41 -07:00
Kieran R. Prasch 4431d7966d Respond to RFCs in PR #1225; Use blake2b for registry cache key. 2019-08-27 09:56:41 -07:00
Kieran R. Prasch 64d40a7f80 Whoops! Restores 'address' and respectively 2019-08-27 09:56:41 -07:00
szotov 72f8b49501 Monkey patch to prevent gas adjustment in tests 2019-08-27 09:56:41 -07:00
Kieran Prasch b20cf2f6f6 Test fixes: Alter estimate gas to use blockchain factory; Restore accidentally renamed deployment files. 2019-08-27 09:56:41 -07:00
Kieran Prasch 58f34dac7b Checkpoint #4 - Fixes policy sampling bugs - continue reflow fixes. 2019-08-27 09:56:41 -07:00
Kieran Prasch 2a299aaca1 Checkpoint #3 - Reflow StakeHolder, Stake and Wallet Management. 2019-08-27 09:56:36 -07:00
Kieran Prasch 324c2805f5 Checkpoint #2 - Refactor Policy, and Blockchain / Registry Reflow. 2019-08-27 09:54:14 -07:00
Kieran Prasch 69aea3f725 Checkpoint: Refactors lifecycle of Blockchain and Registry. 2019-08-27 09:54:13 -07:00
derekpierre 213b42fe58 Return UnsuportedProvider exception instead of ValueError - update unit tests. 2019-08-24 13:56:26 +02:00
derekpierre f7787b87b4 Minor unit test fix. 2019-08-24 09:01:06 +02:00
derekpierre 74e2c0cf3a Code cleanup: log message and tests for auto file-scheme detection 2019-08-24 09:01:06 +02:00
derekpierre 172e2a9683 Add provider type detection test for websocket uri 2019-08-24 09:01:06 +02:00
derekpierre 6ece74cb00 Auto-detect 'file' uri scheme when an ipc file path is provided without a scheme and exists. This allows for auto-completion for file paths passed as --provider. 2019-08-24 09:01:06 +02:00
szotov ca79c0834f Renaming workDone -> completedWork, payor -> payer 2019-08-21 21:27:42 +03:00
szotov 71223cb00c Fix after rebasing 2019-08-21 21:27:41 +03:00
szotov 38d8361f35 Added new restriction to prolongStake 2019-08-21 21:27:40 +03:00
szotov c0c2319443 Fix after rebasing 2019-08-21 21:27:40 +03:00
szotov 60f341c3e0 Removed preDeposit method, fixed small issues 2019-08-21 21:27:38 +03:00
szotov 7c2e08872d Fix getRemainingWork in worklock, worklock in intercontract test 2019-08-21 21:27:38 +03:00
szotov 75865a2388 Events for worklock 2019-08-21 21:27:37 +03:00
szotov e6fff3973b Tests for worklock 2019-08-21 21:27:36 +03:00
szotov 895411d312 Added function to prolong stake 2019-08-21 21:27:36 +03:00
szotov c173fc1e4f Tests for work measurement 2019-08-21 21:27:34 +03:00
David Núñez 29a7fd8407 NUCYPHER_WORKER_ETH_PASSWORD envvar for Ursula. Workaround for #1205.
Require existence of at least one ETH account when prompted.  Fix #1207.
2019-08-18 11:59:37 +02:00
Kieran Prasch 9408463dec Refactor from_seed_and_stake_info to accept a checksum_address inclusive in the URI. 2019-08-18 11:58:04 +02:00
damon c 126c44a5fc
Merge branch 'master' into status 2019-08-08 12:52:45 -07:00
K Prasch 002a373189
Merge pull request #1203 from vepkenez/sync-fix
Improved Blockchain Syncing UX
2019-08-08 12:50:31 -07:00
Kieran Prasch 73c6da3ffe
Restore nucypher status CLI: Error handling and console painting; implement worker-staker speration. 2019-08-08 12:43:18 -07:00
Damon C 785eb1e796
Implements InfuraClient by adding an intermediate call to get the variant of a web3 client. 2019-08-08 12:42:41 -07:00
Damon C d93f9c8947 squashed test fixes, addressed PR review comments 2019-08-08 11:49:25 -07:00
damon c 674efa768d
Apply suggestions from code review
Co-Authored-By: MacLane S Wilkison <maclane@nucypher.com>
2019-08-07 18:42:47 -07:00
Damon C d9aa98b0cf tests for blockchain sync flow 2019-08-07 13:31:38 -07:00
David Núñez c21448d547 Improve UX of nucypher stake set_worker and detach_worker 2019-08-04 02:41:04 +02:00
David Núñez 88c6309369 Add a log entry during tests to mark begin and end of each test 2019-08-04 02:41:04 +02:00
David Núñez f0c28f8c0c Action nucypher felix destroy should come earlier 2019-08-04 02:41:04 +02:00
David Núñez 965a473bb5 Make sure bare contracts are updated in deployers' upgrade tests 2019-08-04 02:41:04 +02:00
David Núñez 586f7edb89 Deployers now hold explicit list of deployment steps 2019-08-04 02:41:04 +02:00
David Núñez d82afa6d25 Minor touchups 2019-08-04 02:40:58 +02:00
David Núñez 23d84ae22b Passing --no-registry correctly to characters' config 2019-08-03 21:49:01 +02:00
David Núñez 031ba817f1 Setting download_registry=False in test fixtures 2019-08-03 21:49:01 +02:00
derekpierre 3424ff6dc9 Update deployer class property to be more descriptive - "number_of_deployment_transactions" 2019-07-29 14:53:27 -04:00
derekpierre f4327e821e Added the ability for per-deployment step progress updates since these steps can take a long time.
It is worth noting that only progress is updated for individual steps - the printing of the receipt confirmation to the console is not done until all receipts (from the inidividual step) are received by the deployer.
Added unit tests for progress updates.
2019-07-29 14:53:27 -04:00
David Núñez 1bd2aae362
Adapt Ursula CLI tests to being asked for worker account password 2019-07-29 11:27:14 -07:00
David Núñez 8dcf5a799d
Remove second stamp substantiation. Fix #1091 2019-07-29 11:27:14 -07:00
David Núñez ca732b5a50
Add test_transfer_tokens to nucypher-deploy tests. Remove unused stuff. 2019-07-29 11:27:14 -07:00
Kieran Prasch 6392c1f42a
Do no ask for client passwork in stake CLI when using hw wallet flag, or dev chain is auto detected. 2019-07-26 10:15:34 -07:00
Kieran Prasch d8e6486283
Split keyring password collection into two functions and implement in CLI; Provides interactive account selection for Alice. 2019-07-26 10:14:41 -07:00
Kieran Prasch 2dd3e92868
Shortens CLI flag names to --provider and --teacher. 2019-07-26 10:14:41 -07:00
David Núñez a9f5c4a12b Implement and test nucypher stake detach-worker 2019-07-26 14:08:01 +02:00
Kieran Prasch 27fc89d106
Ensure CLI painting implements emitters; Emitter logic for stakeholder CLI. 2019-07-25 15:19:44 -07:00
Bogdan Opanchuk 0ce9458bf0
Create a console emitter only once (in NucypherClickConfig) and propagate it everywhere 2019-07-25 15:19:42 -07:00
Bogdan Opanchuk 3e17cd7c74
Remove duplicate options, move shared options definition and processing to NucypherClickConfig 2019-07-25 15:18:29 -07:00
Bogdan Opanchuk b473c0f4bd
Hide registering/unregistering observers and Sentry init inside utilities/logging
Also add a check that Sentry SDK is only initialized once
2019-07-25 15:18:29 -07:00
Kieran Prasch 9bca91d97d
Deploy CLI Touch Ups (Tested on local private chain). Restore Syncing TImeout. Mock ChainId RPC Endpoint in some client integration tests. 2019-07-25 15:18:29 -07:00
Kieran Prasch 30aa51c1f2
Mock to_config_file briefly to avoid writing to the default config root. 2019-07-25 15:18:29 -07:00
Kieran Prasch c4f14cb1f0
Deprecates funding account and account creation options. Touch up stake CLI. 2019-07-25 15:18:29 -07:00
Kieran Prasch 1b3e3e45e5
Respond to RFCs in PR #1111: Remove deployment transaction gas limit. 2019-07-25 15:18:29 -07:00
David Núñez 22166d0242
Fix bug in UserEscrowDeployer tests 2019-07-25 15:18:29 -07:00
David Núñez e5d91632b2
Adapt deployers and tests to handle receipts, not tx_hashes 2019-07-25 15:18:29 -07:00
David Núñez 2d383ba41c
Once per module, session_testerchain restores balance of accounts, at expense of coinbase ¯\_(ツ)_/¯ 2019-07-25 15:18:29 -07:00
David Núñez e60bbd2332
Use session_testerchain in actors tests. Let's start with Investigator 2019-07-25 15:18:29 -07:00
David Núñez c156437bbe
First draft of Investigator test 2019-07-25 15:18:29 -07:00
David Núñez 9899148b17
Get on-chain staking parameters with StakingEscrowAgent 2019-07-25 15:18:29 -07:00
David Núñez d317a7d1b0
Add missing AdjudicatorAgent assertion in test_deploy_cli 2019-07-25 15:18:29 -07:00
David Núñez 718a5244dc
PolicyAgent --> PolicyManagerAgent 2019-07-25 15:18:29 -07:00
David Núñez 1a90164a7b
Improve PolicyManagerDeployer tests. Adds upgrade & rollback 2019-07-25 15:18:29 -07:00
David Núñez 7030937629
Extract common fixtures for deployers tests 2019-07-25 15:18:29 -07:00
David Núñez 77b311ff40
Revamp of StakingEscrowDeployer tests. Add upgrade & rollback tests 2019-07-25 15:18:29 -07:00
David Núñez 6ca6c4cbcc
Testing failed init of StakingEscrowAgent due to contract not deployed 2019-07-25 15:18:29 -07:00
David Núñez 1e431741e3
Reusable, session-scoped testerchain PoC: Deployers test time down 37% 2019-07-25 15:18:29 -07:00
David Núñez 2b8ec61556
Restore initial design of UserEscrowProxy.deploy() 2019-07-25 15:18:29 -07:00
David Núñez f100d39630
"Deployer" actor is now called "DeployerActor", to avoid confusion with deployers 2019-07-25 15:18:29 -07:00
David Núñez 434bb7072a
Fix error in test_user_escrow_deployer (see #1106) 2019-07-25 15:18:29 -07:00
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 017aba3743
Updates estimate gas with interactive deployment painting and Secrets namedtuple. 2019-07-25 15:18:29 -07:00
Kieran Prasch 4ee8c70860
Respond to RFCs in PR #1056. 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 c8a95fba30
Skip transfer of rewards back to funding account for now. 2019-07-25 15:18:29 -07:00
Kieran Prasch c0f166e56a
Fix keyring checksum address multiple kwarg passing, add withdraw of inflation rewards to specified account or funding account. Touch up reward collection assertions. 2019-07-25 15:18:29 -07:00
Kieran Prasch 7508dc24c3
Use mocked blockchain interface connection within CLI subprocesses in two tests. 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 fd5e5b236c
Adds CLI controls for inflation v. policy reward collection, extracts deployer action. 2019-07-25 15:18:29 -07:00