Extract base TransactionPlanResult context from generic TContext#1292
Conversation
|
| Name | Type |
|---|---|
| @solana/instruction-plans | Major |
| @solana/kit | Major |
| @solana/accounts | Major |
| @solana/addresses | Major |
| @solana/assertions | Major |
| @solana/codecs-core | Major |
| @solana/codecs-data-structures | Major |
| @solana/codecs-numbers | Major |
| @solana/codecs-strings | Major |
| @solana/codecs | Major |
| @solana/compat | Major |
| @solana/errors | Major |
| @solana/fast-stable-stringify | Major |
| @solana/functional | Major |
| @solana/instructions | Major |
| @solana/keys | Major |
| @solana/nominal-types | Major |
| @solana/offchain-messages | Major |
| @solana/options | Major |
| @solana/plugin-core | Major |
| @solana/programs | Major |
| @solana/promises | Major |
| @solana/react | Major |
| @solana/rpc-api | Major |
| @solana/rpc-graphql | Major |
| @solana/rpc-parsed-types | Major |
| @solana/rpc-spec-types | Major |
| @solana/rpc-spec | Major |
| @solana/rpc-subscriptions-api | Major |
| @solana/rpc-subscriptions-channel-websocket | Major |
| @solana/rpc-subscriptions-spec | Major |
| @solana/rpc-subscriptions | Major |
| @solana/rpc-transformers | Major |
| @solana/rpc-transport-http | Major |
| @solana/rpc-types | Major |
| @solana/rpc | Major |
| @solana/signers | Major |
| @solana/subscribable | Major |
| @solana/sysvars | Major |
| @solana/transaction-confirmation | Major |
| @solana/transaction-messages | Major |
| @solana/transactions | Major |
| @solana/webcrypto-ed25519-polyfill | Major |
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
BundleMonFiles updated (1)
Unchanged files (135)
Total files change +21B +0.01% Final result: ✅ View report in BundleMon website ➡️ |
|
Documentation Preview: https://kit-docs-dhhw11hk6-anza-tech.vercel.app |
acc8d58 to
11f6521
Compare
11f6521 to
b1b1ad4
Compare
e2b92ca to
1f23642
Compare
1f23642 to
fa87b2f
Compare
b1b1ad4 to
fb39372
Compare
mcintyre94
left a comment
There was a problem hiding this comment.
Looks good, matches what we discussed :)
planType to distinguish between InstructionPlan, TransactionPlan and TransactionPlanResult
#1309
Merge activity
|
fb39372 to
e55f79d
Compare
|
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. |

Problem
Because the
Transactiontype is part of the base context forTransactionPlanResults, TypeScript struggles to inferTContextwhen multipleSuccessfulSingleTransactionPlanResultsare being created inside a parent plan (e.g. parallel or sequential).This is because the current implementation, makes
Transactionpart of the base type thatTContextextends.Summary of Changes
This PR makes the base type of
TContextan empty object (how it was before) and explicitly add{ transaction?, signature?, message? }to the single plan's contexts. This means TypeScript no longer need to infer theTransactiontypes inside of context objects.(TL;DR; for Callum: Option A → Option B).
Relates to #1273