Manuel Montenegro
2127289a7d
Update contract registries
...
These registries were updated using the ones in
3703a8342a321b9197cfe6e960c17e1f77e331bb
2025-04-08 17:19:00 +02:00
Manuel Montenegro
0f5dcabcea
Rename back method name for is_provider_key_set
2025-04-08 16:56:43 +02:00
Manuel Montenegro
2859ff2a16
Update coordinator contract method name
2025-04-07 19:00:47 +02:00
Manuel Montenegro
73674f1bd5
Update contract registris for lynx and mainnet
2025-04-07 18:46:49 +02:00
Manuel Montenegro
98ec47c8d6
Merge branch 'v7.5.x' into incompatible
2025-04-07 18:34:06 +02:00
derekpierre
dcf0b1b667
Fix python warning about regex string syntax. The string is correct but python is warning about the escape sequence and assumes it was a mistake.
2025-04-04 15:46:06 -04:00
David Núñez
98fc240d90
Introduce breaking change when posting transcripts
2025-04-04 11:38:21 +02:00
derekpierre
46f954f191
Redact IP address from twisted's http server log messages.
2025-03-25 11:40:25 -04:00
derekpierre
8d49a09be3
Make logic more robust for checking for BigInt strings.
...
Add unit test for utility method - it was already tested based on usage by a field, but let's test it directly.
2025-03-25 08:55:47 -04:00
derekpierre
f985433f11
Rename integer field for clarity.
2025-03-25 08:55:46 -04:00
derekpierre
4198aed384
Allow processing of BigInt strings within context variable values.
...
Add tests.
2025-03-25 08:55:44 -04:00
derekpierre
d1e2311a97
Rename IntegerField to AnyIntegerField and add unit tests.
2025-03-25 08:55:43 -04:00
derekpierre
a4df4662aa
Properly handle bigint strings that are strings of large numbers that end with 'n'.
2025-03-25 08:55:42 -04:00
derekpierre
1b13c50b02
Add generic catch-all field for any data received from JSON (`taco-web`).
...
We need to account for the case when `taco-web` provides large numbers (bigints) as strings.
Add tests.
2025-03-25 08:55:35 -04:00
David Núñez
c8507105e9
Camel casing 🐫
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2025-03-23 10:46:16 +01:00
David Núñez
a614bc5e5f
Add JWTConditionDict type
2025-03-23 10:46:16 +01:00
David Núñez
10e9d19e66
validate_public_key has void return type so no need to return values
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2025-03-23 10:46:16 +01:00
David Núñez
b022f7a0a0
Refactor JWTCondition to use execution calls instead of inheriting from them
...
The rationale for this is to keep the ExecutionCall abstraction to encapsulate the JWT verification logic, but without inheriting from ExecutionCallAccessControlConditions, which require ReturnValueTests, something that JWTConditions don't need.
2025-03-23 10:46:16 +01:00
David Núñez
d2a6ae919e
Better exception handling for JWT condition evaluation
2025-03-23 10:46:16 +01:00
David Núñez
7a33522410
Be consistent with parameters that are not optional
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2025-03-23 10:46:16 +01:00
David Núñez
9c8db5e688
Validate public key PEM format in JWT conditions
...
Co-authored-by: James Campbell <james.campbell@tanti.org.uk>
2025-03-23 10:46:16 +01:00
David Núñez
05998b0a9a
Apply suggestions from code review
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2025-03-23 10:46:16 +01:00
David Núñez
28895c3463
Cleanup unused comments
2025-03-23 10:46:16 +01:00
David Núñez
4ce01d2a60
Validate expected issuer in JWT token
2025-03-23 10:46:16 +01:00
David Núñez
46d26768e7
Some comments and TODO regarding expected issuer
2025-03-23 10:46:16 +01:00
David Núñez
39c6ba8d59
Add JWTCondition to condition resolution
2025-03-23 10:46:16 +01:00
David Núñez
bfba37db58
First iteration on JWTConditions
2025-03-23 10:46:16 +01:00
David Núñez
c17f174501
Add new JWT condition type name
2025-03-23 10:46:16 +01:00
beemeeupnow
8d673c5c4d
Fix duplicate assignment typo
2025-03-12 08:10:49 -06:00
derekpierre
56ea9c1c12
Apply RFC from #3576 .
2025-02-07 08:36:05 -05:00
derekpierre
268527eaf5
Fix linter errors.
2025-02-05 13:30:03 -05:00
derekpierre
4ccfe68c36
Apply RFC from #3576 that caught a bug.
...
Co-authored-by: vzotova <vikki.zta@gmail.com>
2025-02-05 13:30:03 -05:00
derekpierre
967b272a28
Improve exception message when RPC endpoints for a chain are available but can't be properly configured.
2025-02-05 13:30:03 -05:00
derekpierre
f340e3b153
Simplify authentication logic for EIP1271.
2025-02-05 13:29:58 -05:00
derekpierre
75e49a603f
Sort list of chain ids returned by `/condition_chains` node endpoint.
...
Update test.
2025-02-05 13:29:58 -05:00
derekpierre
7e06339d5f
Fix bug in /condition_chains endpoint causing test failure.
2025-02-05 13:29:58 -05:00
derekpierre
278cf9f0d4
Add more robust logic for the case where there are faulty providers and therefore faulty w3 instances when calling EIP1271 contract.
...
Use chain as key within typedData instead of chain_id.
2025-02-05 13:29:54 -05:00
derekpierre
93ba45f48b
Initial implementation of EvmAuth for EIP1271.
...
Update use of provider manager across EvmAuth initerface and subsequent tests.
2025-02-05 13:29:47 -05:00
derekpierre
24d0669940
Add use of ConditionProviderManager across lingo evaluation / condition verification.
2025-02-05 13:11:29 -05:00
derekpierre
27a02837c4
Add ConnectionProviderManager utility to be eventually used for managing connection providers for conditions.
...
Raise separate exceptions for no connection vs invalid connection to blockchain - those are two different scenarios.
2025-02-05 13:11:29 -05:00
derekpierre
97aa16cd6e
Update ConditionDict types to account for updated JsonApiCondition and JsonRpcCondition.
2025-02-05 10:43:34 -05:00
derekpierre
74df16e015
Apply AI RFCs from #3571 .
...
- Use random uuid4 as id for request
- Improve error handling in case code/message isn't available.
- Add to headers dictionary instead of recreating
- offchain -> off-chain
2025-01-02 10:04:15 -05:00
derekpierre
f718a00ba1
Add common base condition class for JSON Api and Rpc for common verify method.
2024-12-29 20:58:58 -05:00
derekpierre
6553f6bd77
Ensure that result field is present in JSON RPC response before processing.
2024-12-29 20:42:41 -05:00
derekpierre
bc8ff993c8
Fix processing logic of json path query; proper exceptions are handled and raised.
2024-12-19 10:33:00 -05:00
derekpierre
834cd7dd69
Clean up repeated member variable from JsonRpcCondition.
2024-12-19 10:33:00 -05:00
derekpierre
258f5cd3ae
Use json parameter instead of data when using requests.post; also simplifies testing.
2024-12-19 10:32:59 -05:00
derekpierre
9440dd1820
Update exception error message for failed JSON rpc call.
2024-12-19 10:32:56 -05:00
derekpierre
3cade99a43
Fix incorrect naming.
2024-12-19 10:32:55 -05:00
derekpierre
504c2d0498
Update code based on limitations of python 3.9. `http.HTTPMethod` and `typing.override` are not available.
2024-12-19 10:32:54 -05:00