Commit Graph

75 Commits (04239ba53211e7cb025c72a16fb2a14b2995efbe)

Author SHA1 Message Date
Kieran Prasch 5b7668127e Respond to RFCs in PR #2383 2020-10-22 11:09:21 -07:00
Kieran R. Prasch 5627bc75d1
Update grant availability script for mainnet usage 2020-10-18 01:33:25 -07:00
Bogdan Opanchuk 1557617afd Since web3=5.12.2 some of `eth` methods require positional arguments 2020-10-18 00:16:05 -07:00
Kieran Prasch d2c4d951ac Fixes off-by-one counter, simplify envvar names and usage. 2020-10-01 09:31:43 -07:00
K Prasch 88d3a309b9 Apply suggestions from code review
Co-authored-by: Arjun Hassard <arjunhassard@gmail.com>
2020-10-01 09:18:16 -07:00
K Prasch 48859ed240 Update tests/metrics/grant_availability.py
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-10-01 09:18:16 -07:00
Kieran R. Prasch f36aa60216 Introduces grant availability metrics script. 2020-10-01 09:18:16 -07:00
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