Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate simulate exec trace model #844

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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