8000 chore: track web3 v7 migration in ypricemagic (blocked on Brownie support) · Issue #1370 · BobTheBuidler/ypricemagic · GitHub
[go: up one dir, main page]

Skip to content

chore: track web3 v7 migration in ypricemagic (blocked on Brownie support) #1370

@BobTheBuidler

Description

@BobTheBuidler

Summary

This issue tracks the staged migration of ypricemagic from web3 v6 to web3 v7.

A prep branch has been created: web3-v7.
Current prep commit on that branch: 8662dd4ef09a673dfcd2c28b201c4acb6a1241a5.

Rationale

We need to remove legacy web3 v6 compatibility paths and move to web3 v7-native interfaces, but rollout is currently blocked by Brownie still targeting web3 v6 in the active dependency chain.

Details

What has already been adapted on web3-v7

  • Removed v6/v7 split import path for PoA middleware in y/utils/middleware.py.
  • Switched to v7-style middleware construction for getCode cache middleware (Web3Middleware + middleware-builder shape).

Migration work to complete in this repo

  1. Audit all web3 API touchpoints for v7-only compatibility:
  • middleware APIs (middleware_onion.add/inject expectations)
  • attribute/property changes (for example, client/version access patterns)
  • exception and response shape differences
  1. Add focused tests for each migrated call path (middleware setup, request execution, startup import path).
  2. Decide and implement dependency strategy:
  • either full web3 v7 pinning for this branch
  • or isolated compatibility wrappers if temporary dual-track is still needed during transition
  1. Update developer docs/runbooks to explicitly state web3 v7 branch expectations and current blocker.

External blocker

  • eth-brownie currently operates on the web3 v6 stack in our active setup.
  • Because of that, this migration branch is not rollout-ready until Brownie supports web3 v7 (or we decouple critical runtime paths from Brownie).

Exit criteria for rollout readiness

  • Brownie-side web3 v7 support is available and validated in our runtime.
  • ypricemagic tests pass in the v7-target environment.
  • Remaining v6-specific behavior paths are removed or intentionally documented as temporary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0