Commit Graph

48 Commits (0608608460e031eb1973a4fa7a3d0abf8373ea33)

Author SHA1 Message Date
Kieran Prasch 2c0279ff35 fixes timing anomaly in ethereum test backend 2022-04-05 11:59:30 -07:00
vzotova 59785c0ab3 Fix contract tests after changing Economics 2022-02-08 11:04:27 -08:00
Kieran Prasch 1c34045a81 Prepares economics and deployment constants for use with threshold network. 2022-02-08 11:02:17 -08:00
Damon Ciarelli c1f66c0ef6 ursula pre_application_agent working; contract interactions required to run ursula. 2022-02-08 11:01:24 -08:00
vzotova a6c59ae02f StakingEscrow: renames operator to staking provider 2022-02-08 11:01:24 -08:00
vzotova ab6723ada3 Add one more way to setup vesting 2022-02-08 11:01:23 -08:00
vzotova 12755a563b Removes need to confirm merge before withdrawing 2022-02-08 11:01:23 -08:00
vzotova 9018b0d22c Apply suggestions from code review #2825
Co-authored-by: derekpierre <derek.pierre@gmail.com>
2022-02-08 11:01:23 -08:00
vzotova 8eb26ed1bf Allow to change operator for some cases 2022-02-08 11:01:23 -08:00
vzotova cdee46ba47 Fix after rebasing 2022-02-08 11:01:23 -08:00
vzotova 9fb51c6f29 Tests for new methods in StakingEscrow 2022-02-08 11:01:23 -08:00
vzotova 02de9e7563 Adjust tests for contracts 2022-02-08 11:01:23 -08:00
vzotova 4dda3141ed Apply suggestions from code review #2831
Co-authored-by: David Núñez <david@nucypher.com>
2022-02-08 11:01:23 -08:00
vzotova c454c0cc5e `totalStakedForAt` and `totalStakedAt` return 0 except when upgrading, removes snapshots flag 2022-02-08 11:01:23 -08:00
vzotova 001913c380 Adjust several contract tests 2022-02-08 11:01:23 -08:00
vzotova 5ba91aef2c StakingEscrow: renames formerSecondsPerPeriod/formerHoursPerPeriod -> genesisSecondsPerPeriod/genesisHoursPerPeriod 2021-03-22 11:37:27 -07:00
vzotova ff627e89ec Migration test for StakingEscrow 2021-03-22 11:37:27 -07:00
vzotova 98b63da822 Separated parameter for former hours per period in BaseEconomics 2021-03-22 11:37:27 -07:00
vzotova b0a605ab25 Draft of period extension 2021-03-22 11:37:27 -07:00
Kieran Prasch 84240b4f07 remove_unused -> remove_inactive 2021-03-05 09:56:23 -08:00
vzotova 7c77aa65d0 Remove locking restake flag, throw error when node tries to commit twice in a row 2021-02-02 19:24:28 +03:00
vzotova 61d8dc1ec0 New deployment order: StakingEscrow dispatcher, then PolicyManager+Dispatcher -> Adjudicator+Dispatcher -> WorkLock and only after this StakingEscrow itself 2021-02-02 19:24:28 +03:00
vzotova 9815440464 New order of contracts deployment, StakingEscrow uses other addresses of main contracts in constructor 2021-02-02 19:24:28 +03:00
vzotova 19a2315fbe Combine setters for linked contracts in StakingEscrow 2021-02-02 19:24:27 +03:00
vzotova 546e84a653 Remove test mode from StakingEscrow 2021-02-02 19:24:27 +03:00
vzotova b384911e5d Remove batch deposits 2021-02-02 19:24:27 +03:00
vzotova 30a06fe37d StakingEscrow: method to remove unused sub-stakes 2020-10-20 20:33:38 +03:00
vzotova c2f735ed73 StakingEscrow: allow to claim tokens from worklock before initialization 2020-10-13 00:23:37 +03:00
vzotova 76fbdce7f8 Combine two methods called from StakingEscrow -> PolicyManager into one 2020-10-12 14:31:26 +03:00
David Núñez cd47a3b566 Relocate test/utils/solidity.py to nucypher/utilities/ethereum.py 2020-10-05 12:12:17 +02:00
vzotova aca9c65b68 StakingEscrow: check for snapshots in batchDeposit, allow setWindDown before deposit 2020-09-28 14:05:19 +03:00
vzotova 4dcb414890 StakingEscrow: deposits from worklock allowed only after initialization 2020-09-28 12:12:35 +03:00
vzotova e9b506ff92 StakingEscrow: enable wind down for claim from worklock 2020-09-18 14:34:54 +03:00
vzotova d51ad8db93 Remove force re-stake lock 2020-09-17 13:54:57 +03:00
vzotova 4fd66b6311 Fix after rebasing 2020-08-25 22:58:22 +03:00
vzotova bb8610b744 StakingEscrow: force re-stake locking in `batchDeposit` 2020-08-25 18:50:42 +03:00
vzotova febc51b38e Dedicated method for deposit from WorkLock, auto-lock of `restake` parameter while claiming tokens 2020-08-25 18:50:23 +03:00
Kieran R. Prasch 93416e3bdd
Deprecates --runslow and supurflouous newlines. 2020-08-25 07:09:59 -07:00
vzotova 091ca97e7d Fix bug in `StakingEscrow.mergeStake()` when using same index twice 2020-07-30 12:55:37 +03:00
David Núñez d1acf35002 Allow StakingEscrow initialization from a separate funding source
This is necessary to allow the DAO agent to activate the contract without necessarily giving tokens to the agent
2020-07-21 22:15:43 +02:00
David Núñez 56fd7394db Test that stakers can have positive balance before StakingEscrow initialization 2020-07-21 22:15:43 +02:00
vzotova e90a27c8c3 StakingEscrow: new method to merge two sub-stakes into one 2020-06-23 11:15:02 +03:00
vzotova a55f462902 StakingEscrow: add way to stake tokens to already existing sub-stake, including < minimum allowed 2020-06-23 11:15:02 +03:00
vzotova 3caa46f367 StakingEscrow: removed messages from require and removed one deposit function to decrease contract size 2020-06-23 11:15:01 +03:00
vzotova 54297be311 StakingEscrow: extract getLockedTokensInPast method to test set 2020-06-23 11:15:01 +03:00
vzotova 0c9d4bc9e3 StakingEscrow: unbond worker when withdrawing last portion of NU 2020-06-23 11:15:01 +03:00
vzotova 8f19161920 StakingEscrow: now staker is not only who has tokens but also who has not-rewarded periods 2020-06-23 11:15:00 +03:00
Kieran Prasch 28cce2fccc Reorganize tests into multiple suites. 2020-05-27 14:11:25 -07:00