@@ -7,64 +7,64 @@ tolk 0.99
77
88/// Returns amount of gas (in gas units) consumed in current Computation Phase.
99fun getGasConsumedAtTheMoment(): int
10- asm "GASCONSUMED";
10+ asm "GASCONSUMED"
1111
1212/// This function is required to be called when you process an external message (from an outer world)
1313/// and "accept" it to blockchain.
1414/// Without calling this function, an external message would be discarded.
1515/// As an effect, the current smart contract agrees to buy some gas to finish the current transaction.
1616/// For more details, check [accept_message effects](https://ton.org/docs/#/smart-contracts/accept).
1717fun acceptExternalMessage(): void
18- asm "ACCEPT";
18+ asm "ACCEPT"
1919
2020/// When processing an internal message, by default, the limit of gas consumption is determined by incoming message.
2121/// Functions [setGasLimit] and [setGasLimitToMaximum] allow you to change this behavior.
2222/// Sets current gas limit `gl` to its maximal allowed value `gm`, and resets the gas credit `gc` to zero,
2323/// decreasing the value of `gr` by `gc` in the process.
2424fun setGasLimitToMaximum(): void
25- asm "ACCEPT";
25+ asm "ACCEPT"
2626
2727/// When processing an internal message, by default, the limit of gas consumption is determined by incoming message.
2828/// Functions [setGasLimit] and [setGasLimitToMaximum] allow you to change this behavior.
2929/// Sets current gas limit `gl` to the minimum of limit and `gm`, and resets the gas credit `gc` to zero.
3030/// If the gas consumed so far (including the present instruction) exceeds the resulting value of `gl`,
3131/// an (unhandled) out of gas exception is thrown before setting new gas limits.
3232fun setGasLimit(limit: int): void
33- asm "SETGASLIMIT";
33+ asm "SETGASLIMIT"
3434
3535/// Calculates fee (amount in nanotoncoins to be paid) for a transaction which consumed [gasUsed] gas units.
3636fun calculateGasFee(workchain: int8, gasUsed: int): coins
37- asm(gasUsed workchain) "GETGASFEE";
37+ asm(gasUsed workchain) "GETGASFEE"
3838
3939/// Same as [calculateGasFee], but without flat price (you have supposed to read https://docs.ton.org/develop/howto/fees-low-level)
4040fun calculateGasFeeWithoutFlatPrice(workchain: int8, gasUsed: coins): coins
41- asm(gasUsed workchain) "GETGASFEESIMPLE";
41+ asm(gasUsed workchain) "GETGASFEESIMPLE"
4242
4343/// Calculates amount of nanotoncoins you should pay for storing a contract of provided size for [seconds].
4444/// [bits] and [cells] represent contract state (code + data).
4545fun calculateStorageFee(workchain: int8, seconds: int, bits: int, cells: int): coins
46- asm(cells bits seconds workchain) "GETSTORAGEFEE";
46+ asm(cells bits seconds workchain) "GETSTORAGEFEE"
4747
4848/// Calculates amount of nanotoncoins you should pay to send a message of a specified size.
4949fun calculateForwardFee(workchain: int8, bits: int, cells: int): coins
50- asm(cells bits workchain) "GETFORWARDFEE";
50+ asm(cells bits workchain) "GETFORWARDFEE"
5151
5252/// Same as [calculateForwardFee], but without lump price (you have supposed to read https://docs.ton.org/develop/howto/fees-low-level)
5353fun calculateForwardFeeWithoutLumpPrice(workchain: int8, bits: int, cells: int): coins
54- asm(cells bits workchain) "GETFORWARDFEESIMPLE";
54+ asm(cells bits workchain) "GETFORWARDFEESIMPLE"
5555
5656/// Calculates fee that was paid by the sender of an incoming internal message.
5757@deprecated("use modern `onInternalMessage` and access `in.originalForwardFee` directly")
5858fun calculateOriginalForwardFee(workchain: int8, incomingFwdFee: coins): coins
59- asm(incomingFwdFee workchain) "GETORIGINALFWDFEE";
59+ asm(incomingFwdFee workchain) "GETORIGINALFWDFEE"
6060
6161/// Returns the amount of nanotoncoins current contract debts for storage. ("due" and "debt" are synonyms)
6262/// If it has no debt, `0` is returned.
6363fun contract.getStorageDuePayment(): coins
64- asm "DUEPAYMENT";
64+ asm "DUEPAYMENT"
6565
6666/// Returns the amount of nanotoncoins charged for storage.
6767/// (during storage phase preceeding to current computation phase)
6868@pure
6969fun contract.getStoragePaidPayment(): coins
70- asm "STORAGEFEES";
70+ asm "STORAGEFEES"
0 commit comments