All Downloads are FREE. Search and download functionalities are using the official Maven repository.

contracts.ft.build.new-wton.fif Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
#!/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