Commit Graph

4351 Commits (2dd3e9286830acb79807c0afdedfd3a8f39b7854)

Author SHA1 Message Date
Kieran Prasch 2dd3e92868
Shortens CLI flag names to --provider and --teacher. 2019-07-26 10:14:41 -07:00
K Prasch d1c5ecba25
Merge pull request #1163 from cygnusv/moomin
Minor CLI bug fixes for nucypher stake and nucypher ursula
2019-07-26 09:47:44 -07:00
David Núñez ea873403ad Confirm activity works for next period (thanks @szotov) 2019-07-26 15:19:05 +02:00
David Núñez c53960634b Fix nucypher ursula confirm-activity. Fix #1164 2019-07-26 14:47:28 +02:00
David Núñez a9f5c4a12b Implement and test nucypher stake detach-worker 2019-07-26 14:08:01 +02:00
David Núñez 2a26d54e6d Show error for unknown action with nucypher stake. Fix #1142 2019-07-26 13:22:35 +02:00
David Núñez 33bfb85b3c Help for nucypher stake command. Fix #1158 2019-07-26 13:00:41 +02:00
David Núñez c8aae90d90 Clarify what accounts are being asked by nucypher ursula init. Fix #1160 2019-07-26 12:29:25 +02:00
David Núñez 9556d633cb Better suggestion after nucypher ursula init. Fix #1162 2019-07-26 12:23:08 +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 f45d32a269
Rework verbose/quiet options, add more detailed option descriptions, and add specific options for each type of logging
Now quiet/verbose govern console output (emitters)
2019-07-25 15:19:44 -07:00
Bogdan Opanchuk ffecb60779
More strict boolean envvars parsing 2019-07-25 15:19:44 -07:00
Bogdan Opanchuk f8cf32337e
Use specialized methods in WebEmitter as well 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 52dbca6519
Move echo() calls one level higher and replace them with emit()
There's was not much happening between the beginning of start() and echo(),
so moving the status printing should not obscure anything.
2019-07-25 15:18:29 -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 829c8bba90
Add gas. Use web3 abstraction for add peer endpoint in deploy CLI. 2019-07-25 15:18:29 -07:00
Kieran Prasch db7d1944da
Ensure deployer CLI can resume a deployment by using --contract-name single contract deployments. Increase Deployer timeout to 600 seconds. 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 6ff6d77c2b
Some helpful debug messages in send_transaction() and deploy_contract() 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 13ba893629
Passing gas_limit to deployments inside DeployerActor. Hard-coded gas for now 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 72bf708245
Set deployer._contract at the end, to avoid corrupt state on intermediate deployment failures 2019-07-25 15:18:29 -07:00
David Núñez b7cbdf8999
Code simplification in BlockchainDeployerInterface and ContractDeployer 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 bca9f21222
Fix bug while wrapping StakingEscrow contract with Dispatcher 2019-07-25 15:18:29 -07:00
David Núñez 53ac8fc03d
'from' and 'gasPrice' are already handled in blockchain.send_transaction() 2019-07-25 15:18:29 -07:00
David Núñez 1df85e4402
Remove rollback function from UserEscrowProxyDeployer 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 4b2497f60c
New @validate_secret decorator, to enforce correct plaintext secret 2019-07-25 15:18:29 -07:00
David Núñez c38392e90a
Generalize some common deployment logic for main contracts 2019-07-25 15:18:29 -07:00
David Núñez bca9d4d9d8
Gas limit in all deploy, upgrade & rollback methods in Deployers. #1113 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 6a73581fce
Adapt txhash passing in UserEscrowProxyDeployer to what CLI expects 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