Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

cygnusv
Copy link
Member

@cygnusv cygnusv commented May 14, 2024

Type of PR:

  • Bugfix
  • Feature
  • Documentation
  • Other

Required reviews:

  • 1
  • 2
  • 3

What this does:

High-level idea of the changes introduced in this PR.
List relevant API changes (if any), as well as related PRs and issues.

Issues fixed/closed:

Why it's needed:

Explain how this PR fits in the greater context of the NuCypher Network.
E.g., if this PR address a nucypher/productdev issue, let reviewers know!

Notes for reviewers:

What should reviewers focus on?
Is there a particular commit/function/section of your PR that requires more attention from reviewers?

@cygnusv cygnusv changed the base branch from main to v7.4.x May 14, 2024 08:46
ciphertext_header=bytes(ciphertext_header),
):
ritual = self._resolve_ritual(decryption_request.ritual_id)
abi = """[
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #3503

derekpierre added a commit to cygnusv/nucypher that referenced this pull request Jul 9, 2024
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

Attention: Patch coverage is 68.75000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 84.91%. Comparing base (6090b92) to head (12ae267).

Files Patch % Lines
nucypher/blockchain/eth/agents.py 0.00% 5 Missing ⚠️
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     
Flag Coverage Δ
acceptance 95.19% <ø> (+0.05%) ⬆️
integration 84.91% <68.75%> (-0.04%) ⬇️
unit 84.91% <68.75%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KPrasch KPrasch force-pushed the v7.4.x branch 4 times, most recently from 16d1acd to 073cbd5 Compare July 29, 2024 12:03
@KPrasch KPrasch changed the base branch from v7.4.x to v7.5.x August 14, 2024 12:15
@derekpierre
Copy link
Member

Subsumed by #3535. The commits were cherry-picked into that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants