-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Call access controller directly, not via Coordinator #3501
Conversation
nucypher/blockchain/eth/actors.py
Outdated
ciphertext_header=bytes(ciphertext_header), | ||
): | ||
ritual = self._resolve_ritual(decryption_request.ritual_id) | ||
abi = """[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume that you already have plans to relocate this for readability?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah absolutely. In fact, this was actually bait for you 🤠 It desperately needs a grander idea for creating agents out of known ABIs but with addresses known at runtime. This will be useful for instantiating contracts that have a known interface or are generated by a factory. As you can see here, I just hardcoded the abi and used web3py directly for the contract, but an agent-like entity would be best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I knew something was bait-like about this :-).
Yes - I clearly see the need for such an interface. I have a few ideas about how to build this I'll try to whip something up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened #3503
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v7.4.x #3501 +/- ##
==========================================
- Coverage 84.94% 84.91% -0.04%
==========================================
Files 123 123
Lines 11397 11400 +3
==========================================
- Hits 9681 9680 -1
- Misses 1716 1720 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
16d1acd
to
073cbd5
Compare
…y be made cleaner, but in the interim it allows the tests to pass.
Subsumed by #3535. The commits were cherry-picked into that PR. |
Type of PR:
Required reviews:
What this does:
Issues fixed/closed:
Why it's needed:
Notes for reviewers: