Commit Graph

103 Commits (2cd7698da722a5585885773c8cf46e053275b66a)

Author SHA1 Message Date
Bogdan Opanchuk 6164137610 Rename m -> threshold, num_kfrags -> shares 2021-08-20 19:26:56 -04:00
Bogdan Opanchuk ad2ad8e3c0 Make HRAC a class and use it as a policy ID 2021-08-19 17:06:45 -04:00
Piotr Roslaniec 662bc34439 Use Path methods instead of os module 2021-08-06 18:10:22 +02:00
Piotr Roslaniec 9f87a5d1f5 Fix pathlib usage 2021-08-06 18:10:22 +02:00
Piotr Roslaniec 6a270c1713 Use pathlib 2021-08-06 18:10:20 +02:00
Bogdan Opanchuk 96749aa9cd POLICY_ID_LENGTH has been moved 2021-07-03 18:51:08 -07:00
Kieran R. Prasch 4f7bdf5c46 tests respect the Keystore API 2021-06-28 14:33:31 -07:00
Bogdan Opanchuk 6090a755b0 Gate the choice of Umbral implementation in a single file 2021-06-22 18:31:08 -07:00
Bogdan Opanchuk 15333ddca2 Dissolve umbral_adapter 2021-06-17 14:38:51 -07:00
Bogdan Opanchuk e6fcdbbff6 Minimal fixes to make CI pass, using an adapter for Umbral 2021-06-17 14:38:51 -07:00
Bogdan Opanchuk 26076b1d98 Remove IndisputableEvidence and related functions and tests 2021-05-18 13:14:04 -07:00
piotr-roslaniec 66ad917b28
Merge pull request #2657 from piotr-roslaniec/teacher-fallback#2481
Fallback chain of teacher nodes
2021-04-29 10:17:19 +02:00
vzotova 787fe2ffc7 PolicyManager: multiple policies in one tx 2021-04-28 12:24:10 +07:00
Piotr Roslaniec 58f37da94a Move TEACHER_NODES to nodes.py 2021-04-21 18:04:51 +02:00
vzotova 3136a97aa6 Fix other tests 2021-03-22 11:37:27 -07:00
vzotova 9284e5e63f Fix after rebasing 2021-03-22 11:37:27 -07:00
vzotova ec7d44b4bd Apply suggestions from code review #2549
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2021-03-22 11:37:27 -07:00
vzotova 5ba91aef2c StakingEscrow: renames formerSecondsPerPeriod/formerHoursPerPeriod -> genesisSecondsPerPeriod/genesisHoursPerPeriod 2021-03-22 11:37:27 -07:00
vzotova 452b75ed45 Gas estimates of migration 2021-03-22 11:37:27 -07:00
Kieran Prasch 7e07bd267e Handle injected transacting power in tests. 2021-02-26 13:38:37 -08:00
Kieran Prasch 4c0f679c7e Removes client_password from character init where possible, require signer to init a TransactingPower, removing default web3 signer. 2021-02-13 18:35:31 -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 b384911e5d Remove batch deposits 2021-02-02 19:24:27 +03:00
derekpierre 9a886fa031 Fix invalid import for grant availability script. 2021-01-20 14:54:16 -05:00
Bogdan Opanchuk a2b99daa1d Merge proposals and enactment into a single method, return EnactedPolicy 2021-01-14 11:19:35 -08:00
Kieran Prasch a9d3b6cf1e Deprecation of automated deployment series by ContractAdministrator 2021-01-12 11:08:45 -08:00
Kieran Prasch 1cf48ede24 Installs new plumbing for --max-gas-price througout CLI and configuration modules. 2020-12-25 01:51:16 +01:00
Kieran Prasch 6f04cef63d Rescues a test utility from fixtures and modifies estimate gas metrics to use standard compiler output. 2020-12-03 16:48:31 +03:00
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