Skip to main content
Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:20 Result of waiting for an activation to complete. Contains the raw result bytes and the full activation trace (all activations in the call tree, in BFS traversal order). The terminalInfo stores the activation that produced the result bytes, guaranteeing that resultBytes and terminalInfo always refer to the same activation.

Constructors

Constructor

new TraceOutcome(resultBytes, trace, terminalInfo): TraceOutcome
Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:25

Parameters

resultBytes
Uint8Array
trace
ActivationInfo[]
terminalInfo
ActivationInfo

Returns

TraceOutcome

Accessors

resultBytes

Get Signature

get resultBytes(): Uint8Array
Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:36 The raw activation result bytes.
Returns
Uint8Array

trace

Get Signature

get trace(): ActivationInfo[]
Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:44 The full activation trace in BFS traversal order, starting from the root activation. Provides access to events emitted at any point in the call tree.
Returns
ActivationInfo[]

terminalInfo

Get Signature

get terminalInfo(): ActivationInfo
Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:49 The terminal activation that produced the result bytes.
Returns
ActivationInfo

Methods

result()

result<T>(deserialize): T
Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:54 Decodes the raw result bytes using the provided deserializer.

Type Parameters

T
T

Parameters

deserialize
(bytes) => T

Returns

T

intoResultBytes()

intoResultBytes(): Uint8Array
Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:66 Returns a copy of the raw result bytes.

Returns

Uint8Array