terminalInfo stores the activation that produced the result bytes,
guaranteeing that resultBytes and terminalInfo always refer to the same
activation.
Constructors
Constructor
new TraceOutcome(Defined in: metacomputer/gen-framework/client-and-test-utils/client-sdk-ts/packages/client-sdk/src/trace-outcome.ts:25resultBytes,trace,terminalInfo):TraceOutcome
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<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.T>(deserialize):T
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