Commit Graph

1193 Commits (28e5c78e491867bc08d6e38bb32273184e285619)

Author SHA1 Message Date
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
szotov fb7f134e70 Added reStake parameter to MinersEscrow 2019-04-17 16:05:05 +03:00
David Núñez b81a13b432 Testing creation of additional test accounts. It still fails. 2019-04-14 00:36:29 +02:00
David Núñez 41f60099d3 Use TesterBlockchain's test accounts 2019-04-12 07:52:15 +02:00
David Núñez 27046827cf Testing unassigned accounts and that accounts can send TXs 2019-04-12 07:52:15 +02:00
David Núñez 82e59786ef Test account generation of TesterBlockchain 2019-04-12 07:52:15 +02:00
David Núñez 01c466554a Don't use TesterBlockchain.ether_airdrop if it's already funded or can be done in the constructor 2019-04-12 07:52:15 +02:00
David Núñez 023083db64 Not enough "y'all" in "all y'all". Not enough test ETH, either. 2019-04-12 07:52:15 +02:00
David Núñez 8216d6b39f Simplify default test accounts creation in TesterBlockchain. 2019-04-12 07:52:15 +02:00
tuxxy fbe204ce17 Fix character-control revoke test by using a different label -- you can't grant access twice 2019-04-10 21:27:25 -06:00
tuxxy 71dc8a5cd1 Add 'add_active_policy' method on Alice 2019-04-10 20:02:31 -06:00
tuxxy 5b4f3da3d1 Modify revoke endpoint to accept label and bob's verifying key instead of the policy key 2019-04-10 20:02:31 -06:00
tuxxy 48150def7d Add id property to Policy 2019-04-10 20:01:08 -06:00
Kieran Prasch 9abd4e27fb
Respond to RFCs in PR #861 2019-04-06 12:40:34 -07:00
Kieran Prasch 13024ed048
Check for config root before removal; Run an ursula via mixed configs in test. 2019-04-06 12:38:09 -07:00
Kieran Prasch ed184942e3
Increase test coverage for nucypher help commands 2019-04-06 12:38:09 -07:00
Kieran Prasch ea20f88be4
Move destruction management before character initialization to handle failure modes involving semi-working configurations. 2019-04-06 12:38:09 -07:00
Kieran Prasch dd7f992277
nucypher remove docstring 2019-04-06 12:38:09 -07:00
Kieran Prasch e110632bb1
All characters destroy thier own config files, considering force 2019-04-06 12:38:09 -07:00
Kieran Prasch b691339f50
Destroy the configuration file itself; Attaching console emitter to click config. 2019-04-06 12:38:09 -07:00
Kieran Prasch 1479c78ea9
Tests show keyring multi-tennancy with config-based destruction 2019-04-06 12:38:09 -07:00
Kieran Prasch d59b9d63c1
Test describing a multi-tenant installation 2019-04-06 12:38:09 -07:00
David Núñez 713071025c Add first unit tests for ReEncryptionValidator contract 2019-03-31 10:39:40 +02:00
David Núñez bd44c7d65f WorkItem is now Task, and it also handles the output of re-encryption 2019-03-29 10:52:14 +01:00
David Núñez b8a5fc25eb Clarify evolution of penalty amount in test_mining_adjudicator 2019-03-29 10:46:52 +01:00
David Núñez ef75e241df Tests Bob sending wrong precomputed values. Improves test_mining_adjudicator 2019-03-29 10:46:52 +01:00
Kieran Prasch b0eb41e5ea
Twisted clock testing for the faucet 2019-03-26 11:35:57 -07:00
Kieran Prasch 06311630d2
Patch distribution interval in faucet testing 2019-03-26 11:35:57 -07:00
Kieran Prasch 87ba9c7b42
Beter exception handling for missing address when running from config ; Reprs for db models 2019-03-26 11:35:57 -07:00
Kieran Prasch 052c7346b0
deploy contracts via CLI in Felix tests 2019-03-26 11:35:57 -07:00
Kieran Prasch 40b9b204ac
Setting flask secret; Improved documentation and logging; Utilize constant_sorrow 2019-03-26 11:35:57 -07:00
Kieran Prasch 5686a8a889
Felix CLI entry point adjustments; Allow provider URI restoration from File 2019-03-26 11:35:57 -07:00
Kieran Prasch 2946024dec
Felix tests passing with database management 2019-03-26 11:35:57 -07:00
Kieran Prasch 3fbb5ef426
Felix database skeleton and registrtion view stubbing 2019-03-26 11:35:57 -07:00
Kieran Prasch ce39f92555
Felix CLI itself and tests to suit. 2019-03-26 11:35:57 -07:00
tuxxy 9cedc5ecd4 Fix leftover issues from rebase 2019-03-24 09:30:20 -06:00
tuxxy 90e4427680 Store 'active_policies' instead and finish revoke endpoint
Storing revocation kits was one approach, but it seems more useful to
store "active" policies, instead. I think this will probably assist in
future additions as well.
2019-03-24 09:30:20 -06:00
David Núñez 3f94b93df3
Merge pull request #830 from KPrasch/denominations
Base Denominations Management
2019-03-19 20:42:19 +01:00
Kieran Prasch b74d6e548a
NuWei -> NuNit 2019-03-18 12:31:08 -07:00
Kieran Prasch 686fffa9eb
Understand NU to act as a floor number caster for fractional NuNit values. 2019-03-18 12:31:08 -07:00
Kieran Prasch 2d518f8e62
Currency -> Token; Improve readability of blockchain constants 2019-03-18 12:31:08 -07:00
Kieran Prasch 091adbae71
Move NU and Stake to currency.py 2019-03-17 12:47:35 -07:00
Kieran Prasch 24d346069d
Several more assertions for mixed-types NU.__init__ 2019-03-17 11:50:08 -07:00
Kieran Prasch c069b0a2f9
Dont reinvent eth_utils! Port NU conversions to implement eth-utils to/from wei interfaces. 2019-03-15 09:55:45 -07:00
David Núñez f5eed5d787
Testing some edge cases for the NU class 2019-03-15 08:17:53 -07:00
Kieran Prasch b29a32e1a4
Docstrings and type hints for nucypher blockchin utils NU and Stake 2019-03-14 19:51:22 -07:00
Kieran Prasch 01bb9c1ef4
Upgrade to a dictionary for Ursula stake tracking. 2019-03-14 19:32:06 -07:00
Kieran Prasch 95c4cfe974
Dont update local stake cache in read-only operations 2019-03-14 16:50:11 -07:00
Kieran Prasch b68fb2a8b7
Divide stake tests reflect NU Implementation 2019-03-14 16:36:09 -07:00
Kieran Prasch d1dd66e27c
Port lower-level stake validators to us NU 2019-03-14 16:35:24 -07:00
Tux 5d990b2b71
Merge pull request #374 from szotov/multisig
Multi-signature contract with off-chain signing
2019-03-14 17:07:08 -06:00
Kieran Prasch 79ca05605d
Baseline tests for NU and Stake classes 2019-03-14 13:38:21 -07:00
Kieran Prasch 215bf5ad7f
Denomination management implementation with NU and Web3. 2019-03-14 13:38:19 -07:00
Kieran Prasch ec0104c444
Console painting for stake staging 2019-03-11 19:24:21 -07:00
szotov a491a7801c Fixes after rebase 2019-03-11 14:52:28 +03:00
szotov a1a4c106d8 Updates intercontract test 2019-03-11 14:46:50 +03:00
szotov a21b29fa4e Softer condition for number of signatures 2019-03-11 14:46:49 +03:00
szotov 9fdc82fabe Update solidity version for multisig 2019-03-11 14:46:49 +03:00
szotov 69552d3024 Added trustee for execution in the MultiSig contract 2019-03-11 14:46:48 +03:00
szotov f6f36ddbc2 Added owner management methods in the MultiSig contract 2019-03-11 14:46:48 +03:00
szotov 1aeca51f8d Added simple multisig contract 2019-03-11 14:46:48 +03:00
Kieran Prasch 91c5f565dc
Allow rewards to be collected to an alternate address. Tighter assertions on reward collection. 2019-03-09 18:29:44 -08:00
Kieran Prasch 0b62b288e9
Minimal gas price manage ment in tests; Assertions for reward collection via CLI. 2019-03-09 17:32:07 -08:00
Kieran Prasch 88ff212f3c
Post-rebase cleanup Pt. II. 2019-03-09 17:32:04 -08:00
Kieran Prasch f98fce348c
Dealing with the side effects of BlockchainPolicy updates 2019-03-09 17:31:28 -08:00
Kieran Prasch 244f0e0885
Update tests to accomodate staking CLI requirements: orders blockchain Ursulas, better fixture organization; Staking CLI integraton tests. 2019-03-09 17:31:28 -08:00
Kieran R. Prasch 2ebd3fc2d1
Missing integration test for BlockchainPolicy - working towards bug fixes. 2019-03-09 17:31:28 -08:00
Kieran R. Prasch bebe4db85c
Integrate native CLI and Staking CLI; numerous bugfixes. Failing reward collection test. 2019-03-09 17:31:26 -08:00
Kieran R. Prasch 46f674475e
Post rebase cleanup for stakling CLI over native CLI 2019-03-09 17:29:54 -08:00
Kieran R. Prasch bd9532bd87
post-rebase cleanup 2019-03-09 17:29:54 -08:00
Kieran R. Prasch dceabd8d04
Ensure allocation registry is passed onto test agency 2019-03-09 17:29:54 -08:00
Kieran R. Prasch 9a00a84f4c
Allow beneficiary allocation registry specification to accept an instance or filepath 2019-03-09 17:29:54 -08:00
Kieran R. Prasch 4073614229
Update nucypher-deploy tests to suit I/O changes 2019-03-09 17:29:54 -08:00
Kieran Prasch 12ee590085
Update deploy CLI to use string based domains; Add better registry management 2019-03-09 17:29:54 -08:00
Kieran Prasch 3b9c229963
Collect staking reward CLI 2019-03-09 17:29:54 -08:00
Kieran Prasch be885c237c
Divide stake CLI 2019-03-09 17:29:54 -08:00
Kieran Prasch 75bc63fd89
Tear wallets and wallet generation out of NucypherKeyring 2019-03-09 17:29:54 -08:00
Kieran Prasch 62a9c31f23
Examine stakes written via CLI on-chain 2019-03-09 17:29:54 -08:00
Kieran Prasch d7e42656df
Ursula CLI staking integration tests 2019-03-09 17:28:57 -08:00
Kieran Prasch a4b4928ea7
Toying with tests built for pygeth 2019-03-09 17:28:57 -08:00
Kieran Prasch 84ef320a4c
Updates policy encrypting key derivation language. 2019-03-06 16:39:02 -08:00
Kieran Prasch 1be1dab6c8
Respond to RFCs in PR #802. 2019-03-06 16:29:33 -08:00
Kieran R. Prasch c8e460a101
Controller usage touch-ups. 2019-03-06 13:52:45 -08:00
Kieran R. Prasch cb135577bd
Mocks keyring KDF in tests for performance; Updates control fixtures. 2019-03-06 13:52:45 -08:00
Kieran R. Prasch 5a4f0e3bbc
Completed E2E CLI lifecycle tests with the 'ETHDenver demo' narrative. 2019-03-06 13:52:45 -08:00