This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces TypeScript error code mappings for Router programs in the CCIP SVM (Solana Virtual Machine) package. It establishes a new TypeScript package structure with comprehensive error handling capabilities.
- Adds a new
@chainlink/ccip-svmpackage with TypeScript configuration and build setup - Creates custom error classes mapping Router program error codes (7000-7031) to TypeScript types
- Implements a factory function to convert numeric error codes to corresponding error instances
Reviewed Changes
Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/ccip-svm/package.json | Package configuration for the new CCIP SVM module with dependencies and scripts |
| packages/ccip-svm/tsconfig.json | TypeScript configuration with ES2020 target and strict type checking |
| packages/ccip-svm/src/index.ts | Main entry point exporting custom error types |
| packages/ccip-svm/src/errors/custom.ts | Comprehensive error class definitions and factory function for Router program error codes |
| packages/ccip-svm/README.md | Basic package documentation header |
Files not reviewed (2)
- packages/ccip-svm/package-lock.json: Language not supported
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
zeuslawyer
reviewed
Sep 19, 2025
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "esModuleInterop": true, | ||
| "skipLibCheck": true, |
Contributor
There was a problem hiding this comment.
ive not worked with Solana Kit much - lets keep an eye on skipLibCheck in case that dep is not consistent wth typing?
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR maps Router programs' error codes to TypeScript types. Merge it after #39