jMyles
|
cc7483436d
|
Moving these splitters outta here.
|
2017-12-15 21:49:01 -08:00 |
jMyles
|
319b1f17a5
|
Instead of saving the contract in memory, saving a dict with details in preparation for a legit data store. See #127.
|
2017-12-15 21:48:18 -08:00 |
jMyles
|
8e0f9fb203
|
Ursula reconstructing contract from mock saved data.
|
2017-12-15 21:47:52 -08:00 |
jMyles
|
0bb62224ef
|
With PolicyGroup gone, there's no need for these nagging managers.
|
2017-12-15 21:47:02 -08:00 |
jMyles
|
a224487ecf
|
Exception to raise when suspicious activity is detected and there's no other obvious recourse.
|
2017-12-15 21:46:14 -08:00 |
jMyles
|
9e32c72cc1
|
Cleaning up some imports and signatures.
|
2017-12-15 11:13:08 -08:00 |
jMyles
|
032abed046
|
Cleaning up the rest of the tests to use the new models.
|
2017-12-14 21:21:51 -08:00 |
jMyles
|
20bac0393f
|
Tests shifting from Policy to Contract.
|
2017-12-14 21:21:27 -08:00 |
jMyles
|
e486d5a2b1
|
Cleaned up fixtures and reduced their scope to "module."
|
2017-12-14 21:21:09 -08:00 |
jMyles
|
9cf06c58e5
|
New names for things!
|
2017-12-14 21:20:49 -08:00 |
jMyles
|
100e7478b6
|
Some PolicyGroup methods will now live on Policy.
|
2017-12-14 21:20:24 -08:00 |
jMyles
|
3ed0495d3c
|
_accepted_contracts is a more accurate name than _active_contracts, and also opens up some other logic.
|
2017-12-14 21:19:59 -08:00 |
jMyles
|
f0fe1012b9
|
Massive redlining of PolicyGroup.
|
2017-12-14 21:19:23 -08:00 |
jMyles
|
45ffae7ea4
|
This was an hrac all along - it was never meant to be called "pfrag" except as a quick experiment.
|
2017-12-14 21:18:50 -08:00 |
jMyles
|
87d25e4ce3
|
Pushing logic to match KFrags with Contracts down into Policy.
|
2017-12-14 21:18:25 -08:00 |
jMyles
|
7dec865094
|
Updating some fixture names to remove PolicyGroup.
|
2017-12-14 20:36:52 -08:00 |
jMyles
|
d372010e0c
|
Cleaned up assertions to comport with new models.
|
2017-12-14 20:36:35 -08:00 |
jMyles
|
5a96e23d40
|
Logic to find an unassigned kFrag and assign it to a Contract.
|
2017-12-14 20:36:08 -08:00 |
jMyles
|
4cf3d8aac8
|
Much clearer logic for finding Ursulas.
|
2017-12-14 20:35:56 -08:00 |
jMyles
|
5066cd1ad7
|
Instead of taking a single Contract, find_ursulas now makes the number of Contracts needed to offer one to each Ursula.
|
2017-12-14 20:35:22 -08:00 |
jMyles
|
7dd0953fa4
|
Alice can draw up a Contract.
|
2017-12-14 20:35:05 -08:00 |
jMyles
|
d85776d80d
|
Ursula is now on Contract, now Policy.
|
2017-12-14 20:34:47 -08:00 |
jMyles
|
5d70de739d
|
More logic updates from Contract.
|
2017-12-14 20:34:30 -08:00 |
jMyles
|
ef4cf13dc6
|
Special error for the scenario in which we have already contacted *too many* Ursulas.
|
2017-12-14 20:33:56 -08:00 |
jMyles
|
5ba1435c21
|
Moving TreasureMap to Policy (big one! :-) )
|
2017-12-14 20:33:41 -08:00 |
jMyles
|
8be2c5cf4c
|
Contract now gets updated wit REST payload instead of created anew (because Ursula has already saved it).
|
2017-12-14 20:33:12 -08:00 |
jMyles
|
775da4c670
|
Contract is identified by hrac.
|
2017-12-14 20:32:59 -08:00 |
jMyles
|
4927dec9e5
|
Ursula saves contract (although we'll want to do this in a datastore - see #127)
|
2017-12-14 20:32:22 -08:00 |
jMyles
|
567a9734fe
|
Ursula saves KFrag from new Contract class.
|
2017-12-14 20:32:09 -08:00 |
jMyles
|
4e25a0ac04
|
Much better grant logic.
|
2017-12-14 20:31:54 -08:00 |
jMyles
|
791312c9d4
|
Method for finding Ursulas needs a rewrite (and, of course, later, to have the blockchain component plugged in).
|
2017-12-14 16:53:54 -08:00 |
jMyles
|
91d46aae6a
|
TODOs around Ursula's Contract storage.
|
2017-12-14 16:53:44 -08:00 |
jMyles
|
2869e1e5e1
|
Contract takes an Alice directly now, rather than a Policy.
|
2017-12-14 16:53:20 -08:00 |
jMyles
|
2667d0c131
|
Rolling the remaining PolicyGroup / PolicyOffer details into Contract.
|
2017-12-14 16:52:58 -08:00 |
jMyles
|
0a9002893e
|
For now, Ursula stores Contracts in a dict.
|
2017-12-14 16:52:36 -08:00 |
jMyles
|
0fd71bf07b
|
Enact logic to reflect new Contract.
|
2017-12-14 12:50:12 -08:00 |
jMyles
|
fdce4e089c
|
HRAC logic moved to Policy. PolicyGroup is losing weight! :-)
|
2017-12-14 12:49:50 -08:00 |
jMyles
|
4bcec28347
|
Moving from_ursula (ie, "other end of the wire" logic) to Contract.
|
2017-12-14 12:49:14 -08:00 |
jMyles
|
346883524a
|
Ursula reconstructs the Contract at the other end of the wire.
|
2017-12-14 12:46:36 -08:00 |
jMyles
|
1c677efb6a
|
Moving the rest of the enact logic to Policy.
|
2017-12-14 12:15:36 -08:00 |
jMyles
|
54d593f536
|
Rethinking PolicyOffer more broadly - it's now a Contract, which is able to formulate its own payload.
|
2017-12-14 12:15:10 -08:00 |
jMyles
|
021f7a25d5
|
.enact() for Policy
|
2017-12-14 12:14:37 -08:00 |
jMyles
|
f68bd91510
|
Policy ID is immaterial now. Closes #38 wontfix.
|
2017-12-14 11:40:46 -08:00 |
jMyles
|
f5abf099af
|
New find_n_ursulas method for Policy.
|
2017-12-14 11:40:23 -08:00 |
jMyles
|
56b2fab5bc
|
Moving activate to PolicyOffer.
|
2017-12-14 11:40:09 -08:00 |
jMyles
|
5638af4e9e
|
Eh, this exception has lived in the wrong place its whole life.
|
2017-12-14 11:39:38 -08:00 |
jMyles
|
1fb92890bb
|
Making KFrag hashable; preparing to use it as a key in `_active_ursulas`.
|
2017-12-14 11:39:17 -08:00 |
jMyles
|
c4135b520f
|
Alice passes uri and kFrags to make a Policy.
|
2017-12-14 11:22:20 -08:00 |
jMyles
|
847a0e0e99
|
Policy now takes multiple kFrags and a URI as arguments.
|
2017-12-14 11:22:00 -08:00 |
jMyles
|
f5a0db8603
|
Moving craft_offer to Policy.
|
2017-12-14 11:21:37 -08:00 |