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
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
szotov
4079522140
Fixes #272
2018-05-22 14:12:04 +03:00
szotov
b0aab2acbd
Fixed warnings by Solidity version 0.4.24
2018-05-22 14:12:04 +03:00
szotov
55e1a254ec
Fixed test in test_actors.py
2018-05-19 11:56:38 +03:00
szotov
48ce0a6428
Changed unlocking in the UserEscrow
2018-05-19 11:56:38 +03:00
szotov
41d24f9ad9
Fixed finishUpgrade methods in the MinerEscrow and Issuer, added vote method to the UserEscrow
2018-05-19 11:56:37 +03:00
szotov
be514a4848
Fixed unlocking with confirmActivity
2018-05-19 11:56:36 +03:00
szotov
0b068d26e0
Added draft of the docs for contracts, fixed user escrow
2018-05-19 11:56:36 +03:00
szotov
01a1a6d7d7
Fixed the approveAndCall method in the token contract, added implementation of the receiveApproval method in the escrow contract
2018-05-19 11:56:36 +03:00
szotov
33ff3d0955
Added minimum reward rate for nodes in the PolicyManager
2018-05-19 11:56:35 +03:00
Kieran Prasch
53ef5c0679
Bumps etherereum dependency versions; Fixes side effects.
2018-05-18 12:14:02 -07:00
Kieran R Prasch
6397fba5f1
Rename NuCypher -> nucypher where appropriate.
2018-05-16 18:31:49 -04:00
Kieran R Prasch
bcc81682c6
Rename periods -> lock_periods
2018-05-15 21:42:58 -07:00
Kieran Prasch
b546c7159b
Time Travel Fixes, Remove skips, fixes post-rebase
2018-05-15 21:42:31 -07:00
Kieran Prasch
e176ba82b7
Make config class attrs public, use real values for testing via time travel and simulated mining.
2018-05-15 21:27:12 -07:00
Kieran Prasch
ceda960832
Relocate miner spawning test utility
2018-05-15 21:25:46 -07:00
Kieran Prasch
8cde41da70
Fixes sampling and miner datastore logic from contract API updates
2018-05-15 21:20:21 -07:00
Kieran Prasch
e6f212a1cc
Fixes staking and locking client methods, concise test narrative for miners.
2018-05-15 21:20:21 -07:00
Kieran Prasch
320d84da63
Small fixes to rulebooks and airdropping.
2018-05-15 21:19:38 -07:00
Kieran Prasch
441fb1346f
Additional mocked testing utils; Faked token distribution for testing only
2018-05-15 21:19:35 -07:00
Kieran Prasch
3b27ef265c
Gives contract deployers agency classes, bypassing the registrar to produce contract agents.
2018-05-15 20:47:06 -07:00
Kieran Prasch
4ec9df051f
deprecates agent.call() and .transact(); Upgrade to newer web3 API, with direct contract access
2018-05-15 20:18:40 -07:00
szotov
f9eb10de60
Added cancellation of the upgrading if there are errors
2018-05-15 20:18:40 -07:00
jMyles
41805d5d06
Removing references to 'KMS'
2018-05-08 13:02:18 -07:00
jMyles
e5d17b527c
Marking last few pesky tests skip for now.
2018-05-07 14:56:44 -07:00
jMyles
81beb77753
Test suite runs in about 4 seconds with this config.
2018-05-07 13:41:55 -07:00
Kieran Prasch
4fb63785ef
working pipfile and lock
...
Test suite runs in about 4 seconds with this config.
2018-05-07 13:41:43 -07:00
Kieran Prasch
e386d7e7f0
Thin Pipfile; Fix dispatcher filter bug
2018-05-06 18:03:24 -07:00
Kieran Prasch
a14e77a0e7
Bug fixes with .call in several contract tests.
2018-05-06 18:03:11 -07:00
Kieran Prasch
b3bbfe1ec9
Shorten blockchain filter duration with tagged starting block
2018-05-06 18:01:58 -07:00
szotov
8055f4c03a
Some fixes for the interaction of python and contracts
2018-05-05 20:29:08 +03:00
szotov
9ad961cbcb
Fixed tests for contracts
2018-05-04 20:18:48 +03:00
szotov
eee0b78b46
Improved methods related to contracts upgrades
2018-05-04 16:15:48 +03:00
szotov
889e6c0176
Fixed tests after merge
2018-04-30 19:07:24 +03:00
szotov
005fb5b773
Merge remote-tracking branch 'remotes/origin/solc-pipeline' into solidity-dev
2018-04-30 17:08:08 +03:00
szotov
39a558414d
Some optimizations for Issuer contract, added comments, changed fallback function in Dispatcher
2018-04-30 15:43:11 +03:00
szotov
bce360b260
Finished step-wise unlock and tests
2018-04-26 17:22:16 +03:00
szotov
b1d8ae9816
Added payment for the first/current period when creating a policy
2018-04-26 17:22:15 +03:00
szotov
c22be3f6d8
Optimized MinersEscrow
2018-04-26 17:22:15 +03:00
Kieran Prasch
1628eff1f1
PyEVMBackend subclass within genesis params overrides; Sets pyevm as default testing backend.
2018-04-24 13:21:52 -07:00
Kieran Prasch
756fe5c432
rename wait_time -> time_travel; Move event filter creation.
2018-04-24 11:04:00 -07:00
Kieran Prasch
358fb23fed
Additional web3 upgrade fixes - test_integration passes with pyevem
2018-04-24 09:49:29 -07:00
Kieran Prasch
cb2f249222
Deprecate old-style .call and .transact method calls in tests
2018-04-22 23:50:39 -07:00
Kieran Prasch
2c2ff72237
Restores some dispatcher tests, updating the contract.events api
2018-04-22 20:55:56 -07:00
Kieran Prasch
5340f4d8bd
removes calls to .lower in Issuer contract tests
2018-04-22 20:39:47 -07:00
Kieran Prasch
760441ed8f
Resolve web3 event filter deprecation warnings / inaccurate event records
2018-04-22 19:38:42 -07:00
Kieran Prasch
139853645c
Adjust global airdrop test utility
2018-04-22 19:37:16 -07:00
Kieran Prasch
2fd05d3db5
Seperate airdropping from account creation, resetting eth balances between test modules while still using the same geth keyring
2018-04-22 18:58:58 -07:00
Kieran Prasch
c7895419fb
Moves test utils module, fixes spawn_miner args
2018-04-21 22:33:19 -07:00
Kieran Prasch
2233fb4f2a
Catch ValueError for geth IPC Transaction failure.
2018-04-21 22:32:36 -07:00
Kieran Prasch
2973b8f362
Specify origin tx args in contract test transactions
2018-04-21 22:32:23 -07:00
Michael Egorov
321f722abd
Geth bugfixes:
...
* address argument name has changed in unlockAccount
* ethers expressed in wei, not ETH
* ValueError is raised when trying to do gas estimate for a failing
transaction, not TransactionFailed
2018-04-21 22:31:53 -07:00
Kieran Prasch
afb3d3360c
Reorganize code, add docstrings, fix ContractDeployer fixture args.
2018-04-21 22:31:01 -07:00
szotov
5c56d4311e
Fixed escrow and integration tests
2018-04-21 16:59:58 +03:00
szotov
9e5a4ba376
Fixed policy and government tests
2018-04-20 14:25:39 +03:00
K Prasch
04d87b9b7f
Merge pull request #253 from KPrasch/solc-upgrade
...
Upgrade solc; Deprecate provider.get_or_deploy
2018-04-20 02:25:25 -07:00
Kieran Prasch
9b145941ad
ContractProvider and Web3 API updates
2018-04-20 02:17:13 -07:00
Kieran Prasch
02e23b9fef
Merge remote-tracking branch 'upstream/solc-pipeline' into solc-upgrade
2018-04-20 01:42:14 -07:00
Kieran Prasch
b8419744a4
Deprecates get_or_deploy_contract
2018-04-20 01:30:26 -07:00
Kieran Prasch
9f0859cf66
Updates contract constructors and event emissions to solc v0.4.23
2018-04-20 01:30:18 -07:00
Kieran Prasch
e25caf2e89
Use import rebindings to extract the dispacter proxy and zeppelin sub-repos.
2018-04-19 17:42:01 -07:00
szotov
7944c3da67
Fixed Registrar.get_contract method, added optimization option to contract compilation
2018-04-19 21:06:49 +03:00
Kieran Prasch
f07ed43a32
Contract test Web3 API Updates;
2018-04-17 10:50:53 -07:00
tuxxy
6f64b3acc7
Refactor Registrar to handle addresses as keys; Add some minor fixes to tests
2018-04-16 02:23:56 -07:00
Kieran Prasch
67812e5cd9
Merge remote-tracking branch 'tuxxy/solc-populus-bridge' into solc-pipeline
2018-04-16 00:58:50 -07:00
Kieran Prasch
fc22d51eac
Cleanup tests, web3 -> w3, cleanup imports.
2018-04-16 00:23:20 -07:00
tuxxy
84f9bd7864
Refactor Registrar to handle addresses as keys; Add some minor fixes to tests
2018-04-16 01:19:05 -06:00
Kieran Prasch
8b00b0a1cd
Massage Token/Issuer contract tests into running again. Removes .lower calls, update web3 events API to use event Filters.
2018-04-15 16:21:29 -07:00
tuxxy
b9d460a719
Apply API updates to eventFilters
2018-04-15 16:20:44 -07:00
tuxxy
8748a19893
Fix solidity test contracts path; Capture KeyError for Provider method
2018-04-15 16:06:10 -07:00
tuxxy
485d2a6f01
Start to update contract tests to pure web3 api; *borrowing* populus namespacs.
2018-04-15 16:05:12 -07:00
Kieran Prasch
7fab7eb18d
Update contract test to kms provider api usage; Remove Populus API calls
2018-04-15 16:04:43 -07:00
Kieran Prasch
c2d6e6baca
Pytest session fixture, delegating sol compiler control at test runtime
2018-04-15 16:04:43 -07:00
Kieran Prasch
efbac1df48
Removes Ethereumconfig, inject web providers into blockchain classes. Provider compiler control and web3 contract cache
2018-04-15 16:03:48 -07:00
tuxxy
d4b88a7a12
Get tests running with some changes - Add minimal EthereumConfig back as a holdover
2018-04-15 16:03:18 -07:00
tuxxy
012cf15c1d
Add get_contract_data method to find contracts on the Registrar chain via address or name
2018-04-15 15:59:54 -07:00
Kieran Prasch
78feadd0c4
Removes .lower calls, update web3 events API to use event Filters.
2018-04-15 12:33:33 -07:00
Kieran Prasch
991a2f7687
Massage Token/Issuer contract tests into running again.
2018-04-14 23:34:12 -07:00
tuxxy
f2a98ffc67
Push up everything I have so far and use eventFilters
2018-04-14 22:44:51 -06:00
Kieran Prasch
05571c1ec8
Fix waiting calls
2018-04-14 03:09:44 -07:00
Kieran Prasch
efd4ec0177
Start to update contract tests to pure web3 api; *borrowing* populus namespacs.; Fixes multi-dire compiler bug. needs review.
2018-04-14 01:33:39 -07:00
Kieran Prasch
1a7fa8e75c
Update contract test api calls
2018-04-13 17:09:40 -07:00
Kieran Prasch
227c8493ef
Update contract test to kms provider api usage
2018-04-13 16:57:57 -07:00
tuxxy
ee24326619
Remove Populus API calls and use new API
2018-04-13 17:53:47 -06:00
Kieran Prasch
9b2813f372
Pytest session fixture, delegating sol compiler control at test runtime
2018-04-13 15:32:01 -07:00
Kieran Prasch
506d7ed921
Provider compiler control and web3 contract cache; Provider interacting with registrar
2018-04-13 15:27:49 -07:00
tuxxy
b8085d0d0c
Get tests running with some changes
2018-04-12 21:29:18 -06:00
tuxxy
c490445f8b
Add tests for Registrar and the utility functions
2018-04-12 20:59:06 -06:00
Kieran Prasch
5ec9760a83
Consolidate test fixtures and utilities, optimize imports
2018-04-12 20:59:03 -06:00
Kieran Prasch
6959516ba6
Consolidate test fixtures and utilities, optimize imports
2018-04-11 20:26:03 -07:00
Kieran Prasch
adfa29609e
Manually merges inter-codebase tests, setup, pipfile, config classes, and sol source, respectively updates imports.
2018-04-10 17:03:21 -07:00