contracts.ft.build.new-wton.fif Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartcontract Show documentation
Show all versions of smartcontract Show documentation
Build and manipulate TON smart contracts in easy way.
#!/usr/bin/fift -s
"TonUtil.fif" include
"Asm.fif" include
"jetton-wallet.boc" file>B B>boc =: ft_code
<{
SETCP0 ACCEPT
now PUSHINT
"jetton-minter.fif" include PUSHREF SETCODE
}>s =: contract_code
=: contract_storage
0 =: wc
ref, contract_storage ref, b>
dup =: state_init
dup hashu wc swap 2constant contract_addr
."Contract address = " contract_addr .addr cr
contract_addr "wton.addr" save-address-verbose
."Non-bounceable address (for init): " contract_addr 7 .Addr cr
."Bounceable address (for later access): " contract_addr 6 .Addr cr
=: init_message
2 boc+>B
"wton-query.boc" tuck B>file
."(Saved collection contract creating query to file " type .")" cr
© 2015 - 2025 Weber Informatics LLC | Privacy Policy