nonDivisibleSequentialTransactionPlanResult

function nonDivisibleSequentialTransactionPlanResult<TContext>(
    plans,
): Readonly<{
    divisible: boolean;
    kind: 'sequential';
    plans: TransactionPlanResult<TContext>[];
}> &
    object;

Creates a non-divisible SequentialTransactionPlanResult from an array of nested results.

This function creates a sequential result with the divisible property set to false, indicating that the nested plans were executed sequentially and could not have been split into separate transactions or batches (e.g., they were executed as a transaction bundle).

Type Parameters

Type ParameterDefault typeDescription
TContext extends TransactionPlanResultContextTransactionPlanResultContextThe type of the context object that may be passed along with successful results

Parameters

ParameterTypeDescription
plansTransactionPlanResult<TContext>[]The child results that were executed sequentially

Returns

Readonly<{ divisible: boolean; kind: "sequential"; plans: TransactionPlanResult<TContext>[]; }> & object

Example

const result = nonDivisibleSequentialTransactionPlanResult([
  singleResultA,
  singleResultB,
]);
result satisfies SequentialTransactionPlanResult & { divisible: false };

See

SequentialTransactionPlanResult

On this page