Commit Graph

4835 Commits (7141efd8e99e4340d46f3a9516de790224be45b5)

Author SHA1 Message Date
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
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 ea2ded8088 Allow Staker to interact with UserEscrow. First pass on entrypoints to UE 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 91700abc6b Addressing RFCs: better exception and log messages, painting, etc. 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 c98c1eef65 Save allocation receipts after deployment 2019-10-19 22:48:46 +02:00
David Núñez 201d08f948 Support optional "names" for allocations 2019-10-19 22:48:46 +02:00
David Núñez 7c8564f3fe Paint deployed allocations after nucypher-deploy allocations 2019-10-19 22:48:46 +02:00
David Núñez 8e479b0ad4 First version of interactive and verbose allocation deployment 2019-10-19 22:48:46 +02:00
David Núñez 5fbcdfde47 Allow empty message in StdoutEmitter.echo() 2019-10-19 22:48:46 +02:00
David Núñez 6a254608ae Paint allocation data prior deploying UserEscrow contracts and ask for confirmation 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
David Núñez 3c0d542535 Handle receipts in allocation methods, not txhashes. Better log messages 2019-10-19 22:48:46 +02:00
David Núñez 0a6e95c54c
Merge pull request #1423 from coinfund/bugfix/parity_unlock
Unable to unlock account parity client due to typo
2019-10-17 23:54:38 +02:00