New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@solana/programs

Package Overview
Dependencies
Maintainers
0
Versions
998
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solana/programs - npm Package Compare versions

Comparing version 2.1.0-canary-20241211084732 to 2.1.0-canary-20250227211824

10

package.json
{
"name": "@solana/programs",
"version": "2.1.0-canary-20241211084732",
"version": "2.1.0-canary-20250227211824",
"description": "Helpers for defining programs and resolving program errors",

@@ -47,6 +47,6 @@ "exports": {

"type": "git",
"url": "https://github.com/solana-labs/solana-web3.js"
"url": "https://github.com/anza-xyz/kit"
},
"bugs": {
"url": "http://github.com/solana-labs/solana-web3.js/issues"
"url": "https://github.com/anza-xyz/kit/issues"
},

@@ -58,4 +58,4 @@ "browserslist": [

"dependencies": {
"@solana/addresses": "2.1.0-canary-20241211084732",
"@solana/errors": "2.1.0-canary-20241211084732"
"@solana/addresses": "2.1.0-canary-20250227211824",
"@solana/errors": "2.1.0-canary-20250227211824"
},

@@ -62,0 +62,0 @@ "peerDependencies": {

@@ -8,9 +8,9 @@ [![npm][npm-image]][npm-url]

[code-style-prettier-url]: https://github.com/prettier/prettier
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/programs/next.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/@solana/programs/next.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@solana/programs/v/next
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/programs?style=flat
[npm-image]: https://img.shields.io/npm/v/@solana/programs?style=flat
[npm-url]: https://www.npmjs.com/package/@solana/programs
# @solana/programs
This package contains helpers for identifying custom program errors. It can be used standalone, but it is also exported as part of the Solana JavaScript SDK [`@solana/web3.js@next`](https://github.com/solana-labs/solana-web3.js/tree/master/packages/library).
This package contains helpers for identifying custom program errors. It can be used standalone, but it is also exported as part of Kit [`@solana/kit`](https://github.com/anza-xyz/kit/tree/main/packages/kit).

@@ -23,6 +23,6 @@ ## Functions

- The `error` to identify.
- The `transactionMessage` object that failed to execute. Since the RPC response only provide the index of the failed instruction, we need the transaction message to access its program address.
- The `programAddress` of the program from which the error is expected.
- Optionally, the expected error `code` of the custom program error. When provided, the function will also check that the custom program error code matches the given value.
- The `error` to identify.
- The `transactionMessage` object that failed to execute. Since the RPC response only provide the index of the failed instruction, we need the transaction message to access its program address.
- The `programAddress` of the program from which the error is expected.
- Optionally, the expected error `code` of the custom program error. When provided, the function will also check that the custom program error code matches the given value.

@@ -29,0 +29,0 @@ ```ts

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc