jMyles
f21bc0cb72
This zany test actually passes - now to get that 30 second limit down.
2020-06-22 18:30:20 -07:00
jMyles
d301da3dae
It's slow, but it's a start. This test passes in about 9 seconds right now; subsequent commits will tune it.
2020-06-22 18:30:20 -07:00
jMyles
fb523765b8
Test using the sluggish middleware; this is the one that will require the concurrency from the last commit.
2020-06-22 18:30:20 -07:00
jMyles
5cd3e61b35
What happens if we add a little slowness like network latency? (And here's where we'll have to add concurrency).
2020-06-22 18:30:20 -07:00
jMyles
568541dde8
Decentralized Alice controller test needs, you guessed it, DecentralizedTreasureMap.
2020-06-22 18:30:20 -07:00
jMyles
b821b81a89
Amonia needs to remember not to publish TreasureMaps, lest her gig being discovered too soon.
2020-06-22 18:30:20 -07:00
jMyles
5931076f77
Including a fake signature for the test.
2020-06-22 18:30:20 -07:00
jMyles
f5458fde6c
Evolving the test to show how Bob can find a map much more quickly.
2020-06-22 18:30:20 -07:00
jMyles
e576793e47
Alice now proposes Arrangements; Ursula considers them. Fixes #1924 .
2020-06-22 18:30:20 -07:00
jMyles
7deab1242d
Mocking one layer out (setting policy) for these tests.
2020-06-22 18:30:20 -07:00
jMyles
1a6e3b09ed
Splitting test logic to show when the problem is with Bob or with Alice.
2020-06-22 18:30:20 -07:00
jMyles
5ffb356558
Vlad's APIs are consistent with the real deal again.
2020-06-22 18:30:20 -07:00
jMyles
cca843d71b
Test showing that Vladimir's efforts at posting a nonsense TreasureMap will fail.
2020-06-22 18:30:20 -07:00
jMyles
5a4328f0cc
Begining to test to show that blockchain signature prevents duplication.
2020-06-22 18:30:20 -07:00
K Prasch
523ea089f4
Merge pull request #2098 from KPrasch/enrico
...
Simple Enrico file encryption
2020-06-21 07:42:38 -07:00
damon
0c8a9c3c5f
TODOs
2020-06-19 04:43:16 -07:00
Kieran Prasch
5909c37dd1
Apply API and interface updates to for enrico file handling.
2020-06-18 08:55:21 -07:00
damon
1409bb2a61
more test fixes message->plaintext
2020-06-17 11:33:24 -07:00
damon
6d79d8db7b
test fixes resulting from change in keys
2020-06-17 11:31:48 -07:00
damon
9d65b242e8
message -> plaintext
2020-06-17 00:08:48 -07:00
K Prasch
f4b64fc365
Merge pull request #2069 from derekpierre/metrics-iteration
...
Initial Refactor of ursula prometheus metrics work from #1923
2020-06-15 09:36:44 -07:00
derekpierre
f60aa70203
Fix failing unit test
2020-06-12 11:03:01 -04:00
K Prasch
60043adffb
Merge pull request #2043 from cygnusv/block
...
Improve block confirmation logic and tests
2020-06-09 13:53:36 -07:00
derekpierre
6a578f034a
Fixed issues related to manual testing. General code cleanup.
...
I believe we are now on par with original functionality.
2020-06-09 14:13:32 -04:00
derekpierre
591d1cbec5
Fix Ursula typing and some general cleanup.
2020-06-09 08:50:18 -04:00
derekpierre
a37c5661df
Initial refactor of prometheus metric collection. Use of collection of individual metric collectors.
2020-06-09 08:50:18 -04:00
derekpierre
89911a87ab
Code cleanup. Fix typo in test
2020-06-09 08:50:18 -04:00
derekpierre
d282900bd0
Re-organize prometheus tests into the unit testing category
2020-06-09 08:50:18 -04:00
derekpierre
28b29edd70
Initial refactor of prometheus metrics configuration.
2020-06-09 08:50:18 -04:00
K Prasch
7a81566ea9
Merge pull request #2072 from vzotova/hide-commit
...
Hide 'commit-next' from help messages
2020-06-08 19:07:38 -07:00
K Prasch
9fb5caee5f
Merge pull request #2079 from vzotova/spdx-license
...
SPDX license identifier in contracts
2020-06-08 15:07:43 -07:00
Kieran Prasch
442c9a7c30
Respond to RFCs in PR #2078
2020-06-08 14:53:41 -07:00
Kieran Prasch
e5c51507ed
Fixes #1909 - Use a decorator to skip tests on CI.
2020-06-08 10:41:56 -07:00
vzotova
4335664aca
SPDX license identifier in contracts
2020-06-08 15:52:54 +03:00
David Núñez
404adf6211
Introduce some mockery in the block confirmations acceptance test to make it faster
2020-06-07 02:36:56 +02:00
David Núñez
3c71c708c2
Unit tests for EthereumClient.wait_for_receipt()
...
Some code changes based on test feedback
2020-06-07 02:10:26 +02:00
vzotova
790e22685c
Adds `receive()` function to contracts instead of payable `fallback()`
2020-06-05 17:21:05 +03:00
David Núñez
dfa812e42f
Unit tests for EthereumClient.block_until_enough_confirmations()
2020-06-05 04:08:55 +02:00
David Núñez
af0b636098
Update tests to current approach for block confirmations
2020-06-05 04:08:55 +02:00
David Núñez
637ba98ff6
Don't use web3 directly, when we can use the client API
2020-06-05 04:07:57 +02:00
David Núñez
b0e9a40f9c
...and relocate and improve tests for get_confirmations
2020-06-05 04:05:39 +02:00
David Núñez
519fc253bd
First pass at improving block confirmation logic and tests
2020-06-05 04:02:46 +02:00
vzotova
b8b22e9cf0
Hide 'commit-next' from help messages
2020-06-04 20:33:21 +03:00
K Prasch
89a602937b
Merge pull request #2037 from KPrasch/fuzzy
...
Typing for Contract Agents
2020-06-04 09:19:57 -07:00
David Núñez
993b70d19a
Address RFCs to #2059
2020-06-01 16:45:09 +02:00
David Núñez
968a5979ed
Make test refund interactive to increase coverage. Fix a bug along the way!
2020-06-01 04:16:42 +02:00
David Núñez
e04247e5af
Make claiming test interactive to increase coverage
2020-06-01 04:09:55 +02:00
David Núñez
787d0ca2f2
Test claiming not available
2020-06-01 04:04:00 +02:00
David Núñez
24978b058a
Improve test for worklock bid time checks, to actually test the CLI layer
2020-06-01 03:26:07 +02:00
David Núñez
d42f838f7a
Test worklock account selection
2020-06-01 03:03:07 +02:00
David Núñez
80175c8751
Test interactive bid increasing
2020-05-31 19:51:10 +02:00
David Núñez
9745bdf602
Test interactive bidding. Extract some CLI strings to literature
2020-05-31 19:51:10 +02:00
David Núñez
b023e752b3
CLI tests: Correct user input, don't pass env vars
2020-05-31 19:51:10 +02:00
David Núñez
6e2ef561b5
Improve valid bid test: make it more a CLI/Bidder integration test
...
Also, input is supposed to be denominated in ETH
2020-05-31 03:24:56 +02:00
David Núñez
6384a198af
Mark some tests as FIXME as they are testing the Bidder, not the CLI
2020-05-31 03:24:53 +02:00
jMyles
31f001f2ed
This will be the basis of a merge commit in the rebase of these tests. One of them reactivates Vladimir; the other fixes the method for testing the presence of Treasure Maps.
2020-05-29 15:15:47 -07:00
K Prasch
f94bed6a22
Merge pull request #1923 from p2p-org/feat/event_metrics
...
Feat/event metrics
2020-05-29 12:21:23 -07:00
Kieran Prasch
c86013ddb6
registry_contract_name -> contract_name
2020-05-28 17:46:33 -07:00
Bogdan Opanchuk
8dbaf2b206
Use `capsys` instead of `stdout_trap`
2020-05-28 14:42:04 -07:00
Bogdan Opanchuk
ef9ab01a3a
Replace mocking click.prompt() and click.confirm() with mocking stdin/getpass.
2020-05-28 14:42:04 -07:00
Bogdan Opanchuk
8b9d559113
Separate YES/NO (w/o linebreak) and YES_ENTER/NO_ENTER (with linebreak) in test constants
2020-05-28 14:42:02 -07:00
Bogdan Opanchuk
844355b5fa
Remove a test with a duplciate name that never got executed
2020-05-28 14:40:39 -07:00
Kieran Prasch
851facceba
Skip an inaccurate test.
2020-05-28 11:59:46 -07:00
David Núñez
e1f59aab20
Fix test for nucypher worklock claim when bidder already claimed
2020-05-28 02:25:22 +02:00
Kieran Prasch
28cce2fccc
Reorganize tests into multiple suites.
2020-05-27 14:11:25 -07:00
Kieran Prasch
6c9c1b7cd8
Holdover for flaky test.
2020-05-27 14:11:25 -07:00
Kieran Prasch
04a8fb696d
Skip test awaiting PR #1863
2020-05-27 14:11:25 -07:00
Kieran Prasch
d4509ee6c7
Holdover for additional mock organization
2020-05-27 14:11:25 -07:00
Kieran Prasch
bb32d210a3
Update test contract compilation path
2020-05-27 14:11:25 -07:00
Bogdan Opanchuk
276c7ad0eb
Prohibit Pytest from trying to pick up TesterBlockchain
2020-05-26 10:26:42 -07:00
Bogdan Opanchuk
ec376ff997
Remove a duplicate agency_local_registry() fixture
2020-05-26 10:26:42 -07:00
Bogdan Opanchuk
463c145d31
Remove a debug print()
2020-05-26 10:26:42 -07:00
programmer10110
3e659e7423
Merge branch 'master' of github.com:nucypher/nucypher into feat/event_metrics
2020-05-26 12:35:41 +03:00
programmer10110
ebb48b2f23
type hints, tests for json_metrics_exporter
2020-05-26 12:34:30 +03:00
K Prasch
8b7ba918b5
Merge pull request #1998 from vzotova/estimate-bidders
...
Estimate number of bidders, functional test for enable-claiming
2020-05-22 14:48:09 -07:00
K Prasch
705b44577e
Merge pull request #2032 from fjarri/assert-fix
...
Check the actual boolean values instead of asserting a non-empty tuple
2020-05-22 12:37:48 -07:00
Bogdan Opanchuk
51a3096805
Check the actual boolean values instead of asserting a non-empty tuple (which always passes)
2020-05-22 12:09:10 -07:00
K Prasch
1fe2a75aaa
Merge pull request #2003 from KPrasch/laggy-infura
...
Test reproducing double CA bug and Fix 1/2 of (#2002 )
2020-05-22 11:53:39 -07:00
derekpierre
3e0bea5997
Update latest files after rebase with nucypher license.
2020-05-22 09:07:41 -04:00
derekpierre
668f25bc38
Add pre-commit hook to ensure that AGPL license is included in python source files
2020-05-22 08:55:06 -04:00
vzotova
84121f4bee
Estimate number of bidders that can be checked with the provided amount of gas in CLI, functional test for enable-claiming
2020-05-22 12:14:39 +03:00
Kieran Prasch
cf7cb682e0
RFCs for #1989 ; Transforms registry source manager into a formal context manager.
2020-05-21 18:54:40 -07:00
David Núñez
f00bb6f6b0
Test select_client_account_for_staking() action, which handles account selection in the potential presence of allocations
2020-05-21 18:18:46 -07:00
Kieran Prasch
f1b130afa1
Additional annotations and comments.
2020-05-21 16:01:26 -07:00
Kieran Prasch
4169dbb004
Implement Constant Sorrow for contract api method markers.
2020-05-21 15:39:01 -07:00
David Núñez
f3d1057ce3
Fix Stake.__eq__ and introduce basic unit tests for it
2020-05-21 15:09:56 -07:00
Kieran Prasch
9b9ddac234
Respond to RFCs in PR #1989
2020-05-21 14:56:45 -07:00
Kieran Prasch
9c55d5a117
Adapting new tests to api changes caused by rebase.
2020-05-20 22:18:32 -07:00
Kieran Prasch
87cc3b7767
Allow properties to be collected and handled in auto mocking.
2020-05-20 21:46:21 -07:00
Kieran Prasch
5a65fa6dfb
Respond to RFCs in PR #1989
2020-05-20 21:46:20 -07:00
Kieran Prasch
394332eef0
Clear side effects on agent mock by default
2020-05-20 21:45:05 -07:00
Kieran R. Prasch
5250305f4a
Ensure unifirm mock coverage of contracts in FT suite
2020-05-20 21:45:04 -07:00
Kieran Prasch
5bacc2f61c
Polish off condensed auto agent mocking and example implementation on worklock CLI FT
2020-05-20 21:44:05 -07:00
Kieran Prasch
7913427352
Condensed auto-mocking for agents.
2020-05-20 21:43:45 -07:00
Kieran Prasch
9b9efceee3
Proof of concept for metaprogramming apoproach to contract mocking.
2020-05-20 21:42:23 -07:00
Kieran Prasch
3f7d06421e
Fixes rest host determination test bug and reorders the module for faster feedback.
...
Ensures non-interactive 'rapid deployment' test; Remove __eq__ from configs.
2020-05-20 21:42:23 -07:00
Kieran Prasch
f0167dbc79
Sacrifice a little accuracy for a little flexibility on account selection test; Save another to chew on later
2020-05-20 21:42:23 -07:00
Kieran Prasch
5ce1134950
Keep CLI action module names verbs; Fixture cleanup.
2020-05-20 21:42:21 -07:00
Kieran Prasch
55563952a5
More granular config CLI actions testing: 100% coverage achieved.
2020-05-20 21:41:45 -07:00
Kieran Prasch
69a828a727
suffix some tests with '_cli_action' for easier test feedback.
2020-05-20 21:41:45 -07:00
Kieran Prasch
c425ea6aa5
Tightening down config actions tests
2020-05-20 21:41:45 -07:00
Kieran Prasch
722d26bcb4
Common factory function module for test character configurations
2020-05-20 21:41:45 -07:00
Kieran Prasch
44de13d149
Cleanup and parameterize fixtures for FT coverage; Introduces test configuration factory functions for pyetst fixtures.
2020-05-20 21:41:44 -07:00
Kieran Prasch
4a5aed06a1
CLI config action test coverage and related bug fixes.
2020-05-20 21:40:55 -07:00
Kieran Prasch
b9de67505d
Stubs for CLI config actions; Post rebase cleanup.
2020-05-20 21:40:55 -07:00
Kieran Prasch
d58dc65029
Reorg for configuration actions, split into smaller functions.
2020-05-20 21:40:55 -07:00
Kieran Prasch
00de9b3dda
Full type hinting and (nearly) docstring coverage for CLI actions.
2020-05-20 21:40:55 -07:00
Kieran Prasch
ed3b5b38ed
Fixes a bug in registry source management; Restore to original network inventory so it can be tested.
2020-05-20 21:40:53 -07:00
Kieran R. Prasch
98e6a71740
Kick general networking and seednodes utilities out of cli actions into nucypher.utilities
2020-05-20 21:40:13 -07:00
Kieran Prasch
4619dd20a1
Test stub for @cygnusv
2020-05-20 21:40:13 -07:00
Kieran Prasch
3344ed2cbd
Test coverage for interactive network selection
2020-05-20 21:40:13 -07:00
Kieran Prasch
8cd5d83d3a
Test coverage for config file selection (stub)
2020-05-20 21:40:13 -07:00
Kieran R. Prasch
e919992ea0
100% test coverage for CLI auth actions
2020-05-20 21:40:11 -07:00
Kieran Prasch
0411461184
Test touch ups;
2020-05-20 21:39:30 -07:00
Kieran Prasch
c8e37210fe
Iterating on spy wrapper and mock agents
2020-05-20 21:38:31 -07:00
Kieran Prasch
f583567222
100% coverage on interactive eth account selection
2020-05-20 21:38:29 -07:00
Kieran R. Prasch
cc66d9310a
Test coverage and bug fixes for interactive client account selection with balances.
2020-05-20 21:36:25 -07:00
Kieran Prasch
78ed8fd145
Keep fast test fixtures scoped module where possible.
2020-05-20 21:33:01 -07:00
Kieran Prasch
c50fc58f6f
100% coverage on interactive stake selection
2020-05-20 21:33:01 -07:00
Kieran Prasch
a1113d2a20
Resolve two TODOs wrt staker methods and painting.
2020-05-20 21:33:01 -07:00
Kieran Prasch
71dc3c0029
Stubbing CLI selection tests
2020-05-20 21:33:01 -07:00
Kieran Prasch
713eab4854
Deeper integration of agents with the Mock API.
2020-05-20 21:32:59 -07:00
Kieran R. Prasch
0895fe91ba
100% unit test coverage for cli auth actions.
2020-05-20 21:29:43 -07:00
Kieran R. Prasch
8bb790d91a
Relocate keystore constants to test.constants
2020-05-20 21:28:59 -07:00
Kieran Prasch
61cdcb9dd7
Generate a Mock object for every transaction and call on mock agents.
2020-05-20 21:26:20 -07:00
Kieran Prasch
af86ff6dbe
Mock click.confirm fixture; Basis for confirm enable restaking test
2020-05-20 21:26:20 -07:00
Kieran R. Prasch
d72cff3162
Ice breaker cli actions test
2020-05-20 21:26:20 -07:00
K Prasch
a8bb61766e
Merge pull request #2018 from svenski123/1962-keystore-file-directory-handling
...
Fix up 3rd local keystore test case
2020-05-20 20:49:46 -07:00
Kristofer Peterson
b4225fab85
move test_keystore_signer.py from tests/blockchain/eth/clients to tests/blockchain/eth/clients/signers
...
remove dependency on test_ursula_local_keystore_cli_functionality from test_worklock_cli_functionality
(reverse-i-search)`mv ': git mv tests/blockchain/eth/{clients,signers}/test_keystore_signer.py
2020-05-21 04:15:07 +01:00
Kristofer Peterson
e90e18dee9
post rebase 3rd case
2020-05-21 03:15:44 +01:00
K Prasch
f12cb052eb
Merge pull request #1968 from svenski123/1962-keystore-file-directory-handling
...
Correct path handling in keystore signer / support individual files
2020-05-20 17:04:16 -07:00
Kristofer Peterson
9064b80a4d
clean up post rebase
2020-05-21 01:00:54 +01:00
David Núñez
690a959040
Merge pull request #2013 from KPrasch/lazy-import
...
Support for missing tests package
2020-05-20 22:00:57 +02:00
Kieran Prasch
f29e5523c6
Responds to RFCs in PR #2013 : Tests reflect the changes.
2020-05-20 12:36:21 -07:00
Kieran Prasch
ba81356224
Test describing crash behaviour when tests package is unavailable
2020-05-19 21:56:46 -07:00
David Núñez
e7cfad704f
Fix double confirm activity when Ursula starts
...
LoopingCall.start() already had a now parameter, similar to our act_now
2020-05-20 02:56:28 +02:00
Kieran Prasch
fc721a1c26
Test reproducing double CA bug.
2020-05-19 16:37:15 -07:00
derekpierre
c1d93d8941
Add "end-of-file-fixer" to pre-commit hooks
2020-05-19 14:28:29 -04:00
Kristofer Peterson
e03f12af7f
Remove (now) misleading comment
2020-05-19 02:10:48 +02:00
Kristofer Peterson
887beb41dc
Updated ci cli tests for KeyStoreSigner.
...
Removed mocking of os.* syscalls, replaced with actual files in
temporary directories.
2020-05-19 02:10:43 +02:00
Kristofer Peterson
4126558322
Update ci basic test cases.
...
As os.scandir is used by other supporting code (notably
shutil.rmtree), patching moved out of fixture.
2020-05-19 01:56:17 +02:00
Kieran Prasch
50a960d349
Respond to RFCs in PR #1983 :-)
2020-05-16 15:38:28 -07:00
Kieran Prasch
ecb773291a
Post rebase cleanup ( #1959 )
2020-05-15 09:05:09 -07:00
Kieran Prasch
f263e4c2a0
Promote and clear constants modules;
...
Partly convert constants to Pathlib, Use safe mock IP address constants.
Accommodate more pathlib in tests
2020-05-15 08:36:11 -07: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
Kieran Prasch
2e9da4ef31
Take back control of CLI imports, namespaces, and organization. Work on a CLI and tidy CLI.
2020-05-15 08:28:12 -07:00
Kieran R. Prasch
5992e05897
Extracts all deploy cli strings and majority of cli commands to literature
2020-05-15 08:26:42 -07:00
Kieran Prasch
55d1131ba1
Keep literature module top level of CLI for now.
2020-05-15 08:19:57 -07:00
Kieran Prasch
f90b83ed86
Submodulize CLI painting
2020-05-15 08:19:54 -07:00
Kieran Prasch
2b5a39e97e
Nearly 100% of emitter messages from CLI actions are in literature.py
2020-05-15 08:15:49 -07:00
Kieran Prasch
755a02443b
Use mocker for testing external ip detection
2020-05-15 08:15:49 -07:00
Kieran Prasch
1541eb3ede
Refactors the codebase to use multiple CLI actions modules.
2020-05-15 08:15:47 -07:00
Harry Arjun Hassard
27e09820c3
staker/worker rate setting distinction from @derekpierre
2020-05-14 16:42:44 -07:00
Harry Arjun Hassard
7ebd4cd316
CLI fail: the sequel
2020-05-14 12:33:50 -07:00
Harry Arjun Hassard
c700986135
Applied suggestions from code review by @vzotova
2020-05-14 11:23:59 -07:00
Harry Arjun Hassard
8baba568ed
global fee range & more edits for consistency
2020-05-13 23:03:27 -07:00
Harry Arjun Hassard
dfb9e11a33
1st attempt at clarifying universal fee range and limited service-provider control over their acceptable fee rates
2020-05-13 17:56:33 -07:00
Victoria
7b7198ef79
Apply suggestions from code review #1959
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
Co-authored-by: MacLane S Wilkison <maclane@nucypher.com>
2020-05-13 23:09:50 +03:00
vzotova
66ac1acb1d
Rename detach-worker -> unbond-worker
2020-05-13 20:21:53 +03: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
28e41c4a21
StakingEscrow: workerToStaker -> stakerFromWorker
2020-05-13 20:21:52 +03:00
vzotova
f62765ec97
Issuer: burn -> donate
2020-05-13 20:21:51 +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
K Prasch
364620d900
Merge pull request #1884 from vzotova/two-phases
...
Two-phase issuance
2020-05-13 10:09:04 -07:00
Victoria
4364b213e7
Apply suggestions from code review #1884
...
Co-authored-by: MacLane S Wilkison <maclane@nucypher.com>
Co-authored-by: David Núñez <david@nucypher.com>
Co-authored-by: Arjun Hassard <arjunhassard@gmail.com>
Co-authored-by: derekpierre <derek.pierre@gmail.com>
2020-05-13 18:56:36 +03:00
Kieran Prasch
bf75d33e3e
Respond to RFCs in PR #1949
2020-05-13 08:08:00 -07:00
Kieran Prasch
e2a8ae2360
Respond to RFCs in PR #1949
2020-05-12 10:02:06 -07:00
vzotova
a81f8b4edf
Updates max allowed stake size in economics
2020-05-12 15:36:30 +03:00
vzotova
79ef05bbbb
Fixes rest tests after changes in economics
2020-05-12 15:36:30 +03:00
vzotova
926f942961
Updated `token_supply_at_period` for two phases and fixed some tests
...
Co-Authored-By: Arjun Hassard <arjunhassard@gmail.com>
2020-05-12 15:36:29 +03:00
vzotova
5ddc2a60db
Update list of constructor parameters in deployers and other places
2020-05-12 15:36:29 +03:00
vzotova
98e06c56c2
Update BaseEconomics and draft of StandardTokenEconomics with new two-phase model
...
Co-Authored-By: Arjun Hassard <arjunhassard@gmail.com>
2020-05-12 15:36:29 +03:00
vzotova
c958b52570
Issuer: two-phase issuance
2020-05-12 15:36:28 +03:00
Kieran Prasch
90d4c6ae94
Control mock registry source for mock testerchain; Test touch ups.
2020-05-08 19:20:54 -07:00
Kieran Prasch
c177d2dca1
Introduce mock interfaces module
2020-05-08 19:20:54 -07:00
Kieran Prasch
1b49236deb
Handle registry source manager via mock testerchain
2020-05-08 19:20:54 -07:00
Kieran Prasch
066f778dda
Restore allocation handling in fixtures
2020-05-08 19:20:54 -07:00
Kieran Prasch
0ac64930d9
Exert a bit more control over mock testerchain blocktime in worklock testing
2020-05-08 19:20:54 -07:00
Kieran Prasch
e8fbd5956a
Handle token economics and mock testerchain compadibility with the larger test suite as a whole.
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
ab3e588c1e
Setup a mock section in sandbox constants
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
bc2564cd36
Reintroduce keystore cli test as an e2e integration via testerchain
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
1164db20f4
Intro MockPolicyManagerAgent
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
a58af7daf3
Mock and functional-scoped test grouping (fixtures)
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
cab7b1dced
Adjust eth tester client to handle the mock backend accounts as well as teserchain accounts.
2020-05-08 19:20:54 -07:00
Kieran Prasch
d7f99e7a53
Introduce MockBlockchain; pytestfixture tweaks.
2020-05-08 19:20:54 -07:00
Kieran Prasch
7f67226fe3
Detailing worklock functionality test assertions with new agent mocking API
2020-05-08 19:20:54 -07:00
Kieran Prasch
83d847c4ab
Tight spy based test on worklock bidding CLI
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
c8bf00cd69
Spy on mocked transactions and calls through mock agents
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
6aec7c634d
Mock at the ContractAgent level while preserving agent routing
2020-05-08 19:20:54 -07:00
Kieran Prasch
5c6f2a5e8c
Transaction and call mocking scheme implmentation
2020-05-08 19:20:54 -07:00
Kieran Prasch
570e656a17
Complete example of mocking at the agent layer
2020-05-08 19:20:54 -07:00
Kieran Prasch
0c2f684d71
Neat layout for agent mocking and cli unit testing
2020-05-08 19:20:54 -07:00
Kieran R. Prasch
cf1c40c919
Proof of Concept fast CLI test.
2020-05-08 19:20:54 -07:00
Kieran Prasch
923832b3c5
Hack and slash with mock web3 backend
2020-05-08 19:20:54 -07:00
Kieran Prasch
2c9467ad7f
Try harder to ensure mixed config tests start with no known nodes...
2020-05-08 18:08:31 -07:00
Kieran R. Prasch
83bfefc9a1
Use pathlib in test mixed configuration cli test
2020-05-08 15:29:40 -07:00
Kieran Prasch
31e3a1afbe
Fixes mixed configuration test innacuracy.
2020-05-08 14:02:04 -07:00
K Prasch
6e1ae2fe8f
Merge pull request #1964 from KPrasch/squash
...
Bug Fixes: WSS Provider, Keystore file Handling
2020-05-08 09:59:27 -07:00
David Núñez
9c152e68ec
Improve preprocessing and code organization in Allocator
2020-05-08 01:07:48 +02:00
Kieran Prasch
8b6e932837
Adjust keyfile reader mock to reflect filesystem walking.
2020-05-07 10:51:30 -07:00
Kieran Prasch
20358ae9a2
Dont add test account twice in tests.
2020-05-07 10:10:34 -07:00
Kieran R. Prasch
9051bf31a7
Fixes #1962 - Keystore path management bugfix
2020-05-06 19:10:42 -07:00
David Núñez
ee54fcbbeb
Allows to transfer ownership of StakingInterfaceRouter
...
* Fixes #1488
* Removes method to transfer ownership of all contracts at once.
2020-05-06 03:49:28 +02:00
David Núñez
c820e124f6
Transferring ownership of proxied contracts should only affect the proxy
...
Fixes #1818
2020-05-06 01:29:42 +02:00
David Núñez
2aef36c7b0
Use estimateGas() instead of call() when trying to optimize batch deposits
...
Since estimateGas() with a provided gas limit doesn't fail in some backends (like eth tester), we always raise then the resulting TX is above the limit
2020-05-06 01:29:42 +02:00
David Núñez
6e0e9cf4dd
Adapt tests to no allocations with PreallocationEscrow contracts
2020-05-06 01:29:42 +02:00
David Núñez
2423063541
Changes to allocations in CLI and actor levels
...
* Uses a helper actor called Allocator
* CLI tests
2020-05-06 01:29:42 +02:00
David Núñez
d180d81c8a
Batch deposit methods in StakingEscrowAgent and unit tests
2020-05-05 20:06:16 +02: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
Kieran R. Prasch
b209636081
unset monkey patch and recognition of block unil ready bug
2020-04-30 15:38:32 -07:00
Kieran R. Prasch
c8a39cbb45
Keystore signer integration test
2020-04-30 15:23:24 -07:00
Kieran R. Prasch
c99e69e794
Baseline pytests for keystore signer
2020-04-30 15:20:37 -07:00
K Prasch
3c3f23ea46
Merge pull request #1891 from KPrasch/milestoning
...
Verify consistent ownership during deployment; Handle Insufficient funds TX failure.
2020-04-28 09:25:34 -07:00
David Núñez
a713d44f03
Parametrize test_snapshot with values covering different byte ranges
2020-04-28 00:25:32 +02:00
David Núñez
5c22845d9e
Additional checks for setting flags in StakingEscrow
2020-04-28 00:25:32 +02:00
David Núñez
44b8127407
Tests balance snapshots in StakingEscrow
...
Note that we're even testing the actual storage content
2020-04-28 00:25:32 +02:00
David Núñez
94a2480416
Introduce some basic test utilities for Solidity and TesterBlockchain
...
The interesting utils are the ones to compute location of mapping entries and array data, as they will allow us to further improve our Solidity unit tests
2020-04-28 00:25:32 +02:00
David Núñez
2a6a5597d0
Include snapshots flag in output of StakingEscrow.getFlags()
2020-04-28 00:25:32 +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
e1dbef3a0a
Unit tests for Snapshot library
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
1457e97ca8
Apply suggestions from code review for #1915
...
Co-Authored-By: David Núñez <david@nucypher.com>
Co-Authored-By: MacLane S Wilkison <maclane@nucypher.com>
2020-04-26 18:56:00 +03:00
vzotova
7377e013ad
Dispatcher: support for ERC897
2020-04-24 17:40:30 +03:00
vzotova
4431d9fa98
PolicyManager: reorganize state layout, decrease size of some reward fields to uint128 to put state in fewer slots
2020-04-24 15:57:45 +03:00
vzotova
bbed659567
StakingEscrow: unifying all flags into one field to make more space for future slots
2020-04-24 15:57:44 +03:00
David Núñez
66c705154b
StakingEscrow: storage optimization for substakes, use uint128 to store NU amounts
...
Co-Authored-By: vzotova <vikki.zta@gmail.com>
2020-04-24 15:57:44 +03:00
vzotova
32acc0a62a
WorkLock: minor changes in restrictions
2020-04-24 15:57:44 +03:00
vzotova
261932125c
Issuer: combine currentSupply1 and currentSupply2 in one slot to remove optimization code and increase readability
2020-04-24 15:57:43 +03: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
c9ea0088d3
Upgradeable: stub slot for slot separation
2020-04-24 15:57:42 +03:00
K Prasch
14fe3d0232
Merge pull request #1892 from derekpierre/worklock-doc-update
...
Documentation to incorporate WorkLock v4 updates
2020-04-22 12:32:44 -07:00
derekpierre
af7ca0c2c5
Modify worklock output for bidder depending on whether tokens have been already claimed or not
...
Cleanup output of refunds
Update docs to reflect updated output
Add tests for base deposit and refund rate methods added to WorkLockAgent
2020-04-20 11:52:11 -04:00
Kieran Prasch
a347926970
Formalize TransactionFailed API; Some careful integration with interfaces.
2020-04-18 12:46:32 -07:00
jMyles
163e679dd2
Since we are getting lazier and lazier about maturing nodes, we need a bit of compatibility logic in the tests here.
2020-04-15 18:32:37 -07:00
Kieran Prasch
9116e2035e
Single contract deployment test touch up.
2020-04-15 12:50:55 -07:00
Kieran Prasch
d162792495
Pretty formatting for deployment heads ups
2020-04-15 12:50:55 -07:00
Kieran Prasch
fd3e289ef3
Fixes #1209 - Ensure StakingEscrow agent can accept token deposits from 3rd party addresses on behalf of another staker address.
2020-04-15 12:50:55 -07:00
Kieran Prasch
56ee8d0de0
Deprecation of --poa from CLI tests.
2020-04-15 12:50:55 -07:00
Kieran Prasch
08708f3d84
Fixes #1799 - Allow --ignore-deployed to be used for all types of contract creation.
2020-04-15 12:50:55 -07:00
Kieran Prasch
c7541df6a8
Fixes #1765 - Deprecates Seeder Contract.
2020-04-15 12:50:53 -07:00
David Núñez
7230aeac41
Move NULL_ADDRESS constant from BlockchainInterface to the eth.constants module
2020-04-15 02:42:25 +02:00
David Núñez
d3a88dc205
First test for Trustee: proposing MultiSig management operations
2020-04-15 02:36:22 +02:00
David Núñez
1da7d97acb
Add a getter for the number of owners of the MultiSig contract
2020-04-15 02:36:22 +02:00
David Núñez
7d6402b686
Merge pull request #1875 from vzotova/immutable
...
Immutable fields in contracts
2020-04-15 00:55:00 +02:00
vzotova
e527858b6d
Solidity: immutable fields
2020-04-10 17:54:41 +03:00
David Núñez
38c9238e48
Removing secretHash in Upgradeable shifted all slots in test contract
...
secretHash itself occupied a slot, but in addition, it was in between an address and an uint8, which now fit together in a single slot, so all slots of this test contract have moved 2 places.
2020-04-09 23:36:39 +02:00