mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated smartcontract code
- updated smartcontract code - fixed bug in liteserver listening socket - updated documentation
This commit is contained in:
parent
38c3e39066
commit
b978e27b2f
63 changed files with 3185 additions and 81 deletions
31
crypto/smartcont/asm-to-cpp.fif
Executable file
31
crypto/smartcont/asm-to-cpp.fif
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/fift -s
|
||||
"TonUtil.fif" include
|
||||
"Asm.fif" include
|
||||
|
||||
{ ."usage: " @' $0 type ." <source> <destination> <name>" cr
|
||||
."Compiles asm from <source> file and stores serialization in a way prepared for usage from c++ to <destination> " cr 1 halt
|
||||
} : usage
|
||||
|
||||
|
||||
$# 3 - ' usage if
|
||||
|
||||
|
||||
$1 =: source
|
||||
$2 =: destination
|
||||
$3 =: name
|
||||
|
||||
."Include source from " source type cr
|
||||
source include
|
||||
|
||||
boc>B
|
||||
."Convert boc to base64" cr
|
||||
B>base64
|
||||
|
||||
{ char " chr tuck $+ $+ } : wrp
|
||||
wrp // "<code>"
|
||||
"with_tvm_code(" name wrp $+ +", " swap ");" 10 hold $+ $+ // "with_tm_code("<code>");\n"
|
||||
|
||||
$>B
|
||||
|
||||
."Store tvm code to " destination type cr
|
||||
destination B>file
|
Loading…
Add table
Add a link
Reference in a new issue