blob: f25e26b3886fc716fcb7e8a8c535dff9b3e7bb09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
'//example teal code taken from https://developer.algorand.org/tutorials/writing-simple-smart-contract/' Comment.Single
'\n' Text
'// Check the Fee is resonable ' Comment.Single
'\n' Text
'// In this case 10,000 microalgos' Comment.Single
'\n' Text
'txn' Name.Function
' ' Text
'Fee' Keyword
'\n' Text
'int' Name.Function
' ' Text
'10000' Literal.Number.Integer
'\n' Text
'<=' Name.Function
'\n' Text
'\n' Text
'// Check the length of the passphrase is correct ' Comment.Single
'\n' Text
'arg' Name.Function
' ' Text
'0' Literal.Number.Integer
'\n' Text
'len' Name.Function
' ' Text
'\n' Text
'int' Name.Function
' ' Text
'73' Literal.Number.Integer
'\n' Text
'==' Name.Function
'\n' Text
'&&' Name.Function
'\n' Text
'\n' Text
'// The sha256 value of the passphrase' Comment.Single
'\n' Text
'arg' Name.Function
' ' Text
'0' Literal.Number.Integer
'\n' Text
'sha256' Name.Function
'\n' Text
'byte' Name.Function
' ' Text
'base64 ' Literal.String.Affix
'30AT2gOReDBdJmLBO/DgvjC6hIXgACecTpFDcP1bJHU=' Literal.String.Other
'\n' Text
'==' Name.Function
'\n' Text
'&&' Name.Function
'\n' Text
'\n' Text
'// Make sure the CloseRemainderTo is not set' Comment.Single
'\n' Text
'txn' Name.Function
' ' Text
'CloseRemainderTo' Keyword
'\n' Text
'txn' Name.Function
' ' Text
'Receiver' Keyword
' ' Text
'\n' Text
'==' Name.Function
'\n' Text
'&&' Name.Function
'\n' Text
|