Guys is there any extension to highlight .tlb files in vscode? It's kind of hard to read it in this way. If anyone knows one let me know

Jun 20, 2023, 1:06 PM
You can use this plugin in Jetbrains IDE https://plugins.jetbrains.com/plugin/18541-ton-development
Jun 20, 2023, 2:32 PM
I was looking at this one, unfortunately I only use vscode
Jun 20, 2023, 2:35 PM
Hmm. You can install any plugin for TL (there are many for vscode), since tl-b is similar to tl in syntax it helped me a little. But I haven't seen full-fledged and fresh VSCode plugin for TL-B
Jun 20, 2023, 2:37 PM
Let me see if that works for me, thanks 👍
Jun 20, 2023, 2:42 PM
very necessary XD.
Jun 21, 2023, 7:51 AM
High guys reading the whitepaper and the doc I found this description of the c5 register:

c5 — Contains the output actions. It is also a Cell initialized by a
reference to an empty cell, but its final value is considered one of the
smart contract outputs. For instance, the SENDMSG primitive, specific
for the TON Blockchain, simply inserts the message into a list stored
in the output actions.

My question is about, what are output actions? Also reading Result of TVM Execution from the official doc, they point out that there's a limitation on the number of output actions in one transaction which is 255. How can that be reached? I mean that limit in one transaction. That's why I'm trying to understand what are output actions?
Jun 21, 2023, 8:05 AM
if you build an highload wallet or a contract and from a single transaction you try to send more than 254 transactions, the execution will results in an error. these actions are: sendrawmsgs, rawreserve, setpublib, setcode etc
Jun 21, 2023, 8:07 AM
*more than 255
Jun 21, 2023, 8:19 AM
if i remember correctly, the limit is 254, but i might be wrong
nvm, its 255
Jun 21, 2023, 8:22 AM
I'm sure, the limit is 255 :)
Jun 21, 2023, 8:22 AM
Thanks 👍
Jun 21, 2023, 8:26 AM
an interesting contract that uses c5 in an unusual way)
https://github.com/pyAndr3w/ton-preprocessed-wallet-v2
Jun 21, 2023, 8:28 AM
Magic. Wonder who could've made it
Jun 21, 2023, 10:24 AM
In my opinion, a very dangerous wallet, because you can change wallet code 🤭
Jun 21, 2023, 10:27 AM
some user-friendly wallet app that uses this contract can simply refuse to send such actions
Jun 21, 2023, 10:29 AM
Onchain protection was invented for a reason. Otherwise you could just write the results of transactions directly into the blockchain and not make 1000 opcodes
Jun 21, 2023, 10:31 AM
there's ``now`` parameter which is actually a unix timestamp.
Jun 21, 2023, 11:07 AM
what is a difference between lt and timestamp?
Jun 21, 2023, 11:13 AM
You can read about it in documentation. I just sent a link above.
Jun 21, 2023, 11:14 AM
output actions, c5 register
Jan 20, 2024, 5:34 PM

© 2024 Draquery.com All rights reserved.