feat(conditions): add :nullAddress as automatically injected context variable
Summary
Adds :nullAddress as an automatically injected context variable that resolves to the Ethereum null address (0x0000000000000000000000000000000000000000) on the node side.
Motivation
This is the taco-web companion PR to nucypher/nucypher#3668, which adds the :nullAddress protected context variable to the nucypher node implementation.
Changes
- Add
:nullAddressto AUTOMATICALLY_INJECTED_CONTEXT_PARAMS array - Add
:nullAddressto RESERVED_CONTEXT_PARAMS array to prevent manual setting by users
Testing
The existing test suite already handles automatically injected parameters:
- Tests verify that automatically injected parameters cannot be manually set
- Tests verify that reserved parameters are properly protected
Related PRs
- nucypher/nucypher#3668 - Node-side implementation of :nullAddress context variable
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:warning: Please upload report for BASE (signing-epic@552cf6f). Learn more about missing BASE report.
Additional details and impacted files
@@ Coverage Diff @@
## signing-epic #738 +/- ##
===============================================
Coverage ? 89.74%
===============================================
Files ? 97
Lines ? 8445
Branches ? 291
===============================================
Hits ? 7579
Misses ? 863
Partials ? 3
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.