Kieran Prasch
|
a0bfb22c05
|
Introduce MiningAdjudicator deployer & agent; Deployment entry points and integration testing.
|
2019-04-22 23:18:51 +03:00 |
Kieran Prasch
|
0f0841c0a5
|
Expand TokenEconomics tests to consider the generation of deployment-ready parameters.
|
2019-04-22 23:18:51 +03:00 |
Kieran Prasch
|
2d943e6afb
|
Refactor stake as a self-validating insnatce; Introduce token economincs via dep. injection throughout tests and blockchain API.
|
2019-04-22 23:18:49 +03:00 |
szotov
|
a42cee8e25
|
initialAmount -> totalSupply in token contract
|
2019-04-19 12:44:25 +03:00 |
szotov
|
c25ed07b76
|
Apply suggestions from code review
|
2019-04-17 16:05:07 +03:00 |
szotov
|
7285d6ad91
|
Added names of constructor parameters in tests for MinersEscrow
|
2019-04-17 16:05:07 +03:00 |
szotov
|
2e2dc06dd5
|
Fix bug with period overflow in policy manager test
|
2019-04-17 16:05:06 +03:00 |
szotov
|
f46229f8e2
|
Add re-stake to verifyState
|
2019-04-17 16:05:06 +03:00 |
szotov
|
d643773002
|
Gas estimates for re-stake
|
2019-04-17 16:05:06 +03:00 |
szotov
|
2f26a3bb64
|
More tests for re-stake
|
2019-04-17 16:05:06 +03:00 |
szotov
|
586adbc302
|
Tests for re-stake
|
2019-04-17 16:05:05 +03:00 |
szotov
|
fb7f134e70
|
Added reStake parameter to MinersEscrow
|
2019-04-17 16:05:05 +03:00 |
David Núñez
|
b81a13b432
|
Testing creation of additional test accounts. It still fails.
|
2019-04-14 00:36:29 +02:00 |
David Núñez
|
41f60099d3
|
Use TesterBlockchain's test accounts
|
2019-04-12 07:52:15 +02:00 |
David Núñez
|
27046827cf
|
Testing unassigned accounts and that accounts can send TXs
|
2019-04-12 07:52:15 +02:00 |
David Núñez
|
82e59786ef
|
Test account generation of TesterBlockchain
|
2019-04-12 07:52:15 +02:00 |
David Núñez
|
01c466554a
|
Don't use TesterBlockchain.ether_airdrop if it's already funded or can be done in the constructor
|
2019-04-12 07:52:15 +02:00 |
David Núñez
|
713071025c
|
Add first unit tests for ReEncryptionValidator contract
|
2019-03-31 10:39:40 +02:00 |
David Núñez
|
b8a5fc25eb
|
Clarify evolution of penalty amount in test_mining_adjudicator
|
2019-03-29 10:46:52 +01:00 |
David Núñez
|
ef75e241df
|
Tests Bob sending wrong precomputed values. Improves test_mining_adjudicator
|
2019-03-29 10:46:52 +01:00 |
David Núñez
|
3f94b93df3
|
Merge pull request #830 from KPrasch/denominations
Base Denominations Management
|
2019-03-19 20:42:19 +01:00 |
Kieran Prasch
|
b74d6e548a
|
NuWei -> NuNit
|
2019-03-18 12:31:08 -07:00 |
Kieran Prasch
|
686fffa9eb
|
Understand NU to act as a floor number caster for fractional NuNit values.
|
2019-03-18 12:31:08 -07:00 |
Kieran Prasch
|
2d518f8e62
|
Currency -> Token; Improve readability of blockchain constants
|
2019-03-18 12:31:08 -07:00 |
Kieran Prasch
|
091adbae71
|
Move NU and Stake to currency.py
|
2019-03-17 12:47:35 -07:00 |
Kieran Prasch
|
24d346069d
|
Several more assertions for mixed-types NU.__init__
|
2019-03-17 11:50:08 -07:00 |
Kieran Prasch
|
c069b0a2f9
|
Dont reinvent eth_utils! Port NU conversions to implement eth-utils to/from wei interfaces.
|
2019-03-15 09:55:45 -07:00 |
David Núñez
|
f5eed5d787
|
Testing some edge cases for the NU class
|
2019-03-15 08:17:53 -07:00 |
Kieran Prasch
|
b29a32e1a4
|
Docstrings and type hints for nucypher blockchin utils NU and Stake
|
2019-03-14 19:51:22 -07:00 |
Kieran Prasch
|
01bb9c1ef4
|
Upgrade to a dictionary for Ursula stake tracking.
|
2019-03-14 19:32:06 -07:00 |
Kieran Prasch
|
95c4cfe974
|
Dont update local stake cache in read-only operations
|
2019-03-14 16:50:11 -07:00 |
Kieran Prasch
|
b68fb2a8b7
|
Divide stake tests reflect NU Implementation
|
2019-03-14 16:36:09 -07:00 |
Kieran Prasch
|
d1dd66e27c
|
Port lower-level stake validators to us NU
|
2019-03-14 16:35:24 -07:00 |
Tux
|
5d990b2b71
|
Merge pull request #374 from szotov/multisig
Multi-signature contract with off-chain signing
|
2019-03-14 17:07:08 -06:00 |
Kieran Prasch
|
79ca05605d
|
Baseline tests for NU and Stake classes
|
2019-03-14 13:38:21 -07:00 |
Kieran Prasch
|
215bf5ad7f
|
Denomination management implementation with NU and Web3.
|
2019-03-14 13:38:19 -07:00 |
szotov
|
a491a7801c
|
Fixes after rebase
|
2019-03-11 14:52:28 +03:00 |
szotov
|
a1a4c106d8
|
Updates intercontract test
|
2019-03-11 14:46:50 +03:00 |
szotov
|
a21b29fa4e
|
Softer condition for number of signatures
|
2019-03-11 14:46:49 +03:00 |
szotov
|
9fdc82fabe
|
Update solidity version for multisig
|
2019-03-11 14:46:49 +03:00 |
szotov
|
69552d3024
|
Added trustee for execution in the MultiSig contract
|
2019-03-11 14:46:48 +03:00 |
szotov
|
f6f36ddbc2
|
Added owner management methods in the MultiSig contract
|
2019-03-11 14:46:48 +03:00 |
szotov
|
1aeca51f8d
|
Added simple multisig contract
|
2019-03-11 14:46:48 +03:00 |
Kieran Prasch
|
91c5f565dc
|
Allow rewards to be collected to an alternate address. Tighter assertions on reward collection.
|
2019-03-09 18:29:44 -08:00 |
Kieran Prasch
|
244f0e0885
|
Update tests to accomodate staking CLI requirements: orders blockchain Ursulas, better fixture organization; Staking CLI integraton tests.
|
2019-03-09 17:31:28 -08:00 |
Kieran R. Prasch
|
9a00a84f4c
|
Allow beneficiary allocation registry specification to accept an instance or filepath
|
2019-03-09 17:29:54 -08:00 |
Kieran Prasch
|
3b9c229963
|
Collect staking reward CLI
|
2019-03-09 17:29:54 -08:00 |
MacLane Wilkison
|
86116706ff
|
Change license notices in module headers to AGPL
|
2019-03-04 18:55:28 -08:00 |
jMyles
|
e795cf5cde
|
Some comments and require messages.
|
2019-02-24 21:46:35 -07:00 |
szotov
|
2e610fceed
|
Small fixes
|
2019-02-23 12:37:20 +03:00 |
szotov
|
4c54bf2d3b
|
Updates version of solidity
|
2019-02-23 12:37:19 +03:00 |
David Núñez
|
9d97d9bdf7
|
Precompute v value so Alice's address can be recovered from KFrag signature
This is one of the core commits of this PR
|
2019-02-23 12:37:17 +03:00 |
David Núñez
|
7391d29dfe
|
KFrag validity message and Alice's ETH address are part of the evidence
|
2019-02-23 12:37:16 +03:00 |
szotov
|
a6fa4df610
|
Readability for adjudicator tests
|
2019-02-23 12:37:14 +03:00 |
szotov
|
702c6b8384
|
Enhanced intercontract test using adjudicator contract
|
2019-02-23 12:37:13 +03:00 |
szotov
|
0f44c0857e
|
Added more tests for adjudicator
|
2019-02-23 12:37:12 +03:00 |
szotov
|
f809703300
|
Fixed adjudicator test
|
2019-02-23 12:37:12 +03:00 |
szotov
|
01fb0ce7d6
|
Fixed errors with web3 `soliditySha3` and `sha3` methods
|
2019-02-23 12:37:12 +03:00 |
szotov
|
92af87778f
|
Events for the MiningAdjudicator
|
2019-02-23 12:37:11 +03:00 |
szotov
|
fa190cd27a
|
Calculating the penalty and reward in the slashing method
|
2019-02-23 12:37:10 +03:00 |
szotov
|
24907e5065
|
Upgradability for the MiningAdjudicator contract
|
2019-02-23 12:37:10 +03:00 |
David Núñez
|
57a191b3c9
|
UnquestionableEvidence --> IndisputableEvidence
|
2019-02-23 12:37:09 +03:00 |
David Núñez
|
1b2a916935
|
Missing changes from 'overseer' to 'adjudicator'
|
2019-02-23 12:37:09 +03:00 |
David Núñez
|
450c1c64bc
|
Shame on you, Ursula.
|
2019-02-23 12:37:08 +03:00 |
David Núñez
|
cd8b265917
|
Defining some TODOs for later PRs
|
2019-02-23 12:37:07 +03:00 |
David Núñez
|
525635a304
|
Get precomputed values for U1 and U2 points
|
2019-02-23 12:37:06 +03:00 |
David Núñez
|
4ec3ea9abd
|
Hard-code Y coordinate of UmbralParameter.U
|
2019-02-23 12:37:06 +03:00 |
David Núñez
|
03f050d499
|
We don't "challenge" the miner's work anymore. We now "evaluate" them.
|
2019-02-23 12:37:05 +03:00 |
David Núñez
|
2f8e956f5c
|
Renaming ChallengeOverseer to MiningAdjudicator everywhere
|
2019-02-23 12:37:04 +03:00 |
David Núñez
|
4d9c0e794e
|
ChallengeOverseer is now MiningAdjudicator
|
2019-02-23 12:37:04 +03:00 |
David Núñez
|
a0970d736d
|
Comment some tests in ChallengeOverseer
|
2019-02-23 12:37:03 +03:00 |
David Núñez
|
13cf37a8e5
|
Methods to compute proof's challenge scalar in Python and Solidity
|
2019-02-23 12:37:02 +03:00 |
David Núñez
|
033ea238cb
|
Test consistency of Umbral and ChallengeOverseer.extendedKeccakToBN
|
2019-02-23 12:37:02 +03:00 |
David Núñez
|
0797b79dcb
|
Adapt nucypher to new Umbral release
|
2019-02-23 12:37:01 +03:00 |
David Núñez
|
200a84a150
|
Fix re-encryption fixture in test_challenge_overseer
|
2019-02-23 12:37:01 +03:00 |
David Núñez
|
6c70103c3f
|
Test consistency between Umbral and ChallengeOverseer.UmbralParameterU
|
2019-02-23 12:37:01 +03:00 |
David Núñez
|
a55b9d157d
|
Refining fragments fixture for test_umbral_deserializer
|
2019-02-23 12:36:59 +03:00 |
David Núñez
|
a276f7c3ea
|
Fix use of BlockchainDeployerInterface.provider
|
2019-02-23 12:36:54 +03:00 |
szotov
|
a2e4f215e0
|
New lines at the end of contracts
|
2019-02-23 12:36:54 +03:00 |
szotov
|
9b4d77c035
|
Extracted getLockedTokensInPast method, some optimization
|
2019-02-23 12:36:54 +03:00 |
szotov
|
f4cd8245de
|
Added blank lines after license in blockchain tests
|
2019-02-23 12:36:53 +03:00 |
szotov
|
333e8af812
|
Fixed test_umbral_deserializer.py
|
2019-02-23 12:36:53 +03:00 |
szotov
|
d3ae7a2fa2
|
Added test for slashing to the test_intercontract_integration.py
|
2019-02-23 12:36:52 +03:00 |
szotov
|
8a829b0283
|
Fixed overseer test
|
2019-02-23 12:36:52 +03:00 |
szotov
|
4d6131b45b
|
Added events for slashing
|
2019-02-23 12:36:52 +03:00 |
szotov
|
46be22e5e6
|
Slashing optimization
|
2019-02-23 12:36:51 +03:00 |
szotov
|
31347b4634
|
Fixed bug with slashing future sub stakes regardless of duration
|
2019-02-23 12:36:50 +03:00 |
szotov
|
d3fc480c6c
|
Fixed bugs in slashing, small optimization
|
2019-02-23 12:36:50 +03:00 |
szotov
|
df99cb650e
|
Improved tests for slashing
|
2019-02-23 12:36:50 +03:00 |
szotov
|
dbeb29fe83
|
Added method for getting a stake for previous periods
|
2019-02-23 12:36:49 +03:00 |
szotov
|
dbc74e03d5
|
Tests for slashing
|
2019-02-23 12:36:49 +03:00 |
szotov
|
c028e521cd
|
Tests for `unMint`
|
2019-02-23 12:36:48 +03:00 |
szotov
|
2ef2a8f9b6
|
Added limit for amount of sub stakes, small refactoring of the MinersEscrow and other contracts
|
2019-02-23 12:36:48 +03:00 |
szotov
|
4f046b8f25
|
Fixed current challenge test
|
2019-02-23 12:36:47 +03:00 |
szotov
|
eebd831397
|
Changed format of points in deserializer
|
2019-02-23 12:36:46 +03:00 |
szotov
|
56e3d0336b
|
Integrated UmbralDeserializer and challenge, partially changed tests
|
2019-02-23 12:36:46 +03:00 |
szotov
|
da21e5006f
|
Small refactoring and renaming
|
2019-02-23 12:36:46 +03:00 |
szotov
|
b230e31e32
|
Added contract to deserialize capsule and cfrag
|
2019-02-23 12:36:45 +03:00 |
szotov
|
694eb7fff9
|
Added test for the draft of challenge
|
2019-02-23 12:36:45 +03:00 |
szotov
|
0e06d67252
|
Added draft of the first challenge
|
2019-02-23 12:36:44 +03:00 |
szotov
|
014a1094ab
|
Added methods to verify signature on-chain
|
2019-02-23 12:36:44 +03:00 |
szotov
|
866b70e63e
|
Added on-chain external signature verifier
|
2019-02-23 12:36:44 +03:00 |
MacLane Wilkison
|
9ed5b1e6f6
|
Remove unused variables+imports and make PEP 8 fixes in tests
|
2019-02-15 15:12:33 -07:00 |
szotov
|
d8e637c7db
|
Fix escrow agent test
|
2019-02-12 09:07:01 -07:00 |
szotov
|
819f0951e4
|
solidity contracts 0.4.25 -> 0.5.3, updates openzeppelin contracts
|
2019-02-09 16:58:09 +03:00 |
Kieran Prasch
|
8922af389c
|
Updates Web3 python API usage to v5.0.0-alpha.3
|
2019-01-15 11:47:40 -08:00 |
Tux
|
60ab41c82d
|
Merge pull request #611 from tuxxy/AAA2018-is-gonna-ruin-the-internet
Rename EncryptingKeypair/EncryptingPower to DecryptingKeypair/DecryptingPower
|
2018-12-14 01:49:10 -05:00 |
tuxxy
|
ef497e6a1f
|
Rename TestPolicyMetadata to MockPolicyMetadata
|
2018-12-13 14:17:43 -07:00 |
Kieran Prasch
|
58d8c3ffdd
|
Respond to RFCs - Deployer contract names are now public.
|
2018-12-12 18:06:50 -08:00 |
Kieran Prasch
|
164d499884
|
Consolidate contract tests; further simplify job names.
|
2018-12-05 18:26:38 -08:00 |
Kieran Prasch
|
ed23e08df1
|
Update tests to use thinned keyring and configuration API
|
2018-12-05 15:59:50 -08:00 |
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 |