Conversation
Move the Private Mode toggle from the Settings popover to the Account page header using IslandHeader's rightSlot. Create a reusable PrivateModeToggle component with tooltip hints for disabled states.
Store both access and refresh tokens in separate HTTP-only cookies. Automatically refresh access token when expired or about to expire (60s threshold). Clear session and require re-auth if refresh fails or API returns 401.
The SDK changed GetBalanceResponseDto to GetBalancesResponse, where balances is now Array<BalanceEntry> instead of Record<string, string>. Also fix private holdings lookup to search inside unified token groups.
Add getPrivateTransferQuote server action with both depositType and recipientType set to PRIVATE_INTENTS, accepting a recipientIntentsUserId for the destination. Add Transfer tab to shield-demo page with recipient input field. Rename generateShieldIntent/submitShieldIntent/ getShieldExecutionStatus to generateIntent/submitIntent/getExecutionStatus to reflect their use across all three flows.
Replace EVM/NEAR-only signers (createIntentSignerViem, createIntentSignerNEP413) with wallet-agnostic signing via useWalletAgnosticSignMessage + prepareBroadcastRequest. All 7 wallet types now supported. SDK's intentBuilder().build() still used for correct verifying_contract and nonce generation; new intentPayloadToWalletMessage() bridges IntentPayload to WalletMessage. Also fixes NEAR signature double-encoding bug where Buffer.from(base64) without encoding arg corrupted signatures.
…verride The SDK applies OpenAPI.TOKEN after HEADERS, so 1cs.ts setting TOKEN=API_KEY was overwriting the JWT we placed in HEADERS.authorization.
Replace global setAuthToken/resetAuthToken mutations with an OpenAPI.TOKEN resolver that reads the JWT from cookies on each request, eliminating race conditions between concurrent server actions.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Updates to Preview Branch (feat/shield) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
Mirrors 1cs.ts:getQuote() but uses CONFIDENTIAL_INTENTS for depositType/recipientType/refundType. Requires JWT auth and includes app fee logic.
This reverts commit 0076889.
Export the auth guard so 1cs.ts can call it for confidential swaps.
…Intent When isConfidential is true, uses CONFIDENTIAL_INTENTS deposit/recipient/refund types and calls auth guard as fail-fast check before API calls.
Read isPrivateModeEnabled from usePrivateModeStore in SwapUIMachineProvider, pass as isConfidential to swapUIMachine input/context, and include in key prop so the machine re-initializes on toggle.
…related components
4c21dc2 to
9854303
Compare
No description provided.