Commit Graph

6974 Commits (21ed54097cdf0d98eb1f0bc373e7e887c2256b9b)

Author SHA1 Message Date
tuxxy cc0ca2ef91 Add a basic first implementation of the datastore with tests
Add tests for the datastore models, and change 'NotFound' to 'RecordNotFound'
2020-08-10 15:37:30 +02:00
tuxxy 184b3bf563 Create a base 'DatastoreRecord' class and models with tests
Move the base models to base.py and add more datastore tests
Change key structure to 'RecordType:RecordField:RecordID'
Eliminate the db module
2020-08-10 15:37:30 +02:00
tuxxy 4026de543e Add lmdb and msgpack depends
Place ThreadedSession in 'datastore.deprecated'
2020-08-10 15:37:29 +02:00
K Prasch 7545051ad9
Merge pull request #2169 from cygnusv/curly
New Logger with automatic escaping of curly braces
2020-08-09 08:26:07 -07:00
David Núñez 23a925759b Leap of faith 2020-08-08 04:11:32 +02:00
David Núñez 7a043cb80a Unit tests for new Logger 2020-08-08 04:11:32 +02:00
David Núñez 32e0b12086 Get rid of circular dependency by removing unused constants and import 2020-08-08 04:11:32 +02:00
David Núñez 7ca8ef4661 Fix wrong import for Logger class in nucypher.cli.options 2020-08-08 04:09:51 +02:00
David Núñez 6d42de0f03 Extract default log filenames as a configuration constants
sq put dfe
2020-08-08 04:09:51 +02:00
David Núñez e438f2f944 Use our new Logger replacement everywhere 2020-08-08 03:14:45 +02:00
David Núñez e9f3b25598 Replacement for Twisted's Logger without the infamous curly braces problem 2020-08-08 03:14:45 +02:00
K Prasch 85b645cf1e
Merge pull request #2166 from vzotova/solidity-0.7
Solidity -> 0.7.0
2020-08-06 14:53:43 -07:00
vzotova 1819d5a552 Solidity -> 0.7.0 2020-08-06 13:39:17 +03:00
David Núñez 74f964fd3c
Merge pull request #2162 from cygnusv/main
Restore default return values in mock agents
2020-08-04 19:41:17 +02:00
David Núñez 3595f3dae6 Make restoration of default values conditional 2020-08-04 19:01:54 +02:00
David Núñez 460ce4cb08 Restore default return values in mock agents
Mock.reset_mock() doesn't do that by default so return values remained between test modules
2020-08-04 18:37:30 +02:00
K Prasch 5ed97e6d44
Merge pull request #2142 from vzotova/more-stakes
Command to increase stake and small refactoring for `Stake` class
2020-07-30 14:59:33 -07:00
Victoria 43718a49d5 Apply suggestions from code review #2142
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-07-30 23:50:14 +03:00
vzotova 4670ed0e82 Adds `increase` command in docs 2020-07-30 22:45:58 +03:00
vzotova f2acc2adda New command in CLI to increase value of specified sub-stake 2020-07-30 22:45:58 +03:00
vzotova 883f5350e4 Makes `Stake` validation stateless, new methods in `StakingEscrowAgent`, methods for increasing stake in `Staker` 2020-07-30 22:45:58 +03:00
vzotova 53674d7828 Changes `Stake` class to read-only representation of sub-stake 2020-07-30 22:45:57 +03:00
David Núñez 94c4581a43
Merge pull request #2161 from vzotova/fix-merge
Fix bug in `StakingEscrow.mergeStake()` when using same index twice
2020-07-30 19:36:36 +02:00
vzotova 091ca97e7d Fix bug in `StakingEscrow.mergeStake()` when using same index twice 2020-07-30 12:55:37 +03:00
David Núñez a293eca622
Merge pull request #2160 from cygnusv/fix-token-agent-test
[Hotfix] Fix missing kwarg rename for NuCypherTokenAgent.approve_transfer()
2020-07-30 01:28:19 +02:00
David Núñez dadf3c81f6 Fix missing kwarg rename for NuCypherTokenAgent.approve_transfer() 2020-07-30 01:13:51 +02:00
David Núñez c88e5c5699
Merge pull request #2149 from cygnusv/se-init
[The Royal We] Allow StakingEscrow initialization from a separate funding source
2020-07-22 16:52:21 +02:00
David Núñez 001df65b3f Use the YES_ENTER constant in test_deploy 2020-07-21 22:26:00 +02:00
David Núñez b667a808b0 Test Issuer initialization with an owner different than the creator 2020-07-21 22:15:43 +02:00
David Núñez 76f0147602 Change approve token allowance flag from --approve to --allowance
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-07-21 22:15:43 +02:00
David Núñez bd8692d6a4 Approve token allowances with `nucypher-deploy transfer-tokens --approve` 2020-07-21 22:15:43 +02:00
David Núñez e83a815e47 Improve TokenAgent's API and usage of approve_transfer and increase_allowance 2020-07-21 22:15:43 +02: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
David Núñez 38d4b4416a
Merge pull request #2143 from KPrasch/docs
"Tone down" node operator agreement language - Closes #2047.
2020-07-21 22:14:46 +02:00
Kieran Prasch fed0f362b1
Adjusts node operator agreement language. Closes #2047
Co-authored-by: David Núñez <david@nucypher.com>
Co-authored-by: MacLane S Wilkison <maclane@nucypher.com>
2020-07-21 12:16:32 -07:00
David Núñez e1db2c6206
Merge pull request #2151 from KPrasch/main
Update default branch to main
2020-07-21 21:14:28 +02:00
K Prasch f3da57b778
Update docs/source/guides/contribution_guide.rst
Co-authored-by: David Núñez <david@nucypher.com>
2020-07-21 08:59:16 -07:00
Kieran R. Prasch 388ea2fc55 master -> main 2020-07-21 08:48:52 -07:00
damon c 8d0ecb1ea7
Merge pull request #2135 from derekpierre/commitment-made
Ensure Prometheus metric for CommitmentMade is correctly updated on startup
2020-07-17 13:54:49 -07:00
derekpierre 63f2618a15 Remove comment since possible for multiple CommitmentMade events in one period
Co-authored-by vzotova <vikki.zta@gmail.com>
2020-07-16 09:03:25 -04:00
David Núñez f5bee795d8
Merge pull request #2121 from mswilkison/worklock-terminology
Update WorkLock terminology
2020-07-15 17:46:44 +02:00
derekpierre f5bc03e235 Ensure all event entries are checked during initialization 2020-07-14 16:11:05 -04:00
derekpierre 832d7f6fdc Ensure that CommitmentMade is checked for during initialization since the event could have already occurred for the period 2020-07-14 15:53:18 -04:00
K Prasch 32386e4b6f
Merge pull request #2117 from vzotova/stakeholder-fixes
Some fixes for `stake` commands
2020-07-14 10:45:00 -07:00
Victoria e717b6d030 Apply suggestions from code review #2117
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: K Prasch <kieran@nucypher.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-07-14 12:04:35 +03:00
MacLane S Wilkison 36fd3ce884
Apply suggestions from code review
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-07-09 15:29:03 +00:00
vzotova 073cbf345e Refactor sub-stake status and selecting sub-stake 2020-07-09 16:33:25 +03:00
MacLane S Wilkison 248d5ca4c1
Apply suggestions from code review
Co-authored-by: David Núñez <david@nucypher.com>
2020-07-08 15:30:09 +00:00
David Núñez 10ef0a1d62 Rename WorkLock commands and options 2020-07-08 17:13:05 +02:00