feat: CI-enforced transfer limit tests#31
Open
anirudhvenu wants to merge 4 commits intomasterfrom
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
2f272bc to
1f4287b
Compare
1f4287b to
434259e
Compare
shrinathprabhu
approved these changes
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adds a vitest test suite and CI workflow to enforce chain-specific transfer limits.
What's tested
maxBridgeAmountis 550Dependency update
Switched
@avail-project/nexus-corefrom git-hosted references to the published npm package (^1.2.0). The git-hosted version requires building from source duringpnpm install, which fails in CI due to a TypeScript type inference issue in the nexus-core build step.Files added/modified
tests/chain-limits.test.ts— 7 test assertionsvitest.config.ts— test runner config.github/workflows/ci-limits.yml— CI workflow on PRs and pushes to master, path-scoped to runtime and test filespackage.json— added vitest devDependency and test scriptturbo.json— added test taskapps/*/package.json,packages/fast-bridge-app/package.json— nexus-core switched from git to npmHow to update
When adding a new chain or destination override, update the corresponding test to assert the exact shape and entry count. See the MegaETH tests as a template.