Module unc_workspaces::result

source ·
Expand description

Result and execution types from results of RPC calls to the network.

Structs§

  • Struct to hold a type we want to return along w/ the execution result view. This view has extra info about the execution, such as gas usage and whether the transaction failed to be processed on the chain.
  • Execution related info found after performing a transaction. Can be converted into ExecutionSuccess or ExecutionFailure through into_result
  • The execution outcome of a transaction. This type contains all data relevant to calling into a function, and getting the results back.
  • The result after evaluating the status of an execution. This can be ExecutionSuccess for successful executions or a ExecutionFailure for failed ones.
  • Value type returned from an ExecutionOutcome or receipt result. This value can be converted into the underlying Rust datatype, or directly grab the raw bytes associated to the value.
  • The result from a call into a View function. This contains the contents or the results from the view function call itself. The consumer of this object can choose how to deserialize its contents.

Enums§

Type Aliases§

  • Execution related info as a result of performing a failed transaction execution on the network. The related error message can be retrieved from this object or can be forwarded.
  • Execution related info as a result of performing a successful transaction execution on the network. This value can be converted into the returned value of the transaction via ExecutionSuccess::json or ExecutionSuccess::borsh