pancake-frontend
pancake-frontend copied to clipboard
chore: apply quote worker CommandFactory
PR-Codex overview
This PR focuses on restructuring the worker logic in the quote-worker
directory.
Detailed summary
- Moved types from
quote-worker
toquote-worker/types
- Refactored commands into separate files
- Created a
CommandFactory
to handle command creation - Updated command implementations for
GetBestTrade
andGetBestTradeOffchain
- Added new
MulticallChunkCommand
for fetching chunks - Updated event handling logic in
quote-worker.ts
The following files were skipped due to too many changes:
apps/web/src/quote-worker.ts
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}