Commit Graph

1725 Commits (6b0e3cf92d83120494e8d7c23359146753a9c741)

Author SHA1 Message Date
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
jMyles 36b86eb6bb Implementing InterfaceInfo. 2018-06-20 10:13:26 -07:00
jMyles 0c7646fa94 Working known_nodes into fixtures and tests. 2018-06-20 10:13:26 -07:00
jMyles 8c9bb38dc0 The learning loop. 2018-06-20 10:13:26 -07:00
jMyles 8dca6d2447 Unifying known_node interfaces. 2018-06-20 10:13:26 -07:00
jMyles eae14ed521 Allowing known_nodes to be passed into Character to reflect "initially known nodes." 2018-06-20 10:13:26 -07:00
jMyles 9c0244c651 Some style fixes. 2018-06-20 10:13:26 -07:00
Kieran R Prasch bdbef9b0d6 Deprecate node contract datastore client methods 2018-06-20 10:13:26 -07:00
Kieran R Prasch 9a42ba89a8 Decorator for enforcing actor ownership. 2018-06-20 10:13:26 -07:00
Kieran R Prasch b3e6ca2f34 Deprecate stale switchLock method 2018-06-20 10:13:26 -07:00
Kieran R Prasch e388a611c5 Remove old test script 2018-06-20 10:13:26 -07:00
Kieran R Prasch 769b82fb2c Make second attempt at consideration. 2018-06-20 10:13:26 -07:00
Kieran R Prasch 132f45a090 Split make arrangements into three methods; Refactor selection. 2018-06-20 10:13:26 -07:00
Kieran R Prasch e5517fe15b Draft of make_arrangements, with consideration to node learning 2018-06-20 10:13:26 -07:00
Kieran R Prasch b02fd0266c Update Travis config to use Pipfile.lock 2018-06-20 10:13:23 -07:00
szotov eccef48005 Fixes stake division for the actors and agents 2018-06-20 10:12:50 -07:00
szotov 9e7eb8a983 Fixed calculation of delta periods 2018-06-20 10:12:50 -07:00
szotov 8595355d41 Using index of stake in the divideStake method in the contract 2018-06-20 10:12:50 -07:00
Kieran Prasch 9981847bd6 draft miner divide stake public method 2018-06-20 10:12:50 -07:00
Kieran Prasch 57975f71f5 Keep tests up-to-date; Create convention for test accounts, adds miners fixture, use properties and injected deployer_addresses. 2018-06-20 10:12:50 -07:00
Kieran Prasch c75425615f Fixes miner entity test failure, multi-path fixture resolution issues 2018-06-20 10:12:50 -07:00
Kieran Prasch 1133faa215 Update node contract datastore tests 2018-06-20 10:12:50 -07:00
Kieran Prasch 5666d54a88 Require a deployer address parameter for deployer objects; remove default on etherbase. 2018-06-20 10:12:50 -07:00
Kieran Prasch c4e52e35a8 Fix constants imports, rethink some private names. 2018-06-20 10:12:50 -07:00
Kieran Prasch ba2089a606 PolicyManager contract API methods on its agent. update on BlockchainArrangement 2018-06-20 10:12:50 -07:00
Kieran Prasch 0528d14708 Relocates and adds miner contract API to ContractAgents, from whence they came. 2018-06-20 10:12:50 -07:00
Kieran Prasch 1896da5e05 Thin TokenActors - use soley agents for contract method execution. 2018-06-20 10:12:50 -07:00
Kieran Prasch 7566fad8cf Make public staking method more dynamic, taking a MayaDT as an expiration. 2018-06-20 10:12:50 -07:00
Kieran Prasch 52148cfa32 Use property interface to manage staking and stake state. 2018-06-20 10:12:50 -07:00
Kieran Prasch fd58fc2860 Datetime to Periods utility methods 2018-06-20 10:12:50 -07:00
Kieran Prasch a9031f6db7 Refactors cached node values into properties, and lazy evaluation. 2018-06-20 10:12:50 -07:00
Kieran Prasch 27ffc557ad Updates tests and utilities with blockchain-representable characters 2018-06-20 10:12:50 -07:00
Kieran Prasch c442d1cd95 Make miner contract datastore methods private 2018-06-20 10:12:50 -07:00
Kieran Prasch 0b41efcd4c Attach the dht_server for bobs, and miners. 2018-06-20 10:12:50 -07:00
Kieran Prasch 4016a8c1b8 known node_id routing, for dual-dict node storage, will populate with node learning 2018-06-20 10:12:50 -07:00
Kieran Prasch 3045f1fb59 Thins PolicyAuthor, recruit mutates itself, for uptake by node learning api 2018-06-20 10:12:50 -07:00
Kieran Prasch 8bc795e630 Agent validation and self-awareness, and documentation. 2018-06-20 10:12:50 -07:00