@solana/programs
Advanced tools
Comparing version 2.1.0-canary-20241211084732 to 2.1.0-canary-20250227211824
{ | ||
"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
18425
+ Added@solana/addresses@2.1.0-canary-20250227211824(transitive)
+ Added@solana/assertions@2.1.0-canary-20250227211824(transitive)
+ Added@solana/codecs-core@2.1.0-canary-20250227211824(transitive)
+ Added@solana/codecs-numbers@2.1.0-canary-20250227211824(transitive)
+ Added@solana/codecs-strings@2.1.0-canary-20250227211824(transitive)
+ Added@solana/errors@2.1.0-canary-20250227211824(transitive)
+ Addedcommander@13.1.0(transitive)
- Removed@solana/addresses@2.1.0-canary-20241211084732(transitive)
- Removed@solana/assertions@2.1.0-canary-20241211084732(transitive)
- Removed@solana/codecs-core@2.1.0-canary-20241211084732(transitive)
- Removed@solana/codecs-numbers@2.1.0-canary-20241211084732(transitive)
- Removed@solana/codecs-strings@2.1.0-canary-20241211084732(transitive)
- Removed@solana/errors@2.1.0-canary-20241211084732(transitive)
- Removedcommander@12.1.0(transitive)