Skip to content

refactor(txe): move orchestration logic out of rpc_translator - #23904

Merged
nchamo merged 1 commit into
merge-train/fairies-v5from
nchamo/f-674-refactortxe-move-orchestration-logic-out-of-rpc_translator
Jun 5, 2026
Merged

refactor(txe): move orchestration logic out of rpc_translator#23904
nchamo merged 1 commit into
merge-train/fairies-v5from
nchamo/f-674-refactortxe-move-orchestration-logic-out-of-rpc_translator

Conversation

@nchamo

@nchamo nchamo commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

The end goal is to replace rpc_translator.ts with a generic, registry-driven dispatcher where every oracle resolves to handler[name](...args) with zero logic in the layer. That requires eliminating all orchestration from the translator first.

This PR moves execution orchestration (call tracking, offchain effect draining, job cycling, tx hash retrieval) from rpc_translator.ts into TXESession, mirroring how PXE's PXE.ts service layer owns orchestration while Oracle.ts stays a pure transport layer. The four methods that had orchestration (privateCallNewFlow, executeUtilityFunction, publicCallNewFlow, getPrivateEvents) are now one-line delegations to the session, matching every other oracle method in the file. cycleJob, getCurrentJob, and withTopLevelCallTracking are no longer exposed on TXESessionStateHandler.

Fixes F-674

@nchamo nchamo self-assigned this Jun 5, 2026
@nchamo
nchamo requested a review from Thunkar June 5, 2026 13:10
@nchamo
nchamo merged commit ad12d0f into merge-train/fairies-v5 Jun 5, 2026
17 of 18 checks passed
@nchamo
nchamo deleted the nchamo/f-674-refactortxe-move-orchestration-logic-out-of-rpc_translator branch June 5, 2026 14:28
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.

2 participants