Skip to content

fix(sdk): lazily initialize chain websocket APIs - #1314

Merged
ebma merged 1 commit into
stagingfrom
codex/lazy-vortex-chain-initialization
Aug 5, 2026
Merged

fix(sdk): lazily initialize chain websocket APIs#1314
ebma merged 1 commit into
stagingfrom
codex/lazy-vortex-chain-initialization

Conversation

@ebma

@ebma ebma commented Aug 5, 2026

Copy link
Copy Markdown
Member

Summary

  • remove the obsolete chain WebSocket initialization gate from quote/register flows
  • initialize only the chain APIs required for returned unsigned transactions, with named bounded timeouts
  • cover BRL onramp/offramp registration and required Pendulum signing with dead WebSocket endpoints

Testing

  • bun run test in packages/sdk (49 tests, build, and bundle smoke-load)
  • bun run typecheck in packages/sdk

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit f84e158
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/6a72fbfc88dbab00087e0cc2
😎 Deploy Preview https://deploy-preview-1314--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit f84e158
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/6a72fbfce256330008288b2d
😎 Deploy Preview https://deploy-preview-1314--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

Deploy Preview for vrtx-dashboard canceled.

Name Link
🔨 Latest commit f84e158
🔍 Latest deploy log https://app.netlify.com/projects/vrtx-dashboard/deploys/6a72fbfc9e3de100080ac9bf

@ebma
ebma requested a balanced review from Copilot August 5, 2026 09:14

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

Makes SDK chain API initialization demand-driven and bounded, preventing unavailable WebSockets from blocking HTTP-only ramp flows.

Changes:

  • Adds configurable per-network initialization timeouts and structured errors.
  • Avoids chain initialization when no transactions require signing.
  • Adds BRL regression tests and updates SDK documentation.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/sdk/src/VortexSdk.ts Defers network initialization until signing is required.
packages/sdk/src/services/NetworkManager.ts Adds bounded initialization and cleanup.
packages/sdk/src/errors.ts Defines network initialization errors.
packages/sdk/src/types.ts Exposes timeout configuration.
packages/sdk/test/vortexSdk.lazyNetworks.test.ts Tests HTTP-only flows and timeout behavior.
packages/sdk/README.md Documents lazy initialization.
packages/sdk/ARCHITECTURE.md Updates network-manager responsibilities.
.agents/skills/vortex-integration/SKILL.md Updates the integration example.

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

@ebma
ebma merged commit 39e09f5 into staging Aug 5, 2026
7 checks passed
@ebma
ebma deleted the codex/lazy-vortex-chain-initialization branch August 5, 2026 09:19
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