Skip to content

Wormhole rate limits - #328

Open
Divljo31 wants to merge 1 commit into
masterfrom
feat/wormhole-limits
Open

Wormhole rate limits#328
Divljo31 wants to merge 1 commit into
masterfrom
feat/wormhole-limits

Conversation

@Divljo31

@Divljo31 Divljo31 commented Jun 2, 2026

Copy link
Copy Markdown
Member

Adds pre-flight validation against the Wormhole Governor rate limits, so transfers that would be enqueued or rejected by the Governor surface a report before the user signs.

  • WormholeGovernor client (xc-sdk) — wraps the wormholescan governor API (/governor/limit, /governor/config, /governor/enqueued_vaas); exposes per-chain rate-limit state and USD notional pricing by token origin.
  • WormholeRateLimitValidation (xc-sdk) — resolves the emitter chain (source, or transact for MRL), prices the transfer, and emits reports for Wormhole_RateLimit_Lockdown, Wormhole_BigTransaction, Wormhole_RateLimit_Exceeded, and Wormhole_Governor_Unreachable.
  • Wired into the xc factory's transferValidations and exposed as ctx.wormhole.governor.
  • Adds an xc-transfer example (wormhole-ratelimit.ts) that dumps governor limits and per-asset governed pricing.

@changeset-bot

changeset-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 030630f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@galacticcouncil/xc-sdk Minor
@galacticcouncil/xc Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Jun 2, 2026

Copy link
Copy Markdown

Deploy Preview for galactic-apps ready!

Name Link
🔨 Latest commit 030630f
🔍 Latest deploy log https://app.netlify.com/projects/galactic-apps/deploys/6a21671ea14b14000804373a
😎 Deploy Preview https://deploy-preview-328--galactic-apps.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@Divljo31
Divljo31 had a problem deploying to upgrade-ui-master June 2, 2026 09:50 — with GitHub Actions Failure
@jvonasek
jvonasek force-pushed the feat/wormhole-limits branch from b2a7769 to 030630f Compare June 4, 2026 11:53
@jvonasek
jvonasek had a problem deploying to upgrade-ui-master June 4, 2026 11:55 — with GitHub Actions Failure
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