fix(python-sdk): accept wallet address in Hunch client#1376
Conversation
PR Review: FAILWhat This DoesThis attempts to let Python SDK consumers construct Blast RadiusPython SDK exchange wrapper generation only: Consumer VerificationBefore (base branch): A Python SDK consumer passing After (PR branch): However, the file header says npm run generate:python-exchanges --workspace=pmxt-coreThe regenerated diff removes the new Hunch @@ class Hunch(Exchange):
- wallet_address: Optional[str] = None,
@@
- wallet_address: EVM wallet address used for hosted reads/writes
@@
- wallet_address=wallet_address,So the consumer-visible fix is not durable: any normal SDK regeneration will drop it. Test Results
Findings
PMXT Pipeline Check
Semver Impactpatch -- intended Python SDK constructor compatibility fix. RiskUntil the generator/source-of-truth is updated, the Hunch hosted wallet-address support can disappear during routine SDK generation, causing the same consumer |
Summary
wallet_addressto the PythonHunchconvenience client constructor.Exchangebase class so hosted-mode reads/writes can resolve wallet-scoped endpoints.Fixes #1372
Test Plan
python3 -m py_compile sdks/python/pmxt/_exchanges.py sdks/python/tests/test_hosted_dispatch.pyPYTHONPATH=/tmp/pmxt-pystub:sdks/python python3 -m pytest sdks/python/tests/test_hosted_dispatch.py::test_hunch_constructor_accepts_wallet_address_for_hosted_mode -qNote: the local checkout lacks committed generated
pmxt_internalartifacts, so the focused pytest used an untracked/tmp/pmxt-pystubgenerated-client stub only for importability.