Commit Graph

1761 Commits (c2408eddce1f7ebba8114b61cc5f66561305ec6d)

Author SHA1 Message Date
tuxxy c2408eddce Add __del__ to BlockchainPower 2018-06-26 01:58:04 -06:00
tuxxy 91314b4524 Add sign and verify methods to the ControlCircumflex 2018-06-26 01:57:51 -06:00
tuxxy 5ca7bb8e7e Add sign_message method 2018-06-26 01:55:04 -06:00
tuxxy b7215a6b0c Build out BlockchainPower with unlock_account method 2018-06-26 01:55:04 -06:00
Tux c185f66485
Merge pull request #330 from KPrasch/builds
CircleCI: Split-up coverage reporting, add new pipenv support
2018-06-26 00:49:23 -07:00
Kieran Prasch 0a1a89f65f Correct Pipfile inline table usage 2018-06-26 00:34:27 -07:00
Kieran Prasch 8328d91cb8 Remove coverage reporting for solidity code 2018-06-25 15:56:45 -07:00
Kieran Prasch df9953e726 add coveragrc 2018-06-25 15:34:15 -07:00
Kieran Prasch 923efdea1b Split-up coverage reporting, add new pipenv support 2018-06-25 15:29:09 -07:00
K Prasch fc5d3d277d
Merge pull request #318 from jMyles/learning-loop
Learning Loop Part II: Rise of the Federated Policies
2018-06-25 01:53:31 -07:00
jMyles 5985e7255a A couple of cleanups pursuant to comments on the PR. 2018-06-23 14:33:49 -07:00
jMyles edba3a336d Using to_canonical_address instead of unhexlify. 2018-06-23 14:33:46 -07:00
jMyles cced06514d Catching tests up with federated logic. 2018-06-22 20:28:08 -07:00
jMyles fb8747274a Totally new logic for test_grant for federated case. 2018-06-22 20:27:43 -07:00
jMyles 742a00e799 Deprecating testerchain in favor of three_agents. Using three_agents in ursulas fixture. This fixture now returns a set. 2018-06-22 20:27:15 -07:00
jMyles 2d9d25ab8a Using token airdrop and dropping MockTokenAgent. 2018-06-22 20:23:18 -07:00
jMyles 03acf825a4 Passing middleware into Policy.publish() 2018-06-22 20:18:06 -07:00
jMyles 594180839b Fixing KFrag attachment loop. 2018-06-22 20:18:06 -07:00
jMyles a2bf097eff Adding Alice's signature to ID for TreasureMap. A tiny morsel of #172. 2018-06-22 20:18:06 -07:00
jMyles 73702e97e0 Passing value into Arrangement. Turning buckets into sets. 2018-06-22 20:18:06 -07:00
jMyles 766acca7bf known_nodes is now private _known_nodes. 2018-06-22 20:18:06 -07:00
jMyles 6fc2777d48 We don't need to separately publish the TreasureMap; that happens in publish() now. 2018-06-22 20:18:06 -07:00
jMyles d932c18c08 Taking ursulas in grant to pass to make_arrangements. 2018-06-22 20:18:06 -07:00
jMyles a3fa74e537 Using known_nodes for FederatedPolicy. 2018-06-22 20:18:06 -07:00
jMyles 323c8c2505 Moving node shuffling logic up to its own method. 2018-06-22 20:18:06 -07:00
jMyles e7375e0d98 Removing is_federated and using federated_only instead. 2018-06-22 20:18:06 -07:00
jMyles fb1bc83944 public_address logic for either federated or decentralized mode. 2018-06-22 20:18:06 -07:00
jMyles 1d42a797b6 publish() for Federated logic. 2018-06-22 20:18:06 -07:00
jMyles f5f6ef00f6 Moving _consider_arrangements up to Policy. 2018-06-22 20:18:06 -07:00
jMyles 97d1abc598 Now composing Arrangement class object on Policy subclass in order to get the right one every time. Also, introducing FederatedPolicy! :-) 2018-06-22 20:18:06 -07:00
jMyles bc1c89cef6 Logic for getting periods from expiration is now Blockchain-only. 2018-06-22 20:18:06 -07:00
jMyles 1bbaf2c55f Proper error for scenario where, in the middle of a run, we can't find a teacher node. 2018-06-22 20:18:06 -07:00
jMyles d739bc6ffa Shipping splitter for public information with ProxyRestServer. 2018-06-22 20:18:06 -07:00
jMyles 126adccba3 Using public address as bytes (instead of strictly casting ether address to bytes). 2018-06-22 20:18:06 -07:00
jMyles b2e5d9958e Evolved tests and fixtures. Mocking some blockchain logic and discovered Ursulas with learning loop. 2018-06-22 20:18:06 -07:00
jMyles 6e3814cee2 token_airdrop as a utility function. 2018-06-22 20:17:57 -07:00
jMyles 6b0e3cf92d We don't even use MockTokenAgent anymore. 2018-06-20 14:57:29 -07:00
jMyles e867f495b9 New splitting logic for Arrangement; including ether address. 2018-06-20 14:57:29 -07:00
jMyles 4a1c208742 Don't need ot pass db name again; it's already defined on the Policy. 2018-06-20 14:57:28 -07:00
jMyles a338d526b7 Property / setter logic for public_address. 2018-06-20 14:55:29 -07:00
jMyles d1b90f2edd _known_nodes are by public address now. 2018-06-20 14:55:29 -07:00
jMyles 5b74e7e96b These Arrangements are already in their respective bucket; no need to extend them again. 2018-06-20 14:55:29 -07:00
jMyles 23dd5fee5f Calculating duration (in periods) from expiration (MayaDT). Also, setting aside spare Ursulas for the moment. 2018-06-20 14:55:29 -07:00
Kieran Prasch f785394482 Remove stale dht publication method. 2018-06-20 12:33:53 -07:00
szotov 944a9db66b Added constant for policy id length, fixed descriptions of some methods 2018-06-20 10:14:25 -07:00
szotov f6736da2bf Reduces size of variables in contracts 2018-06-20 10:13:47 -07:00
szotov e0139897db Improved the sample method in MinersEscrow and in agent. Some refactoring 2018-06-20 10:13:47 -07:00
szotov f1b5f70214 Fixed script to estimate gas usage 2018-06-20 10:13:47 -07:00
szotov 2999110c16 Removes minerIds and datastore 2018-06-20 10:13:44 -07:00
jMyles e4253b6c5d Including Ursula ether address as part of public information. 2018-06-20 10:13:26 -07:00