-
Notifications
You must be signed in to change notification settings - Fork 1k
You can now request innerInstructions with simulation
#2868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You can now request innerInstructions with simulation
#2868
Conversation
🦋 Changeset detectedLatest commit: 5fa6c60 The changes in this PR will be included in the next version bump. This PR includes changesets to release 37 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @steveluscher and the rest of your teammates on |
e40a06c to
e06c2fd
Compare
84924be to
7c30ca8
Compare
| TransactionForFullMetaInnerInstructionsParsed | TransactionForFullMetaInnerInstructionsUnparsed | ||
| >; | ||
|
|
||
| export interface SimulateTransactionApi extends RpcApiMethods { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to double the number of overloads here, to be able to express ‘inner instructions on’ and ‘inner instructions off’ :(
This still keeps us under the (current) max of 24, but as soon as we want to add replacedBlockhash to the response, we're hosed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh crap that's rough.
| }>; | ||
|
|
||
| type TransactionForFullMetaInnerInstructionsUnparsed = Readonly<{ | ||
| export type TransactionForFullMetaInnerInstructionsUnparsed = Readonly<{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcintyre94, is there a reason we don't use these in getTransaction? They're copy/pasted in, and I feel like there was a reason for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but my guess would be that it was before we untangled the rpc packages and it would have caused a circular dependency mess. Probably can be changed now!
|
cc/ @0xIchigo |
e06c2fd to
fd7152b
Compare
7c30ca8 to
8cc8346
Compare
buffalojoec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm, but I'm also curious why we weren't using those types.
| TransactionForFullMetaInnerInstructionsParsed | TransactionForFullMetaInnerInstructionsUnparsed | ||
| >; | ||
|
|
||
| export interface SimulateTransactionApi extends RpcApiMethods { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh crap that's rough.
| type SimulateTransactionApiResponseWithInnerInstructions = SolanaRpcResponse< | ||
| TransactionForFullMetaInnerInstructionsParsed | TransactionForFullMetaInnerInstructionsUnparsed | ||
| >; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting to regret what I might have signed up for with this comment....
Merge activity
|
fd7152b to
1d55a13
Compare
8cc8346 to
5fa6c60
Compare
|
🎉 This PR is included in version 1.94.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up. |

Closes #2763.
Test Plan
Notice how
indexandstackHeightarenumberinstead ofbiginthere.