@solana/kit 8.1.0 → 8.2.0-canary-20260829111831

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7998,7 +7998,7 @@ ${lastLines.map((line) => ` > ${line}
7998
7998
  var _a, _b;
7999
7999
  const transactionPlanResult = await traverseTransactionPlanLeavesConcurrently(
8000
8000
  transactionPlan,
8001
- config.executeSingleTransactionPlan,
8001
+ config.executeTransactionMessage,
8002
8002
  executorConfig
8003
8003
  );
8004
8004
  if (((_a = executorConfig == null ? void 0 : executorConfig.abortSignal) == null ? void 0 : _a.aborted) || !isSuccessfulTransactionPlanResult(transactionPlanResult)) {
@@ -8008,27 +8008,35 @@ ${lastLines.map((line) => ` > ${line}
8008
8008
  return transactionPlanResult;
8009
8009
  };
8010
8010
  }
8011
- async function traverseTransactionPlanLeavesConcurrently(transactionPlan, executeSingleTransactionPlan, executorConfig) {
8011
+ async function traverseTransactionPlanLeavesConcurrently(transactionPlan, executeTransactionMessage, executorConfig) {
8012
8012
  var _a;
8013
8013
  const kind = transactionPlan.kind;
8014
8014
  switch (kind) {
8015
- case "single":
8015
+ case "single": {
8016
+ const context = {};
8016
8017
  if ((_a = executorConfig == null ? void 0 : executorConfig.abortSignal) == null ? void 0 : _a.aborted) {
8017
- return canceledSingleTransactionPlanResult(transactionPlan.message);
8018
+ return canceledSingleTransactionPlanResult(transactionPlan.message, context);
8018
8019
  }
8019
8020
  try {
8020
- return await getAbortablePromise(
8021
- executeSingleTransactionPlan(transactionPlan, executorConfig),
8021
+ const returnedContext = await getAbortablePromise(
8022
+ executeTransactionMessage(context, transactionPlan.message, {
8023
+ abortSignal: executorConfig == null ? void 0 : executorConfig.abortSignal
8024
+ }),
8022
8025
  executorConfig == null ? void 0 : executorConfig.abortSignal
8023
8026
  );
8027
+ return successfulSingleTransactionPlanResult(transactionPlan.message, {
8028
+ ...context,
8029
+ ...returnedContext
8030
+ });
8024
8031
  } catch (error) {
8025
- return failedSingleTransactionPlanResult(transactionPlan.message, error);
8032
+ return failedSingleTransactionPlanResult(transactionPlan.message, error, context);
8026
8033
  }
8034
+ }
8027
8035
  case "parallel":
8028
8036
  case "sequential": {
8029
8037
  const plans = await Promise.all(
8030
8038
  transactionPlan.plans.map(
8031
- (plan) => traverseTransactionPlanLeavesConcurrently(plan, executeSingleTransactionPlan, executorConfig)
8039
+ (plan) => traverseTransactionPlanLeavesConcurrently(plan, executeTransactionMessage, executorConfig)
8032
8040
  )
8033
8041
  );
8034
8042
  if (kind === "parallel") {
@@ -10760,7 +10768,7 @@ ${lastLines.map((line) => ` > ${line}
10760
10768
  ...config.headers ? normalizeHeaders2(config.headers) : void 0,
10761
10769
  ...{
10762
10770
  // Keep these headers lowercase so they will override any user-supplied headers above.
10763
- "solana-client": `js/${"8.1.0"}`
10771
+ "solana-client": `js/${"8.2.0-canary-20260829111831"}`
10764
10772
  }
10765
10773
  }
10766
10774
  }),