Skip to content

Feat/external orders#228

Open
0xNazarii wants to merge 15 commits intofeat/deltaSlippageParamfrom
feat/externalOrders
Open

Feat/external orders#228
0xNazarii wants to merge 15 commits intofeat/deltaSlippageParamfrom
feat/externalOrders

Conversation

@0xNazarii
Copy link

@0xNazarii 0xNazarii commented Mar 11, 2026

Note

Medium Risk
Adds a new external-order flow with EIP-712 signing, pre-signature transactions, and API posting, plus refactors shared slippage/partner-fee logic; mistakes could cause incorrect order parameters or signing/hashing mismatches.

Overview
Adds first-class support for External Delta orders: new builders, EIP-712 typed-data generation, signing, pre-signing (on-chain setPreSignature), and posting via postExternalDeltaOrder, plus a convenience submitExternalDeltaOrder wired into constructAllDeltaOrdersHandlers and exported from src/index.ts.

Refactors Delta order construction by centralizing slippage/side/amount resolution and partner-fee encoding into shared helpers (helpers/misc.ts), and updates getDeltaOrders/example status polling to handle both standard and external order shapes.

Written by Cursor Bugbot for commit 4943d15. This will update automatically on new commits. Configure here.

@github-actions
Copy link

github-actions bot commented Mar 11, 2026

size-limit report 📦

Path Size
dist/sdk.cjs.production.min.js 16.91 KB (+2.57% 🔺)
dist/sdk.esm.js 16.82 KB (+2.53% 🔺)

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

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.

1 participant