Kieran Prasch
febc6093c1
Removes lmdb datastore usage
2022-10-27 10:12:17 +01:00
Kieran Prasch
9ae4d5c966
to/from wei method updates for web3 v6+ support
2022-10-18 20:10:37 +02:00
derekpierre
19dfcd2030
Minor refactor to allow for easier testing in the future.
2022-10-18 20:09:26 +02:00
derekpierre
27d6112de1
Exception occuring during RPC call is propagated back to the caller as error message.
...
Better exception handling by condition objects either at creation or verification - including some refactoring of RPCCondition/ContractCondition.
Added/updated unit tests.
2022-10-18 20:09:25 +02:00
derekpierre
c7e16088fb
Simple test that shows a contract call failure not properly handled during condition verification.
...
Code cleanup.
2022-10-18 20:09:25 +02:00
derekpierre
e3446303b7
Remove support for None in ReturnValueTest - solidity has no concept of None/null so not needed. We can revisit later.
...
Updated condition tests to use 'is True' or 'is False'
Added SubscriptionManager test to show condition test whose contract call returns a struct and that the struct can be tested for equality/inequality.
2022-10-18 20:09:25 +02:00
derekpierre
96c829d5a6
ReturnValueTest can now take any valid value type (including None) for comparison - this provides flexibility based on the result of a contract call.
...
String value types need to be quoted, but context variables are a special case of strings that don't need to be.
Added tests.
2022-10-18 20:09:25 +02:00
derekpierre
d158221794
Add '!=' comparator as a valid comparator for ReturnValueTest.
...
Updated tests.
2022-10-18 20:09:25 +02:00
derekpierre
5baac258c4
Make SubscriptionManager condition tests pass now that the facilities to make it pass are now available.
2022-10-18 20:09:25 +02:00
derekpierre
fb257cba7d
Context variables used in ReturnValueTest were not being replaced - needed for the NFT use case. Modified the code to support it.
...
Updated ERC721 condition tests to use an actual ERC721 contract with a minted NFT.
Added ERC721 tests for balanceof.
2022-10-18 20:09:25 +02:00
derekpierre
0379ce7114
Parameter types for ContractConditions do not have to be strings - we need to be careful with types when checking whether a parameter is a context variable or not.
...
ERC721 ownerOf function takes an int and not a string which caused failures.
Added/updated tests.
2022-10-18 20:09:25 +02:00
derekpierre
f972c72470
Code cleanup to condition context variable - follow up RFCs from #2966 .
2022-10-18 20:09:25 +02:00
derekpierre
a4b9ef62d1
Improve error handling.
2022-10-18 20:09:25 +02:00
derekpierre
f6721f7b81
Don't let context variable exceptions leak into ReencryptionCondition class.
2022-10-18 20:09:25 +02:00
derekpierre
be175448f4
Perform actual validation of context provided for ":userAddress" context variable.
...
Added tests.
2022-10-18 20:09:25 +02:00
derekpierre
7e8d9eb7f1
Modify tests to use context instead of python parameters. Add test for use of user customized context variable.
...
Cleanup some test code.
2022-10-18 20:09:25 +02:00
derekpierre
6d35b5754e
Simple implementation for `:userAddress` context variable pre-processing.
...
Allow for user customized context variable - fallback to key-value pairing in context.
2022-10-18 20:09:25 +02:00
derekpierre
f164cfb3a9
Clenup of tests regarding `context`. Minor fix for using lists for ConditionLingo conditions instead of tuple.
2022-10-18 20:09:25 +02:00
Kieran Prasch
0d55ed091b
w3.eth.web3 -> w3.eth.w3
2022-10-18 20:09:25 +02:00
Kieran Prasch
0acfc7e381
Support for web3.py v6
2022-10-18 20:08:52 +02:00
Kieran Prasch
b7145c0ab4
Remove core shims; Refactor for mk-embedded conditions.
2022-10-18 20:08:51 +02:00
Kieran Prasch
0aea2256a2
bird run
2022-10-18 20:07:58 +02:00
Kieran Prasch
72c6bd5295
Refactoring for interop with nucypher-ts
2022-10-18 20:07:58 +02:00
Kieran Prasch
74a0465cf3
Track lingos and capsules as packets; First working e2e flow.
2022-10-18 20:07:58 +02:00
Kieran Prasch
249c74eb31
Updates tests
2022-10-18 20:07:58 +02:00
Kieran Prasch
2948a198c0
Unit and acceptance tests for condition serialization and evaluation
2022-10-18 20:07:10 +02:00
Kieran R. Prasch
aad511ba30
test adjustments to handle policy registry, in-memory node storage and polygon mocks.
2022-03-22 15:54:36 -07:00
KPrasch
1618bd2ced
Merge pull request #2850 from fjarri/address-derivation
...
Address derivation inside nucypher-core
2022-02-24 11:37:28 -08:00
Bogdan Opanchuk
fe28804657
decentralized_identity_evidence -> operator_signature
2022-02-23 23:43:19 -08:00
Kieran Prasch
c809b69f9a
Restoration of StakingEscrowDeployer and select tests; cleanup.
2022-02-21 17:23:26 -08:00
Kieran Prasch
73b238a587
Removes staking entities
2022-02-21 17:17:11 -08:00
Kieran Prasch
d2852c9e71
Removes discrete staker modules
2022-02-21 17:08:05 -08:00
vzotova
856abe4892
Renames `provider_uri` to `eth_provider_uri`
2022-02-18 11:27:15 +03:00
Kieran R. Prasch
2aae09f1e4
Respond to RFCs in PR #2862
2022-02-16 13:24:35 -08:00
vzotova
7c437b37b8
Removes `WorkLock` contract/agent/deployer and cli
...
Co-authored-by: Kieran Prasch <kieranprasch@gmail.com>
2022-02-10 20:19:21 +03:00
vzotova
ecac8017ed
Removes PolicyManager and StakingInterface
2022-02-09 14:24:26 +03:00
derekpierre
b46432ab6d
Purge Aragon/NuCypher DAO specific code.
2022-02-08 15:13:51 -05:00
Kieran Prasch
5014209eeb
retire multisig tools
2022-02-08 11:11:22 -08:00
Kieran Prasch
419e649ec7
Respond to RFCs for PR #2857
2022-02-08 11:04:34 -08:00
vzotova
1c90a5be8a
Fix StakingEscrowDeployer + fix tests, update PREApplicationDeployer + add tests
2022-02-08 11:04:28 -08:00
Kieran Prasch
ee2a5190e6
adjust tests
2022-02-08 11:04:27 -08:00
Kieran Prasch
3e35b87073
skip (and unskip) tests
2022-02-08 11:04:27 -08:00
vzotova
2e09e61846
Move test_simplepre_ursula_worker_integration.py to actors/test_worker.py
2022-02-08 11:04:27 -08:00
vzotova
f3bea94ac0
Tests for PRE app agent (copied from StakingEscrowAgent)
2022-02-08 11:04:27 -08:00
Kieran Prasch
b193465f98
adjust tests
2022-02-08 11:03:50 -08:00
Kieran Prasch
1c34045a81
Prepares economics and deployment constants for use with threshold network.
2022-02-08 11:02:17 -08:00
Kieran Prasch
c62b01f1e8
bump multiversion test contract and SubscriptionManager pragma.
2022-02-08 11:02:04 -08:00
Kieran Prasch
0e148fbfa8
Skip tests
2022-02-08 11:02:02 -08:00
Kieran Prasch
c6efd5fd06
Removes BlockchainPolicyAuthor.
2022-02-08 11:01:24 -08:00
Kieran Prasch
bbc509910d
Adjust tests to accommodate swapable payment methods.
2022-02-08 11:01:24 -08:00