Commit Graph

349 Commits (32593b432cfbfd7c91dce9ab85a0a2e53df99348)

Author SHA1 Message Date
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 22be285fb2
Buildout deployer proxy contract retargeting via CLI 2019-09-30 09:04:09 -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
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 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
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 e1b4de272e Tests for `nucypher status stakers` and `nucypher status network` 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 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
szotov 5588600ada Factory for economics, fixed tests 2019-09-04 18:20:02 +03: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
Kieran Prasch 307bfe3ad6
Fixes #1283 - Allow staking to maximum amount per address. 2019-09-01 09:41:19 -07:00
Kieran Prasch c70ed348c0
Test replicating #1279 using the CLI. 2019-08-30 15:41:32 -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 64d40a7f80 Whoops! Restores 'address' and respectively 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
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
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 d93f9c8947 squashed test fixes, addressed PR review comments 2019-08-08 11:49:25 -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 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 23d84ae22b Passing --no-registry correctly to characters' config 2019-08-03 21:49:01 +02: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 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
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
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 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 f100d39630
"Deployer" actor is now called "DeployerActor", to avoid confusion with deployers 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 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
Kieran Prasch 2e70aebd01
Bug Fix: Functional inflation reward collection; Refactors internal stakeholder stake tracking 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 73f606a31d
Restores staking CLI tests post #1029 via Stakeholder API. 2019-07-25 15:18:29 -07:00
Kieran Prasch 17aa2edd9f
Update ursula CLI tests to use new stake entry points 2019-07-25 15:18:29 -07:00
Kieran Prasch 2e26f5753f
Respond to further RFCs in PR #1092.
Apply suggestions from code review

Co-Authored-By: David Núñez <david@nucypher.com>
2019-07-15 12:21:12 -07:00
Kieran Prasch 16e464fff5
Bug Fix: Allow TransactingPower to use cached password at activation time - credit to @cygnusv. 2019-07-15 12:06:44 -07:00
Kieran Prasch 98c04d1738
Remove nucypher deploy destroy-registry 2019-07-15 12:06:44 -07:00
Kieran Prasch 688572d5d3
Allows CLI-made characters to connect their blockchain interface through consuming the TransactingPower. 2019-07-15 12:06:44 -07:00
Kieran Prasch dc22bdede0
post rebase BlockchainPower -> TransactingPower 2019-07-15 12:06:44 -07:00
Kieran Prasch d1980f9662
Remove Trezor Imports and presence in setup.py; Deprecate libusb1 suport in-test. 2019-07-11 16:59:23 -07:00
tuxxy a21b01da18 Remove more deprecated device code 2019-07-11 15:39:06 -06:00
tuxxy 09f3370c1b Hack usb1 import to work on CI machines without libusb 2019-07-11 15:39:06 -06:00
tuxxy f107980c25 Add tests for device CLI skeleton 2019-07-11 15:39:06 -06:00
tuxxy c8e3a63a98 Move mock_trezorlib et al to conftest in tests.cli 2019-07-11 15:39:06 -06:00
tuxxy 44c218743b Move tests from wallet to device 2019-07-11 15:39:06 -06:00
tuxxy e4182b2b05 Add test for _reset and other unimplemented methods 2019-07-11 15:39:06 -06:00
tuxxy 438fe9ba7d Add test for call_handler_decorator and fix method declarations 2019-07-11 15:39:06 -06:00
tuxxy 632aa8c3e6 Add passing tests for trezor backend and change imports to work with mocking 2019-07-11 15:39:06 -06:00
Kieran Prasch 68b8a2735d Returning to a single-account BlockchainPower;TODO annotations for BlockchainPower. 2019-07-04 11:23:50 +02:00
Kieran Prasch 552fc461fc Updates estimate gas with new Testerchain API, completely removes calls to .transact() in nucypher nameapce. 2019-07-04 11:23:50 +02:00
Kieran Prasch bb3cce8465 Mock registry reads from disk in Felix CLI integration testing. 2019-07-04 11:23:50 +02:00
Kieran Prasch ebb6b422ac Add the ability to save an in-memory registry to disk. 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
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 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
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 c9f7057dd3 Skip staking ursula tests until #1056 2019-07-04 11:23:49 +02:00
David Núñez 1387683e35 First stub of Worker class, extracted from Staker 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 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