Commit Graph

6969 Commits (1e75e3e225523ccc1d060bdf332cf23d75012129)

Author SHA1 Message Date
David Núñez 637ba98ff6 Don't use web3 directly, when we can use the client API 2020-06-05 04:07:57 +02:00
David Núñez f44796bc45 Extract get_blocktime logic from BlockchainInterface to EthereumClient 2020-06-05 04:07:54 +02:00
David Núñez 0396f0a8a1 Minour touchup to EthereumClient._has_latest_block to reduce number of calls
This is specially relevant with external ETH nodes
2020-06-05 04:06:54 +02:00
David Núñez 5c5e1a9e3f Latest web3.geth.personal and web3.parity.personal methods 2020-06-05 04:05:39 +02:00
David Núñez b0e9a40f9c ...and relocate and improve tests for get_confirmations 2020-06-05 04:05:39 +02:00
David Núñez 7e03116e51 Transplant block confirmation logic to EthereumClient.wait_for_receipt()
Also, improve it a bit along the way
2020-06-05 04:05:34 +02:00
David Núñez 519fc253bd First pass at improving block confirmation logic and tests 2020-06-05 04:02:46 +02:00
vzotova b8b22e9cf0 Hide 'commit-next' from help messages 2020-06-04 20:33:21 +03:00
K Prasch 89a602937b
Merge pull request #2037 from KPrasch/fuzzy
Typing for Contract Agents
2020-06-04 09:19:57 -07:00
Kieran Prasch 065ca73689
Fixes several inaccurate Tuple hints; Keep at_periods checking for None. 2020-06-03 17:05:12 -07:00
David Núñez 7382763683
Merge pull request #2064 from vzotova/docs
Small updates in contract docs
2020-06-03 17:14:59 +02:00
Victoria feb92e90c6
Apply suggestions from code review #2064
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-06-03 16:40:20 +03:00
vzotova f8077d03c9 Refreshing contract docs 2020-06-03 16:25:06 +03:00
Kieran Prasch 5ac0351f16
Fixes misnomer: interface_agent -> interface_contract. 2020-06-02 14:44:26 -07:00
Kieran Prasch 7f661c9bb0
Cleanup agent TODOs and docstrings. 2020-06-02 12:46:15 -07:00
Kieran R. Prasch 4788821632
Respond to RFCs in PR #2037; Apply suggestions from code review.
Co-authored-by: David Núñez <david@nucypher.com>
2020-06-02 12:36:39 -07:00
David Núñez d41cc8fe80
Merge pull request #2059 from cygnusv/wlcov
Increase worklock command coverage to ~97%
2020-06-01 18:49:22 +02:00
David Núñez 993b70d19a Address RFCs to #2059 2020-06-01 16:45:09 +02:00
David Núñez 968a5979ed Make test refund interactive to increase coverage. Fix a bug along the way! 2020-06-01 04:16:42 +02:00
David Núñez e04247e5af Make claiming test interactive to increase coverage 2020-06-01 04:09:55 +02:00
David Núñez 787d0ca2f2 Test claiming not available 2020-06-01 04:04:00 +02:00
David Núñez 24978b058a Improve test for worklock bid time checks, to actually test the CLI layer 2020-06-01 03:26:07 +02:00
David Núñez d42f838f7a Test worklock account selection 2020-06-01 03:03:07 +02:00
David Núñez 62b8a1f240 CI: Fix path to sampling distribution test in nightly build 2020-05-31 19:54:35 +02:00
David Núñez 80175c8751 Test interactive bid increasing 2020-05-31 19:51:10 +02:00
David Núñez 9745bdf602 Test interactive bidding. Extract some CLI strings to literature 2020-05-31 19:51:10 +02:00
David Núñez b023e752b3 CLI tests: Correct user input, don't pass env vars 2020-05-31 19:51:10 +02:00
David Núñez 6e2ef561b5 Improve valid bid test: make it more a CLI/Bidder integration test
Also, input is supposed to be denominated in ETH
2020-05-31 03:24:56 +02:00
David Núñez 6384a198af Mark some tests as FIXME as they are testing the Bidder, not the CLI 2020-05-31 03:24:53 +02:00
K Prasch f94bed6a22
Merge pull request #1923 from p2p-org/feat/event_metrics
Feat/event metrics
2020-05-29 12:21:23 -07:00
David Núñez 6145ea0d62
Merge pull request #1944 from nucypher/kerabatsos
[EPIC] Kerabatsos - Documentation Before Mainnet
2020-05-29 20:34:36 +02:00
derekpierre 00a5c2cd26 Respond to RFCs in #1944.
Co-authored-by: David Núñez <david@nucypher.com>
2020-05-29 09:40:44 -04:00
programmer10110 1d6e58cb4f divide get_event_metrics_collectors on separate functions 2020-05-29 15:00:00 +03:00
Bogdan Opanchuk 9ca01e346b Fix a branch in get_all_active_stakers() for the new return type 2020-05-28 17:46:33 -07:00
Bogdan Opanchuk 7eba12f2ad Fix typing in get_all_active_stakers() and make it return a dict instead of a list of lists 2020-05-28 17:46:33 -07:00
Bogdan Opanchuk 8f66cee6ba Fix typing in ContractAgency 2020-05-28 17:46:33 -07:00
Bogdan Opanchuk 24c45ce0d8 Fix return value annotation of a contract (check that it is correct!) 2020-05-28 17:46:33 -07:00
Bogdan Opanchuk 2c127dd4fd Fix type signature - the only return statement returns a VersionedContract 2020-05-28 17:46:33 -07:00
Bogdan Opanchuk 591e8b7b3d Cast int (the result of a sum) back to NuNits 2020-05-28 17:46:33 -07:00
Bogdan Opanchuk ca9c27c712 Simplify conflicting type annotations
1) In the signature, having VersionedContract in the union is supefluous, since it is derived from Contract
2) In the condition, restricting the return type to VersionedContract does not do anything,
since the function is supposed to work with any Contract object.
2020-05-28 17:46:33 -07:00
Kieran Prasch 30e6bc60eb Improves agent typing accuracy and precision in agents modules.
Co-authored-by: Bogdan Opanchuk <bogdan@opanchuk.net>
2020-05-28 17:46:33 -07:00
Kieran Prasch 6b95b552f1 Fixes agent type usage 2020-05-28 17:46:33 -07:00
Kieran Prasch c86013ddb6 registry_contract_name -> contract_name 2020-05-28 17:46:33 -07:00
Kieran Prasch 3546f96e8d Annotate excluded contract functions on agents 2020-05-28 17:46:33 -07:00
Kieran Prasch db42705a57 Fixes annotation syntax errors and several agent-related interfaces. 2020-05-28 17:46:31 -07:00
Kieran Prasch e5f167eb20 Introdice types module: reflect on-chain structs. 2020-05-28 17:45:35 -07:00
Kieran Prasch bb3a0aa083 Hardcore typing for agents. 2020-05-28 17:45:35 -07:00
K Prasch 26b07fc4e9
Merge pull request #2033 from fjarri/mock_stdin
IO test fixtures change: mock stdin directly instead of `click` functions, use `capsys` for stdout
2020-05-28 17:41:51 -07:00
derekpierre f4500fbeed Respond to RFCs in #1944.
Co-authored-by: David Núñez <david@nucypher.com>
2020-05-28 19:38:20 -04:00
derekpierre 3fec6a77e2 Fix broken command on MacOS 2020-05-28 17:44:08 -04:00