Commit Graph

4917 Commits (f99d60b8625087552e74d740661dbc68d8c88012)

Author SHA1 Message Date
szotov e24add0456 Extract sample() from contract to python 2019-10-20 17:50:46 +02:00
David Núñez c157a51312 RFCs to PR #1402 (vol 2) 2019-10-20 00:29:45 +02:00
David Núñez e4dee87d58 Optionally paint inactive stakes too with nucypher stake list --all 2019-10-19 23:59:42 +02:00
David Núñez 818f72d4ea Fix incorrect dates shown on stake creation 2019-10-19 23:59:42 +02:00
David Núñez b187238fbc `nucypher stake list` now only shows active stakes. Fix #1418. 2019-10-19 23:59:42 +02:00
David Núñez 9fe7fb1eb1 Enrich utils.datetime_at_period to return datetime at start of period 2019-10-19 23:59:42 +02:00
David Núñez d0629dfaa1 Prettify output of nucypher stake accounts 2019-10-19 23:59:42 +02:00
David Núñez e71aa0ff8b Add some basic output to nucypher stake collect-reward 2019-10-19 23:59:42 +02:00
David Núñez 0b2325131f Lexicographical order to output of nucypher stake list and nucypher stake accounts 2019-10-19 23:59:42 +02:00
David Núñez 0a3683286d RFCs to PR #1402 2019-10-19 23:59:42 +02:00
David Núñez ebe4e39ea0 Accomodate staking guide to latest changes to CLI staking via contract 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 edd12f5d66 Better error message for failed keyring unlocking due to bad password 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 f8b75efd67 Use IndividualAllocation in StakeHolder and Staker.
...phew, much better!
2019-10-19 23:59:36 +02:00
David Núñez 7141efd8e9 Create individual allocation file with beneficiary and contract address 2019-10-19 23:59:36 +02:00
David Núñez 6b511c6157 First pass at CSV summary of deployed allocation 2019-10-19 23:59:36 +02:00
David Núñez bc7ee9e54f Write allocation template file when deploying allocations 2019-10-19 23:59:36 +02:00
David Núñez 3f302cdbad Introduce IndividualAllocationRegistry, constructed from published ABI 2019-10-19 23:59:36 +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 2c2288bf55 Learning: check min stake size, accept stake for next period. Fix #1115 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
David Núñez 5ca663ef3f Use listWallets to ascertain if account is from a device. Fix #1385. Fix #1128. 2019-10-19 22:49:44 +02:00
David Núñez 9ae408056d Add support to personal_listWallets endpoint in Geth client 2019-10-19 22:49:44 +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
szotov 2e205d03d5 UserEscrow refactoring 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 f2e10106ef Workaround for #1385. Better logs when activating TransactingPowers 2019-10-19 22:48:47 +02:00
David Núñez 91a5db16bb Update staking guide with instructions for staking via contract 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 508577e902 Handle restaking operations in UserEscrowAgent. Use this in Staker. 2019-10-19 22:48:47 +02:00
David Núñez 0da70c8982 Allocation users can now set worker, detach worker and re-stake 2019-10-19 22:48:47 +02:00
David Núñez d6f76c5d93 Introduce action for handling client accounts with support for allocation users 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 11c8be9b6d Fix bug in UserEscrowProxy that prevented UserEscrow to stake all its tokens 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 3dd7b46ac2 Adapt staking CLI to handle allocation users 2019-10-19 22:48:47 +02:00
David Núñez d1a1a5bd49 Relocate logic for checking if staking via contract, from Stakeholder to Staker 2019-10-19 22:48:47 +02:00
David Núñez 91102b88d3 First pass at creating stakes as an allocation user. Missing painting and tests 2019-10-19 22:48:47 +02:00
David Núñez f552d9c01a Updates to Staker and StakeHolder to support staking via contracts 2019-10-19 22:48:47 +02:00
David Núñez 58b4b5512c Add helper function to AllocationRegistry to check if beneficiary is in 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 01c8bd371b Relocate deposit() from Stake to Staker 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