Skip to content

Feat/shield#962

Draft
cawabunga-bytes wants to merge 26 commits intomainfrom
feat/shield
Draft

Feat/shield#962
cawabunga-bytes wants to merge 26 commits intomainfrom
feat/shield

Conversation

@cawabunga-bytes
Copy link
Copy Markdown
Collaborator

No description provided.

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.
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
defuse-widget Ready Ready Preview, Comment Mar 9, 2026 0:02am

Request Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 16, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a7daf74b-4ae0-4c7a-8f73-7db617eb8b65

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/shield

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@supabase
Copy link
Copy Markdown

supabase bot commented Feb 16, 2026

Updates to Preview Branch (feat/shield) ↗︎

Deployments Status Updated
Database Mon, 09 Mar 2026 12:01:31 UTC
Services Mon, 09 Mar 2026 12:01:31 UTC
APIs Mon, 09 Mar 2026 12:01:31 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Mon, 09 Mar 2026 12:01:32 UTC
Migrations Mon, 09 Mar 2026 12:01:33 UTC
Seeding Mon, 09 Mar 2026 12:01:34 UTC
Edge Functions Mon, 09 Mar 2026 12:01:34 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

Mirrors 1cs.ts:getQuote() but uses CONFIDENTIAL_INTENTS for
depositType/recipientType/refundType. Requires JWT auth and
includes app fee logic.
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.
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