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 dryrun trace test and expected app trace #161

Merged
merged 13 commits into from
Mar 21, 2022
17 changes: 17 additions & 0 deletions features/resources/v2algodclient_responsejsons/app_trace.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
pc# |ln# |source |scratch |stack
1 |1 |intcblock 0 4 1 5 2 | |[]
8 |2 |bytecblock 0x43726561746f72 0x... | |[]
72 |3 |intc_0 | |[]
73 |4 |txn ApplicationID | |[0]
75 |5 |== | |[0, 0]
76 |6 |bz label1 | |[1]
79 |7 |bytec_0 | |[]
80 |8 |txn Sender | |[0x43726561746f72]
82 |9 |app_global_put | |[0x43726561746f72, 0xa01e926fb...
83 |10 |txn NumAppArgs | |[]
85 |11 |intc_1 | |[0]
86 |12 |== | |[0, 4]
87 |13 |bz label2 | |[0]
311 |163 |intc_0 | |[]
312 |164 |return | |[0]
315 |168 | | |[0]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"error":"","txns":[{"app-call-messages":["ApprovalProgram","REJECT"],"app-call-trace":[{"line":1,"pc":1,"stack":[]},{"line":2,"pc":8,"stack":[]},{"line":3,"pc":72,"stack":[]},{"line":4,"pc":73,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":5,"pc":75,"stack":[{"bytes":"","type":2,"uint":0},{"bytes":"","type":2,"uint":0}]},{"line":6,"pc":76,"stack":[{"bytes":"","type":2,"uint":1}]},{"line":7,"pc":79,"stack":[]},{"line":8,"pc":80,"stack":[{"bytes":"Q3JlYXRvcg==","type":1,"uint":0}]},{"line":9,"pc":82,"stack":[{"bytes":"Q3JlYXRvcg==","type":1,"uint":0},{"bytes":"oB6Sb71Xwm/GFWTy634W4gWUkQLccmwbq5Hz7qvLE0o=","type":1,"uint":0}]},{"line":10,"pc":83,"stack":[]},{"line":11,"pc":85,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":12,"pc":86,"stack":[{"bytes":"","type":2,"uint":0},{"bytes":"","type":2,"uint":4}]},{"line":13,"pc":87,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":163,"pc":311,"stack":[]},{"line":164,"pc":312,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":168,"pc":315,"stack":[{"bytes":"","type":2,"uint":0}]}],"disassembly":["// version 2","intcblock 0 4 1 5 2","bytecblock 0x43726561746f72 0x526567426567696e 0x526567456e64 0x566f7465426567696e 0x566f7465456e64 0x7265676973746572 0x766f7465 0x766f746564","intc_0","txn ApplicationID","==","bz label1","bytec_0","txn Sender","app_global_put","txn NumAppArgs","intc_1","==","bz label2","bytec_1","txn ApplicationArgs 0","btoi","app_global_put","bytec_2","txn ApplicationArgs 1","btoi","app_global_put","bytec_3","txn ApplicationArgs 2","btoi","app_global_put","bytec 4","txn ApplicationArgs 3","btoi","app_global_put","intc_2","return","label1:","intc_3","txn OnCompletion","==","bz label3","bytec_0","app_global_get","txn Sender","==","bz label2","intc_2","return","label3:","intc_1","txn OnCompletion","==","bz label4","bytec_0","app_global_get","txn Sender","==","bz label2","intc_2","return","label4:","intc 4","txn OnCompletion","==","bnz label5","txn ApplicationArgs 0","bytec 5","==","bnz label6","txn ApplicationArgs 0","bytec 6","==","bnz label7","intc_0","return","label7:","global Round","bytec_3","app_global_get","\u003e=","global Round","bytec 4","app_global_get","\u003c=","\u0026\u0026","bz label2","intc_0","txn ApplicationID","app_opted_in","bz label2","intc_0","txn ApplicationID","bytec 7","app_local_get","bnz label8","txn ApplicationID","txn ApplicationArgs 1","app_global_get_ex","bnz label9","pop","intc_0","label9:","intc_2","+","store 1","txn ApplicationArgs 1","load 1","app_global_put","intc_0","bytec 7","txn ApplicationArgs 1","app_local_put","intc_2","return","label8:","pop","intc_2","return","label6:","global Round","bytec_1","app_global_get","\u003e=","global Round","bytec_2","app_global_get","\u003c=","\u0026\u0026","bz label2","intc_2","return","label5:","global Round","bytec 4","app_global_get","\u003e","bnz label10","intc_0","txn ApplicationID","bytec 7","app_local_get_ex","bnz label11","pop","intc_2","return","label11:","store 1","txn ApplicationID","load 1","app_global_get_ex","store 3","store 4","load 3","bnz label12","intc_2","return","label12:","load 4","intc_2","-","store 2","load 1","load 2","app_global_put","intc_2","return","label2:","intc_0","return","label10:","intc_2","return",""],"global-delta":[{"key":"Creator","value":{"action":2,"bytes":"oB6Sb71Xwm/GFWTy634W4gWUkQLccmwbq5Hz7qvLE0o=","uint":0}}]}]}
{"error":"","protocol-version":"future","txns":[{"app-call-messages":["ApprovalProgram","REJECT"],"app-call-trace":[{"line":1,"pc":1,"stack":[]},{"line":2,"pc":8,"stack":[]},{"line":3,"pc":72,"stack":[]},{"line":4,"pc":73,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":5,"pc":75,"stack":[{"bytes":"","type":2,"uint":0},{"bytes":"","type":2,"uint":0}]},{"line":6,"pc":76,"stack":[{"bytes":"","type":2,"uint":1}]},{"line":7,"pc":79,"stack":[]},{"line":8,"pc":80,"stack":[{"bytes":"Q3JlYXRvcg==","type":1,"uint":0}]},{"line":9,"pc":82,"stack":[{"bytes":"Q3JlYXRvcg==","type":1,"uint":0},{"bytes":"oB6Sb71Xwm/GFWTy634W4gWUkQLccmwbq5Hz7qvLE0o=","type":1,"uint":0}]},{"line":10,"pc":83,"stack":[]},{"line":11,"pc":85,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":12,"pc":86,"stack":[{"bytes":"","type":2,"uint":0},{"bytes":"","type":2,"uint":4}]},{"line":13,"pc":87,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":163,"pc":311,"stack":[]},{"line":164,"pc":312,"stack":[{"bytes":"","type":2,"uint":0}]},{"line":168,"pc":315,"stack":[{"bytes":"","type":2,"uint":0}]}],"disassembly":["// version 2","intcblock 0 4 1 5 2","bytecblock 0x43726561746f72 0x526567426567696e 0x526567456e64 0x566f7465426567696e 0x566f7465456e64 0x7265676973746572 0x766f7465 0x766f746564","intc_0","txn ApplicationID","==","bz label1","bytec_0","txn Sender","app_global_put","txn NumAppArgs","intc_1","==","bz label2","bytec_1","txn ApplicationArgs 0","btoi","app_global_put","bytec_2","txn ApplicationArgs 1","btoi","app_global_put","bytec_3","txn ApplicationArgs 2","btoi","app_global_put","bytec 4","txn ApplicationArgs 3","btoi","app_global_put","intc_2","return","label1:","intc_3","txn OnCompletion","==","bz label3","bytec_0","app_global_get","txn Sender","==","bz label2","intc_2","return","label3:","intc_1","txn OnCompletion","==","bz label4","bytec_0","app_global_get","txn Sender","==","bz label2","intc_2","return","label4:","intc 4","txn OnCompletion","==","bnz label5","txn ApplicationArgs 0","bytec 5","==","bnz label6","txn ApplicationArgs 0","bytec 6","==","bnz label7","intc_0","return","label7:","global Round","bytec_3","app_global_get","\u003e=","global Round","bytec 4","app_global_get","\u003c=","\u0026\u0026","bz label2","intc_0","txn ApplicationID","app_opted_in","bz label2","intc_0","txn ApplicationID","bytec 7","app_local_get","bnz label8","txn ApplicationID","txn ApplicationArgs 1","app_global_get_ex","bnz label9","pop","intc_0","label9:","intc_2","+","store 1","txn ApplicationArgs 1","load 1","app_global_put","intc_0","bytec 7","txn ApplicationArgs 1","app_local_put","intc_2","return","label8:","pop","intc_2","return","label6:","global Round","bytec_1","app_global_get","\u003e=","global Round","bytec_2","app_global_get","\u003c=","\u0026\u0026","bz label2","intc_2","return","label5:","global Round","bytec 4","app_global_get","\u003e","bnz label10","intc_0","txn ApplicationID","bytec 7","app_local_get_ex","bnz label11","pop","intc_2","return","label11:","store 1","txn ApplicationID","load 1","app_global_get_ex","store 3","store 4","load 3","bnz label12","intc_2","return","label12:","load 4","intc_2","-","store 2","load 1","load 2","app_global_put","intc_2","return","label2:","intc_0","return","label10:","intc_2","return",""],"global-delta":[{"key":"Creator","value":{"action":2,"bytes":"oB6Sb71Xwm/GFWTy634W4gWUkQLccmwbq5Hz7qvLE0o=","uint":0}}]}]}
Loading