Commit Graph

483 Commits (fce814f8d9ab2f675cb7853399e5aaae85044273)

Author SHA1 Message Date
Kieran Prasch c7895419fb Moves test utils module, fixes spawn_miner args 2018-04-21 22:33:19 -07:00
Kieran Prasch 01081b9873 Directly inject web3 into ContractProviders, Flatten pytest fixtures, setting session scope where possile; Preserves w3 instanes test accounts for use with geth 2018-04-21 22:32:59 -07:00
Kieran Prasch 2233fb4f2a Catch ValueError for geth IPC Transaction failure. 2018-04-21 22:32:36 -07:00
Kieran Prasch 2973b8f362 Specify origin tx args in contract test transactions 2018-04-21 22:32:23 -07:00
Michael Egorov 321f722abd Geth bugfixes:
* address argument name has changed in unlockAccount
* ethers expressed in wei, not ETH
* ValueError is raised when trying to do gas estimate for a failing
  transaction, not TransactionFailed
2018-04-21 22:31:53 -07:00
Kieran Prasch afb3d3360c Reorganize code, add docstrings, fix ContractDeployer fixture args. 2018-04-21 22:31:01 -07:00
Kieran Prasch 0deb86639b Splits geth providers into auto and manual fixtures w/assertions. 2018-04-21 22:30:45 -07:00
szotov 5c56d4311e Fixed escrow and integration tests 2018-04-21 16:59:58 +03:00
szotov 9e5a4ba376 Fixed policy and government tests 2018-04-20 14:25:39 +03:00
K Prasch 04d87b9b7f
Merge pull request #253 from KPrasch/solc-upgrade
Upgrade solc; Deprecate provider.get_or_deploy
2018-04-20 02:25:25 -07:00
Kieran Prasch 9b145941ad ContractProvider and Web3 API updates 2018-04-20 02:17:13 -07:00
Kieran Prasch 02e23b9fef Merge remote-tracking branch 'upstream/solc-pipeline' into solc-upgrade 2018-04-20 01:42:14 -07:00
Kieran Prasch b8419744a4 Deprecates get_or_deploy_contract 2018-04-20 01:30:26 -07:00
Kieran Prasch 9f0859cf66 Updates contract constructors and event emissions to solc v0.4.23 2018-04-20 01:30:18 -07:00
Kieran Prasch e25caf2e89 Use import rebindings to extract the dispacter proxy and zeppelin sub-repos. 2018-04-19 17:42:01 -07:00
Kieran Prasch f67f893d21 Generate compiler source paths with os module, injectable additional contract source dirs. 2018-04-19 17:36:56 -07:00
Kieran Prasch c4625d1d24 Pytest Geth + PyEVM fixtures. 2018-04-19 17:35:21 -07:00
Kieran Prasch 4448ffb636 Generate compiler source paths with os module, injectable additional contract source dirs. 2018-04-19 12:41:16 -07:00
szotov 7944c3da67 Fixed Registrar.get_contract method, added optimization option to contract compilation 2018-04-19 21:06:49 +03:00
jMyles f4d43470d2 DelegatingPower now derives its Keypairs from a label. 2018-04-18 23:56:13 -07:00
jMyles 7890dcc2b2 Several touchups to Finnegan's Wake logic and the high-level APIs that power it. 2018-04-18 23:23:47 -07:00
Kieran Prasch 9ad74ec8a6 Pytest Geth + PyEVM fixtures. 2018-04-17 10:51:44 -07:00
Kieran Prasch f07ed43a32 Contract test Web3 API Updates; 2018-04-17 10:50:53 -07:00
jMyles 50915fc1f2 Removing "random" Ursulas from tests; selecting by rest_port instead. 2018-04-17 02:44:10 -07:00
jMyles 3f55470870 Tests for new Bob and TreasureMap logic. 2018-04-17 01:53:46 -07:00
jMyles 13ff2e642c Actors can now discover all known nodes from a given node. Fixes #175. 2018-04-17 01:52:30 -07:00
tuxxy 6f64b3acc7 Refactor Registrar to handle addresses as keys; Add some minor fixes to tests 2018-04-16 02:23:56 -07:00
Kieran Prasch 67812e5cd9 Merge remote-tracking branch 'tuxxy/solc-populus-bridge' into solc-pipeline 2018-04-16 00:58:50 -07:00
Kieran Prasch fc22d51eac Cleanup tests, web3 -> w3, cleanup imports. 2018-04-16 00:23:20 -07:00
Kieran Prasch f63f77f5b3 Refines solidity pipeline, improves names, builds injectable compiler class. 2018-04-16 00:22:18 -07:00
tuxxy 84f9bd7864 Refactor Registrar to handle addresses as keys; Add some minor fixes to tests 2018-04-16 01:19:05 -06:00
Kieran Prasch 8b00b0a1cd Massage Token/Issuer contract tests into running again. Removes .lower calls, update web3 events API to use event Filters. 2018-04-15 16:21:29 -07:00
tuxxy b9d460a719 Apply API updates to eventFilters 2018-04-15 16:20:44 -07:00
tuxxy 8748a19893 Fix solidity test contracts path; Capture KeyError for Provider method 2018-04-15 16:06:10 -07:00
tuxxy 485d2a6f01 Start to update contract tests to pure web3 api; *borrowing* populus namespacs. 2018-04-15 16:05:12 -07:00
Kieran Prasch 7fab7eb18d Update contract test to kms provider api usage; Remove Populus API calls 2018-04-15 16:04:43 -07:00
Kieran Prasch c2d6e6baca Pytest session fixture, delegating sol compiler control at test runtime 2018-04-15 16:04:43 -07:00
Kieran Prasch efbac1df48 Removes Ethereumconfig, inject web providers into blockchain classes. Provider compiler control and web3 contract cache 2018-04-15 16:03:48 -07:00
Kieran Prasch 9cd500bea5 Remove populus from Pipfile (also add ipbd) 2018-04-15 16:03:48 -07:00
tuxxy d4b88a7a12 Get tests running with some changes - Add minimal EthereumConfig back as a holdover 2018-04-15 16:03:18 -07:00
tuxxy 012cf15c1d Add get_contract_data method to find contracts on the Registrar chain via address or name 2018-04-15 15:59:54 -07:00
Kieran Prasch c9a7954e90 Consolidate test fixtures and utilities, optimize imports 2018-04-15 15:28:28 -07:00
Kieran Prasch 83f116a5d1 Pick PR#22 from kms-eth; Further smooths file tree and namespaces. 2018-04-15 15:26:18 -07:00
Kieran Prasch b713d2d8e8 Merge remote-tracking branch 'upstream/master' into solc-pipeline 2018-04-15 12:34:44 -07:00
Kieran Prasch 78feadd0c4 Removes .lower calls, update web3 events API to use event Filters. 2018-04-15 12:33:33 -07:00
Kieran Prasch 991a2f7687 Massage Token/Issuer contract tests into running again. 2018-04-14 23:34:12 -07:00
tuxxy f2a98ffc67 Push up everything I have so far and use eventFilters 2018-04-14 22:44:51 -06:00
Kieran Prasch 05571c1ec8 Fix waiting calls 2018-04-14 03:09:44 -07:00
Kieran Prasch efd4ec0177 Start to update contract tests to pure web3 api; *borrowing* populus namespacs.; Fixes multi-dire compiler bug. needs review. 2018-04-14 01:33:39 -07:00
Kieran Prasch 47170e1292 Merge remote-tracking branch 'tuxxy/solc-registrar' into solc-pipeline 2018-04-13 17:35:38 -07:00
tuxxy 91e91fd6b5 Add tester_registrar and tester_provider pytest fixtures 2018-04-13 18:34:48 -06:00
Kieran Prasch 1a7fa8e75c Update contract test api calls 2018-04-13 17:09:40 -07:00
Kieran Prasch 227c8493ef Update contract test to kms provider api usage 2018-04-13 16:57:57 -07:00
tuxxy ee24326619 Remove Populus API calls and use new API 2018-04-13 17:53:47 -06:00
Justin Holmes 0bae3d04df
Merge branch 'master' into master 2018-04-13 16:22:26 -07:00
Kieran Prasch 33a166bb20 Merge remote-tracking branch 'tuxxy/solc-registrar' into solc-pipeline 2018-04-13 15:34:20 -07:00
Kieran Prasch 9b2813f372 Pytest session fixture, delegating sol compiler control at test runtime 2018-04-13 15:32:01 -07:00
Kieran Prasch 506d7ed921 Provider compiler control and web3 contract cache; Provider interacting with registrar 2018-04-13 15:27:49 -07:00
Kieran Prasch 041438a320 Remove populus from Pipfile (also add ipbd) 2018-04-13 15:21:15 -07:00
tuxxy c043dc2867 Merge remote-tracking branch 'nucypher/master' into solc-registrar 2018-04-13 16:08:26 -06:00
tuxxy b8085d0d0c Get tests running with some changes 2018-04-12 21:29:18 -06:00
tuxxy c490445f8b Add tests for Registrar and the utility functions 2018-04-12 20:59:06 -06:00
tuxxy a60032a097 Add tempfile_path fixture 2018-04-12 20:59:06 -06:00
Kieran Prasch 5ec9760a83 Consolidate test fixtures and utilities, optimize imports 2018-04-12 20:59:03 -06:00
Kieran Prasch 7c356ae6bd Pick PR#22 from kms-eth; Further smooths file tree and namespaces. 2018-04-12 20:58:15 -06:00
jMyles cfb36163b6 DataSource now takes the public key of the Policy, not the whole Policy. Thanks @michwill. 2018-04-12 19:19:28 -07:00
jMyles da4966524c Test now uses DataSource. Alice no longer needs to be online in order for a DataSource to send messages to Bob. 2018-04-12 19:19:28 -07:00
jMyles fb826ef349 UmbralMessageKit can now be aware of a policy_pubkey. 2018-04-12 19:19:28 -07:00
jMyles 0a32f7f534 Moving Enrique and SignatureStamp out of characters. Enrique is now DataSource; SignatureStamp now lives in signature. 2018-04-12 19:19:28 -07:00
jMyles 67376fe607 Using Alice's DelegatingPower to make a Policy. 2018-04-12 19:19:28 -07:00
jMyles 9cc25929c8 No more as_b64 for UmbralPublicKeys. 2018-04-12 19:18:42 -07:00
Kieran Prasch 6959516ba6 Consolidate test fixtures and utilities, optimize imports 2018-04-11 20:26:03 -07:00
Kieran Prasch 1849b282c0 Pick PR#22 from kms-eth; Further smooths file tree and namespaces. 2018-04-11 20:26:03 -07:00
Justin Holmes e27f174ad3
Merge branch 'master' into master 2018-04-10 19:30:06 -07:00
Kieran Prasch adfa29609e Manually merges inter-codebase tests, setup, pipfile, config classes, and sol source, respectively updates imports. 2018-04-10 17:03:21 -07:00
jMyles 5b46b9d17a Moves and fixes to support KMS logic with unified ETH codebase. 2018-04-10 00:34:18 -07:00
jMyles 6b3f9a797c This test just can't work for now. 2018-04-07 22:13:45 -07:00
jMyles 1ea14e514b Switching to maya for most DT things. 2018-04-07 22:13:45 -07:00
tuxxy 95990bb839 Merge remote-tracking branch 'nucypher/master' into crypto-config 2018-04-05 17:59:23 -06:00
jMyles b3acaf50bc New verify_from() logic. Fixes #174.
Cleaning up and sanding kit and verify_from() logic.
2018-04-05 17:23:17 -06:00
jMyles 7f21117cb7 BytestringSplitter is now its own project. 2018-04-05 17:23:17 -06:00
jMyles b35e5b9840 Using constantSorrow for constants. 2018-04-05 17:23:17 -06:00
jMyles 9c1e6c13cc cryptoKits is now its own project. 2018-04-05 17:23:17 -06:00
tuxxy 448e2d7223 Begin integration of KMS-Ethereum codebase into KMS 2018-04-05 17:21:23 -06:00
jMyles 11263663f3 Special value constants changed to constantSorrow; lengths adjusted. Also, new test for Signature comparison. 2018-04-05 10:23:28 -07:00
jMyles d3884518f2 Cleaning up and sanding kit and verify_from() logic. 2018-04-01 22:44:00 -07:00
tuxxy 06539daedd 'Contract' -> 'Arrangement' 2018-04-01 22:16:51 -06:00
jMyles f789aaf7f7 New verify_from() logic. Fixes #174. 2018-04-01 20:17:47 -07:00
jMyles fc99ef2e27 BytestringSplitter is now its own project. 2018-04-01 18:52:30 -07:00
jMyles eb4605d573 Using constantSorrow for constants. 2018-04-01 18:52:08 -07:00
jMyles 8d2bd2d77d cryptoKits is now its own project. 2018-04-01 18:50:53 -07:00
jMyles b4e34c0981 Using new "to cryptography" APIs. 2018-03-18 00:42:28 -07:00
jMyles 8e0899473f Test for generating cert. 2018-03-06 17:54:11 -08:00
jMyles 03632d4927 We're not using storage anymore. 2018-03-01 00:15:27 -08:00
jMyles bed029c480 Removing imports that are no longer used. 2018-02-28 22:28:31 -08:00
jMyles 17bbf816cd Bob no longer tracks a single Alice as an attribute; instead, he tracks an Alice with each Policy. 2018-02-28 22:04:37 -08:00
jMyles f5e3f978b1 Better Keystore instantiation time, and also no need to manually start servers anymore (as they run on the same thread). 2018-02-28 17:40:49 -08:00
jMyles f4a98bf942 Touching up some tests a bit. 2018-02-28 17:40:49 -08:00
jMyles 7e567c24f6 Introducing named DBs per Ursula. 2018-02-28 17:37:27 -08:00
jMyles 5dcf405c54 Sharpening NetworkyStuff. 2018-02-28 17:37:27 -08:00