-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
test: add mock for batch transactions #21962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+755
−383
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hjetpoluru
previously approved these changes
Oct 30, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21962 +/- ##
==========================================
+ Coverage 77.04% 77.06% +0.02%
==========================================
Files 3765 3767 +2
Lines 95826 95853 +27
Branches 18616 18622 +6
==========================================
+ Hits 73833 73873 +40
+ Misses 16918 16906 -12
+ Partials 5075 5074 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
hjetpoluru
approved these changes
Oct 31, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
no changelog required
No changelog entry is required for this change
No QA Needed
Apply this label when your PR does not need any QA effort.
no-changelog
no-changelog Indicates no external facing user changes, therefore no changelog documentation needed
release-7.59.0
Issue or pull request that will be included in release 7.59.0
size-XL
team-qa
QA team
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds Polygon/EIP-7702 and transaction-sentinel mocks, refactors Polymarket mocks (cash-out, RPC, event details), and updates/extends E2E tests including a withdraw spec scaffold.
0x89) entries toconfirmations_eip_7702.contractsand extendsupportedChains.POLYGON_EIP7702_CONTRACT_ADDRESSandEIP7702_CODE_FORMAT; return EIP-7702 code foreth_getCodeofUSER_WALLET_ADDRESS.polymarket-transaction-sentinel-response.tsandPOLYMARKET_TRANSACTION_SENTINEL_MOCKSforinfura_simulateTransactions./proxymatcher; handle proxy walleteth_callselector0xaffed0e0; addeth_getTransactionCountandeth_estimateGasresponses.POLYMARKET_POST_CASH_OUT_MOCKS(mocks CLOB order, updates USDC balance, high-priority balance refresh); deprecatePOLYMARKET_CASH_OUT_BALANCE_LOAD_MOCKS; addPOLYMARKET_WITHDRAW_BALANCE_LOAD_MOCKS; helperMOCK_BATCH_TRANSACTIONS.POLYMARKET_EVENT_DETAILS_BLUE_JAYS_MARINERS_RESPONSE; add/exportPOLYMARKET_EVENT_DETAILS_SPURS_PELICANS_RESPONSE; update mocks to use them.TRANSACTION_COUNT_RESULT.predict-cash-out.spec.tsto use new cash-out mocks and remove force-refresh mock.predict-withdraw.spec.ts(withdraw flow scaffold) using new mocks.Written by Cursor Bugbot for commit c6301fd. This will update automatically on new commits. Configure here.