Skip to content

Coordinator Alpha 13 Support#3227

Merged
derekpierre merged 38 commits intonucypher:contracts-alpha-13from
derekpierre:alpha-13
Sep 20, 2023
Merged

Coordinator Alpha 13 Support#3227
derekpierre merged 38 commits intonucypher:contracts-alpha-13from
derekpierre:alpha-13

Conversation

@derekpierre
Copy link
Copy Markdown
Member

@derekpierre derekpierre commented Sep 12, 2023

Type of PR:

  • Feature
  • Contract Compatibility

Required reviews:
3

What this does:

Feature
  • provider public key (ferveo public key) is set on Ursula startup in block_until_ready.
  • use OZ proxy contracts for upgradeable contract deployments (taco application and child, etc.)
Refactor
  • merges Ritualist into Operator
  • converts ape YML deployment customization into fixtures
  • converts web3 contract interactions in tests to use local ape deployments
  • adapts Agents to use ProxyAdmin and TransparentUpgradeableProxy from nucypher registries
  • bumps ursula configuration v6 -> v7
  • Operator.block_until_ready handles MATIC instead of ETH
Rename
  • renames payment_method -> pre_payment_method
  • renames payment_network -> pre_payment_network
  • renames payment_strategy -> pre_payment_strategy
  • relocates OperatorBondedTracker to nucypher.blockchain.eth.trackers.bonding
Removal
  • removes Ritualist
  • removes AvailabiltyTracker
  • removes WorkTracker

Notes for reviewers:

@derekpierre derekpierre changed the base branch from development to contracts-alpha-13 September 12, 2023 18:39
@derekpierre derekpierre changed the title [WIP] Coordinator - Alpha 13 [WIP] Coordinator Alpha 13 Support Sep 12, 2023
@derekpierre derekpierre changed the base branch from contracts-alpha-13 to development September 14, 2023 12:38
@derekpierre
Copy link
Copy Markdown
Member Author

Temporarily changing the PR base to get some CI builds.

@derekpierre derekpierre force-pushed the alpha-13 branch 2 times, most recently from a0bf22a to ff2ed01 Compare September 14, 2023 19:01
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 14, 2023

Codecov Report

Merging #3227 (dcbb7bf) into contracts-alpha-13 (84d8344) will increase coverage by 0.80%.
The diff coverage is 90.20%.

❗ Current head dcbb7bf differs from pull request most recent head 83348ec. Consider uploading reports for the commit 83348ec to get more accurate results

@@                  Coverage Diff                   @@
##           contracts-alpha-13    #3227      +/-   ##
======================================================
+ Coverage               79.03%   79.83%   +0.80%     
======================================================
  Files                     112      112              
  Lines                   11762    11264     -498     
======================================================
- Hits                     9296     8993     -303     
+ Misses                   2466     2271     -195     
Flag Coverage Δ
acceptance 90.96% <95.67%> (-0.36%) ⬇️
integration 72.61% <77.27%> (+1.22%) ⬆️
unit 57.67% <61.97%> (+0.36%) ⬆️

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

Files Changed Coverage Δ
nucypher/network/middleware.py 86.53% <ø> (+1.00%) ⬆️
tests/acceptance/characters/test_operator.py 100.00% <ø> (ø)
tests/acceptance/cli/test_ursula_init.py 29.23% <0.00%> (+0.87%) ⬆️
...cypher/config/migrations/configuration_v6_to_v7.py 30.76% <30.76%> (ø)
tests/acceptance/cli/test_ursula_run.py 55.42% <56.25%> (ø)
nucypher/blockchain/eth/actors.py 79.09% <69.23%> (-2.95%) ⬇️
nucypher/config/base.py 92.57% <85.71%> (ø)
...ts/acceptance/agents/test_sampling_distribution.py 95.45% <90.00%> (-0.44%) ⬇️
nucypher/config/characters.py 94.59% <93.75%> (-0.51%) ⬇️
nucypher/blockchain/eth/trackers/bonding.py 100.00% <100.00%> (ø)
... and 19 more

…d use ape pytest fixtures for contract deployment/management.
TACoApplicationChild should reference root application via proxy contract.
…al contracts) as part of acceptance tests contract deployments
…ovider_public_key() from confirm_operator_address().
Copy link
Copy Markdown
Member

@KPrasch KPrasch left a comment

Choose a reason for hiding this comment

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

There is one outstanding issue related to configuration migration but this PR is RFR!

I am a co-author so my approval is implicit :-) 🤠

Copy link
Copy Markdown
Member

@cygnusv cygnusv left a comment

Choose a reason for hiding this comment

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

First pass, nothing important!

derekpierre and others added 4 commits September 15, 2023 10:53
…o ensure proper changes are enacted.

Migration from v4->v5 missed deprecation of "db_filepath" configuration parameter.
Add tests for configuration migration.
Copy link
Copy Markdown

@manumonti manumonti left a comment

Choose a reason for hiding this comment

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

I have seen several times that test_registry is passed as argument to tests or functions that don't use it.

But a this point I'm not sure if this is unnecesary code or it is neccesary to have it (although this is not called) for some reason.

In any case, great work guys! 💪

@manumonti
Copy link
Copy Markdown

It's nice to see the CI tests passing again 🙌

derekpierre added a commit to derekpierre/nucypher that referenced this pull request Sep 18, 2023
…t/dependeny fixture parameters, comment cleanups.
@derekpierre derekpierre dismissed manumonti’s stale review September 18, 2023 16:07

Comments resolved via commits.

…t/dependeny fixture parameters, comment cleanups.
Copy link
Copy Markdown

@manumonti manumonti left a comment

Choose a reason for hiding this comment

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

LGTM! 🙌

Thanks for addressing all this nitpicky suggestions

@derekpierre
Copy link
Copy Markdown
Member Author

Thanks for addressing all this nitpicky suggestions

Thanks for the great review! 🧐

@derekpierre derekpierre merged commit fa0082e into nucypher:contracts-alpha-13 Sep 20, 2023
@KPrasch KPrasch mentioned this pull request Sep 28, 2023
2 tasks
KPrasch pushed a commit that referenced this pull request Nov 30, 2023
KPrasch pushed a commit that referenced this pull request Nov 30, 2023
Update newsfragment for #3213.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

4 participants