Skip to content

Commit

Permalink
Simulate: Add opcode costs and budgets into response (#5221)
Browse files Browse the repository at this point in the history
  • Loading branch information
algochoi committed Mar 27, 2023
1 parent e659181 commit 9a0f374
Show file tree
Hide file tree
Showing 17 changed files with 1,227 additions and 815 deletions.
16 changes: 16 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3377,6 +3377,14 @@
"items": {
"type": "integer"
}
},
"app-budget-added": {
"description": "Total budget added during execution of app calls in the transaction group.",
"type": "integer"
},
"app-budget-consumed": {
"description": "Total budget consumed during execution of app calls in the transaction group.",
"type": "integer"
}
}
},
Expand All @@ -3393,6 +3401,14 @@
"missing-signature": {
"description": "A boolean indicating whether this transaction is missing signatures",
"type": "boolean"
},
"app-budget-consumed": {
"description": "Budget used during execution of an app call transaction. This value includes budged used by inner app calls spawned by this transaction.",
"type": "integer"
},
"logic-sig-budget-consumed": {
"description": "Budget used during execution of a logic sig transaction.",
"type": "integer"
}
}
},
Expand Down
16 changes: 16 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1838,6 +1838,14 @@
"SimulateTransactionGroupResult": {
"description": "Simulation result for an atomic transaction group",
"properties": {
"app-budget-added": {
"description": "Total budget added during execution of app calls in the transaction group.",
"type": "integer"
},
"app-budget-consumed": {
"description": "Total budget consumed during execution of app calls in the transaction group.",
"type": "integer"
},
"failed-at": {
"description": "If present, indicates which transaction in this group caused the failure. This array represents the path to the failing transaction. Indexes are zero based, the first element indicates the top-level transaction, and successive elements indicate deeper inner transactions.",
"items": {
Expand Down Expand Up @@ -1865,6 +1873,14 @@
"SimulateTransactionResult": {
"description": "Simulation result for an individual transaction",
"properties": {
"app-budget-consumed": {
"description": "Budget used during execution of an app call transaction. This value includes budged used by inner app calls spawned by this transaction.",
"type": "integer"
},
"logic-sig-budget-consumed": {
"description": "Budget used during execution of a logic sig transaction.",
"type": "integer"
},
"missing-signature": {
"description": "A boolean indicating whether this transaction is missing signatures",
"type": "boolean"
Expand Down
324 changes: 163 additions & 161 deletions daemon/algod/api/server/v2/generated/data/routes.go

Large diffs are not rendered by default.

50 changes: 26 additions & 24 deletions daemon/algod/api/server/v2/generated/experimental/routes.go

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

12 changes: 12 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.

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

Loading

0 comments on commit 9a0f374

Please sign in to comment.