David Núñez
6add1d8275
Add support to @pytest.mark.nightly marker to signal nightly tests
2019-09-30 23:05:07 +02:00
Kieran R. Prasch
82c377234b
Respond to RFCs in PR #1344
2019-09-30 11:45:51 -07:00
Kieran R. Prasch
c3be5a7854
Basic upgrade and re-target deployer CLI painting.
2019-09-30 09:04:09 -07:00
Kieran R. Prasch
2e7a886391
Clean-up on isle 4... the registries are spraying all over the codebase
2019-09-30 09:04:09 -07:00
Kieran Prasch
de61088faa
Extact deployer CLI registry acquisition to actions
2019-09-30 09:04:09 -07:00
Kieran Prasch
dab1a13e11
Registry In/Out file management, CLI test integration with proxy retargeting.
2019-09-30 09:04:09 -07:00
Kieran Prasch
0a713c1e51
Bare deployment and Retargeting tests for deployer and CLI
2019-09-30 09:04:09 -07:00
Kieran Prasch
2567bdd3ec
Deployer tooling for accessing untarget, but enrolled contracts by version index.
2019-09-30 09:04:09 -07:00
Kieran Prasch
859e572587
Creates a 'bare' deployment workflow for deployment; Only engage deploy_essential, optionally.
2019-09-30 09:04:09 -07:00
Kieran Prasch
22be285fb2
Buildout deployer proxy contract retargeting via CLI
2019-09-30 09:04:09 -07:00
szotov
770e75389d
Fix StakingEscrow state for upgrading
2019-09-30 09:04:09 -07:00
David Núñez
07af77d74d
Merge pull request #1318 from szotov/tests-optimization
...
Contracts tests time optimization
2019-09-25 15:27:45 +02:00
K Prasch
314ab277b1
Merge pull request #1339 from KPrasch/restake
...
Restaking Control
2019-09-19 11:46:48 -07:00
Kieran R. Prasch
6761fde377
Respond to RFCs in PR #1339 : Remove duplicated restaking methods, Docs touchups; ContractAgency, restaing agency layer assertions.
2019-09-19 10:54:25 -07:00
szotov
390bf0ba46
Remove unused import
2019-09-18 18:23:06 +03:00
Kieran R. Prasch
00a52f0ca7
Stronger restaking CLI assertions.
2019-09-17 22:42:18 -07:00
Kieran Prasch
80382ad88c
Use LocalContractRegistry in deployment command tests; Add ID to registry repr.
2019-09-17 14:34:58 -07:00
Kieran Prasch
3af265916c
Crafting CLI access to enable/diable restaking.
2019-09-16 21:42:29 -07:00
Kieran Prasch
6af7813e6a
Restaking control via Staker Actor.
2019-09-16 20:59:28 -07:00
Kieran Prasch
5860075142
Restaking access by Agency.
2019-09-16 20:45:50 -07:00
Kieran Prasch
6bdf968a61
Describe ownablity on deployer classes.
2019-09-16 18:09:18 -07:00
Kieran Prasch
c2de8d5a57
Re-encapsulate and dehydrate upgradeable and ownable logic in deployers.
2019-09-16 09:45:41 -07:00
szotov
800876638f
Reset chain using block hash
2019-09-15 18:22:27 +03:00
Kieran Prasch
ab20afc45c
Test modifications for CLI lifecycle to accomodate ImMemoryRegistry as the default.
2019-09-14 10:01:27 -07:00
Michael Egorov
2ba62bbf5b
CLI test bugfix - cli bug revealed
2019-09-13 23:31:39 -07:00
szotov
f58eb7a090
Monkey patch to prevent gas estimates
2019-09-12 11:09:00 +03:00
szotov
c0a4f976c6
Reset state in testerchain
2019-09-12 11:08:59 +03:00
David Núñez
76103e806c
Skip test_sampling_distribution until we have a solution for snail tests
...
See #1288
2019-09-10 22:14:30 +02:00
David Núñez
9614646593
Use regex matching in tests for nucypher status output. Fix broken stuff here and there.
2019-09-10 22:14:29 +02:00
David Núñez
7b8b31df22
Getting rid of old `session_agency` fixture. Use `agency` instead.
2019-09-10 22:14:29 +02:00
David Núñez
812349ffd5
Reduce probability of skewed stake distribution in stakers fixture
2019-09-10 22:14:29 +02:00
David Núñez
e1b4de272e
Tests for `nucypher status stakers` and `nucypher status network`
2019-09-10 22:14:29 +02:00
David Núñez
20de10ea6f
Add round() to NU
2019-09-10 22:14:29 +02:00
Kieran Prasch
3b3c2f2f1c
Respond to RFCs in PR #1157 Pt. II.
2019-09-10 12:35:51 -07:00
Kieran R. Prasch
07c8d58057
Restores UserEscrow Deployer Testing; Clarify test naming for user escrow ( to be preallocation escrow ).
2019-09-09 18:41:42 -07:00
Kieran R. Prasch
baf55630d2
Passing ownership transfer CLI tests + consolidation.
2019-09-09 14:51:12 -07:00
Kieran R. Prasch
fa3285a310
Use session-based deployment secrets for testing upgrades; Adjustments for ownership CLI tests.
2019-09-09 14:51:11 -07:00
Kieran R. Prasch
ec5fab3b4f
UserEscrowProxy is now part of agency. Divergence amendments for status testing.
2019-09-09 14:50:46 -07:00
Kieran R. Prasch
562e5c6b2d
Working ownership inspection and status commands.
2019-09-09 14:50:46 -07:00
Kieran Prasch
f210ce0688
Details nucypher status output; Passing nucypher transfer-ownership tests; Deploy UserEscrowProxy in agency fixture.
2019-09-09 14:50:44 -07:00
Kieran Prasch
a3be973700
Extract ownership transfer CLI tests to new test module.
2019-09-09 14:49:38 -07:00
Kieran Prasch
d5c5412f42
nucypher-deploy status command detailing contract deployment ownerships; introduce nucypher-deploy transfer-ownership entry point.
2019-09-09 14:49:38 -07:00
Kieran Prasch
c2bde46878
Tests describing nucypher-transfer and status commands.
2019-09-09 14:47:49 -07:00
Kieran R. Prasch
ac25da7e56
Allow chain ID to be used in transaction building after upstream fixes via web3.py
2019-09-06 11:59:05 +02:00
Kieran R. Prasch
6bdfc6c331
Re-implements some ursula mocking via pytest-mock spy.
2019-09-06 11:59:01 +02:00
szotov
5588600ada
Factory for economics, fixed tests
2019-09-04 18:20:02 +03:00
szotov
14086d538a
Fix after rebasing
2019-09-04 13:24:03 +03:00
szotov
8646541619
Extended `init` in `StandardEconomics`
2019-09-04 13:24:03 +03:00
szotov
7be142a8d8
estimate_gas script uses custom parameters
2019-09-04 13:24:03 +03:00
szotov
e9d2b1f3c7
Combine TokenEconomics and SlashingEconomics
2019-09-04 13:24:02 +03:00
szotov
a36bf80dc8
Fix after rebasing
2019-09-04 13:24:02 +03:00
szotov
f05454b855
Fix tests
2019-09-04 13:24:02 +03:00
szotov
44717dcca6
Split TokenEconomics into two classes
2019-09-04 13:24:01 +03:00
szotov
3ccc18082d
Apply suggestions from code review
2019-09-04 13:24:01 +03:00
szotov
15c9a7569b
Fixes #642
2019-09-04 13:24:01 +03:00
szotov
adc7b3f826
Test for economics in contract
2019-09-04 13:24:00 +03:00
David Núñez
f1b5ed4861
Additional functions in TokenEconomics for checking token supply
2019-09-04 13:24:00 +03:00
damon c
3cd061b152
Merge pull request #1294 from vepkenez/felix-live-rebased
...
Felix live
2019-09-04 03:02:45 -07:00
damon c
cae5247bfe
Merge pull request #1280 from cygnusv/sample
...
Touches to StakingEscrow.sample()
2019-09-03 14:51:45 -07:00
damon
4120d6f293
reinstate felix eth distribution test
2019-09-03 11:45:52 -07:00
Damon C
5cec6ca322
amount tweaks
2019-09-03 09:08:07 -07:00
David Núñez
27d11090bb
Test that sampling distribution is as expected. Closes #1019
2019-09-02 23:22:49 +02:00
David Núñez
b75d6884ea
Sets N=6 in test_blockchain_ursulas_reencrypt. Closes #1090 .
2019-09-02 19:22:57 +02:00
David Núñez
4bb83cf180
Adapt sampling tests to new changes
2019-09-02 19:22:57 +02:00
Kieran R. Prasch
63d941117d
Respond to RFCs in PR #1283 .
2019-09-02 08:22:41 -07:00
Kieran Prasch
307bfe3ad6
Fixes #1283 - Allow staking to maximum amount per address.
2019-09-01 09:41:19 -07:00
Kieran Prasch
22fc7d16b4
Adapt PeriodTracker to WorkTracker; Geth client duration bug fix.
2019-08-31 11:32:25 -07:00
Kieran R. Prasch
ea47bfa4c5
Disable account auto-relocking during pytests.
2019-08-30 21:05:57 -07:00
Kieran Prasch
43d2ff34fe
Add worker init flag to indicate insta-confirm.
2019-08-30 20:53:32 -07:00
Kieran Prasch
aa73f9265e
Test demonstrating auto-confirmation via PeriodTracker and Twisted Clock.
2019-08-30 20:38:38 -07:00
Kieran Prasch
7afc134e6a
Fixes #1279 ; Uses injected registry to verify stranger-Ursulas with lazy StakingAgent. Use fallback storage backend.
2019-08-30 17:55:53 -07:00
Kieran Prasch
c70ed348c0
Test replicating #1279 using the CLI.
2019-08-30 15:41:32 -07:00
Kieran R. Prasch
9941a3db7b
Rebase amendment for worklock divergence.
2019-08-30 11:08:35 -07:00
Kieran R. Prasch
25f0caa23c
Post rebase adjustment for new auto provider detection support. Fixes for ursula receipt painting.
2019-08-28 06:41:37 -07:00
Kieran R. Prasch
f6cf2b6dfd
Fixes missing default filepath call; Better Exception handling for outdated configuration file.
2019-08-27 09:56:41 -07:00
Kieran R. Prasch
feeeee133a
new-stakeholder -> init-stakeholder
2019-08-27 09:56:41 -07:00
Kieran R. Prasch
4431d7966d
Respond to RFCs in PR #1225 ; Use blake2b for registry cache key.
2019-08-27 09:56:41 -07:00
Kieran R. Prasch
64d40a7f80
Whoops! Restores 'address' and respectively
2019-08-27 09:56:41 -07:00
szotov
72f8b49501
Monkey patch to prevent gas adjustment in tests
2019-08-27 09:56:41 -07:00
Kieran Prasch
b20cf2f6f6
Test fixes: Alter estimate gas to use blockchain factory; Restore accidentally renamed deployment files.
2019-08-27 09:56:41 -07:00
Kieran Prasch
58f34dac7b
Checkpoint #4 - Fixes policy sampling bugs - continue reflow fixes.
2019-08-27 09:56:41 -07:00
Kieran Prasch
2a299aaca1
Checkpoint #3 - Reflow StakeHolder, Stake and Wallet Management.
2019-08-27 09:56:36 -07:00
Kieran Prasch
324c2805f5
Checkpoint #2 - Refactor Policy, and Blockchain / Registry Reflow.
2019-08-27 09:54:14 -07:00
Kieran Prasch
69aea3f725
Checkpoint: Refactors lifecycle of Blockchain and Registry.
2019-08-27 09:54:13 -07:00
derekpierre
213b42fe58
Return UnsuportedProvider exception instead of ValueError - update unit tests.
2019-08-24 13:56:26 +02:00
derekpierre
f7787b87b4
Minor unit test fix.
2019-08-24 09:01:06 +02:00
derekpierre
74e2c0cf3a
Code cleanup: log message and tests for auto file-scheme detection
2019-08-24 09:01:06 +02:00
derekpierre
172e2a9683
Add provider type detection test for websocket uri
2019-08-24 09:01:06 +02:00
derekpierre
6ece74cb00
Auto-detect 'file' uri scheme when an ipc file path is provided without a scheme and exists. This allows for auto-completion for file paths passed as --provider.
2019-08-24 09:01:06 +02:00
szotov
ca79c0834f
Renaming workDone -> completedWork, payor -> payer
2019-08-21 21:27:42 +03:00
szotov
71223cb00c
Fix after rebasing
2019-08-21 21:27:41 +03:00
szotov
38d8361f35
Added new restriction to prolongStake
2019-08-21 21:27:40 +03:00
szotov
c0c2319443
Fix after rebasing
2019-08-21 21:27:40 +03:00
szotov
60f341c3e0
Removed preDeposit method, fixed small issues
2019-08-21 21:27:38 +03:00
szotov
7c2e08872d
Fix getRemainingWork in worklock, worklock in intercontract test
2019-08-21 21:27:38 +03:00
szotov
75865a2388
Events for worklock
2019-08-21 21:27:37 +03:00
szotov
e6fff3973b
Tests for worklock
2019-08-21 21:27:36 +03:00
szotov
895411d312
Added function to prolong stake
2019-08-21 21:27:36 +03:00
szotov
c173fc1e4f
Tests for work measurement
2019-08-21 21:27:34 +03:00
David Núñez
29a7fd8407
NUCYPHER_WORKER_ETH_PASSWORD envvar for Ursula. Workaround for #1205 .
...
Require existence of at least one ETH account when prompted. Fix #1207 .
2019-08-18 11:59:37 +02:00
Kieran Prasch
9408463dec
Refactor from_seed_and_stake_info to accept a checksum_address inclusive in the URI.
2019-08-18 11:58:04 +02:00
damon c
126c44a5fc
Merge branch 'master' into status
2019-08-08 12:52:45 -07:00
K Prasch
002a373189
Merge pull request #1203 from vepkenez/sync-fix
...
Improved Blockchain Syncing UX
2019-08-08 12:50:31 -07:00
Kieran Prasch
73c6da3ffe
Restore nucypher status CLI: Error handling and console painting; implement worker-staker speration.
2019-08-08 12:43:18 -07:00
Damon C
785eb1e796
Implements InfuraClient by adding an intermediate call to get the variant of a web3 client.
2019-08-08 12:42:41 -07:00
Damon C
d93f9c8947
squashed test fixes, addressed PR review comments
2019-08-08 11:49:25 -07:00
damon c
674efa768d
Apply suggestions from code review
...
Co-Authored-By: MacLane S Wilkison <maclane@nucypher.com>
2019-08-07 18:42:47 -07:00
Damon C
d9aa98b0cf
tests for blockchain sync flow
2019-08-07 13:31:38 -07:00
David Núñez
c21448d547
Improve UX of nucypher stake set_worker and detach_worker
2019-08-04 02:41:04 +02:00
David Núñez
88c6309369
Add a log entry during tests to mark begin and end of each test
2019-08-04 02:41:04 +02:00
David Núñez
f0c28f8c0c
Action nucypher felix destroy should come earlier
2019-08-04 02:41:04 +02:00
David Núñez
965a473bb5
Make sure bare contracts are updated in deployers' upgrade tests
2019-08-04 02:41:04 +02:00
David Núñez
586f7edb89
Deployers now hold explicit list of deployment steps
2019-08-04 02:41:04 +02:00
David Núñez
d82afa6d25
Minor touchups
2019-08-04 02:40:58 +02:00
David Núñez
23d84ae22b
Passing --no-registry correctly to characters' config
2019-08-03 21:49:01 +02:00
David Núñez
031ba817f1
Setting download_registry=False in test fixtures
2019-08-03 21:49:01 +02:00
derekpierre
3424ff6dc9
Update deployer class property to be more descriptive - "number_of_deployment_transactions"
2019-07-29 14:53:27 -04:00
derekpierre
f4327e821e
Added the ability for per-deployment step progress updates since these steps can take a long time.
...
It is worth noting that only progress is updated for individual steps - the printing of the receipt confirmation to the console is not done until all receipts (from the inidividual step) are received by the deployer.
Added unit tests for progress updates.
2019-07-29 14:53:27 -04:00
David Núñez
1bd2aae362
Adapt Ursula CLI tests to being asked for worker account password
2019-07-29 11:27:14 -07:00
David Núñez
8dcf5a799d
Remove second stamp substantiation. Fix #1091
2019-07-29 11:27:14 -07:00
David Núñez
ca732b5a50
Add test_transfer_tokens to nucypher-deploy tests. Remove unused stuff.
2019-07-29 11:27:14 -07:00
Kieran Prasch
6392c1f42a
Do no ask for client passwork in stake CLI when using hw wallet flag, or dev chain is auto detected.
2019-07-26 10:15:34 -07:00
Kieran Prasch
d8e6486283
Split keyring password collection into two functions and implement in CLI; Provides interactive account selection for Alice.
2019-07-26 10:14:41 -07:00
Kieran Prasch
2dd3e92868
Shortens CLI flag names to --provider and --teacher.
2019-07-26 10:14:41 -07:00
David Núñez
a9f5c4a12b
Implement and test nucypher stake detach-worker
2019-07-26 14:08:01 +02:00
Kieran Prasch
27fc89d106
Ensure CLI painting implements emitters; Emitter logic for stakeholder CLI.
2019-07-25 15:19:44 -07:00
Bogdan Opanchuk
0ce9458bf0
Create a console emitter only once (in NucypherClickConfig) and propagate it everywhere
2019-07-25 15:19:42 -07:00
Bogdan Opanchuk
3e17cd7c74
Remove duplicate options, move shared options definition and processing to NucypherClickConfig
2019-07-25 15:18:29 -07:00
Bogdan Opanchuk
b473c0f4bd
Hide registering/unregistering observers and Sentry init inside utilities/logging
...
Also add a check that Sentry SDK is only initialized once
2019-07-25 15:18:29 -07:00
Kieran Prasch
9bca91d97d
Deploy CLI Touch Ups (Tested on local private chain). Restore Syncing TImeout. Mock ChainId RPC Endpoint in some client integration tests.
2019-07-25 15:18:29 -07:00
Kieran Prasch
30aa51c1f2
Mock to_config_file briefly to avoid writing to the default config root.
2019-07-25 15:18:29 -07:00
Kieran Prasch
c4f14cb1f0
Deprecates funding account and account creation options. Touch up stake CLI.
2019-07-25 15:18:29 -07:00
Kieran Prasch
1b3e3e45e5
Respond to RFCs in PR #1111 : Remove deployment transaction gas limit.
2019-07-25 15:18:29 -07:00
David Núñez
22166d0242
Fix bug in UserEscrowDeployer tests
2019-07-25 15:18:29 -07:00
David Núñez
e5d91632b2
Adapt deployers and tests to handle receipts, not tx_hashes
2019-07-25 15:18:29 -07:00
David Núñez
2d383ba41c
Once per module, session_testerchain restores balance of accounts, at expense of coinbase ¯\_(ツ)_/¯
2019-07-25 15:18:29 -07:00
David Núñez
e60bbd2332
Use session_testerchain in actors tests. Let's start with Investigator
2019-07-25 15:18:29 -07:00
David Núñez
c156437bbe
First draft of Investigator test
2019-07-25 15:18:29 -07:00
David Núñez
9899148b17
Get on-chain staking parameters with StakingEscrowAgent
2019-07-25 15:18:29 -07:00
David Núñez
d317a7d1b0
Add missing AdjudicatorAgent assertion in test_deploy_cli
2019-07-25 15:18:29 -07:00
David Núñez
718a5244dc
PolicyAgent --> PolicyManagerAgent
2019-07-25 15:18:29 -07:00
David Núñez
1a90164a7b
Improve PolicyManagerDeployer tests. Adds upgrade & rollback
2019-07-25 15:18:29 -07:00
David Núñez
7030937629
Extract common fixtures for deployers tests
2019-07-25 15:18:29 -07:00
David Núñez
77b311ff40
Revamp of StakingEscrowDeployer tests. Add upgrade & rollback tests
2019-07-25 15:18:29 -07:00
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