New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coffee #286
Merged
Coffee #286
Changes from all commits
Commits
Show all changes
239 commits
Select commit
Hold shift + click to select a range
6e751f6
Renames(mostly) NetworkyStuff to NetworkMiddleware.
KPrasch ff17d1f
Further integrate TokenActors and Characters with co-op scheme
KPrasch 001cf45
Leave a future hook for custom solc compile error handling
KPrasch 5859f0f
deprecate capabilities
KPrasch df6346c
Deprecates NuCypherDHT server, move to middleware module. Remove stal…
KPrasch 32be47e
Use constant_sorrow conf singelton-style constants; eliminates consta…
KPrasch 0f9ddb9
NucypherConfig actor entry point; Use remaining miner/token constants…
KPrasch 7891588
Keep tests up-to-date; Create airdrop and deploy fixtures; Fix additi…
KPrasch 8b59b9e
SolidityCompiler compile-time exception handling
KPrasch a41d6f4
Updates and document TokenActors
KPrasch d2f0b4a
Refreshes MinerEscrow's node datastore for use with dht_keys/ursula_id
KPrasch e87bbbf
Return blockchain interface and configuration values to Blockchain cl…
KPrasch 1a56767
Renames ContractInterface to ControlCircumflex, as Blockchain Interfa…
KPrasch cc3aa2a
Pushes dht_server attachment down to Ursula, off others; Cleanup stal…
KPrasch 10483cc
Refactor config classes for use alongside entities.
KPrasch 550a8cc
Refactor Policy and Arrangement methods to play nice with the blockch…
KPrasch 043e158
Start from_configuration classmethod strategy
KPrasch 8a65ca1
Deprecated compadability fixtures, updates contract tests to testecha…
KPrasch 078d39d
Update entity tests and utils to testerchain.interface api
KPrasch 44952cd
Introduces blockchain network elemtns to higher-level character tests…
KPrasch e37de07
Begins deprecation of alice publishing Tmap to DHT; Post rebase cleanup.
KPrasch e57b65b
Moving Finnegan's Wake demo to make it more obvious.
jMyles 8e86591
BlockchainArrangement inherits from Arrangement.
jMyles 89c6ea5
Arrangement is now top-level. Removing deposit from most places.
jMyles a02a252
Style fixes.
jMyles 196e2bc
ArrangementResponse never really made sense.
jMyles 00d0e64
Goodbye nucypher_test_config.
jMyles 8dc1a37
BlockchainPolicy now inherits from Policy.
jMyles 8041527
Explicit inheritance to make sure Character gets its args and kwargs.…
jMyles 9fdfec4
Ethereum address didn't work as a Kademlia Node ID without being dige…
jMyles 7d8b07d
from_rest_url now needs Middleware. Sensible.
jMyles 5328bda
Passing Alice's pubkey to verify CFrags in Finnegan's Wake demo.
jMyles 8c360bb
Allowing explicit federated_only condition.
jMyles 533874f
Freshening up SandboxNetworkMiddleware.
jMyles 7ddb9f2
Some style and naming fixes.
jMyles 37b32d5
Need to raise some kind of error if the response is a no-go.
jMyles 8365719
Bob sets correctness keys right away in retrieve().
jMyles ea4c8e6
Logic for StrangerStamp scenario in keypair.
jMyles e6072e1
Some fixes pursuant to a recent refactor.
jMyles 2c0a844
Need to set aside the ProxyRESTServer cooperative inheritance for the…
jMyles 94d94d3
Additional deprecation of alice DHT usage.
KPrasch e2eb556
Middleware -> RestMiddleware
KPrasch 4af2037
Decouple blockchain operations, expand Policy and Arrangement types.
KPrasch a0681c7
Include miner datastore in Miner's init and cache it.
KPrasch 820f41b
Blockchain make arrangement lock periods, and consideration
KPrasch 31f07e9
Subclass UmbralPrivate key, Use Umbral keys to make test accounts.
KPrasch 1fc9965
Locate selected ursulas from known nodes.
KPrasch db5856f
Lazify reading the miners contract datastore with a cached iterator.
KPrasch 616a300
Update miner contract datastore tests with caching ability
KPrasch c185784
Update actor tests with testerchain renaming.
KPrasch 7a35c4b
Hack together MockRestMiddleware, temp fix until implementing node le…
KPrasch 8bc795e
Agent validation and self-awareness, and documentation.
KPrasch 3045f1f
Thins PolicyAuthor, recruit mutates itself, for uptake by node learni…
KPrasch 4016a8c
known node_id routing, for dual-dict node storage, will populate with…
KPrasch 0b41efc
Attach the dht_server for bobs, and miners.
KPrasch c442d1c
Make miner contract datastore methods private
KPrasch 27ffc55
Updates tests and utilities with blockchain-representable characters
KPrasch a9031f6
Refactors cached node values into properties, and lazy evaluation.
KPrasch fd58fc2
Datetime to Periods utility methods
KPrasch 52148cf
Use property interface to manage staking and stake state.
KPrasch 7566fad
Make public staking method more dynamic, taking a MayaDT as an expira…
KPrasch 1896da5
Thin TokenActors - use soley agents for contract method execution.
KPrasch 0528d14
Relocates and adds miner contract API to ContractAgents, from whence …
KPrasch ba2089a
PolicyManager contract API methods on its agent. update on Blockchain…
KPrasch c4e52e3
Fix constants imports, rethink some private names.
KPrasch 5666d54
Require a deployer address parameter for deployer objects; remove def…
KPrasch 1133faa
Update node contract datastore tests
KPrasch c754256
Fixes miner entity test failure, multi-path fixture resolution issues
KPrasch 57975f7
Keep tests up-to-date; Create convention for test accounts, adds mine…
KPrasch 9981847
draft miner divide stake public method
KPrasch 8595355
Using index of stake in the divideStake method in the contract
9e7eb8a
Fixed calculation of delta periods
eccef48
Fixes stake division for the actors and agents
b02fd02
Update Travis config to use Pipfile.lock
KPrasch e5517fe
Draft of make_arrangements, with consideration to node learning
KPrasch 132f45a
Split make arrangements into three methods; Refactor selection.
KPrasch 769b82f
Make second attempt at consideration.
KPrasch e388a61
Remove old test script
KPrasch b3e6ca2
Deprecate stale switchLock method
KPrasch 9a42ba8
Decorator for enforcing actor ownership.
KPrasch bdbef9b
Deprecate node contract datastore client methods
KPrasch 9c0244c
Some style fixes.
jMyles eae14ed
Allowing known_nodes to be passed into Character to reflect "initiall…
jMyles 8dca6d2
Unifying known_node interfaces.
jMyles 8c9bb38
The learning loop.
jMyles 0c7646f
Working known_nodes into fixtures and tests.
jMyles 36b86eb
Implementing InterfaceInfo.
jMyles e4253b6
Including Ursula ether address as part of public information.
jMyles 2999110
Removes minerIds and datastore
f1b5f70
Fixed script to estimate gas usage
e013989
Improved the sample method in MinersEscrow and in agent. Some refacto…
f6736da
Reduces size of variables in contracts
944a9db
Added constant for policy id length, fixed descriptions of some methods
f785394
Remove stale dht publication method.
KPrasch 23dd5fe
Calculating duration (in periods) from expiration (MayaDT). Also, se…
jMyles 5b74e7e
These Arrangements are already in their respective bucket; no need to…
jMyles d1b90f2
_known_nodes are by public address now.
jMyles a338d52
Property / setter logic for public_address.
jMyles 4a1c208
Don't need ot pass db name again; it's already defined on the Policy.
jMyles e867f49
New splitting logic for Arrangement; including ether address.
jMyles 6b0e3cf
We don't even use MockTokenAgent anymore.
jMyles 6e3814c
token_airdrop as a utility function.
jMyles b2e5d99
Evolved tests and fixtures. Mocking some blockchain logic and discov…
jMyles 126adcc
Using public address as bytes (instead of strictly casting ether addr…
jMyles d739bc6
Shipping splitter for public information with ProxyRestServer.
jMyles 1bbaf2c
Proper error for scenario where, in the middle of a run, we can't fin…
jMyles bc1c89c
Logic for getting periods from expiration is now Blockchain-only.
jMyles 97d1abc
Now composing Arrangement class object on Policy subclass in order to…
jMyles f5f6ef0
Moving _consider_arrangements up to Policy.
jMyles 1d42a79
publish() for Federated logic.
jMyles fb1bc83
public_address logic for either federated or decentralized mode.
jMyles e7375e0
Removing is_federated and using federated_only instead.
jMyles 323c8c2
Moving node shuffling logic up to its own method.
jMyles a3fa74e
Using known_nodes for FederatedPolicy.
jMyles d932c18
Taking ursulas in grant to pass to make_arrangements.
jMyles 6fc2777
We don't need to separately publish the TreasureMap; that happens in …
jMyles 766acca
known_nodes is now private _known_nodes.
jMyles 73702e9
Passing value into Arrangement. Turning buckets into sets.
jMyles a2bf097
Adding Alice's signature to ID for TreasureMap. A tiny morsel of #172.
jMyles 5941808
Fixing KFrag attachment loop.
jMyles 03acf82
Passing middleware into Policy.publish()
jMyles 2d9d25a
Using token airdrop and dropping MockTokenAgent.
jMyles 742a00e
Deprecating testerchain in favor of three_agents. Using three_agents…
jMyles fb87472
Totally new logic for test_grant for federated case.
jMyles cced065
Catching tests up with federated logic.
jMyles edba3a3
Using to_canonical_address instead of unhexlify.
jMyles 5985e72
A couple of cleanups pursuant to comments on the PR.
jMyles fc5d3d2
Merge pull request #318 from jMyles/learning-loop
KPrasch 923efde
Split-up coverage reporting, add new pipenv support
KPrasch df9953e
add coveragrc
KPrasch 8328d91
Remove coverage reporting for solidity code
KPrasch 0a1a89f
Correct Pipfile inline table usage
KPrasch c185f66
Merge pull request #330 from KPrasch/builds
tuxxy b7215a6
Build out BlockchainPower with unlock_account method
tuxxy 5ca7bb8
Add sign_message method
tuxxy 91314b4
Add sign and verify methods to the ControlCircumflex
tuxxy c2408ed
Add __del__ to BlockchainPower
tuxxy 3a9d362
Make call_backend_verify use eth_keys objects
tuxxy 93303b9
Add verify_message to BlockchainPower
tuxxy 9696821
Add test for BlockchainPower
tuxxy 8a3b22e
Merge pull request #327 from tuxxy/lindas-in-custody
KPrasch a76dfa0
Add enroll_dispatcher method in the registrar
tuxxy 7f79a4a
Make contract_name and target_addr optional arguments for dispatcher …
tuxxy 41a533c
Have lookup_contract search better
tuxxy 477d161
Build new Registry and refactor registrar -> registry
tuxxy eb9e841
Enable search method to return contracts with same name
tuxxy fd86579
Fix registry syntax and import errors.
KPrasch d56611f
Deployment sanity check for inter-contract deps.
KPrasch c2be534
Refactor registry usage, erorr handling, first pass.
KPrasch f3d6c40
Refactor registry tests for proxy contracts.
KPrasch 4107b7b
Modify agents to use proxy contracts.
KPrasch 6807ac0
Reorganize blockchain tests, remove stale test modules.
KPrasch cf5bef9
Dehydrate contract names; code style fixes.
KPrasch eb55117
Prepares flattened contract registry for integration with circumflex.
KPrasch c3970eb
Read live dispatcher target values from blockchain with registrar
KPrasch 4c69809
Keep fixtures up to date with registry changes; Deprecate or relocate…
KPrasch 8204351
Integrate three agents with existing fixtures, restore token airdrop …
KPrasch 54d939c
Allow creation of 'bare' ursula in utils.
KPrasch 6b003cd
Update contract test build configuration with more containers; update…
KPrasch e96e5fc
Respond to request for changes.
KPrasch 2887726
Update gas estimation script to agent API
KPrasch e8ecfad
Merge pull request #328 from KPrasch/registrar-dev
KPrasch 883555b
Remove version specifications from Pipfile
KPrasch e49c594
Remove travis yml
KPrasch ef69c62
Remove geth fixtures... for now.
KPrasch 8b1897b
Include solc install script in pipenv run commands; Remove geth deps
KPrasch e532c57
circleci: use custom solc binary install command
KPrasch 99b47a5
Consolidate scripts, insert pre-commit hook installation command
KPrasch 141fef4
Simplify repeated config logic; rename / reorg jobs.
KPrasch 4bccd65
remove pipenv hook installation
KPrasch ba631e6
Add mypy build to circleci; Use workflow ID number as dep cache key
KPrasch df6edd4
Add output to precommit hook + better name
KPrasch ec9704a
Add mypy.ini configuration
KPrasch d4a9779
Merge pull request #336 from KPrasch/coffee
KPrasch e665345
Store test Results; Upgrade Web3
KPrasch 5a1cb8e
ether_address is now private _ether_address. canonical_public_addres…
jMyles bffba51
Reordering init elements so that learning works.
jMyles 577c7d6
Adding listeners interface and blocking mode to wait until nodes are …
jMyles 6cbcaf2
New Learning Loop features in Character.__init__: K:V storage are dic…
jMyles 59bb6d5
Characters from_public_keys are now allowed to be federated_only
jMyles 36d85d5
Marking other areas where #340 is important.
jMyles df9f7b7
Errors in the learning loop are now raised on the main thread in tests.
jMyles 590c4db
Learning Loop eagerness now defaults to False, with a sanity check. …
jMyles 16309ee
Shifted splitting logic down to Ursula. See #172.
jMyles d819c9f
Some ground rules for decentralized mode and public address.
jMyles 90c0044
There's really no point to specifying REST details - if you want to l…
jMyles aab0e40
Cleaning up some uses of deprecated fixtures.
jMyles d49de7a
Lower-level TreasureMap interaction: Bob just takes a quick peek.
jMyles 5b094c5
All new TreasureMap logic.
jMyles 364d39d
All serialization, splitting, and verification for nodes now lives on…
jMyles cc38161
No more need to determine legality here in protocol - the objects can…
jMyles 00286e0
No more node storage for DHT. Fixes #227.
jMyles 4c0f200
Final compartmentalization of serialization logic. Fixes #172.
jMyles a761c3f
Logic for storing Ursulas and TreasureMaps. See #331 and #340.
jMyles 1c33532
Receiving / Providing TreasureMap endpoints now use internal verifica…
jMyles 22065fd
Some cleanup on models following the big TreasureMap changes.
jMyles 2776928
Fixing Bob up!
jMyles 303b4df
More test touchups and fixture organization, in anticipation of #338.
jMyles cc5d6ef
Beginnings of Character serialization tests.
jMyles b60b078
Merge pull request #344 from KPrasch/ci-dev
tuxxy 88d1f37
Merge pull request #329 from jMyles/learning-loop3
jMyles 005ed4e
Map lookups are now by map ID instead of hrac. Also, fixing a typo a…
jMyles 70b7443
Breaking treasure map lookup logic up into smaller methods.
jMyles 023598c
Some reasonable renaming, but we'll get maps by ID soon and not use h…
jMyles 5f94bc4
Let's compare TreasureMaps by bytes from now on.
jMyles bd215d9
Using three_agents for miner fixture.
jMyles bcc1593
Fixing up tests.
jMyles 7cf5bbf
Fixed up args and kwargs for Character (although needs some organizat…
jMyles 162c542
Combine and reorganize fixture modules
KPrasch a7cfaec
Passing checksum_address into NucypherTokenActor.
jMyles f2cfa5a
We really only need to fail when settin checksum_address on a federat…
jMyles 40ff5e8
If a node is federated_only, then they can rightly regard other nodes…
jMyles 2e96c16
Passing checksum_address where it's needed.
jMyles 8f8b28f
Test fixups.
jMyles 93039f9
Merge pull request #345 from jMyles/restoration
jMyles 9f7c662
Draft of an upgradeable user escrow
ff71b58
Finished the upgradeable UserEscrow contract, contracts mocks are com…
5d7894e
Merge pull request #333 from szotov/user-escrow
jMyles 8ef6cb8
Adding pytest-twisted to dev reqs.
jMyles 52721c7
Character tests generate coverage for entire package.
jMyles 72d0c8e
Commenting out MyPy check for the moment. See #350.
jMyles 3d412cd
Quieter mypy options. See #350.
jMyles 695e6dc
unlock_account on blockchain, to account for the apparent reality tha…
jMyles a1ca7d4
Using plain signature (instead of hex-casted) in BlockchainPower.
jMyles d7c7e06
Ursula now substantiates her stamp. This is the first half of #294.
jMyles eddcf0f
Test for stamp evidence.
jMyles 9044ad8
Making build_dependencies use verbose output for pipenv.
jMyles 7c46c69
Ticking cache version for CircleCI.
jMyles b479103
Smoothing out init args for Actors. Style fixes.
jMyles 87a14b8
Moving SuspiciousActivity up to protocols so that it can be shared wi…
jMyles 6625731
Going back to simply returning sampled miners.
jMyles f59d2ff
Adding federated flag to both Arrangements.
jMyles 13e8c45
Moved node verification logic to a separate class.
jMyles d8a5a4a
Verification logic by public address. Fixes #353.
jMyles a88052c
Separating blockchain Alice from regular ole' Alice. Style touch-ups.
jMyles 8045bc6
No reason to always_be_learning any more as a default. Some actors d…
jMyles 39e6433
Passing bytes-in / bytes-out instead of eth_keys Signature object.
jMyles f781c37
Merge pull request #348 from jMyles/code-organization
jMyles 53d2104
Merge pull request #351 from jMyles/matcha
KPrasch File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[run] | ||
omit = | ||
setup.py, | ||
*__init__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice