David Núñez
|
6ca6c4cbcc
|
Testing failed init of StakingEscrowAgent due to contract not deployed
|
2019-07-25 15:18:29 -07:00 |
David Núñez
|
1e431741e3
|
Reusable, session-scoped testerchain PoC: Deployers test time down 37%
|
2019-07-25 15:18:29 -07:00 |
David Núñez
|
2b8ec61556
|
Restore initial design of UserEscrowProxy.deploy()
|
2019-07-25 15:18:29 -07:00 |
David Núñez
|
f100d39630
|
"Deployer" actor is now called "DeployerActor", to avoid confusion with deployers
|
2019-07-25 15:18:29 -07:00 |
David Núñez
|
434bb7072a
|
Fix error in test_user_escrow_deployer (see #1106)
|
2019-07-25 15:18:29 -07:00 |
David Núñez
|
cef7e17279
|
UserEscrowProxyDeployer was incorrectly deploying a new Linker each time
New behavior is to look first for an existing Linker, and just in case it's not found, deploy it.
|
2019-07-25 15:18:29 -07:00 |
David Núñez
|
f4325520dd
|
Fixtures can't use @pytest.mark.usefixtures
See warning in https://docs.pytest.org/en/latest/fixture.html#using-fixtures-from-classes-modules-or-projects
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
0b52cd2c74
|
Routes Ursula keyring attchment by federated/decentralized mode.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
f947e6f747
|
Extracts manual staker and worker fixtures, Fixes incorrect address in to/from UrsulaConfiguration; Attempting to fix reward collection CLI integration tests.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
4b9b5f0559
|
Respond to RFCs in PR #1056; Test and CLI touch-ups.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
2e70aebd01
|
Bug Fix: Functional inflation reward collection; Refactors internal stakeholder stake tracking
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
b83f8f9595
|
Move deployment secrets named tuple to Deployer and implement it.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
879afef6a7
|
Restore Federated CLI functionality; Refactor CLI lifecycle integration testing to implement --work-address
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
28c1b39845
|
post #1029 rebase touch ups.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
cf0fd49008
|
Functional stakeholder persistence via CLI, Implements software-keyring entrypoints for StakeHolder; geth deploy integration testing.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
7b16196765
|
Adds integration test for creating new geth accounts over RPC clients.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
362aff4824
|
Respond to RFCs in PR #1064 - Staker to/from blockchain, @michwill's funding account recipt fix; Touch Ups.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
f7d780639d
|
BYOK for stakeholder and worker - Passing collect inflation reward test.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
13ed3501dc
|
xAdvance Stakeholder rewards integration testing.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
e1cb849a3a
|
Improve Stakeholder API tests.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
7006891313
|
Updates stakeholder to used unified BlockchainInterface API
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
3953da73ad
|
Detailing StakeHolder actions
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
d7b03de176
|
Second daraft of StakeHolder including JSON config.
|
2019-07-25 15:18:29 -07:00 |
Kieran Prasch
|
6326340151
|
test touch-up.
|
2019-07-15 12:06:44 -07:00 |
Kieran Prasch
|
118262a9f4
|
Make accomodations for geth managed wallets (#1117) in TransactingPower.
|
2019-07-15 12:06:44 -07:00 |
Kieran Prasch
|
959c3dc35f
|
Ensure powerup activates in adjudicator agent and contract tests.
|
2019-07-15 12:06:44 -07:00 |
Kieran Prasch
|
70803d3e22
|
Post rebase renames.
|
2019-07-15 12:06:44 -07:00 |
Kieran Prasch
|
a5aef6f030
|
Manually call connect in client tests.
|
2019-07-15 12:06:44 -07:00 |
Kieran Prasch
|
7bb4c55e5c
|
Use TransactingPower.activate in Actor/Agent tests.
|
2019-07-15 12:06:44 -07:00 |
Kieran Prasch
|
dc22bdede0
|
post rebase BlockchainPower -> TransactingPower
|
2019-07-15 12:06:44 -07:00 |
David Núñez
|
ad2d63fd5e
|
Touchups to test_staker
|
2019-07-04 11:23:51 +02:00 |
David Núñez
|
9d0089102e
|
Some improvements to PolicyManager and StakingEscrow deployer tests. See #1102
|
2019-07-04 11:23:51 +02:00 |
David Núñez
|
f77c46bbe4
|
Basic tests of AdjudicatorDeployer and slashing with AdjudicatorAgent.
|
2019-07-04 11:23:51 +02:00 |
David Núñez
|
051bbbc02f
|
Use testerchain.client.sign_message() in tests for EIP191 signatures
|
2019-07-04 11:23:51 +02:00 |
David Núñez
|
f43365ca93
|
First stub of AdjudicatorAgent tests
|
2019-07-04 11:23:51 +02:00 |
David Núñez
|
fd3b8603fa
|
Touchups in some tests
|
2019-07-04 11:23:50 +02:00 |
David Núñez
|
f6fac7c073
|
Adapting other adjudicator tests and gas estimation to latest changes
|
2019-07-04 11:23:50 +02:00 |
David Núñez
|
28eb4a16f1
|
Use blockchain_ursulas in test_adjudicator
|
2019-07-04 11:23:50 +02:00 |
David Núñez
|
e53415e8b0
|
On-chain verification of EIP191 signatures now supports versions 0 and E
|
2019-07-04 11:23:50 +02:00 |
David Núñez
|
ba5da0dfec
|
Verify EIP191 signatures in SignatureVerifier
Not really an EIP191-compliant method, as it only supports version E, but this is what we currently use in nucypher
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
420c30f079
|
Respond to RFCs in PR #1089
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
46e424d49d
|
Pretending to consume BlockchainPower in actor and agent tests.
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
68b8a2735d
|
Returning to a single-account BlockchainPower;TODO annotations for BlockchainPower.
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
19d30b355c
|
Adapting Felix to consume BlockchainPower at init-time.
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
2ccc46b86a
|
Refactor contract registry CLI integration testing to implement condensed Blockchain API.
|
2019-07-04 11:23:50 +02:00 |
Damon C
|
aebac62dd8
|
remove most other direct blockchain.w3 references
|
2019-07-04 11:23:50 +02:00 |
Damon C
|
595293c4b5
|
cleanup access to blockchain.client properties
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
898925c8ad
|
Integrating more tests with condensed blockchain interface, straggler Mock BlockchainPower.
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
08fe94fea7
|
Moving (mocked) BlockchainPower usage in the direction of TransactingPower; Touch-ups.
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
cd9b2366c8
|
Blockchain -> BlockchainInterface
|
2019-07-04 11:23:50 +02:00 |
Kieran Prasch
|
1a2dabd095
|
Use Condensed Blockchain API in tests. credit to @vepkenez.
|
2019-07-04 11:23:50 +02:00 |
David Núñez
|
11e477c562
|
Consider @szotov's comment on setWorker: stakers have to wait to unset
The only way to use setWorker without waiting is that there's no worker set.
|
2019-07-04 11:23:49 +02:00 |
Kieran Prasch
|
14dd22427b
|
Fix off-by-one error calculating stake end-period in Stake integration test.
|
2019-07-04 11:23:49 +02:00 |
Kieran Prasch
|
75cd104c59
|
Extract StakeTracker from Worker/Staker
|
2019-07-04 11:23:49 +02:00 |
Kieran Prasch
|
2595623fa8
|
Passing character tests, adding a test for Vladimir
|
2019-07-04 11:23:49 +02:00 |
David Núñez
|
ecc656a205
|
Allow stakers to release workers in StakingEscrow
|
2019-07-04 11:23:49 +02:00 |
David Núñez
|
6638e7ea3a
|
Workers must confirm activity directly. They can't do it via a contract
|
2019-07-04 11:23:49 +02:00 |
David Núñez
|
3a4df6adea
|
Fix remaining tests in test_policy_manager_agent
|
2019-07-04 11:23:49 +02:00 |
Kieran Prasch
|
1868f96bdc
|
API conversion -Implementing @transact receipt handing in-test.
|
2019-07-04 11:23:49 +02:00 |
David Núñez
|
a85adfdc55
|
Fix actors/test_staker and agents/test_token_agent
|
2019-07-04 11:23:49 +02:00 |
David Núñez
|
a8d77c40a9
|
Fix test_staking_escrow_agent tests. Start usingnew @transaction decorator.
|
2019-07-04 11:23:49 +02:00 |
David Núñez
|
e1df9a7d1b
|
Use stakers fixture in test_token_and_stake
|
2019-07-04 11:23:49 +02:00 |
David Núñez
|
edb95407c3
|
StakingEscrowAgent API for checking staker-worker relationship
|
2019-07-04 11:22:39 +02:00 |
David Núñez
|
8b446a904b
|
Change "by" to "from" in getWorkerByStaker and getStakerByWorker
|
2019-07-04 11:22:39 +02:00 |
David Núñez
|
357ff2a7cd
|
Stakers will need their own test ETH accounts, different than Ursulas'
|
2019-07-04 11:22:39 +02:00 |
David Núñez
|
da8fd0c3de
|
Missing renamings to "worker" and "staker" in agents.py
|
2019-07-04 11:22:39 +02:00 |
David Núñez
|
9638dc86bf
|
Fix name of StakingEscrowAgent. It was StakingEscrow
|
2019-07-04 11:22:38 +02:00 |
David Núñez
|
398896d2ab
|
Leftovers: Miner --> Staker, MiningAdjudicator --> Adjudicator, etc.
|
2019-07-04 11:22:38 +02:00 |
Kieran R. Prasch
|
877833aaf3
|
Understand Staker and Staking to be separate ideas.
|
2019-07-04 11:22:38 +02:00 |
Kieran R. Prasch
|
3a80eec247
|
Goodbye, Three Agents. Hello, Agency.
|
2019-07-04 11:22:38 +02:00 |
Kieran R. Prasch
|
5551ce950c
|
MinerEscrow -> StakingEscrow, and MiningAdjudicator -> Adjudicator in agency, and in-test
|
2019-07-04 11:22:38 +02:00 |
szotov
|
33e97a9c2f
|
miner->staker in tests and docs
|
2019-07-04 11:22:38 +02:00 |
szotov
|
821b0dcdbc
|
Renamed miner-> staker in contracts
|
2019-07-04 11:22:38 +02:00 |
szotov
|
fbe4493951
|
Changed restriction on miner<->worker relationship
|
2019-07-04 11:22:38 +02:00 |
szotov
|
69b21a2a85
|
Tests for worker events
|
2019-07-04 11:22:38 +02:00 |
szotov
|
f237389ca7
|
Tests for slashing worker
|
2019-07-04 11:22:38 +02:00 |
szotov
|
946ec2b2f1
|
Added way to slash intermediary contracts
|
2019-07-04 11:22:38 +02:00 |
szotov
|
8747177c5a
|
Moved minimum worker periods to constructor
|
2019-07-04 11:22:38 +02:00 |
szotov
|
1a76d9984b
|
Fixed agent tests
|
2019-07-04 11:22:38 +02:00 |
szotov
|
727a074503
|
Added test for setting worker
|
2019-07-04 11:22:38 +02:00 |
szotov
|
b545e3ec9b
|
Fixed small issues, added setWorker to UserEscrow
|
2019-07-04 11:22:38 +02:00 |
szotov
|
8bc89805ff
|
Fix agents tests
|
2019-07-04 11:22:38 +02:00 |
szotov
|
f850a42f58
|
Added worker role, excluded minting and activity confirmation from lock method
|
2019-07-04 11:22:38 +02:00 |
Bogdan Opanchuk
|
f1db1622cf
|
Temporarily skip test_deploy_multiple()
Fixing `usefixtures` mark makes it fail due to issue #1102
|
2019-06-27 14:45:34 -07:00 |
Bogdan Opanchuk
|
39ecedd724
|
Rename TesterBlockchain on import in tests to prevent py.test from trying to pick it up
|
2019-06-26 22:48:33 -07:00 |
Bogdan Opanchuk
|
d83697648a
|
Fix typo: replace `usesfixtures` with `usefixtures`
|
2019-06-26 22:41:54 -07:00 |
K Prasch
|
d743e3b791
|
Respond to RFCs in PR #984; Apply suggestions from code review
Co-Authored-By: David Núñez <david@nucypher.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
|
2019-06-08 14:32:35 -07:00 |
Kieran Prasch
|
cf64e5f114
|
Restores skipped stake division test on MinerAgent
|
2019-06-08 14:26:07 -07:00 |
Kieran Prasch
|
9430997aa7
|
Refining blockchian sync management for internal geth processes
|
2019-06-08 14:26:07 -07:00 |
Kieran Prasch
|
6097c83eb7
|
Almost all of checksum_public_address -> checksum_address
|
2019-06-08 14:25:35 -07:00 |
Kieran Prasch
|
4a7a881d3e
|
Realize the Agency metaclass
|
2019-06-08 14:25:26 -07:00 |
David Núñez
|
b6ba1ff435
|
Conditional skip for Geth client integration. Fix #1037
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
c6c6f66b8b
|
New client test module; Skip geth client signature integration test on CI until a better solution is found.
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
e74ba944f8
|
Handle geth --dev process as a fixture to stop when finished. Additional test bug fixes, found missing assertions.
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
f9d9346c0f
|
Test integration for geth client signing and nucypher.crypto verification
|
2019-06-03 22:52:22 +03:00 |
David Núñez
|
e913677354
|
Fix eth clients bugs. Improved tests for clients.
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
2dfdb4ac63
|
Recompose verify_eip_191 into crypto.api, off of Interfaces, Clients, and Powers.
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
ed1436aac4
|
Use EIP-191 Signatures on Geth and PyEVM backends
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
f2c655efae
|
Inheretence improvements for web3 abstractions, Handle 4-part version strings in EthereumTester and Parity.
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
25c5a4a846
|
Supporting EIP-191 Geth message signatures
|
2019-06-03 22:52:22 +03:00 |
Kieran R. Prasch
|
828b19b2ee
|
Consider provider process handling with new web3 abstractions
|
2019-06-03 22:52:22 +03:00 |
Damon C
|
b78cedbb1e
|
tests for w3 client classes
|
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 |
Kieran Prasch
|
81cbdd7404
|
Oo he's Tryin'
|
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
|
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
|
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 |
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
|
a5ce7700ca
|
Lost bytes: missing byte values needed for on-chain evaluation
|
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
|
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 |
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
|
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
|
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 |