Commit Graph

1940 Commits (8f5f1bdc8a9b44f3da844edc322a3fa1a6d37a1c)

Author SHA1 Message Date
jMyles fe840cfd13 Test showing multiple messages from multiple Enricos in a single Adventure. 2020-02-08 04:27:34 -08:00
jMyles 04a96b54a2 Test showing failure of multiple-Capsule retrieval - see #1359. 2020-02-08 04:27:34 -08:00
jMyles f87eb322f9 Pausing console logging instead of stopping and starting. 2020-02-08 04:27:34 -08:00
jMyles e73e1e5765 Temporarily ceasing console logging right before click invocation. 2020-02-08 04:27:34 -08:00
jMyles bd679888d9 Adding logging around consecutive retrieval test. 2020-02-08 04:27:34 -08:00
jMyles 7a115f65f0 Logging statements around Bob patching. 2020-02-08 04:27:34 -08:00
jMyles 1e33857dd5 Battle of the mocks: another finally block. 2020-02-08 04:27:34 -08:00
jMyles 7ac8374c07 Passing ciphertext(s) as positional. 2020-02-08 04:27:34 -08:00
jMyles 0cdcc523b7 Re-patching LocalContractRegistry.read in a finally block. Fixes #1346. 2020-02-08 04:27:31 -08:00
jMyles ce86d7dd0f capsule_side_channel() doesn't return the Enrico anymore; it's composed. 2020-02-08 01:18:51 -08:00
jMyles bd49d39696 blockchain bob using new retrieve API. 2020-02-08 01:18:51 -08:00
jMyles 067369ed45 Various bugfixes and other accounting for changes since the cherry-picks below. 2020-02-08 01:18:51 -08:00
jMyles c3ea0377e0 Have Bob retrieve again, just to be absolutely clear that it now works back-to-back by default. 2020-02-08 01:18:51 -08:00
jMyles 6c73075867 I don't like the sound of that. 2020-02-08 01:18:51 -08:00
jMyles 1a34a2a60a New Bob CLI test to show retrieve(). 2020-02-08 01:18:51 -08:00
jMyles 70952329c3 Unpacking message kits into retrieve(). 2020-02-08 01:18:51 -08:00
jMyles 24ab7a6e4f Test showing multiple-Enrico retrieve. 2020-02-08 01:18:51 -08:00
jMyles dc202da06e Include enrico instance when resetting capsule_side_channel for test convenience. 2020-02-08 01:18:51 -08:00
jMyles 447b9b6e5c We don't need the temporary download_registry fix anymore. 2020-02-08 01:18:51 -08:00
jMyles 5f0c7ce5ef Several test fixes, most notable including that, in the capsule_side_channel fixture, we now keep the same enrico until it is reset(). 2020-02-08 01:18:51 -08:00
jMyles da2d2a0be1 Showing multiple retrievals in network without retaining CFrags. 2020-02-08 01:18:50 -08:00
jMyles 3b9cb9212a Better WorkOrder repr; updating tests to be more precise for replete WorkOrders. 2020-02-08 01:18:50 -08:00
jMyles 9acac0cb0d Saving replete WorkOrders where appropriate. 2020-02-08 01:18:50 -08:00
jMyles c4937b78bf Introducing designation of a WorkOrder that is 'replete' with CFrags for each PRETask. 2020-02-08 01:18:50 -08:00
jMyles 74fa1803ab Fixing up retrieve() params, adding type hints. 2020-02-08 01:18:50 -08:00
jMyles 404446b7ac Removing the 'cache' conceptr from work_orders_for_capsule. 2020-02-08 01:18:50 -08:00
jMyles 305fffdbf6 Single-track for incomplete WorkOrders. 2020-02-08 01:18:50 -08:00
jMyles 1957507a09 Not saving pending WorkOrders anymore; only completed. 2020-02-08 01:18:50 -08:00
jMyles c74f465e8d Always include completed WorkOrders. (Though we'll remove this entirely soon.) 2020-02-08 01:18:50 -08:00
jMyles f507952a14 Starting to separately store WorkOrders on Bob. 2020-02-08 01:18:50 -08:00
jMyles 55f96bdc38 Splitting the argument previously called 'cache' into three more coherent and granular parameters. 2020-02-08 01:18:50 -08:00
jMyles 677c8ddcfb When generating WorkOrder, if CFrags are being retained, return two tuples of WorkOrders - one complete, the other incomplete. Also some refactoring. 2020-02-08 01:18:50 -08:00
jMyles 577dc0fe0a Test showing complete flow of both Bob modes. 2020-02-08 01:18:50 -08:00
jMyles 7aab0c64c6 Test showing that Bob can't partially retrieve and then resume without caching. 2020-02-08 01:18:49 -08:00
jMyles 9aaf696fb5 Bob retrieves again! 2020-02-08 01:18:49 -08:00
jMyles adba29ec1b Affirmatively setting reuse_already_attached to False to show that this works the first time. 2020-02-08 01:18:49 -08:00
jMyles 630dec68c0 A test for Bob using a CFrag attached to a previously completed WorkOrder. 2020-02-08 01:18:49 -08:00
jMyles 78bad1cad1 Fixing up frag handling tests for new API. 2020-02-08 01:18:49 -08:00
jMyles a0b5ea7393 Testing show successful second retrieval. 2020-02-08 01:18:49 -08:00
jMyles 83e44a63f2 Not necessarily generating new WorkOrders anymore; maybe looking them up. And they aren't necessarily 'generated' anymore; they're instead just known to be useful. 2020-02-08 01:18:49 -08:00
jMyles 0cb4f71709 Beginnings of a test; clearer logs. 2020-02-08 01:18:49 -08:00
Kieran R. Prasch 22ccdb4d68 Rebase touchups; bobkey spec bugfix. 2020-02-07 13:26:40 -08:00
David Núñez c756b4ef14 Use new agency_local_registry fixture for CLI tests, and fix broken tests
Previously, we were supporting the consistency of our registry usage in a weird combination of fixtures' side-effects. Not anymore. CLI tests should use agency_local_registry, since it's a file-based mirror of the test_registry fixture when agency is assumed.
2020-02-07 11:28:34 +01:00
David Núñez 1356346533 Fix test for CLI multisig deployment. Remove unused registry fixture 2020-02-07 11:22:08 +01:00
David Núñez 2f090b3b44 First pass at CLI command to build upgrade TX via MultiSig: nucypher-deploy upgrade --multisig ... 2020-02-07 11:22:08 +01:00
David Núñez 554ce00923 First pass at deploying MultiSig contract with nucypher-deploy
* Adapting ContractAdministrator to additional, optional deployers (e.g, for MultiSig)
* Adds option --parameters to nucypher-deploy that allows to pass override arguments for contract deployment. Intended usage is MultiSig constructor arguments, but can be potentially used in other contracts (e.g., custom args to NuCypherToken).
* Tests for MultiSig deployment with the CLI
2020-02-07 11:22:08 +01:00
David Núñez 0058230c3d Janitorial stuff 2020-02-07 11:22:08 +01:00
David Núñez 4aeb64486e Touches to MultiSigDeployer and MultiSigAgent. Tests for both 2020-02-07 11:22:08 +01:00
David Núñez 88a365ac18 Obtain upgrading transactions for Dispatcher.upgrade()
Uses the new BlockhainInterface.build_transaction() endpoint to construct unsigned transactions.
The unsigned transactions in this commit are the raw data that is signed by MultiSig participates during a contract upgrade.
2020-02-07 11:22:08 +01:00
David Núñez 9a6a8be976 Touches to MultiSigAgent and MultiSig actors 2020-02-07 11:22:07 +01:00
David Núñez b311430490 First pass on block confirmations at the BlockchainInterface layer - see #1194 2020-02-07 11:22:07 +01:00
damon d656142974 field validation, tests, squashed 2020-02-06 03:23:19 -08:00
Kieran R. Prasch a3ee748555 Accomodate the usage of --rate for granting via LCI specs; Post rebase cleanup. 2020-02-06 03:23:19 -08:00
damon fcb9763959 handle kwargs based requests
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
Co-Authored-By: Derek Pierre <derek.pierre@gmail.com>
2020-02-06 03:22:42 -08:00
damon 75a84ffad9 remove specifications mappings
remove specifications references
remove bad idea
2020-02-06 03:22:06 -08:00
damon 44ce4b475f move nucypher command decorator to CharacterPublicInterface
fix rpc_control_blockchain test
2020-02-06 03:21:59 -08:00
Kieran R. Prasch 71a7fc7a1c Passing RPCController tests 2020-02-06 03:21:59 -08:00
Kieran R. Prasch 763e295299 Deprecates character control decorator in favor of new command specification API (successful policy creation by RPC controller) 2020-02-06 03:21:59 -08:00
Kieran R. Prasch d34e6df0b6 Aiming to unify command specifications, controllers, validations, serilaizers with schema modeling (Needs adiitional follow up). 2020-02-06 03:21:59 -08:00
damon c9f0d6c540 fix failing test on invalid rpc input
handle TypeError in invalid RPC input
2020-02-06 03:20:50 -08:00
damon 865b547ce3 more detailed validation test 2020-02-05 11:21:33 -08:00
damon e5688bdb42 update specification validation test with new exception 2020-02-05 11:21:33 -08:00
damon e26bb7a6cf all alice control refactored, tests working 2020-02-05 11:21:33 -08:00
damon 52551da5da initial specifications refactor commit 2020-02-05 11:21:33 -08:00
K Prasch cd1466883e
Merge pull request #1645 from KPrasch/missing-worklock
Fixes #1644; Economics without Worklock enrollment
2020-02-03 13:01:56 -08:00
Kieran R. Prasch 59f369cd6b Expand worklock deployment test to cover economics instantiation before deployment. 2020-02-01 13:11:45 -08:00
Kieran R. Prasch 6081e2f2f7 Include basic html and json rendering tests. 2020-01-31 20:09:21 -08:00
Kieran R. Prasch 9554eb45a6 Implement ethSupply, Renames and Tweaks with @vzotova 2020-01-30 17:19:06 -08:00
Kieran R. Prasch ec78da448e Expose more worklock methods on agency; Adjust claim requirements.; CLI warning for small bids. 2020-01-30 14:18:18 -08:00
Kieran R. Prasch a720070c75 Adjust Bidder tests for new requirements; Use blocktime as reference. 2020-01-30 11:57:11 -08:00
Kieran Prasch c8c8b7d552 Respond to RFCs in PR #1550; Touch ups 2020-01-30 10:27:29 -08:00
Kieran Prasch f0ac200cb7 Detailing the higher level functionality of Bidder. 2020-01-30 10:27:29 -08:00
Kieran Prasch db899e8452 Relocate worklock with the rest of the cli commands 2020-01-30 10:27:29 -08:00
Kieran Prasch a6ca5cbd6f Respond to RFCs in PR #1550 2020-01-30 10:27:29 -08:00
Kieran Prasch bbcb9e649c Updates worklock API to work-based unlock without allocation deployments. 2020-01-30 10:27:29 -08:00
Kieran Prasch bb55ac05d7 Alternate suggestion for worklock claim; Fix import in estimate gas 2020-01-30 10:27:29 -08:00
Kieran Prasch df4de9d0c6 Support worklock bid cancellation via CLI - Clean up outstanding TODOs 2020-01-30 10:27:29 -08:00
Kieran Prasch b403b291de Passing worklock CLI tests: baseline, Test showing single contract deployment (sneaking in seeder as a plceholder for worklock without params ready). 2020-01-30 10:27:29 -08:00
Kieran Prasch 5570d20df5 Unblocked by dnunez - Init stake via worklock allocation and ind. registry. 2020-01-30 10:27:29 -08:00
Kieran Prasch cc9b000fa3 Tightening worklock CLI assertions based on the layer below. Blocked by inability to set-worker to worklock allocation. 2020-01-30 10:27:29 -08:00
Kieran Prasch 657bc0b9a5 Third pass on Worklock CLI under new design\ patterns 2020-01-30 10:27:29 -08:00
Kieran Prasch 606c15493a Tearing up worklock CLI for compadability with the latest implementations 2020-01-30 10:27:29 -08:00
Kieran Prasch 355d7ff887 Deprecates TestEconomics; Adds worklock supply and funding management - Extracts statistical methods to worklock agent. 2020-01-30 10:27:29 -08:00
Kieran Prasch b2bf0f487d Live coding with vicky! 2020-01-30 10:27:29 -08:00
Kieran R. Prasch fc45282964 Additional tests to cover worklock bid reading and test registry management for worklock agent test module 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 5359ca9aec Trying to use deterministic preallocation address generation via worklock in tests. 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 4652daa176 Reconstruction of worklock CLI tests (without consideration for preallocations) 2020-01-30 10:27:29 -08:00
Kieran R. Prasch 5ac52b1271 Integrating the worklock deployer with the rest of em' 2020-01-30 10:27:29 -08:00
Kieran R. Prasch ffd290cb59 Cherry-picking version 1 of the worklock CLI. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch ae0b1d1734 Adds new contract function agency for worklock: refunds, cancellation, tests to match. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch 717a84afd4 Incorporating new worklock contract functions into agents, deployers, and economics. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch 82dbfcfe89 First steps to integrate worklock deployment params via economics 2020-01-30 10:26:37 -08:00
Kieran Prasch 5c3c6a00e8 Properly bond worklock to staking escrow at deploy-time. 2020-01-30 10:26:37 -08:00
Kieran Prasch 1fe806bc57 Expand deployment class registry to include aux. contracts, Include single contract deployment CLI integration test based on WorkLock. 2020-01-30 10:26:37 -08:00
Kieran Prasch cff807eaff Bidding agent tests. 2020-01-30 10:26:37 -08:00
Kieran R. Prasch e21a2da6c1 funding method for worklock deployer 2020-01-30 10:26:37 -08:00
Kieran Prasch 496f73680a Carving out worklock agent tests. 2020-01-30 10:26:37 -08:00
Kieran Prasch cdc8696855 Baseline Worklock deployer tests. 2020-01-30 10:26:37 -08:00
David Núñez 6d3db88a2d
Merge pull request #1627 from vzotova/force-solidity-version
Single version of solidity compiler
2020-01-30 18:18:34 +00:00
vzotova f4c2c4c668 solc bash installation script -> python script, to use solc version from the code 2020-01-29 17:01:11 +03:00