Closed Shaptic closed 1 year ago
The RPC response schemas for simulation have been upgraded to parse the base64-encoded XDR automatically. Succinctly,
SimulateTransactionResponse
RawSimulateTransactionResponse
SimulateHostFunctionResult
RawSimulateHostFunctionResult
Here is the full list of changed fields:
export interface SimulateHostFunctionResult { - auth?: string[]; - xdr: string; + auth: xdr.SorobanAuthorizationEntry[]; + xdr: xdr.ScVal; } export interface SimulateTransactionResponse { - transactionData: string; + transactionData: SorobanDataBuilder; - events: string[]; + events: xdr.DiagnosticEvent[]; - results: SimulateHostFunctionResult[]; + result?: SimulateHostFunctionResult; }
The true, raw, underlying schema is still accessible by adding the Raw prefix to the interface name.
Raw
The RPC response schemas for simulation have been upgraded to parse the base64-encoded XDR automatically. Succinctly,
SimulateTransactionResponse
->RawSimulateTransactionResponse
SimulateHostFunctionResult
->RawSimulateHostFunctionResult
SimulateTransactionResponse
andSimulateHostFunctionResult
now include the full, decoded XDR structures instead of raw, base64-encoded strings for the relevant fieldsHere is the full list of changed fields:
The true, raw, underlying schema is still accessible by adding the
Raw
prefix to the interface name.