Skip to content

Commit

Permalink
Simulate: Hash of Program Bytecodes in Simulation (#5658)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu authored Aug 17, 2023
1 parent c5e779e commit f8bc8c6
Show file tree
Hide file tree
Showing 14 changed files with 1,389 additions and 1,247 deletions.
15 changes: 15 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4141,20 +4141,35 @@
"$ref": "#/definitions/SimulationOpcodeTraceUnit"
}
},
"approval-program-hash": {
"description": "SHA512_256 hash digest of the approval program executed in transaction.",
"type": "string",
"format": "byte"
},
"clear-state-program-trace": {
"description": "Program trace that contains a trace of opcode effects in a clear state program.",
"type": "array",
"items": {
"$ref": "#/definitions/SimulationOpcodeTraceUnit"
}
},
"clear-state-program-hash": {
"description": "SHA512_256 hash digest of the clear state program executed in transaction.",
"type": "string",
"format": "byte"
},
"logic-sig-trace": {
"description": "Program trace that contains a trace of opcode effects in a logic sig.",
"type": "array",
"items": {
"$ref": "#/definitions/SimulationOpcodeTraceUnit"
}
},
"logic-sig-hash": {
"description": "SHA512_256 hash digest of the logic sig executed in transaction.",
"type": "string",
"format": "byte"
},
"inner-trace": {
"description": "An array of SimulationTransactionExecTrace representing the execution trace of any inner transactions executed.",
"type": "array",
Expand Down
18 changes: 18 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2291,13 +2291,25 @@
"SimulationTransactionExecTrace": {
"description": "The execution trace of calling an app or a logic sig, containing the inner app call trace in a recursive way.",
"properties": {
"approval-program-hash": {
"description": "SHA512_256 hash digest of the approval program executed in transaction.",
"format": "byte",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
"type": "string"
},
"approval-program-trace": {
"description": "Program trace that contains a trace of opcode effects in an approval program.",
"items": {
"$ref": "#/components/schemas/SimulationOpcodeTraceUnit"
},
"type": "array"
},
"clear-state-program-hash": {
"description": "SHA512_256 hash digest of the clear state program executed in transaction.",
"format": "byte",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
"type": "string"
},
"clear-state-program-trace": {
"description": "Program trace that contains a trace of opcode effects in a clear state program.",
"items": {
Expand All @@ -2312,6 +2324,12 @@
},
"type": "array"
},
"logic-sig-hash": {
"description": "SHA512_256 hash digest of the logic sig executed in transaction.",
"format": "byte",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
"type": "string"
},
"logic-sig-trace": {
"description": "Program trace that contains a trace of opcode effects in a logic sig.",
"items": {
Expand Down
355 changes: 178 additions & 177 deletions daemon/algod/api/server/v2/generated/data/routes.go

Large diffs are not rendered by default.

389 changes: 195 additions & 194 deletions daemon/algod/api/server/v2/generated/experimental/routes.go

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions daemon/algod/api/server/v2/generated/model/types.go

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

Loading

0 comments on commit f8bc8c6

Please sign in to comment.