mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add legacy_tester for existing funC contracts (#588)
* Add legacy_tester for existing funC contracts * Add storage-contracts and pragma options
This commit is contained in:
parent
13b9f460af
commit
6b49d6a382
70 changed files with 14495 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
;; operations (constant values taken from crc32 on op message in the companion .tlb files and appear during build)
|
||||
int op::increment() asm "0x37491f2f PUSHINT";
|
||||
int op::deposit() asm "0x47d54391 PUSHINT";
|
||||
int op::withdraw() asm "0x41836980 PUSHINT";
|
||||
int op::transfer_ownership() asm "0x2da38aaf PUSHINT";
|
||||
|
||||
;; errors
|
||||
int error::unknown_op() asm "101 PUSHINT";
|
||||
int error::access_denied() asm "102 PUSHINT";
|
||||
int error::insufficient_balance() asm "103 PUSHINT";
|
||||
|
||||
;; other
|
||||
int const::min_tons_for_storage() asm "10000000 PUSHINT"; ;; 0.01 TON
|
||||
|
||||
;; 6905(computational_gas_price) * 1000(cur_gas_price) = 6905000
|
||||
;; ceil(6905000) = 10000000 ~= 0.01 TON
|
||||
int const::provide_address_gas_consumption() asm "10000000 PUSHINT";
|
Loading…
Add table
Add a link
Reference in a new issue