forked from emg110/demo-local-state-expansion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sig.tmpl.teal
63 lines (62 loc) · 758 Bytes
/
sig.tmpl.teal
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
#pragma version 6
intcblock 1
pushint TMPL_ADDR_IDX // TMPL_ADDR_IDX
pop
pushbytes TMPL_EMITTER_ID // TMPL_EMITTER_ID
pop
callsub init_0
return
// init
init_0:
global GroupSize
pushint 3 // 3
==
gtxn 0 TypeEnum
intc_0 // pay
==
&&
gtxn 0 Amount
pushint TMPL_SEED_AMT // TMPL_SEED_AMT
==
&&
gtxn 0 RekeyTo
global ZeroAddress
==
&&
gtxn 0 CloseRemainderTo
global ZeroAddress
==
&&
gtxn 1 TypeEnum
pushint 6 // appl
==
&&
gtxn 1 OnCompletion
intc_0 // OptIn
==
&&
gtxn 1 ApplicationID
pushint TMPL_APP_ID // TMPL_APP_ID
==
&&
gtxn 1 RekeyTo
global ZeroAddress
==
&&
gtxn 2 TypeEnum
intc_0 // pay
==
&&
gtxn 2 Amount
pushint 0 // 0
==
&&
gtxn 2 RekeyTo
pushbytes TMPL_APP_ADDRESS // TMPL_APP_ADDRESS
==
&&
gtxn 2 CloseRemainderTo
global ZeroAddress
==
&&
retsub