Commit Graph

240 Commits (57a191b3c96535f49ce1c46055c23c256308ab83)

Author SHA1 Message Date
tuxxy 7feabb6cb2 Add GPLv3 -- nucypher is free as in freedom 2018-11-04 13:16:42 -07:00
jMyles 0ba7db7970 node storage commented out, lots of slow tests skipped, but things pass now. 2018-10-27 22:20:05 +02:00
Kieran R. Prasch eec736d340 Deprecate arming in favor of readiness checks; Generate a default DB name for Ursulas. 2018-10-27 21:51:32 +02:00
Kieran R. Prasch dafb181513 Tests UserEscrow Agency 2018-10-27 21:51:32 +02:00
Kieran R. Prasch 46c0e96d81 Seed node discovery contract and tests 2018-10-27 21:51:32 +02:00
Kieran Prasch 4f2c8a8352 Let Deployer attach an allocation registry or deployer address to it's interface at startup. 2018-10-27 21:51:32 +02:00
Kieran Prasch 4c01385416 Tests deployment and agency components with layering in mind, (Includes UserEscrow) mirrors lower level tests with higher-level integration points 2018-10-27 21:51:28 +02:00
Kieran Prasch 0fad80a3e3 Draft of test for deployment actor 2018-10-17 09:34:53 -07:00
Kieran Prasch b3b644f7a0 Agent and deployer layer testing, including beneficiary contracts 2018-10-17 09:33:30 -07:00
Kieran Prasch db384bf7c2 Keep compiler test module from being left beind: needs cleanup 2018-10-16 12:54:02 -07:00
Kieran Prasch 974cc23058 Agency transaction usage bug fixes 2018-10-16 12:51:49 -07:00
Kieran Prasch c37683ee35 Builds out test agent test layer; Reorganizes non-federated test modules 2018-10-16 12:46:30 -07:00
Kieran Prasch 92d4434df6 Prepare to subdivide non-federated test suite modules; Cleanup 2018-10-16 12:43:29 -07:00
Kieran Prasch f9cfd597d4 Pass TLS certificate filepaths into node_information endpoint 2018-10-02 11:32:55 -07:00
Kieran Prasch ab798bb4f3 Carefully piece together NodeConfiguration that works for lazy, temp, test, and real configs; Read seed registry 2018-10-02 11:32:55 -07:00
Kieran Prasch 4ab2807a9f Update test fixture to testerchain netloc URI; Inreaces test coverage for deployer and agent. 2018-10-02 11:32:55 -07:00
Kieran Prasch 8663bae64e Dedicated method for writing the default blank registry at installation-time; Use no_seed_registry configuration during tests 2018-10-02 11:32:44 -07:00
Kieran Prasch e60706793a Optimize imports project-wide 2018-09-25 20:27:27 -07:00
Kieran Prasch 7e04dd117b Use static blockchain constants, removes ConstantSorrow usage for static values 2018-09-25 20:26:44 -07:00
Kieran Prasch d84014a35f Cast constant_sorrow constant to int 2018-09-25 10:15:01 -07:00
Kieran Prasch d6fc416a79 remove extra time travel (moved to ursula fixture) 2018-09-25 09:28:48 -07:00
Kieran Prasch cbe7bc79e3 Bifurcate up federated and non-federated ursula generation in tests 2018-09-18 09:19:51 -07:00
Kieran Prasch f69380a3dd Namespace and modularize nucypher sandbox utilities 2018-09-18 09:19:46 -07:00
szotov 953054af9a Added rounding of time for the first period in some tests (issue #385) 2018-09-01 16:23:42 +03:00
szotov 204d3674af Added checking of secret in the upgrading method in the user escrow contract 2018-09-01 16:13:42 +03:00
szotov 86e5df2585 Renamed `downtime` to `pastDowntime` in the MinersEscrow contract 2018-09-01 15:59:00 +03:00
szotov c75cd0e330 Fixed upgrade contracts test in test_integration.py 2018-09-01 15:46:41 +03:00
szotov e1b4c82723 Added checking of secret in the upgrading method in the dispatcher contract 2018-09-01 15:46:40 +03:00
szotov 9db9b6c4ee Improved comments on tests, added comments to the mining coefficients in constants.py 2018-09-01 15:11:59 +03:00
szotov 40a77d0414 Removed government contract 2018-09-01 14:50:41 +03:00
Kieran R. Prasch 06e0575642 Small bug fixes, post-rebase madness 2018-08-31 15:17:12 -07:00
Kieran Prasch d23a05536c Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 12:15:55 -07:00
Kieran Prasch 1f63046ed2 Bifurcate interfaces module; Circumflex -> Interface 2018-08-31 12:05:29 -07:00
Kieran Prasch 3154fb97b6 Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 11:55:04 -07:00
Kieran Prasch 70437a76fc Reorganize contract test module, and fixtures, to save on gas. 2018-08-31 11:47:42 -07:00
Kieran Prasch f8e5d58f89 Project-wide automated import optimization, followed-up with some hand-tweaking 2018-08-31 11:24:08 -07:00
Kieran Prasch ffa70a117d Running federated ursula from CLI - Centralizes runtime cruft with injectable overrides while still considering ini config values. 2018-08-31 11:16:07 -07:00
Kieran Prasch 905a0151fb keep contract tests passing alongside api changes (intermediate) 2018-08-31 11:03:54 -07:00
Kieran Prasch 979d5e8def Eliminate __init__.py under any test directory; Relocate utilities. 2018-08-31 11:03:54 -07:00
Kieran Prasch 6d5de0909d Restore no-arg spawProcess call; Fix network status cli command bugs; Add saftey warnings. 2018-08-31 11:03:54 -07:00
Kieran Prasch 9535a80c52 clean-up test utils modules 2018-08-31 10:52:19 -07:00
Kieran Prasch 12148a8d57 Clean-up imports, fixes downstream changes from pyUmbral; re-handle key importing util. 2018-08-31 10:52:19 -07:00
szotov ff71b58029 Finished the upgradeable UserEscrow contract, contracts mocks are combined into test sets 2018-07-06 21:17:02 +03:00
szotov 9f7c662ea4 Draft of an upgradeable user escrow 2018-07-06 21:17:02 +03:00
jMyles 8f8b28f0d2 Test fixups. 2018-07-05 11:54:45 -07:00
jMyles 2e96c1620a Passing checksum_address where it's needed. 2018-07-05 11:54:45 -07:00
jMyles bd215d975a Using three_agents for miner fixture. 2018-07-05 11:54:45 -07:00
jMyles 22065fd61e Some cleanup on models following the big TreasureMap changes. 2018-07-02 20:44:09 -07:00
Kieran Prasch e96e5fc95e Respond to request for changes. 2018-06-26 16:15:11 -07:00
Kieran Prasch 8204351b6f Integrate three agents with existing fixtures, restore token airdrop as a utility function. 2018-06-26 01:10:45 -07:00
Kieran Prasch 4c69809af9 Keep fixtures up to date with registry changes; Deprecate or relocate some test utilities. 2018-06-26 01:10:45 -07:00
Kieran Prasch eb55117996 Prepares flattened contract registry for integration with circumflex. 2018-06-26 01:10:45 -07:00
Kieran Prasch 6807ac0bfc Reorganize blockchain tests, remove stale test modules. 2018-06-26 01:10:45 -07:00
Kieran R Prasch f3d6c40ef0 Refactor registry tests for proxy contracts. 2018-06-26 01:10:45 -07:00
Kieran Prasch fd8657930f Fix registry syntax and import errors. 2018-06-26 01:10:45 -07:00
tuxxy 41a533cb6f Have lookup_contract search better 2018-06-26 01:10:45 -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 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
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 2999110c16 Removes minerIds and datastore 2018-06-20 10:13:44 -07:00
Kieran R Prasch bdbef9b0d6 Deprecate node contract datastore client methods 2018-06-20 10:13:26 -07:00
szotov eccef48005 Fixes stake division for the actors and agents 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 c442d1cd95 Make miner contract datastore methods private 2018-06-20 10:12:50 -07:00
Kieran Prasch c1857847d2 Update actor tests with testerchain renaming. 2018-06-20 10:12:50 -07:00
Kieran Prasch 616a3001bb Update miner contract datastore tests with caching ability 2018-06-20 10:12:50 -07:00
Kieran Prasch db5856f932 Lazify reading the miners contract datastore with a cached iterator. 2018-06-20 10:12:50 -07:00
Kieran Prasch 31f07e9ba7 Subclass UmbralPrivate key, Use Umbral keys to make test accounts. 2018-06-20 10:12:50 -07:00
Kieran Prasch 820f41bdc0 Blockchain make arrangement lock periods, and consideration 2018-06-20 10:12:50 -07:00
Kieran Prasch 078d39df88 Update entity tests and utils to testerchain.interface api 2018-06-20 10:12:00 -07:00
Kieran Prasch 8a65ca14f2 Deprecated compadability fixtures, updates contract tests to testechain.interface api 2018-06-20 10:12:00 -07:00
Kieran Prasch 0f9ddb9763 NucypherConfig actor entry point; Use remaining miner/token constants with sorrow. 2018-06-20 10:11:34 -07:00
Kieran Prasch ff17d1fedb Further integrate TokenActors and Characters with co-op scheme 2018-06-20 10:11:34 -07:00
Kieran Prasch 6e751f6775 Renames(mostly) NetworkyStuff to NetworkMiddleware. 2018-06-20 10:11:28 -07:00
Kieran R Prasch 0117564b4d Add parallelism to contract test steps with circleci cli 2018-06-19 12:04:48 -07:00
Kieran R Prasch 06f7b31fcd Subdivide contract tests; Add parallel step circleci contract workflow 2018-06-17 15:30:16 -07:00
K Prasch 0fae344116
Merge pull request #283 from szotov/solidity-dev
Contracts optimization
2018-06-04 13:54:39 -07:00
szotov 6ca748d96f Added some comments 2018-06-04 22:21:30 +03:00
szotov 50981799c6 Changed miner id size 2018-06-03 21:56:15 +03:00
jMyles 0672f25880 Some more tests that have become slow. 2018-06-02 16:21:29 -07:00
szotov 4d3496bfa7 Contracts size optimization 2018-06-02 17:21:32 +03:00
szotov b7d5d3c2a9 Optimizing activity information 2018-06-02 17:21:30 +03:00
szotov 7d2476b96a Fixes dividing stake that will be finished in the current period 2018-06-02 17:21:28 +03:00
szotov 60a6f97e08 Added public method for the refund calculation in the PolicyManager 2018-06-02 17:21:27 +03:00
szotov f8ba5c0a16 Optimizing the policy storage in the PolicyManager 2018-06-02 17:21:24 +03:00
szotov 9da2d15e7e Optimizing the createPolicy method 2018-06-02 17:20:20 +03:00
szotov b41294c4e3 Removes reward decimals 2018-06-02 17:17:34 +03:00
Kieran Prasch a943bdfeb2 Update travis with allowable faulre for python 3.7 2018-05-24 11:00:54 -07:00
Kieran Prasch 2558bb1532 Fixes miner collecting stake reward fixture scoping 2018-05-24 10:48:57 -07:00
Kieran Prasch ae9917e779 Update actor and characters tests post-integration 2018-05-24 10:48:57 -07:00
Kieran Prasch 722cf9918f Nucypher and BlockchainConfig and it's tenticles; Related NucypherConstants and ContractInterface updates. 2018-05-24 10:48:57 -07:00
Kieran Prasch 5583e83421 Transforms ContractProvider into ContractInterface; Begins BlockchainConfig. 2018-05-24 10:48:57 -07:00