Hi... I wanted to write smart contracts on TON... and TON has FunC for it"s smart contracts... Is there any way to write contracts with solidity on TON?

Aug 3, 2022, 7:25 AM
No! FunC and how TON works is fundamentally different from Solidity or other conventional virtual machines. You have to learn it directly. And bear in mind the assumptions we have in Solidity do not apply in FunC.
Aug 3, 2022, 7:52 AM
Thanks... And what are the best sources for funC?
Aug 3, 2022, 7:56 AM
https://ton.org/docs/#/func/overview
Aug 3, 2022, 8:06 AM
It could apply, if you make solidity messages asynchronous
Aug 3, 2022, 8:10 AM
And where can I learn this method?
Aug 3, 2022, 8:11 AM
You can try Free TON compilators for TVM and see the difference between Asynchronous Solidity and Synchronous one
Aug 3, 2022, 8:13 AM
To my understanding, in TVM you can not make a function call to another contract and wait for its response. If your contract requires communication with other contracts, it means they have to support a form of callback and in your contract you have to consider that by the time the response arrives, some environment variables might have changed. So the code you write will look completely different. Am I wrong? I have not written FunC I have only read about it and had a conversation about it with @talkol .
Aug 3, 2022, 8:19 AM
Yep. All right
Aug 3, 2022, 8:25 AM
@talkol where did you learn FunC?
Aug 3, 2022, 9:10 AM
He is more like the guy who has created it I think 😁
Aug 3, 2022, 9:11 AM
White papers, ton.org/docs and experimentation with my team
Over time the community will improve the documentation but for now a lot of it is reverse engineering
Everything is open source, if you invest enough time to read the code, nothing is hidden πŸ˜…
Haha I wish, I have the people who help me when I don’t know something :)
Aug 3, 2022, 11:21 AM
LOL
Aug 23, 2022, 4:32 AM

Β© 2024 Draquery.com All rights reserved.