Commit Graph

1277 Commits (d83697648a0906d151981912809949892fdd6fe9)

Author SHA1 Message Date
Damon C b78cedbb1e
tests for w3 client classes 2019-06-03 22:52:22 +03:00
Kieran R. Prasch bb30fcb5ae
Attempting to restore broken tests from refactoring side-effects of web3 client abstractions 2019-06-03 22:52:22 +03:00
derekpierre 8b68990649
Initial work to abstract web3 test clients - not tested 2019-06-03 22:52:22 +03:00
Bogdan Opanchuk e83ad3d186
Make domain names `str` instead of `bytes` throughout the code, and only convert to bytes on serialization
Fixed #1026
2019-06-03 22:52:22 +03:00
Kieran R. Prasch f5a45b71d3
Uses --pay-with for alice cli lifecycle tests. 2019-06-03 22:52:22 +03:00
tuxxy 94f273d70c
Add missing import from rebase 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 610f8cb59d
Adjust Ursula CLI tests for non-federated as a default 2019-06-03 22:52:22 +03:00
Kieran R. Prasch c6edf8278e
mock auto-ip failure in test 2019-06-03 22:52:22 +03:00
Kieran R. Prasch a4e6480512
Understand ethrbase to be the default checksum address in non-federated mode 2019-06-03 22:52:22 +03:00
Kieran R. Prasch af812be748
Smoothing over auto-ip detection 2019-06-03 22:52:22 +03:00
tuxxy c6f0caf64a
Fix missing condition from rebase 2019-06-03 22:52:22 +03:00
tuxxy 882ce735ab
Add test for checking automatically determining IP 2019-06-03 22:52:20 +03:00
tuxxy cfeb0fa6d7
Implement mechanism to automatically find/confirm Ursula's public IPv4 address 2019-06-03 22:51:39 +03:00
Kieran R. Prasch d5f7289515
Do not assume the existence of a global domain in test 2019-06-03 22:51:39 +03:00
Kieran R. Prasch 2e022461af
Handles more ethereum client node info strings; Fixes NameError 2019-06-03 22:51:39 +03:00
Kieran R. Prasch f64401be8c
Fix botched rebase in CLI rollback tests 2019-06-03 22:51:39 +03:00
Kieran R. Prasch c7d6696bce
Be a little more gentle with domain-based seeding (Ursulas); Skip and modifiy tests (needs follow-up) 2019-06-03 22:51:37 +03:00
Kieran Prasch 75daa85c20
Picking up the pieces- new --sync/--no-sync deploy flag, dehydrate deployment tests. 2019-06-03 22:50:40 +03:00
Kieran Prasch db94cb52dd
Felix tests passing - Bug fixes for chain syncing and accounts managemtn; Begin the movement to integrate BlockchainPower. 2019-06-03 22:50:40 +03:00
Kieran Prasch 6ee4e5fb7a
Another pass on handling published registry fetching. Found ancient stubs! 2019-06-03 22:50:40 +03:00
Kieran Prasch 81cbdd7404
Oo he's Tryin' 2019-06-03 22:50:40 +03:00
Kieran Prasch 60c2f06c54
SMall fixes and changes in tests 2019-06-03 22:50:40 +03:00
Kieran Prasch ba996f5d0c
Alter CLI deply tests to tests geth provder, First pass. 2019-06-03 22:50:40 +03:00
Kieran Prasch eab86fc3ad
Estimate gas updates to latest test constants; Additional commentary 2019-06-03 22:50:40 +03:00
Kieran Prasch 09db480312
Baseline rollback CLI scenerio tests 2019-06-03 22:50:40 +03:00
Kieran Prasch 621dbf9068
post rebase cleanup 2019-06-03 22:50:40 +03:00
Kieran Prasch d9edf1fcfa
Move deployment secret interactivity to concise internal deployment API 2019-06-03 22:50:40 +03:00
Kieran Prasch a317e7f5e4
Formalize upgrade, rollback, and deploy as deploy CLI actions, dehydrate tests and check every upgrade / rollback opportunity. 2019-06-03 22:50:40 +03:00
Kieran Prasch cffbf1f5b1
Upgradability for UserEscrowProxy depoyers API/CLI; Refine proxy contract handling and retargeting 2019-06-03 22:50:40 +03:00
Kieran Prasch 3454361251
Estimate gas updates to latest test constants; Additional commentary 2019-06-03 22:50:40 +03:00
Kieran Prasch 4c1af5b5ab
Baseline rollback CLI scenerio tests 2019-06-03 22:50:40 +03:00
Kieran Prasch 27ecc40b9d
post rebase cleanup 2019-06-03 22:50:40 +03:00
Kieran Prasch 8371df1fcc
Move deployment secret interactivity to concise internal deployment API 2019-06-03 22:50:40 +03:00
Kieran Prasch 577c0c7f8c
Add a fourth deployment threee agents fixture, move secret hash kwarg in fixtures to lazy position. 2019-06-03 22:50:40 +03:00
Kieran Prasch 28e5c78e49
Formalize upgrade, rollback, and deploy as deploy CLI actions, dehydrate tests and check every upgrade / rollback opportunity. 2019-06-03 22:50:40 +03:00
Kieran Prasch 5bb79793d4
Upgradability for UserEscrowProxy depoyers API/CLI; Refine proxy contract handling and retargeting 2019-06-03 22:50:40 +03:00
Kieran Prasch 230cc7e0c2
Contract upgrade CLI integration test 2019-06-03 22:50:40 +03:00
Bogdan Opanchuk cbff090d68 Disallow creating persistent character configurations in --dev mode 2019-05-28 21:00:58 +02:00
David Núñez d48e9fc184 Make changes in Character.from_public_keys() truly backwards-compatible 2019-05-16 16:12:08 +02:00
David Núñez ab5599ffff Address RFCs from @szotov and @tuxxy 2019-05-16 16:12:08 +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 e8be554e60 Adapt test_mining_adjudicator to latest changes in MiningAdjudicator and IndisputableEvidence 2019-05-16 16:12:07 +02:00
David Núñez 4d0e34d545 Improved API for Character.from_public_bytes(). 2019-05-16 16:12:07 +02:00
David Núñez a5ce7700ca Lost bytes: missing byte values needed for on-chain evaluation 2019-05-16 16:12:07 +02:00
David Núñez bfc747fa14 utils.get_coordinates_as_bytes() also accepts SignatureStamps 2019-05-16 16:12:07 +02:00
David Núñez 6ce55d8d60 Utility function nucypher.crypto.utils.get_coordinate_as_bytes 2019-05-16 16:12:07 +02:00
David Núñez 569dd23f2b Workaround for wrong slashing params in test_intercontract_integration #354 2019-05-16 16:12:07 +02:00
David Núñez b51cb74a4d Adapt tests to latest changes in MiningAdjudicator 2019-05-16 16:12:07 +02:00
David Núñez fc48f7063b Enter utils.get_signature_recovery_value. Fix utils.recover_pubkey_from_signature 2019-05-16 16:12:07 +02:00
David Núñez 3316315b93 Touchups to test_signature_verifier 2019-05-16 16:12:07 +02:00
David Núñez 33bc11a17c Add function check_serialized_coordinates to ReEncryptionValidator 2019-05-16 16:12:07 +02:00
David Núñez 19d3a8cf14 Touchups to some blockchain-related fixtures 2019-05-16 16:07:34 +02:00
David Núñez 7684bb103c Constructs funded_blockchain fixture from testerchain fixture
Gets rid of deployed_blockchain fixture
2019-05-16 16:07:33 +02:00
David Núñez a11d12a494 Move some local fixtures from CLI blockchain ursula to global fixtures 2019-05-16 16:07:33 +02:00
David Núñez 9698e43ae3 Simplify test_collect_rewards_integration in test_blockchain_ursula.py 2019-05-16 16:07:33 +02:00
David Núñez 50cce08d47 Remove ReEncryptionValidator.aliceAddress() since it's not used anymore 2019-05-16 16:07:33 +02:00
David Núñez 21d0969ac3 Unit tests for ReEncryptionValidator.validateCFrag() 2019-05-16 16:07:33 +02:00
David Núñez de208c1db1 Optimization in computeProofChallengeScalar as input is already parsed 2019-05-16 16:07:33 +02:00
David Núñez 068d783cfc Unit test for ReEncryptionValidator.computeProofChallengeScalar() 2019-05-16 16:07:33 +02:00
David Núñez 361c068aad Slashing economics fixture 2019-05-16 16:07:33 +02:00
David Núñez 77f2a5ab1b Integration test of ReEncryptionValidator constants. Skipped for the moment 2019-05-16 16:07:33 +02:00
David Núñez b3acbf3017 Unit tests for ECC arithmetic logic in ReEncryptionValidator (see #626) 2019-05-16 16:07:33 +02:00
David Núñez eaf79d70c6 Adds missing sanity checks in economics test. Also closes #831. 2019-05-16 16:07:33 +02:00
David Núñez e0cf8393e7 Generalize k1 check for cases when multiplier is not 0.5 2019-05-16 16:07:33 +02:00
David Núñez 6b8a3eb833 Additional sanity checks for coefficients k1 and k2 in token economics 2019-05-16 16:07:33 +02:00
szotov ba74b880d5 Few more comments 2019-05-15 16:57:55 +03:00
szotov 85a4ae1db3 Fix import errors 2019-05-15 11:35:41 +03:00
szotov 509bc7ceec Test example of avoiding some compiler changes 2019-05-15 11:35:41 +03:00
szotov da3ce7b185 More checks while upgrading 2019-05-15 11:35:40 +03:00
szotov 3a6c9794df Changed protection against zero addresses in contracts 2019-05-15 11:35:40 +03:00
szotov 86cabdd22d Added protection from destruction of the dispatcher's target 2019-05-15 11:35:40 +03:00
szotov d95ba9345e Added events to verifyState and finishUpgrade 2019-05-15 11:35:39 +03:00
szotov 6ecec014e7 Added protection for `verifyState` and `finishUpgrade` methods 2019-05-15 11:35:39 +03:00
szotov 4188c12eb1 Small refactoring of tests for the dispatcher 2019-05-15 11:35:38 +03:00
K Prasch c3ce32f393
Merge pull request #939 from vepkenez/937-alice-decrypt
decryption endpoint for alice
2019-05-08 08:19:00 -04:00
David Núñez e704e7290e Duplicated tests. See tests/characters/test_ursula_prepares_to_act_as_mining_node.py 2019-05-06 13:20:21 +02:00
Damon C ad532d9b78 remove unneeded key arguments 2019-04-30 11:09:47 -07:00
Damon C 5b1953f404 #937 decryption endpoint for Alice 2019-04-29 12:58:23 -07:00
Kieran Prasch 896b88213a
Respond to RFCs in PR #866 2019-04-24 20:05:51 +03:00
Kieran Prasch 7ca7eabe8f
Be slightly more specific about deployment gas; Advance failure cases to assist in debugging. 2019-04-22 23:18:51 +03:00
Kieran Prasch 42a1495047
Handling failed deployment transactions 2019-04-22 23:18:51 +03:00
Kieran Prasch 14a24d7085
Refine TokenEconomics implementation; Respond to RFCs on #866 2019-04-22 23:18:51 +03:00
Kieran Prasch 270c56dcc4
CLI deployment adjustments and post-rebase cleanup. 2019-04-22 23:18:51 +03:00
Kieran Prasch 13d4b5c448
Relocate staking methods to the Stake class, away from Actors; Staking API bug fixes and consistency check. 2019-04-22 23:18:51 +03:00
Kieran Prasch 593a852471
Cleanup CLI env var loading, include mining adjudicator in existing CLI env var tests. 2019-04-22 23:18:51 +03: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
Kieran Prasch a0bfb22c05
Introduce MiningAdjudicator deployer & agent; Deployment entry points and integration testing. 2019-04-22 23:18:51 +03:00
Kieran Prasch 0f0841c0a5
Expand TokenEconomics tests to consider the generation of deployment-ready parameters. 2019-04-22 23:18:51 +03:00
Kieran Prasch 2d943e6afb
Refactor stake as a self-validating insnatce; Introduce token economincs via dep. injection throughout tests and blockchain API. 2019-04-22 23:18:49 +03:00
szotov a42cee8e25 initialAmount -> totalSupply in token contract 2019-04-19 12:44:25 +03:00
szotov c25ed07b76 Apply suggestions from code review 2019-04-17 16:05:07 +03:00
szotov 7285d6ad91 Added names of constructor parameters in tests for MinersEscrow 2019-04-17 16:05:07 +03:00
szotov 2e2dc06dd5 Fix bug with period overflow in policy manager test 2019-04-17 16:05:06 +03:00
szotov f46229f8e2 Add re-stake to verifyState 2019-04-17 16:05:06 +03:00
szotov d643773002 Gas estimates for re-stake 2019-04-17 16:05:06 +03:00
szotov 2f26a3bb64 More tests for re-stake 2019-04-17 16:05:06 +03:00
szotov 586adbc302 Tests for re-stake 2019-04-17 16:05:05 +03:00