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
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
David Núñez
36e5368f3c
Add more basic unit tests for ReturnValueTest
2022-10-18 20:09:25 +02:00
David Núñez
7219c749ba
Sanitize input to constructor of ReturnValueTest
2022-10-18 20:09:25 +02:00
David Núñez
56af2bf27f
Basic unit test for ConditionLingo
2022-10-18 20:09:25 +02:00
David Núñez
7c976751b0
Playing around with malicious input that exploits the use of eval()
...
This test creates an empty file in the filesystem when evaluating a condition. This shouldn't happen! We fix it later in this PR by using the ast module
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
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
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
derekpierre
dc52a58590
Allow for optional enforcement of type safety for the JSON field. The Porter retrieval endpoint will enforce a dictionary type for the `context` parameter..
...
Updated tests.
2022-10-18 20:09:25 +02:00
derekpierre
d77fac4d39
Allow context to be specified as JSON and not base64 JSON.
...
Remove retrieve tests that utilize url parameters since it is a POST endpoint.
2022-10-18 20:09:25 +02:00
derekpierre
40e2c5c0ea
Initial work to have Porter provide 'context' for condition-based re-encryption when applicable.
2022-10-18 20:09:25 +02:00
KPrasch
cd11a414bc
Apply suggestions from code review
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
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
derekpierre
8a482d9389
Ensure delimiter is used as a single byte, and not a bunch of 0 bytes. Fixed test.
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
d9f67f30ce
Install nucypher core shims for conditions
2022-10-18 20:07:57 +02:00
Kieran Prasch
2948a198c0
Unit and acceptance tests for condition serialization and evaluation
2022-10-18 20:07:10 +02:00
Kieran Prasch
8d2045a118
conditions expression and evaluation prototype
2022-10-18 20:07:10 +02:00
Kieran Prasch
9e763dad86
expand test vectors
2022-10-18 20:07:10 +02:00
Kieran Prasch
5d4d409b82
Consolidates evm based reencryption conditions to eventually encapsulate payment methods; Reduce scope of conditions to a module
2022-10-18 20:07:10 +02:00
Kieran Prasch
58f4b6e50a
Begin sanitization of return test comparators
2022-10-18 20:06:39 +02:00
Kieran Prasch
34bd940976
Establish unit tests for conditions
2022-10-18 20:06:39 +02:00
derekpierre
7689b446a7
Add web controller tests for handling of WorkerPoolException.
...
Improve efficiency of Porter tests by reducing execution timeout.
2022-04-13 11:05:03 -04:00
derekpierre
a8aa869c2d
Ursula runs a background task, OperatorBondedTracker, which ensures that it shuts down if no the operator address is no longer bonded to a staking provider.
2022-03-25 10:38:48 -04:00
derekpierre
276b334941
Ensure that worktracker stops on first startup once operator is confirmed.
2022-03-24 20:31:04 -04:00
derekpierre
5f6bee537c
Enforce consistency of IP address and port when testing external ip utilities.
2022-03-23 11:43:35 -07: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
Kieran R. Prasch
99ac4693c2
Handle remote certificate mocks and storage in middleware.
2022-03-22 15:54:36 -07:00
Bogdan Opanchuk
06be01be84
certificate_bytes was renamed to certificate_der
2022-03-13 16:56:09 -07:00
Bogdan Opanchuk
8428ae825a
decentralized_identity_evidence was renamed to operator_signature
2022-03-13 16:38:59 -07:00
Bogdan Opanchuk
b8199e37ee
staker_address was renamed to staking_provider_address
2022-03-13 16:18:41 -07:00
Bogdan Opanchuk
2e5dd70e51
nucypher-core had address parameter names normalized
2022-02-20 23:35:26 -08:00
vzotova
856abe4892
Renames `provider_uri` to `eth_provider_uri`
2022-02-18 11:27:15 +03:00
derekpierre
b46432ab6d
Purge Aragon/NuCypher DAO specific code.
2022-02-08 15:13:51 -05: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
0e148fbfa8
Skip tests
2022-02-08 11:02:02 -08:00
Kieran Prasch
ab2798d819
patch SimplePREApplicationDeployer for ruse in IRL.
2022-02-08 11:01:24 -08:00
KPrasch
e8f174e6f0
Merge pull request #2828 from xela7/keystore-generate-mnemonic-id
...
Keystore.generate can return optional mnemonic words
2022-01-14 12:32:43 -08:00
Bogdan Opanchuk
a276cfec25
Disband umbral_adapter
2022-01-08 15:29:22 -08:00
Bogdan Opanchuk
8cb8f16370
Clean up Python parts moved to Rust
...
And some unused imports
2022-01-08 15:29:22 -08:00
Bogdan Opanchuk
e5620c3155
Changes to make the tests pass
2022-01-08 15:29:22 -08:00
Bogdan Opanchuk
02bb2e2f76
Import the standalone package instead of nucypher.core
2022-01-08 15:29:22 -08:00
Alex Tokar
2d1b37f9aa
return tuple when interactive=False
2021-11-29 14:03:30 -08:00
Alex Tokar
55d009b667
fixing tests with argument change
2021-11-29 13:44:07 -08:00
xela7
deeba59c78
make test more strict
...
Co-authored-by: KPrasch <kieranprasch@gmail.com>
2021-11-29 13:39:24 -08:00
Alex Tokar
2415436229
Keystore.generate can return optional mnemonic words
2021-11-24 11:56:26 -08:00
Bogdan Opanchuk
944d3373e7
Normalize the usage of VariableLengthBytestrings
...
Allow for every Versioned type to be able to deserialize itself from the bytestring.
2021-11-01 13:31:31 -07:00
Bogdan Opanchuk
7197d853d7
Move `signer` to the first position in the parameter list in various core constructors
2021-11-01 13:31:12 -07:00
Bogdan Opanchuk
70b2a1d57b
Remove `alice_verifying_key` from `ReencryptionRequest`
2021-11-01 13:31:12 -07:00
Bogdan Opanchuk
af404677c7
Make a separately versioned EncryptedKeyFrag instead of using a MessageKit
2021-11-01 13:31:11 -07:00
Bogdan Opanchuk
238a2cfd2a
Remove `hrac` from `EncryptedTreasureMap`
2021-10-29 15:06:34 -07:00
Bogdan Opanchuk
cdbe0fb546
Fix _decrypt_kfrag() argument name
...
Kfrags are encrypted by the publisher, not by the kfrag author (Alice)
2021-10-29 15:06:34 -07:00
Kieran Prasch
00a6a67b9a
Deprecation of Arrangement datastore.
2021-10-29 07:56:20 -07:00
Bogdan Opanchuk
130308fbf8
Use a mapping for `assigned_kfrags` in `TreasureMap.construct_by_publisher()`
2021-10-15 15:35:35 -07:00
Bogdan Opanchuk
12f601c949
Add `Ursula._decrypt_kfrag()` and dissolve `decrypt_internal()`
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
ca2ae89ba6
Get rid of passing a Callable to EncryptedTreasureMap.decrypt()
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
ef0e619684
Bundle policy encrypting key with TreasureMap
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
e5e598952a
Extract NodeMetadata into the core
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
01c2e9bd71
Move RetrievalKit to core.py
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
256c93db58
Move [Encrypted]TreasureMap to core.py
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
3400af3f09
Move AuthorizedKeyFrag to core.py
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
f847f9982c
Move HRAC to core.py
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
a3410cadfb
Move MessageKit to the temporary core module
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
18454c721e
Use a single InvalidSignature exception instead of three different ones
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
c0c2208826
Extend brands to 4 bytes
2021-09-30 12:13:46 -07:00
Kieran Prasch
894728600e
Versioning test touch ups.
2021-09-27 14:32:33 -07:00
Kieran Prasch
582f6182cf
Refine and test minor version resolver.
2021-09-27 14:11:33 -07:00
Kieran Prasch
62ab949306
Loosen versioning enforcement to support future minor version backwards compatibility. Respond to RFCs in PR #2767 .
2021-09-27 13:51:46 -07:00
Kieran Prasch
ba6a49e13c
Implements enforced major.minor versioning scheme for serializable entities.
2021-09-24 15:29:20 -07:00
Kieran Prasch
5296ae334d
Enforce unique branding. Additional unit testing.
2021-09-23 16:01:25 -07:00
Kieran Prasch
f311d4efd3
Implement versioning for Arrangement.
2021-09-23 16:01:25 -07:00
Kieran Prasch
68df8897a5
Basic unit tests for Versioned implementations.
2021-09-23 16:01:25 -07:00
KPrasch
5582a9fd79
Merge pull request #2768 from derekpierre/porter-retrieval
...
Update Porter endpoint for retrieval
2021-09-19 14:31:47 -07:00
Bogdan Opanchuk
defa0e7c75
Fix deprecation warnings
2021-09-15 13:12:21 -07:00
Bogdan Opanchuk
55ef631673
Updates for umbral 0.3 API
2021-09-15 13:12:21 -07:00
derekpierre
3fd901ebf6
Update RetrievalKit field tests to be more robust; fix duplicate decryption of treasure map for tests.
2021-09-14 15:58:08 -04:00
derekpierre
27fe5daf7d
Deserialization of MessageKit field now produces a MessageKit object instead of bytes.
...
Minor update to Porter docs for retrieval endpoint.
2021-09-14 15:58:08 -04:00
derekpierre
dfa65a2976
Code cleanup after rebase over retrieval protocol work in #2730 .
2021-09-14 15:58:08 -04:00
derekpierre
ff6b1bae98
Encrypted and Decrypted treasure map fields.
2021-09-14 15:58:08 -04:00
derekpierre
61c0978e52
Define initial schema for /retrieve_cfrags Porter endpoint - (untested at the moment)
2021-09-14 15:58:08 -04:00
derekpierre
ae1e7edf43
Add RetrievalKit field for marshalling/unmarshalling of request/response data that requires a RetrievalKit - intended to be part of Bob's retrieve schema in Porter.
2021-09-14 15:58:08 -04:00
derekpierre
602f2b6d05
Modify EncryptedTreasureMap field so that deserialize produces a TreasureMap object and not bytes.
2021-09-14 15:58:08 -04:00
derekpierre
aa1006ca16
Modify Key field so that deserialize produces a PublicKey object and not bytes.
2021-09-14 15:58:08 -04:00
derekpierre
2fec681e66
Skip Porter exec_work_order tests; they'll be reworked for the new retrieve protocol.
2021-09-14 15:58:08 -04:00
Bogdan Opanchuk
1a10ddf7e7
Remove `EncryptedTreasureMap` datastore model
2021-09-08 08:55:49 -07:00
Bogdan Opanchuk
0f85435ac7
Require encrypted_treasure_map in retrieve()
2021-09-08 08:21:04 -07:00
Bogdan Opanchuk
1d3642d960
Retrieval rework
2021-09-08 08:21:03 -07:00
Bogdan Opanchuk
a338ff1a69
Don't return the signature along with the MessageKit from MessageKit.author()
2021-09-07 11:58:55 -07:00
Bogdan Opanchuk
41ae6dbcca
Move message kits to policy submodule
2021-09-07 11:58:55 -07:00
Bogdan Opanchuk
161bb8f06d
Use __bytes__ instead of to_bytes() in MessageKit
2021-09-07 11:58:55 -07:00
Bogdan Opanchuk
3ef534b812
Rename PolicyMessageKit to MessageKit
2021-09-07 11:58:55 -07:00
Bogdan Opanchuk
0b697881a1
Move TLSHostingPower to powers.py
...
To avoid circular dependencies
2021-09-07 11:58:55 -07:00
Bogdan Opanchuk
3b43eac717
Remove UmbralMessageKit alias
2021-09-07 11:58:55 -07:00
Bogdan Opanchuk
9d2d36cbf3
Remove an unused parameter from TreasureMap.construct_by_publisher()
2021-09-07 11:58:55 -07:00
Kieran R. Prasch
11566990bd
Respond to RFCs in PR #2742
2021-08-23 07:53:10 -07:00
Kieran R. Prasch
8e4c7c1594
Renames secret_key -> key_material for CLI BYOK.
2021-08-23 07:51:19 -07:00
Kieran R. Prasch
0d5123f8d6
Allow importing of custom keystore entroy blob by ursula init CLI and Keystore API.
2021-08-22 15:51:15 -07:00
Bogdan Opanchuk
6164137610
Rename m -> threshold, num_kfrags -> shares
2021-08-20 19:26:56 -04:00
Bogdan Opanchuk
c595850952
RFCs, part 2
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
caf32842b3
RFCs
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
ad2ad8e3c0
Make HRAC a class and use it as a policy ID
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
509b8c1bfc
Split treasure maps into decrypted and encrypted
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
5b5cd4bd84
Use HRAC as treasure map ID at all times instead of just in the blockchain case
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
2be3d727d5
Rename TreasureMap field and datastore model to EncryptedTreasureMap
2021-08-19 17:06:45 -04:00
KPrasch
ed67bbcd7b
Merge pull request #2777 from KPrasch/main
...
Relock Dependencies
2021-08-18 15:43:09 -07:00
KPrasch
79631124b5
Merge pull request #2771 from derekpierre/aug12-hotfix
...
Include changes and release notes from v5.3.1 hotfix in `main`
2021-08-17 15:47:32 -07:00
Kieran R. Prasch
1f7ee94489
Update eth_account Transaction API imports.
2021-08-17 15:34:44 -07:00
Bogdan Opanchuk
279a647be0
Move ENCRYPTED_KFRAG_PAYLOAD_LENGTH into AuthorizedKeyFrag
2021-08-13 14:46:56 -07:00
Bogdan Opanchuk
8c628da9ea
Extract kfrag authorization into a class
2021-08-12 16:34:05 -07:00
Bogdan Opanchuk
e5c0bb079e
Fix the remainders of Alice/Publisher separation
2021-08-12 16:32:02 -07:00
derekpierre
9487979fae
Remove problematic gas feed for now, and make gas feeds more robust against errors.
...
Ensure median returns an int.
2021-08-12 13:08:30 -04:00
Piotr Roslaniec
7aaa5b128f
Apply PR suggestions
2021-08-06 18:10:45 +02:00
Piotr Roslaniec
09e90d17fa
Remove remaining 'str' usage
2021-08-06 18:10:43 +02:00
Piotr Roslaniec
f710c31e30
Remove empty files
2021-08-06 18:10:22 +02:00
Piotr Roslaniec
6a270c1713
Use pathlib
2021-08-06 18:10:20 +02:00
derekpierre
def9ef1116
Ensure that url query parameters in tests are url encoded. Added note about url encoding in docs.
...
Add unit test for Base64BytesRepresentation field.
Cleanup imports.
2021-07-26 15:14:43 -04:00
derekpierre
463078ce0d
Fix issues after TMapConKFrag rebase including how work orders are created and used for tests. exec_work_order tests now actually use /reencrypt ursulas endpoints.
2021-07-26 15:14:43 -04:00
derekpierre
1baa05ba3f
Initial implementation of Porter '/exec_work_order' functionality and tests.
...
Some code refactoring.
2021-07-26 15:14:43 -04:00
derekpierre
25f3db3355
Use query parameters for GET methods; updated tests for stringlist and query parameters.
2021-07-26 15:14:43 -04:00
derekpierre
da0231673c
Fix lingering references to relayer_verifying_key to instead be publisher_verifying_key.
2021-07-26 15:14:43 -04:00
derekpierre
d31f5938ca
Fix imports and function calls after rebasing over latest changes (TMapConKFrags and umbral_adapter).
...
Fix incompatible treasure map data used in tests.
2021-07-26 15:14:43 -04:00
derekpierre
e83128fd91
One potential solution for contextualizing federated vs non-federated treasure maps provided as bytes in the `/publish_treasure_map` endpoint.
...
The context information is provided either at construction time of the TreasureMap field, or via the parent Schema context.
2021-07-26 15:14:42 -04:00
derekpierre
778c018593
Initial implementation of Alice.get_ursulas for Porter.
2021-07-26 15:14:42 -04:00
derekpierre
8de665a955
Initial unit tests for fields.
2021-07-26 15:14:42 -04:00
Kieran R. Prasch
6192c34c3d
Renames relayer -> publisher.
2021-07-06 14:43:35 -07:00
Kieran R. Prasch
8f8b79aa08
Responding to RFCs in PR #2687 .
2021-07-06 14:43:31 -07:00
Kieran Prasch
c915a1b1d3
Use umbral adapter everywhere. Fixes straggler uses of umbral 0.1.x
2021-07-03 18:51:07 -07:00
Bogdan Opanchuk
7642300fe0
Rebase fixes for rebased-chili-limes ( #28 )
...
* Fix PRETask serialization
* Use a constant for encrypted kfrag length
* Fix argument order in Signature.verify()
* Remove a too brittle check in test_bob_handles_frags
What exactly are we ensuring here? If we want to check that the cfrag is fine,
we need to use it for decryption.
* Remove an unnecessary check
The result of `reencrypt()` is verified by default.
* Re-raise Umbral decryption errors as DecryptionFailed
* Fix an argument of _filter_work_orders_and_capsules()
* Fix an assertion in test_federated_grant_and_revoke
Assertion fails because now UmbralMessageKit has __len__,
so a bool() call is equivalent to len() == 0
(which it is, since there are no cfrags attached).
2021-07-03 18:48:26 -07:00
Kieran Prasch
4e7ea984f0
Post-rebase integration with PR #2612 and Umbral 0.2.x
2021-07-03 18:48:24 -07:00
jMyles
7c4cd47844
Partial restoration of the work to remove IndisputableEvidence and related concepts; it had been added back as part of a rebase to create a linear history.
2021-07-03 18:46:50 -07:00
jMyles
4c9c3d23d4
Now using both versioning and branding for maps.
2021-07-03 18:46:37 -07:00
Kieran Prasch
de17e60839
TMap authorship alternate constuctor
2021-07-03 18:46:37 -07:00
Kieran Prasch
e13fae0526
Combating freefriders and evil Bobs with a KFrag writ authorization.
2021-07-03 18:46:36 -07:00
Kieran Prasch
a22b403a08
Partial tets update for modified map and order handling; Continue handling of publisher/authorizer keys.
2021-07-03 18:40:10 -07:00
David Núñez
9837dde869
Include encrypted KFrag in WorkOrder serialization
2021-07-03 17:50:43 -07:00
David Núñez
0f8ff08ec9
Let's keep the arrangement IDs in the TreasureMap for the moment
...
Careful, don't scare the unit tests...
2021-07-03 17:50:43 -07:00
David Núñez
cdb825bdbc
Bob includes the encrypted KFrag in the WorkOrder, which we previously used in Ursula's side to get the Kfrag from the re-encryption request
2021-07-03 17:50:43 -07:00
David Núñez
7a090c19f3
Instead of storing arrangement IDs in the TMap, stored encrypted KFrags
2021-07-03 17:48:44 -07:00
David Núñez
02608af55a
How come we didn't have a basic unit test for TreasureMaps?
2021-07-03 17:47:34 -07:00
Kieran R. Prasch
669dd79dd7
Use KDF from umbral for keystore power derivations.
2021-07-02 20:00:06 -07:00
Kieran R. Prasch
7ed52647f3
Use crypto.passwords module for handling password key derivations.
2021-06-30 16:49:31 -07:00
Kieran Prasch
8a54bd7e6d
Post rebase cleanup for PR #2612 ; Umbral 0.2.x compatibility.
2021-06-30 15:14:10 -07:00
Kieran Prasch
0d3780466b
Respond to RFCs in PR #2701
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
4f7bdf5c46
tests respect the Keystore API
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
e3868df4d1
Handle TLS power derivation form keystore.
2021-06-28 14:33:31 -07:00
Kieran Prasch
82e81fc710
Deterministic power derivation from keystore. Iterating on keystore drafting.
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
11a630066e
Further deprecation of nucypher.crypto.api.
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
6aef077172
bulk renaming of Keyring -> Keystore
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
d024018c3c
Adapts keyring unit tests for deterministic nucypher keystore.
2021-06-28 14:33:31 -07:00
Bogdan Opanchuk
6090a755b0
Gate the choice of Umbral implementation in a single file
2021-06-22 18:31:08 -07:00
Bogdan Opanchuk
15333ddca2
Dissolve umbral_adapter
2021-06-17 14:38:51 -07:00
Bogdan Opanchuk
e6fcdbbff6
Minimal fixes to make CI pass, using an adapter for Umbral
2021-06-17 14:38:51 -07:00
derekpierre
e61cec703a
Fix stray prometheus imports/tests that should only be performed when prometheus_client is installed; prometheus is an optional dependency.
2021-05-21 14:27:33 -04:00
Bogdan Opanchuk
26076b1d98
Remove IndisputableEvidence and related functions and tests
2021-05-18 13:14:04 -07:00
piotr-roslaniec
66ad917b28
Merge pull request #2657 from piotr-roslaniec/teacher-fallback#2481
...
Fallback chain of teacher nodes
2021-04-29 10:17:19 +02:00
Piotr Roslaniec
c98fbc43cd
Implicitly remove whitespaces from character nicknames
2021-04-28 11:31:59 +02:00
Piotr Roslaniec
9669280639
Test fallback behaviour
2021-04-22 12:36:37 +02:00
Piotr Roslaniec
58f37da94a
Move TEACHER_NODES to nodes.py
2021-04-21 18:04:51 +02:00
KPrasch
74c986e53b
Merge branch 'main' into dao-proposal-1
2021-04-14 08:16:40 -07:00
KPrasch
fed186975b
Merge pull request #2628 from piotr-roslaniec/nickname-delim#2471
...
Change nickname delimiter in card filename
2021-04-08 13:29:57 -07:00
Piotr Roslaniec
ec757bf4a9
Use constant for loopback address
2021-04-08 13:33:34 +02:00
Piotr Roslaniec
8edd343ab8
Test qr code output
2021-04-08 11:57:02 +02:00
Piotr Roslaniec
f43ad5d055
Change nickname delineation
2021-04-08 11:56:39 +02:00
vzotova
3136a97aa6
Fix other tests
2021-03-22 11:37:27 -07:00
Kieran Prasch
ed032de9e8
Translating economic parameters to handle 7 day periods.
2021-03-22 11:37:27 -07:00
derekpierre
305bf0a7fb
Added unit and integration tests for keyring.
2021-02-18 18:08:40 -08:00
derekpierre
cbe03d9dc1
Add unit tests for (de)serialization if keys from/to files.
2021-02-18 18:08:40 -08:00
derekpierre
6f25d57971
Better organize serialization/deserialization functions.
...
Use loopback address functions.
Respond to RFCs for #2536 .
2021-02-18 18:08:40 -08:00
derekpierre
ab30f1f497
Improve serialization/deserialization logic of private keys.
2021-02-18 18:07:43 -08:00
Bogdan Opanchuk
4de9b91d2a
Refactor FleetSensor
2021-02-16 22:45:55 -08:00
K Prasch
6b2a9ecdbb
Merge pull request #2533 from cygnusv/fast-unit
...
Fixes to unit tests. Fix for #2484
2021-01-21 10:26:58 -08:00
David Núñez
0b2eb927be
We were incorrectly using net_version to identify the EthereumClient chain in certain places
...
Fixes #2484
2021-01-20 13:05:23 +01:00
David Núñez
d7e45d2959
Unskip cards unit tests
2021-01-20 12:36:27 +01:00
Kieran Prasch
bb0f317898
Bigfix: Use Worker HTTP client for fleet-sourced external IP determination (and supporting tests)
2021-01-18 10:48:55 -08:00
Kieran Prasch
3c65c566ae
Expands external IP determination unit testing
2021-01-17 14:36:53 -08:00
Kieran Prasch
9cb7c1979b
Bugfix and supporting tests for automated IP determination
2021-01-15 18:19:39 -08:00
Kieran Prasch
c7fd63630b
Unskips worker rate limiting test - Fixes unexpee limit test
2021-01-12 13:10:15 -08:00
Kieran R. Prasch
2d98971b43
Temp. skip work tracker test for CI runs.
2021-01-12 13:10:15 -08:00
Bogdan Opanchuk
2e0efe451e
Use in-memory mock LMDB environment for most tests
2021-01-02 17:19:13 -08:00
Kieran Prasch
1cf48ede24
Installs new plumbing for --max-gas-price througout CLI and configuration modules.
2020-12-25 01:51:16 +01:00
David Núñez
568d05ae52
Simplify max_price_gas_strategy: not controlled by an envvar anymore
2020-12-25 01:51:16 +01:00
David Núñez
9cba73bd53
Deprecate datafeed_fallback_gas_strategy
2020-12-25 01:51:16 +01:00
damon
5ed448058c
worktracker: enforce random_interval after one failure
2020-12-25 01:51:16 +01:00
David Núñez
489e7e6c70
Use the 3 gas price datafeeds we have to build a median-based strategy
2020-12-25 01:51:15 +01:00
David Núñez
356cc1ad4a
Include the Zoltu gas price oracle in the datafeed fallback strategy
2020-12-25 01:51:15 +01:00
David Núñez
659c8db947
Added gas price data feed from gas-oracle.zoltu.io
2020-12-25 01:51:15 +01:00
David Núñez
a6a089f76f
Introduce a max price gas strategy wrapper that caps the price of any strategy
...
Controlled by the NUCYPHER_MAX_GAS_PRICE_GWEI envvar
2020-12-25 01:51:15 +01:00
David Núñez
0c3b9c2742
Use canonical speed names internally in gas price datafeeds
2020-12-25 01:51:15 +01:00
David Núñez
6e83b0ffe1
Prioritize Upvest gas price datafeed
2020-12-25 01:51:15 +01:00
David Núñez
a56ce5151d
Construct the datafeed gas strategy based on the speed name
2020-12-25 01:51:15 +01:00
David Núñez
71ad8c2c31
Introduce equivalence classes for gas speed names
2020-12-25 01:50:43 +01:00
David Núñez
5f93a3ae59
Skip card unit tests until qrcode module is added as dependency in 2440
2020-12-17 23:30:51 +01:00
Kieran Prasch
89043b3065
Deprecates managed provider/client syncing
2020-12-14 12:01:18 -08:00