Commit Graph

12061 Commits (1aac60f0623da85cf27332cdf14e1c2484670b91)

Author SHA1 Message Date
David Núñez 1aac60f062
Allow nucypher-dkg script to be used on mainnet 2024-09-12 15:53:14 -04:00
KPrasch 2f876c570f
Merge pull request #3539 from derekpierre/client-versions
Add script to scrape `nucypher` client versions from nodes on the network
2024-09-12 15:52:59 -04:00
derekpierre b665602323
Add dev newsfragment for #3539. 2024-09-12 15:52:58 -04:00
derekpierre d4890e419f
Add script to determine node client versions across the network.
Co-authored-by: KPrasch <kieranprasch@gmail.com>
2024-09-12 15:52:58 -04:00
KPrasch 68306d9b5e
handle multiple json path query results as ambiguous 2024-09-12 15:52:57 -04:00
KPrasch 8878c10613
relocates JsonApiCondition timeout to a classvar 2024-09-12 15:52:56 -04:00
KPrasch 10c37d873a
Implements second layer of condition inout validation for use with python-only consunption 2024-09-12 15:52:56 -04:00
KPrasch c8e7d5eac3
support primitive responses for JsonApiCondition 2024-09-12 15:52:55 -04:00
KPrasch 3f2e3df059
Use Marshmallow's URL field for HTTPS enforcement of JsonApiCondition endpoint parsing 2024-09-12 15:52:55 -04:00
KPrasch e727f95744
fixes json path field error rendering 2024-09-12 15:52:54 -04:00
KPrasch 40b7b65508
Implement a redundant validation of JsonApiCondition scheme (RFC) 2024-09-12 15:52:53 -04:00
KPrasch 06af880616
restrictive design: unexpose custom request headers and require https 2024-09-12 15:52:53 -04:00
KPrasch f2c7337483
respond to RFCs in PR #3511 2024-09-12 15:52:52 -04:00
KPrasch f59d636d54
updates dependencies for subdependency compatibility between jsonpath-ng and numpy 2024-09-12 15:52:52 -04:00
KPrasch 679f20e154
Demonstrates offchain condition lingo expression deserialization and class resolution 2024-09-12 15:52:51 -04:00
KPrasch 98597d9d27
fix: handle non-JSON responses correctly 2024-09-12 15:52:51 -04:00
KPrasch ecc8b16602
error handling and logging for offchain condition evaluations 2024-09-12 15:52:50 -04:00
KPrasch 0fe3a9b5f1
baseline test coverage for offchain condition internals 2024-09-12 15:52:49 -04:00
KPrasch 95b81bf6f9
exposes request headers for offchain condition GET requests 2024-09-12 15:52:49 -04:00
KPrasch 912899c033
add jsonpath-ng to Pipfile 2024-09-12 15:52:48 -04:00
KPrasch f74636ab7e
newsfragments for PR #3511 2024-09-12 15:52:47 -04:00
KPrasch ed34186255
includes offchain condition class resolution in top level validator 2024-09-12 15:52:47 -04:00
KPrasch 0d9489762f
reword docstrings 2024-09-12 15:52:46 -04:00
KPrasch df3e3cb049
include jsonpath-ng in project dependencies 2024-09-12 15:52:45 -04:00
KPrasch 36bf6a93f3
mocked ETH price condition from 3rd party party API 2024-09-12 15:52:45 -04:00
KPrasch 9313203353
Establish an OffchainCondition type 2024-09-12 15:52:44 -04:00
KPrasch 29a6d31dfd
setup a test module for offchain condition evaluation 2024-09-12 15:52:43 -04:00
KPrasch 4dee63706d
Bump version: 7.4.1 → 7.5.0 2024-09-12 15:52:34 -04:00
derekpierre 8f03cd5b7e
Generate release notes for v7.4.1. 2024-09-12 13:22:34 -04:00
Derek Pierre b43e7e6483
Merge pull request #3552 from nucypher/v7.4.1-hotfix
[EPIC] v7.4.1 Hotfix
2024-09-12 13:18:54 -04:00
Derek Pierre d22fea13fd
Merge pull request #3549 from derekpierre/poa-redundancy
POA Error: reconfiguration of `BlockchainInterface` during connectivity problems results in incomplete middleware setup
2024-09-05 08:47:11 -04:00
derekpierre 5892b67d23
Modify order of adding middlewares, poa first (layer 0), then retry, then simple cache. 2024-09-05 08:47:10 -04:00
derekpierre b22fd0fcb5
Messages for logging addition of middleware now logged at info level so that we can always observe them in the logs. 2024-09-05 08:47:09 -04:00
derekpierre 646e2f5b11
Remove is_connected in favour of is_initialized for clarity. 2024-09-05 08:47:08 -04:00
KPrasch 3b0710d611
Update newsfragments/3549.bugfix.rst
Co-authored-by: David Núñez <david@nucypher.com>
2024-09-05 08:47:07 -04:00
derekpierre 85aaa29163
Add newsfragment from #3549. 2024-09-05 08:47:06 -04:00
derekpierre bff74b7a25
Add regression test that ensures that BlockchainInterface.connect() only sets its underling instances once after successful execution. 2024-09-05 08:47:05 -04:00
derekpierre 258ebef8ef
Remove poa error redundancy middleware now that we understand the underlying cause of the problem. It was always a stop gap measure until we could determine the exact cause of the poa error; Now that we know the error it is no longer needed. 2024-09-05 08:47:04 -04:00
derekpierre 2158136c6f
BlockchainInterface.connect() should only ever be called once if successful; blips in connectivity should not cause it to be called again.
Blips in connectivity can cause resetting of underlying w3, client instances, and missing poa middleware if chain_id cannot be determined.

Co-authored-by: KPrasch <kieranprasch@gmail.com>
2024-09-05 08:47:03 -04:00
derekpierre 43e0dcb941
Make a call to eth.get_block after establishing an EthereumClient with middlewares to ensure that poa middleware, if needed, works correctly. 2024-09-05 08:47:01 -04:00
derekpierre eb7ecc844d
Add test for POA error redundancy middleware. 2024-09-05 08:47:00 -04:00
derekpierre 2ec5680a1f
Always name the middlewares we add to web3 middleware onion. 2024-09-05 08:46:59 -04:00
derekpierre f692b0650f
Always inject poa middleware for Web3 instances used for evaluating RPCConditions (and sub-classes). 2024-09-05 08:46:58 -04:00
derekpierre 930eaf9b23
Fix linter errors. 2024-09-05 08:46:57 -04:00
derekpierre 8be1f2590a
Always inject the poa middleware irrespective of chain. 2024-09-05 08:46:57 -04:00
derekpierre a0c0431969
Modify how poa error redundancy middleware is created for clarity and better cohesion with providing the name of the original poa middleware used. 2024-09-05 08:46:55 -04:00
derekpierre 45dcc317fe
Add redundancy POA error middleware that adds/replaces geth poa middleware if ExtraDataLengthError is encountered at any time. 2024-09-05 08:46:54 -04:00
derekpierre f834cfc5af
Bump version: 7.4.0 → 7.4.1 2024-09-05 08:46:49 -04:00
Derek Pierre 42c3ac528e
Merge pull request #3446 from nucypher/v7.4.x
v7.4.x
2024-08-12 09:46:38 -04:00
KPrasch 46dfe4ad84
compile release notes for v7.4.0 2024-08-12 15:36:28 +02:00