1
0
mirror of https://github.com/danog/toncontest.git synced 2024-12-02 09:27:47 +01:00
toncontest/wallet/wallet-code.fif

220 lines
3.2 KiB
Plaintext
Raw Normal View History

2019-10-03 21:54:25 +02:00
"Asm.fif" include
// automatically generated from `/home/daniil/repos/contest/lib/crypto/smartcont/stdlib.fc` `wallet-code.fc`
PROGRAM{
2019-10-04 19:09:10 +02:00
DECLPROC ~collect_garbage
2019-10-04 16:12:48 +02:00
DECLPROC store_db
2019-10-03 21:54:25 +02:00
DECLPROC recv_internal
DECLPROC recv_external
85143 DECLMETHOD seqno
2019-10-04 19:09:10 +02:00
~collect_garbage PROC:<{
2019-10-04 16:12:48 +02:00
-1 PUSHINT
UNTIL:<{
OVER
8 PUSHPOW2
DICTUGETNEXT
NULLSWAPIFNOT
NULLSWAPIFNOT
2019-10-03 21:54:25 +02:00
DUP
2019-10-04 16:12:48 +02:00
IF:<{
s0 s2 XCHG
2019-10-04 19:09:10 +02:00
SKIPDICT
32 PLDU
2019-10-04 16:12:48 +02:00
NOW
LEQ
IF:<{
2019-10-04 18:00:14 +02:00
8 PUSHPOW2
s1 s3 s3 PUXC2
DICTUDEL
DROP
}>ELSE<{
s0 s2 XCHG
2019-10-04 16:12:48 +02:00
}>
}>ELSE<{
2019-10-04 18:00:14 +02:00
2SWAP
DROP
2019-10-04 16:12:48 +02:00
}>
SWAP
NOT
2019-10-04 18:00:14 +02:00
s1 s2 XCHG
2019-10-03 21:54:25 +02:00
}>
2019-10-04 16:12:48 +02:00
DROP
}>
store_db PROC:<{
2019-10-03 21:54:25 +02:00
NEWC
2019-10-04 16:12:48 +02:00
s1 s3 XCHG
2019-10-03 21:54:25 +02:00
32 STU
2019-10-04 16:12:48 +02:00
STDICT
STDICT
2019-10-03 21:54:25 +02:00
ENDC
c4 POP
}>
2019-10-04 16:12:48 +02:00
recv_internal PROC:<{
DROP
}>
2019-10-04 18:00:14 +02:00
recv_external PROC:<{
1 LDU
SWAP
32 THROWIFNOT
DUP
1 PLDU
33 THROWIFNOT
LDDICT
DUP
32 LDU
32 LDU
s2 PUSH
NOW
LEQ
34 THROWIF
s0 s3 XCHG
HASHSU
c4 PUSH
CTOS
32 LDU
4 LDU
LDDICT
LDDICT
ENDS
NEWDICT
2019-10-04 19:09:10 +02:00
s4 s6 PUSH2
2019-10-04 18:00:14 +02:00
EQUAL
IF:<{
2019-10-04 19:09:10 +02:00
s0 s4 XCHG
2019-10-04 18:00:14 +02:00
INC
}>ELSE<{
2019-10-04 19:09:10 +02:00
s5 s1 PUSH2
2019-10-04 18:00:14 +02:00
8 PUSHPOW2
DICTUGET
NULLSWAPIFNOT
35 THROWIFNOT
LDREF
NIP
ENDS
2019-10-04 19:09:10 +02:00
s0 s4 XCHG
2019-10-04 18:00:14 +02:00
}>
ACCEPT
2019-10-04 19:09:10 +02:00
s0 s8 XCHG
2019-10-04 18:00:14 +02:00
-1 PUSHINT
UNTIL:<{
2019-10-04 19:09:10 +02:00
s10 PUSH
2019-10-04 18:00:14 +02:00
4 PUSHINT
DICTUGETNEXT
NULLSWAPIFNOT
NULLSWAPIFNOT
DUP
IF:<{
2019-10-04 19:09:10 +02:00
s1 s5 PUSH2
2019-10-04 18:00:14 +02:00
4 PUSHINT
DICTUGET
NULLSWAPIFNOT
36 THROWIFNOT
LDREF
SWAP
CTOS
256 PLDU
s0 s4 XCHG
LDREF
DROP
DUP
CTOS
DUP
ENDS
s0 s2 XCHG
ENDS
2019-10-04 19:09:10 +02:00
s10 s(-1) s4 PUXC2
2019-10-04 18:00:14 +02:00
CHKSIGNU
37 THROWIFNOT
s1 s2 XCHG
4 PUSHINT
2019-10-04 19:09:10 +02:00
s3 s8 s8 PUXC2
2019-10-04 18:00:14 +02:00
DICTUSETREF
}>ELSE<{
2019-10-04 19:09:10 +02:00
s1 s7 s7 XCHG3
2019-10-04 18:00:14 +02:00
DROP
}>
2019-10-04 19:09:10 +02:00
s0 s6 XCHG
2019-10-04 18:00:14 +02:00
NOT
}>
DROP
2019-10-04 19:09:10 +02:00
s9 POP
s0 s8 XCHG
2019-10-04 18:00:14 +02:00
8 LDU
LDREF
ENDS
0 PUSHINT
-1 PUSHINT
UNTIL:<{
2019-10-04 19:09:10 +02:00
s6 PUSH
2019-10-04 18:00:14 +02:00
4 PUSHINT
DICTUGETNEXT
NULLSWAPIFNOT
NULLSWAPIFNOT
s2 POP
OVER
IF:<{
s0 s2 XCHG
INC
2019-10-04 19:09:10 +02:00
s0 s6 PUSH2
2019-10-04 18:00:14 +02:00
GEQ
IF:<{
NIP
s2 s3 PUSH2
SENDRAWMSG
8 PUSHPOW2
2019-10-04 19:09:10 +02:00
s8 s12 s12 PUXC2
2019-10-04 18:00:14 +02:00
DICTUDEL
DROP
0 PUSHINT
}>ELSE<{
2019-10-04 19:09:10 +02:00
s12 s12 XCHG2
2019-10-04 18:00:14 +02:00
}>
}>ELSE<{
2019-10-04 19:09:10 +02:00
s0 s12 s12 XCHG3
2019-10-04 18:00:14 +02:00
}>
NOT
2019-10-04 19:09:10 +02:00
s12 s12 s0 XCHG3
2019-10-04 18:00:14 +02:00
}>
2019-10-04 19:09:10 +02:00
DROP
s4 PUSH
2019-10-04 18:00:14 +02:00
LESS
IF:<{
NEWC
s1 s5 XCHG
STDICT
2019-10-04 19:09:10 +02:00
s1 s7 XCHG
32 STU
s1 s5 XCHG
32 STU
s1 s5 XCHG
8 STU
STREF
2019-10-04 18:00:14 +02:00
ENDC
2019-10-04 19:09:10 +02:00
s0 s1 s5 XCHG3
2019-10-04 18:00:14 +02:00
8 PUSHPOW2
DICTUSETREF
}>ELSE<{
2019-10-04 19:09:10 +02:00
s2 s9 XCHG
s3 s7 XCHG
s2 s6 XCHG
6 BLKDROP
2019-10-04 18:00:14 +02:00
}>
2019-10-04 19:09:10 +02:00
~collect_garbage CALLDICT
2019-10-04 18:00:14 +02:00
s0 s2 XCHG
INC
NEWC
32 STU
4 STU
s1 s2 XCHG
STDICT
STDICT
ENDC
c4 POP
}>
2019-10-03 21:54:25 +02:00
seqno PROC:<{
c4 PUSH
CTOS
32 PLDU
}>
}END>c
2 boc+>B "RS" B>file