Skip to content

docs: add concurrent encryption examples (Promise.all / Promise.allSettled) - #88

Merged
abbesBenayache merged 1 commit into
mainfrom
docs/concurrent-encrypt
Jun 25, 2026
Merged

docs: add concurrent encryption examples (Promise.all / Promise.allSettled) #88
abbesBenayache merged 1 commit into
mainfrom
docs/concurrent-encrypt

Conversation

@abbesBenayache

@abbesBenayache abbesBenayache commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@abbesBenayache abbesBenayache self-assigned this Jun 24, 2026
Copilot AI review requested due to automatic review settings June 24, 2026 12:59
@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
nox-documentation Ready Ready Preview, Comment Jun 24, 2026 1:01pm

Request Review

@abbesBenayache abbesBenayache changed the title docs: add concurrent encryption examples (Promise.all / Promise.allSe… docs: add concurrent encryption examples (Promise.all / Promise.allSettled) Jun 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds documentation guidance for encrypting multiple inputs concurrently with the JS SDK, helping developers choose between fail-fast vs. partial-success concurrency patterns when calling encryptInput.

Changes:

  • Document concurrent encryptInput usage with Promise.all.
  • Document concurrent encryptInput usage with Promise.allSettled and per-item error handling.
  • Add a note about Handle Gateway rate limiting for high concurrency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +263 to +267
const [sell, minBuy, bid] = await Promise.all([
handleClient.encryptInput(sellAmount, 'uint256', CONTRACT_ADDRESS),
handleClient.encryptInput(minBuyAmount, 'uint256', CONTRACT_ADDRESS),
handleClient.encryptInput(bidAmount, 'uint256', CONTRACT_ADDRESS),
]);

@64ix 64ix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@abbesBenayache
abbesBenayache merged commit 5fb51f6 into main Jun 25, 2026
9 checks passed
@abbesBenayache
abbesBenayache deleted the docs/concurrent-encrypt branch June 25, 2026 15:08
64ix added a commit that referenced this pull request Jul 6, 2026
Resolves conflict in encryptInput.md: keeps both the fromExternal
cross-link (this branch) and the concurrent encryption section
added by #88 on main, back to back.
64ix added a commit that referenced this pull request Jul 6, 2026
Follow-up merge: local clone's origin/main tracking ref was stale
and missed #90 (isAllowed → viewACL cross-reference), merged into
main after #88. No conflict — different file.
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.

3 participants