summaryrefslogtreecommitdiff
path: root/test/scripts/e2e_subs/tealprogs/app-abi-add-example.teal
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/e2e_subs/tealprogs/app-abi-add-example.teal')
-rw-r--r--test/scripts/e2e_subs/tealprogs/app-abi-add-example.teal87
1 files changed, 87 insertions, 0 deletions
diff --git a/test/scripts/e2e_subs/tealprogs/app-abi-add-example.teal b/test/scripts/e2e_subs/tealprogs/app-abi-add-example.teal
new file mode 100644
index 000000000..18d3b3e6e
--- /dev/null
+++ b/test/scripts/e2e_subs/tealprogs/app-abi-add-example.teal
@@ -0,0 +1,87 @@
+#pragma version 5
+intcblock 1 0
+bytecblock 0x151f7c75
+txn ApplicationID
+intc_1 // 0
+==
+bnz main_l12
+txn OnCompletion
+intc_0 // OptIn
+==
+bnz main_l11
+txn OnCompletion
+pushint 5 // DeleteApplication
+==
+bnz main_l10
+txn OnCompletion
+intc_1 // NoOp
+==
+txna ApplicationArgs 0
+pushbytes 0xfe6bdf69 // 0xfe6bdf69
+==
+&&
+bnz main_l9
+txn OnCompletion
+intc_1 // NoOp
+==
+txna ApplicationArgs 0
+pushbytes 0xa88c26a5 // 0xa88c26a5
+==
+&&
+bnz main_l8
+txn OnCompletion
+intc_1 // NoOp
+==
+txna ApplicationArgs 0
+pushbytes 0x535a47ba // 0x535a47ba
+==
+&&
+bnz main_l7
+intc_1 // 0
+return
+main_l7:
+txna ApplicationArgs 1
+callsub sub2
+intc_0 // 1
+return
+main_l8:
+callsub sub1
+intc_0 // 1
+return
+main_l9:
+txna ApplicationArgs 1
+txna ApplicationArgs 2
+callsub sub0
+intc_0 // 1
+return
+main_l10:
+intc_0 // 1
+return
+main_l11:
+intc_0 // 1
+return
+main_l12:
+intc_0 // 1
+return
+sub0: // add
+store 1
+store 0
+bytec_0 // 0x151f7c75
+load 0
+btoi
+load 1
+btoi
++
+itob
+concat
+log
+retsub
+sub1: // empty
+bytec_0 // 0x151f7c75
+log
+retsub
+sub2: // payment
+store 2
+pushbytes 0x151f7c7580 // 0x151f7c7580
+log
+retsub \ No newline at end of file