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

adding another field for lsig disassembly #3577

Merged
merged 6 commits into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from 5 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
7 changes: 7 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,13 @@
"type": "string"
}
},
"logic-sig-disassembly": {
"description": "Disassembled lsig program line by line.",
"type": "array",
"items": {
"type": "string"
}
},
"logic-sig-trace": {
"type": "array",
"items": {
Expand Down
7 changes: 7 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,13 @@
},
"type": "array"
},
"logic-sig-disassembly": {
"description": "Disassembled lsig program line by line.",
"items": {
"type": "string"
},
"type": "array"
},
"logic-sig-messages": {
"items": {
"type": "string"
Expand Down
4 changes: 3 additions & 1 deletion daemon/algod/api/server/v2/dryrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,9 @@ func doDryrunRequest(dr *DryrunRequest, response *generated.DryrunResponse) {
ep.Debugger = &debug
pass, err := logic.Eval(stxn.Lsig.Logic, ep)
var messages []string
result.Disassembly = debug.lines
result.Disassembly = debug.lines // Keep backwards compat
lines := debug.lines[:]
result.LogicSigDisassembly = &lines // Also add to Lsig specific
barnjamin marked this conversation as resolved.
Show resolved Hide resolved
result.LogicSigTrace = &debug.history
if pass {
messages = append(messages, "PASS")
Expand Down
74 changes: 37 additions & 37 deletions daemon/algod/api/server/v2/generated/private/routes.go

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

13 changes: 8 additions & 5 deletions daemon/algod/api/server/v2/generated/private/types.go

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

Loading