ton-blockchain / intellij-ton

TON Development plugin for the IntelliJ Platform
https://plugins.jetbrains.com/plugin/23382-ton
GNU General Public License v3.0
66 stars 8 forks source link

Cub #183

Open Amerigxf opened 1 week ago

Amerigxf commented 1 week ago

fc";

const ONE_TON = 1000000000;

const MIN_STORAGE_DURATION = 5 365 24 * 3600; ;; 5 years

;;# Precompiled constants ;; ;;All of the contents are result of contract emulation tests ;;

;;## Minimal fees ;; ;;- Transfer /sandbox_tests/JettonWallet.spec.ts#L935 0.028627415 TON ;;- Burn /sandbox_tests/JettonWallet.spec.ts#L1185 0.016492002 TON

;;## Storage ;; ;;Get calculated in a separate test file /sandbox_tests/StateInit.spec.ts

;;- JETTON_WALLET_BITS /sandbox_tests/StateInit.spec.ts#L92 const JETTON_WALLET_BITS = 1033;

;;- JETTON_WALLET_CELLS: /sandbox_tests/StateInit.spec.ts#L92 const JETTON_WALLET_CELLS = 3;

;; difference in JETTON_WALLET_BITS/JETTON_WALLET_INITSTATE_BITS is difference in ;; StateInit and AccountStorage (https://github.com/ton-blockchain/ton/blob/master/crypto/block/block.tlb) ;; we count bits as if balances are max possible ;;- JETTON_WALLET_INITSTATE_BITS /sandbox_tests/StateInit.spec.ts#L95 const JETTON_WALLET_INITSTATE_BITS = 931; ;;- JETTON_WALLET_INITSTATE_CELLS /sandbox_tests/StateInit.spec.ts#L95 const JETTON_WALLET_INITSTATE_CELLS = 3;

;; jetton-wallet.fc#L163 - maunal bits counting const BURN_NOTIFICATION_BITS = 754; ;; body = 32+64+124+(3+8+256)+(3+8+256) const BURN_NOTIFICATION_CELLS = 1; ;; body always in ref

;;## Gas ;; ;;Gas constants are calculated in the main test suite. ;;First the related transaction is found, and then it's ;;resulting gas consumption is printed to the console.