-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(experimental): remove program types and resolveTransactionEr…
…ror helper (#2491) Kinobi no longer makes use of program types such as `Program` and `ProgramWithErrors` as errors are now exported as simple numeric constants which can then be compared with the custom error code provided by the RPC. As such, the `resolveTransactionError` helper which requires an array of `ProgramWithErrors` instances is also no longer needed. Instead, one can use the `isProgramError` helper and provide the relevant generated constants as illustrated in the previous PR. This PR removes everything from the `@solana/programs` package aside from the `isProgramError` helper.
- Loading branch information
1 parent
1672346
commit 2040f96
Showing
9 changed files
with
13 additions
and
285 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@solana/programs": patch | ||
--- | ||
|
||
Remove program types and `resolveTransactionError` helper |
This file contains 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
This file contains 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
127 changes: 0 additions & 127 deletions
127
packages/programs/src/__tests__/resolve-transaction-error-test.ts
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
export * from './program'; | ||
export * from './program-error'; | ||
export * from './resolve-transaction-error'; |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.