Commit Graph

118 Commits (c157c8ccf7efbb8bca386d5ca431f2f06807e1e9)

Author SHA1 Message Date
vzotova d51ad8db93 Remove force re-stake lock 2020-09-17 13:54:57 +03:00
vzotova eb7ccdaa6b estimate_gas: gas analysis for making a commitment with large number of stakes 2020-08-25 18:50:43 +03:00
vzotova bb8610b744 StakingEscrow: force re-stake locking in `batchDeposit` 2020-08-25 18:50:42 +03:00
David Núñez e438f2f944 Use our new Logger replacement everywhere 2020-08-08 03:14:45 +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
Kieran Prasch 3b4e9b47dc
Optimize imports for the entire codebase 2020-05-15 08:34:25 -07:00
Kieran Prasch a935dc8e2d
Annihilate the sandbox 2020-05-15 08:33:38 -07:00
vzotova c228c388c3 Rename `set worker` to `bond worker` everywhere 2020-05-13 20:21:53 +03:00
vzotova 4a0b79b2ca StakingEscrow: confirmActivity -> commitToNextPeriod, lastActivePeriod -> lastCommittedPeriod 2020-05-13 20:21:52 +03:00
vzotova 1834ad7569 Renamings: mine -> mint, lastMinedPeriod -> previousFeePeriod 2020-05-13 20:21:51 +03:00
vzotova 6039002408 Rename policy reward to policy fee 2020-05-13 20:21:51 +03:00
David Núñez ec3b27d95a Extend gas estimation script for other batch deposit scenarios
For stakers with 24 substakes, gas cost per batch deposit is 850,000*N + 69,000
2020-05-05 20:06:16 +02:00
David Núñez 590acf564c Print main contract sizes in gas estimation script 2020-04-27 02:37:22 +02:00
David Núñez 420f061d6e Small reorder in estimage_gas.py script 2020-04-27 02:37:22 +02:00
vzotova 5361b1b545 Small refactoring for gas estimation script to separate several cases 2020-04-24 15:57:43 +03:00
vzotova 4edb5441f7 Enable winding down in gas estimation script to measure worst case 2020-04-24 15:57:43 +03:00
vzotova 6b97e4e330 StakingEscrow: multiple sub-stakes for multiple stakers in batch deposit 2020-03-27 19:29:33 +03:00
vzotova 3449c2f873 StakingEscrow: batch deposit with one sub-stake 2020-03-27 19:29:33 +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 2e94f2cc02 Update estimate_gas script for new start/end policy time 2020-01-10 13:14:01 +03:00
vzotova e66058530e Fixes #1349, enable re-staking by default 2019-12-26 13:21:12 +03: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 854b4d9eb7 First optimization step for StakingEscrow 2019-11-27 11:50:22 +03:00
Kieran R. Prasch 6bdfc6c331 Re-implements some ursula mocking via pytest-mock spy. 2019-09-06 11:59:01 +02: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 44717dcca6 Split TokenEconomics into two classes 2019-09-04 13:24:01 +03: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 324c2805f5 Checkpoint #2 - Refactor Policy, and Blockchain / Registry Reflow. 2019-08-27 09:54:14 -07:00
szotov 60f341c3e0 Removed preDeposit method, fixed small issues 2019-08-21 21:27:38 +03:00
David Núñez 718a5244dc
PolicyAgent --> PolicyManagerAgent 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 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 56f4ec1844
Handle TransactingPower activation in estimate_gas.py 2019-07-15 12:06:44 -07:00
David Núñez b4790ce976 Fix estimate_gas script: Adjudicator contract was already deployed. 2019-07-04 11:23:51 +02:00
David Núñez 051bbbc02f Use testerchain.client.sign_message() in tests for EIP191 signatures 2019-07-04 11:23:51 +02:00
David Núñez f6fac7c073 Adapting other adjudicator tests and gas estimation to latest changes 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
Damon C aebac62dd8 remove most other direct blockchain.w3 references 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 9638dc86bf Fix name of StakingEscrowAgent. It was StakingEscrow 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 877833aaf3 Understand Staker and Staking to be separate ideas. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 5551ce950c MinerEscrow -> StakingEscrow, and MiningAdjudicator -> Adjudicator in agency, and in-test 2019-07-04 11:22:38 +02:00
szotov fbe4493951 Changed restriction on miner<->worker relationship 2019-07-04 11:22:38 +02:00
szotov b545e3ec9b Fixed small issues, added setWorker to UserEscrow 2019-07-04 11:22:38 +02:00
David Núñez 53d12582a6 How should Bob discover and validate Ursula's Identity Evidence? #962 2019-05-16 16:12:08 +02:00
David Núñez 66aaf328c4 mock_ursula_reencrypts as as global fixture 2019-05-16 16:12:08 +02:00
David Núñez b51cb74a4d Adapt tests to latest changes in MiningAdjudicator 2019-05-16 16:12:07 +02:00
Kieran Prasch 306978b71e
Add adjudicator agency to gas estimation script 2019-04-22 23:18:51 +03:00
Kieran Prasch e1e79c67ef
Updates estimate_gas to utilize TokenEconomics; Straggler renames and updates. 2019-04-22 23:18:51 +03:00
Kieran Prasch 00eaba0d00
Keep economic coefficients as decimal until explictly cast 2019-04-22 23:18:51 +03:00
szotov d643773002 Gas estimates for re-stake 2019-04-17 16:05:06 +03:00
MacLane Wilkison 86116706ff Change license notices in module headers to AGPL 2019-03-04 18:55:28 -08:00
MacLane Wilkison fd46d74130
Apply suggestions from code review
Co-Authored-By: szotov <zotov89@mail.ru>
2019-02-24 12:48:30 +03:00
szotov 68f87315a3 Enhanced estimate_gas using MiningAdjudicator 2019-02-23 12:37:13 +03:00
szotov 12608c444d Gas estimates for slashing method in MinersEscrow 2019-02-23 12:37:11 +03:00
Kieran Prasch 1755a35fdc Respond to RFCs in PR #617 2018-12-19 08:43:33 -08:00
Kieran Prasch f07f2979ce
Provide simple way to start testing nucypher on pyevm with TeserBlockchain classmethods 2018-12-18 11:27:28 -08:00
Kieran Prasch 6f69704a3a
Use Regex.compile; Docstrings; Even more cleanup 2018-12-14 10:10:08 -08:00
Kieran Prasch 0c7c5a92a8
Respond to RFCs: Code Style and Readability Improvements 2018-12-14 09:12:25 -08:00
David Núñez 9f32f76942
Update tests/metrics/estimate_gas.py
Co-Authored-By: KPrasch <kieranprasch@gmail.com>
2018-12-14 08:06:32 -08:00
Kieran Prasch bf62f9201d
Class-based refactor; Timestamped reports; Automation job. 2018-12-13 16:01:14 -08:00
Kieran Prasch 5002639910
Use twisted loggers to collect and analyze gas estimation data 2018-12-13 16:01:14 -08:00
Kieran Prasch d8b9a7e10e
Maintains estimate gas tester metrics script; Update to latest API. 2018-12-13 16:01:14 -08:00