Skip to main content

Stack Trace

info

Stack Trace is a work-in-progress open-source project to create an easy-to-use JavaScript TEAL interpreter and debugger. Stack trace currently supports 29 TEAL opcodes. Instructions and source code can be found on Github

Stack Trace

TEALStackStorage

byte "staked"

app_global_get

int 0

byte "amt"

app_local_get

/

store 3

byte "depositAmount"

app_global_get

load 3

/

store 1

load 1

int 0

byte "amt"

app_local_get

+

store 0

txn amount

byte "b"

swap

int 1

bnz test

int 7

test:

byte "hello"

staked

9500000000

9500000000,0

9500000000,0,amt

9500000000,4000000000

2

empty

depositAmount

10000000000

10000000000,2

5000000000

empty

5000000000

5000000000,0

5000000000,0,amt

5000000000,4000000000

9000000000

empty

3

3,b

b,3

b,3,1

b,3

b,3

b,3

b,3,hello

empty

empty

empty

empty

empty

empty

,,,2

,,,2

,,,2

,,,2

,,,2

,5000000000,,2

,5000000000,,2

,5000000000,,2

,5000000000,,2

,5000000000,,2

,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2

9000000000,5000000000,,2