This repository was archived by the owner on Nov 3, 2023. It is now read-only.
File tree 3 files changed +77
-1
lines changed
session_1/intro_to_algorand/contract
3 files changed +77
-1
lines changed Original file line number Diff line number Diff line change 1
1
abi.json
2
2
* spec.json
3
- * .teal
4
3
node_modules /
5
4
session_4 /web /src /** /* .js
6
5
* .js.map
Original file line number Diff line number Diff line change
1
+ #pragma version 8
2
+ intcblock 0 1
3
+ bytecblock 0x636f756e746572 0x6c6173745f63616c6c65725f6e616d65 0x6c6173745f63616c6c65725f61646472657373
4
+ txna ApplicationArgs 0
5
+ pushbytes 0x20df3a54 // "create(string)void"
6
+ ==
7
+ bnz main_l4
8
+ txna ApplicationArgs 0
9
+ pushbytes 0x17b66382 // "increment(string)void"
10
+ ==
11
+ bnz main_l3
12
+ err
13
+ main_l3:
14
+ txn OnCompletion
15
+ intc_0 // NoOp
16
+ ==
17
+ txn ApplicationID
18
+ intc_0 // 0
19
+ !=
20
+ &&
21
+ assert
22
+ txna ApplicationArgs 1
23
+ callsub increment_1
24
+ intc_1 // 1
25
+ return
26
+ main_l4:
27
+ txn OnCompletion
28
+ intc_0 // NoOp
29
+ ==
30
+ txn ApplicationID
31
+ intc_0 // 0
32
+ ==
33
+ &&
34
+ assert
35
+ txna ApplicationArgs 1
36
+ callsub create_0
37
+ intc_1 // 1
38
+ return
39
+
40
+ // create
41
+ create_0:
42
+ proto 1 0
43
+ bytec_0 // "counter"
44
+ intc_0 // 0
45
+ app_global_put
46
+ bytec_2 // "last_caller_address"
47
+ global CreatorAddress
48
+ app_global_put
49
+ bytec_1 // "last_caller_name"
50
+ pushbytes 0x // ""
51
+ app_global_put
52
+ bytec_1 // "last_caller_name"
53
+ frame_dig -1
54
+ extract 2 0
55
+ app_global_put
56
+ retsub
57
+
58
+ // increment
59
+ increment_1:
60
+ proto 1 0
61
+ bytec_0 // "counter"
62
+ bytec_0 // "counter"
63
+ app_global_get
64
+ intc_1 // 1
65
+ +
66
+ app_global_put
67
+ bytec_2 // "last_caller_address"
68
+ txn Sender
69
+ app_global_put
70
+ bytec_1 // "last_caller_name"
71
+ frame_dig -1
72
+ extract 2 0
73
+ app_global_put
74
+ retsub
Original file line number Diff line number Diff line change
1
+ #pragma version 8
2
+ pushint 0 // 0
3
+ return
You can’t perform that action at this time.
0 commit comments