I understand that ton is very different from solidity,
on EVM we have events which we can listen to off chain, and provide consistency over our on chain, and off chain data
what should be approach to solve the same problem here?
Calling getters methods on chain ensure can ensure data, but do we have a way for listening to events? or transactions?
Jun 7, 2023, 6:24 PM
external messages sent by smart contracts are similar to logs on evm
Jun 7, 2023, 6:44 PM
I'll look into external messages 🙂
Thank you
Thank you
Jun 7, 2023, 6:47 PM
https://ton.org/ton.pdf#subsubsection.2.4.7
https://github.com/ton-blockchain/ton/blob/master/crypto/block/block.tlb#L139-L140
https://github.com/ton-blockchain/ton/blob/master/crypto/block/block.tlb#L139-L140
Jun 7, 2023, 6:50 PM
Hmm, I haven't seen much in the documentation about sending external messages, just receiving it. What should be the external_address?
https://github.com/ton-blockchain/ton/blob/master/crypto/block/block.tlb#L100-L102
https://github.com/ton-blockchain/ton/blob/master/crypto/block/block.tlb#L100-L102
Jun 8, 2023, 5:28 PM
custom bits, may be some queryId or uuid
or addr_none)
Jun 8, 2023, 5:37 PM
Example: https://tonscan.org/address/EQA-dgYSkIiw2J-MJ-0shgp1pzcmnoWo_vfd_240X7VDKuhf#source
b{01} b{001101000} |+ x{0000000052414E443A53454544} |+
01 is external address tag,
001101000 is the length in bits.
and the remaining part is the address encoding.
01 is external address tag,
001101000 is the length in bits.
and the remaining part is the address encoding.
Jun 8, 2023, 5:40 PM