Skip to content

Commit

Permalink
Regenerate simulate exec trace model (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Dec 18, 2023
1 parent d527840 commit f03c939
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 81 deletions.
81 changes: 0 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions src/client/v2/algod/models/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4896,6 +4896,19 @@ export class SimulationTransactionExecTrace extends BaseModel {
*/
public clearStateProgramTrace?: SimulationOpcodeTraceUnit[];

/**
* If true, indicates that the clear state program failed and any persistent state
* changes it produced should be reverted once the program exits.
*/
public clearStateRollback?: boolean;

/**
* The error message explaining why the clear state program failed. This field will
* only be populated if clear-state-rollback is true and the failure was due to an
* execution error.
*/
public clearStateRollbackError?: string;

/**
* An array of SimulationTransactionExecTrace representing the execution trace of
* any inner transactions executed.
Expand All @@ -4918,6 +4931,11 @@ export class SimulationTransactionExecTrace extends BaseModel {
* @param approvalProgramTrace - Program trace that contains a trace of opcode effects in an approval program.
* @param clearStateProgramHash - SHA512_256 hash digest of the clear state program executed in transaction.
* @param clearStateProgramTrace - Program trace that contains a trace of opcode effects in a clear state program.
* @param clearStateRollback - If true, indicates that the clear state program failed and any persistent state
* changes it produced should be reverted once the program exits.
* @param clearStateRollbackError - The error message explaining why the clear state program failed. This field will
* only be populated if clear-state-rollback is true and the failure was due to an
* execution error.
* @param innerTrace - An array of SimulationTransactionExecTrace representing the execution trace of
* any inner transactions executed.
* @param logicSigHash - SHA512_256 hash digest of the logic sig executed in transaction.
Expand All @@ -4928,6 +4946,8 @@ export class SimulationTransactionExecTrace extends BaseModel {
approvalProgramTrace,
clearStateProgramHash,
clearStateProgramTrace,
clearStateRollback,
clearStateRollbackError,
innerTrace,
logicSigHash,
logicSigTrace,
Expand All @@ -4936,6 +4956,8 @@ export class SimulationTransactionExecTrace extends BaseModel {
approvalProgramTrace?: SimulationOpcodeTraceUnit[];
clearStateProgramHash?: string | Uint8Array;
clearStateProgramTrace?: SimulationOpcodeTraceUnit[];
clearStateRollback?: boolean;
clearStateRollbackError?: string;
innerTrace?: SimulationTransactionExecTrace[];
logicSigHash?: string | Uint8Array;
logicSigTrace?: SimulationOpcodeTraceUnit[];
Expand All @@ -4951,6 +4973,8 @@ export class SimulationTransactionExecTrace extends BaseModel {
? base64ToBytes(clearStateProgramHash)
: clearStateProgramHash;
this.clearStateProgramTrace = clearStateProgramTrace;
this.clearStateRollback = clearStateRollback;
this.clearStateRollbackError = clearStateRollbackError;
this.innerTrace = innerTrace;
this.logicSigHash =
typeof logicSigHash === 'string'
Expand All @@ -4963,6 +4987,8 @@ export class SimulationTransactionExecTrace extends BaseModel {
approvalProgramTrace: 'approval-program-trace',
clearStateProgramHash: 'clear-state-program-hash',
clearStateProgramTrace: 'clear-state-program-trace',
clearStateRollback: 'clear-state-rollback',
clearStateRollbackError: 'clear-state-rollback-error',
innerTrace: 'inner-trace',
logicSigHash: 'logic-sig-hash',
logicSigTrace: 'logic-sig-trace',
Expand All @@ -4989,6 +5015,8 @@ export class SimulationTransactionExecTrace extends BaseModel {
SimulationOpcodeTraceUnit.from_obj_for_encoding
)
: undefined,
clearStateRollback: data['clear-state-rollback'],
clearStateRollbackError: data['clear-state-rollback-error'],
innerTrace:
typeof data['inner-trace'] !== 'undefined'
? data['inner-trace'].map(
Expand Down

0 comments on commit f03c939

Please sign in to comment.