TON Dev Chat converted a basic group to this supergroup «TON Dev (Eng)»
Tolya changed group title to «TON Dev»
Tolya changed group title to «TON Dev Chat»
Deleted invited Deleted Account
Narek Abovyan invited Narek Abovyan
Deleted invited Deleted Account
Andrey Tvorozhkov invited Andrey Tvorozhkov
Олег Борзов invited Олег Борзов
Kirill A. invited Kirill A.
20:52
Tolya
🏆 TON Contests 20.03.2022 20:52:09
🏆
TON Smart Challenge 1 Announcement
Prize fund: 17,777 TON ($30,000)
Start: March 28
Deadline: 18:00, April 7 (UTC).
Announcement:
We’re hosting our first Smart Challenge for FunC contracts optimization on March 28. The challenge’s goal is to find and fix bugs and optimize five smart contracts regarding their gas efficiency.
We’re going to release a web page with more details and an example contract in a couple of days.
Who can participate? Anyone.
How do I participate? Stay tuned for the contest launch message on the
@toncontests channel and make sure you have notifications enabled.
Slava Fomin invited Slava Fomin
Александр Левицкий invited Александр Левицкий
Vasilii Burykin invited Vasilii Burykin
Aleksandr Shepelev invited Aleksandr Shepelev
山 | Bobby | 山 invited 山 | Bobby | 山
Vladimir Plotvinov invited Vladimir Plotvinov
Vladislav Kibenko invited Vladislav Kibenko
Anthony Tsivarev invited Anthony Tsivarev
Vladislav Kraskov invited Vladislav Kraskov
Inti Raymi invited Inti Raymi
Ana Elek invited Ana Elek
Chak Zefir invited Chak Zefir
@DannyDaCat invited @DannyDaCat
00:03
oleg sk
Я пытался перевести тон на gateio
00:15
Gnosis
Your English is very strange, mate.
Hello World invited Hello World
Deleted invited Deleted Account
Сергей Бутов invited Сергей Бутов
rootk_59 invited rootk_59
Jesús Brito invited Jesús Brito
Джонни Пончик invited Джонни Пончик
Кремний 🏴☠️ invited Кремний 🏴☠️
Сергей Бутов removed Сергей Бутов
Crocodille Genna invited Crocodille Genna
Deleted invited Deleted Account
Deleted invited Deleted Account
Abcd 1234 invited Abcd 1234
04:17
Crocodille Genna
Speak English, please
04:19
Warrior, get five ✋
04:21
Crocodille Genna
Photo from poligon? This is a wild cat?
04:30
Deleted Account
It was a local cat that lived on the street :)
04:53
Crocodille Genna
Good feed on this street :)
05:01
Good equipment you have. Markers in you beg show that you are not strikebolling :)
Marc O’Polo invited Marc O’Polo
05:29
Marc O’Polo
Some sort of BrighTON Beach dialect 😅
05:47
Crocodille Genna
If you remember multfilm "Italian job". There were sad : "untranslatable local dialect"😂
HarpyWar invited HarpyWar
Максим Художников invited Максим Художников
Deleted invited Deleted Account
08:18
Vasilii Burykin
What does it mean???? «Привет»
08:19
Very strange English
08:19
Максим Художников
Hello
Dr. Awesome Doge invited Dr. Awesome Doge
08:56
Crocodille Genna
Some sort of BrighTON Beach dialect 😅
09:27
Dr. Awesome Doge
It looks like there are a lot of updates to technical documents these days.
There are more things to study.
https://ton.org/docs/#/
Taecheonin OS invited Taecheonin OS
10:22
Deleted Account
МММ
Pineapple🍍 invited Pineapple🍍
Igor Kovalchuk invited Igor Kovalchuk
Евгений Пономаренко invited Евгений Пономаренко
Alexey Sulatskov invited Alexey Sulatskov
Boris Dibrov invited Boris Dibrov
Moein Businesd invited Moein Businesd
Deleted invited Deleted Account
12:41
Dario
I need help, i dont understand a thing about fungible tokens. Where is the check of who deployed a "token wallet"? cant i just deploy a "custom" wallet with fake balance and hack the protocol? (im talking about this line equal_slices(calc_user_wallet(from, jetton_master, token_wallet_code), sender)
)
гога фога invited гога фога
Илья Михеев invited Илья Михеев
Teddy ₿lockchain invited Teddy ₿lockchain
Mohammad invited Mohammad
Vudi Kingyru invited Vudi Kingyru
13:27
Tunis
Are tonkeeper app and TON Wallet extensions Bip39 compliant?
I tried to use valid 24 word mnemonics from my usual wallets, but it is impossible to initialize tonkeeper/TON Wallet.
13:34
Example:
I created valid bip39 compliant 24 word mnemonic with
https://iancoleman.io/bip39/ and tried to use it on
https://wallet.ton.org/ - no success!
Mnemonic:
ketchup permit cluster soon decrease sad soldier cram pretty carbon kit assault lizard seat plug upset rely best travel swallow crater knee chunk manual
13:36
Slava Fomin
A seed generation works differently in TON.
13:41
Tunis
It is not good on my opinion - I want to use one wallet for different cryptocurrencies - but in case of TON it is impossible - I need to use at leat two wallets - one for TON and another wallet for all other cryptocurrencies.
Kelvin Lin 百元幣雷針💎 invited Kelvin Lin 百元幣雷針💎
13:42
Slava Fomin
What do you mean by "wallet"?
13:42
Tunis
it looks like that seed hash generation differs - last word in mnemonic
13:42
I mean here - wallet = "one mnemonic phrase"
Andrey Shulepov invited Andrey Shulepov
13:44
Slava Fomin
So you would like to input the same seed phrase (from e.g. Ethereum) to any TON wallet software and be able to use it?
13:44
Tunis
yes - it is common bip39 standart for cryptocurrecies
13:46
one mnemonic - different derivation pathes for different cryptocurrencies
13:46
Slava Fomin
Well, I don't believe it would be feasible.
13:47
Tunis
yes, it will broke compatibility with current implementation
13:47
Slava Fomin
HD wallets are also not implemented in TON.
13:47
Илья Михеев
You could try and manipulate the used phrase so it would fit the TON version, but idk how you could do that
13:47
Slava Fomin
Yeah, I feel for you. But it's too late to change that.
13:48
A new key generation standard would be needed for TON to become compatible with these standards.
13:49
Have you tried to use seed phrase generated by TON in Ethereum?
13:50
Tunis
the seed for TON and BIP39 differs with last word only - the last word it is like to hash (checksum).
Amir Hossein invited Amir Hossein
13:53
Tunis
hash checksum
13:54
Slava Fomin
Yeah, right. It won't work then.
13:55
Anton F
Ton uses a subset of bip39, therefore Ton-generated mnemonics should work fine with bip39 currencies but not the other way around
13:57
Anton F
Incorrect, all words of the mnemonic phrase are random. Difference is that some of such bip39 phrases are rejected by ton, so that if a user misses one word his mnemonic will be rejected
13:58
Yep, my bad. Ton doesn't have this hash the thing and append to the end of entropy step
13:59
Tunis
I'll made test in few days - I'll generate 23 word mnemo and then I'll try to pick up last word - there are 2048 combinations - I'll try to check if there are any intersection between correct BIP39 mnemonics and correct TON mnemonics.
14:01
Anton F
This most likely won't work as IsBasicSeed check has an underlying PBKDF2 computation. On average it takes about eh 200-500 attempts of checking random phrases to generate a correct one for ton
14:01
Tunis
https://github.com/bitcoin/bips/blob/master/bip-0039.mediawikiGenerating the mnemonicThe mnemonic must encode entropy in a multiple of 32 bits. With more entropy security is improved but the sentence length increases. We refer to the initial entropy length as ENT. The allowed size of ENT is 128-256 bits.
First, an initial entropy of ENT bits is generated. A checksum is generated by taking the first
ENT / 32
bits of its SHA256 hash.
This checksum is appended to the end of the initial entropy. Next, these concatenated bits are split into groups of 11 bits, each encoding a number from 0-2047, serving as an index into a wordlist. Finally, we convert these numbers into words and use the joined words as a mnemonic sentence.
The following table describes the relation between the initial entropy length (ENT), the checksum length (CS), and the length of the generated mnemonic sentence (MS) in words.
.......
14:05
24 word mnemo it is 256 bit entropy
14:18
Slava Fomin
Try this in TON wallet and in Metamask:
1. rigid
2. practice
3. sugar
4. negative
5. grape
6. cotton
7. mixed
8. hair
9. mercy
10. party
11. oxygen
12. mix
13. potato
14. exclude
15. crash
16. frog
17. private
18. fish
19. phrase
20. purchase
21. brush
22. soldier
23. add
24. huge
😉
14:23
Tunis
Yes, it fits both - TON and BIP39 standart.
But it may by insecure to create such mnemonics - because it decreases entropy =)
14:25
I'll try to undestand on how much entropy are decreased in case of such mnemonics
14:33
Slava Fomin
It selects one mnemonic out of 246 declined.
14:38
Tunis
Something similar with BIP39 - for 24 word mnemonic there are only 8 valid mnemonics for case:
"23 initial words" + one last word from bip39 dictionary (2048 words)
Example - for "23 x art" there are only 8 bip39 compatible valid mnemonics (2040 declined):
1. 23 x art advance
2. 23 x art cost
3. 23 x art enroll
4. 23 x art junk
5. 23 x art mushroom
6. 23 x art pool
7. 23 x art slender
8. 23 x art wine
but no one of them are valid for TON)
NIMA Sociologist invited NIMA Sociologist
14:48
Tunis
2048 words in the dictionary -> 11 bits of entropy
11 * 24 (words in mnemonic) = 264. The 8 additional bits are a checksum.
14:52
Anton F
Well from a security standpoint using the same mnemonic phrase for multiple currencies is a bad idea no matter what the entropy is like ☠️
Галина Камынина invited Галина Камынина
14:59
Tunis
It is, but bip39 standart was made to simplify life with wallets and different cryptocurrencies.
15:00
Anton F
Welcome to TON, we're not looking for easy ways here ;)
Que Johnny invited Que Johnny
💎 Yang 💎 invited 💎 Yang 💎
15:46
TON technical overview
No, since wallet trusts incoming message only from other wallet.
Indeed when your wallet sends to my wallet some tokens it also sends me your address. I recalculate address of your wallet and then compare address of your wallet with address from which message came. If they are equal it means that message was sent by authentic code and my wallet knows that this message can only be generated by authentic code if it decrease it's own balance.
15:47
If some other contract sends to my wallet message which try to mimic to incoming jettons it will fail to pass the check
15:50
Dario
Yeah, i saw that, it hash the cell. Is this enough to gauranteed that the wallet is trusted?
15:51
There is no way to hack it?
15:52
TON technical overview
Yes (under condition that wallet can not change it's code, but wallet knows whether it can or not)
Rotem Yakir invited Rotem Yakir
16:24
Dario
So if i deploy a token with upgradable code (with set_code, right?) by wallet owner The token can be hacked?
16:27
TON technical overview
Well, look, you can not deploy token with upgradable code by will. Since address is determined by initial code, not by current.
I just want to point that if wallet is developed right (without set_code) it can not be hacked. However if developer make a mistake or may be try to use set_code in some limited way, he should be extra cautious
16:28
Dario
Okay,got it. Thanks
Sergey Sankevich invited Sergey Sankevich
17:01
Slava Fomin
I've discussed this problem with the lead TON developers and we've reached the following consensus: it is OK from the cryptography standpoint to use TON-compatible BIP39 seed phrases for TON, however, this will violate general security practices, because one leaked/broken seed phrase would compromise all of your wallets in multiple networks. We still recommend to use unique seed phrases for all the different wallets.
18:20
Tunis
@slavafomin It is a bit different:
- If user want's more security he can create separate mnemonic for each cryptocurrency - user can decide to do so if he want.
- If user want's to use one mnemonic for all cryptocurrencies - he can use it - but except TON.
From the user experience, it is not good to decide for the user whether to use a different mnemonic or not.
Native BIP39 support in TON may simplify integration of TON in different crypto wallets like to Trust Wallet, Coinomi, and so on ...
On my opinion, this could be a tactical advantage for the future of TON.
Tolya invited Kirill Malev
Margarita S invited Margarita S
18:24
Slava Fomin
That's yet another question. This will require TON community to update all the wallet software created so far to get full support of existing BIP39 seed phrases.
18:30
> Native BIP39 support in TON may simplify integration of TON in different crypto wallets like to Trust Wallet, Coinomi, and so on ...
> On my opinion, this could be a tactical advantage for the future of TON.
By the way, what difficulties do you see in TON integration currently?
18:31
In other words, how exactly BIP39 support will simplify things?
Ivan Reinhart invited Ivan Reinhart
18:58
Tunis
Bip39 is the basis for other standarts:
"BIP39, the standard defines how seed phrases are made. ..."There a lot of other related standarts - BIP32/BIP43/BIP44/...
Let's look at BIP44 (
https://en.bitcoin.it/wiki/BIP_0044):
This BIP defines a logical hierarchy for deterministic wallets ...
...
We define the following 5 levels in BIP32 path:
m / purpose' / coin_type' / account' / change / address_indexThe BIP44 are the basis for multi-currency and multi-acoount wallets.
If TON will support it (BIP39), it may be much easily to integrate TON coin to those wallets.
There are a lot of popular multi-currency and multi-acoount wallets - and all of them are based on those BIP standarts.
18:59
Slava Fomin
HD wallets are yet another question :)
And I don't think that it directly relates to BIP39.
19:05
Tunis
yes) but seed generation are based on bip39 for those wallets
19:09
Slava Fomin
I guess BIP32 will work with TON seeds as well.
19:17
Tunis
It will work - but TON doesn't supports BIP39. As result we have here that BIP39 mnemonics are basically not suitable for TON - there are present some exclusions - but it doesn't resolves the problem.
19:19
Popular multi-currency and multi-account wallets are based on BIP39 seeds.
TEP Punloeu invited TEP Punloeu
19:29
TEP Punloeu
Does anyone know can we make Token under Ton Coin?
19:31
Aleksandr Shepelev
there is draft of standard, but it is not approved yet
Vladimir Lebedev invited Vladimir Lebedev
Илья Илюша invited Илья Илюша
21:22
Dario
Well, still, it doesn't make any sense. With this implementation, there cant be a swap or a dex. If the address is generated by the a wallet address, the pool contract cant know which address he control. So there is need of two call, the first needed to create a wallet for pool, the second for letting know the pool which address he control. And due to asynchronous of the Blockchain, this cant be trusted and can lead to security issues
21:24
Maybe im missing something, but as long there is no "create_wallet" (internal message) its kinda hard to work with
21:24
TON technical overview
Dex will know the address of his wallet during first time it gets tokens
21:24
Dario
No, the address doesn't receive anything
21:24
The coin will be sent to another address, not to the addess of a certain pool
21:25
TON technical overview
There is optional notification for the owner upon token receiving
21:26
Talking about a liquidity pool, there could be discrepancies with a/b pair plus this can be a serious problem with slippage
21:26
Well with notification this can be done
21:37
TON technical overview
Dex-pool, during creation still should get the addresses of the corresponding token-wallets. If somebody create pool with wrong wallet address (non-wallet) it should be marked as 'unverified/scam' the same way as if somevody create DAI token himself and deploy pair.
21:47
Dario
Still, this can lead to errors
21:50
Dario
For example; i create a dex. The Factory deploy a pool for a/b, and a malicious actor send a fake transaction to initialize the pool with a wrong wallet address. Due to hashing system, i won't be able to deploy another pool contract for that pair
21:50
ᅠ
What is the meaning of this error that pops up on Desktop wallet? It's not very user friendly! It comes up soon after starting the wallet, not when doing anything with it in particular.
21:50
Dario
As long the contract can be updated (unsecure, means that someonr control it)
21:53
TON technical overview
Well, as I see that with correct flow, you are not deploying pair-pool for A/B token, instead you deploy pair-pool between wallet-A and wallet-B. In this case UI should check validity and authenticity of wallet-A and wallet-B and after that checks user can be sure that everything is ok.
21:55
Dario
Oh, understand. Seems logic, i need to change the code again ahah
Rick Sanchez invited Rick Sanchez
may Be...... invited may Be......
Artemiy Shirokov invited Artemiy Shirokov
Пётр НТПЦ invited Пётр НТПЦ
PolyCrypto Gems invited PolyCrypto Gems
88713 Deman invited 88713 Deman
22:54
88713 Deman
Всем привет! 🤝
Есть русскоговорящие?
James Burgess invited James Burgess
Jay Chun 🚀 invited Jay Chun 🚀
Funereal invited Funereal
23:59
Funereal
Hi, Do you think it would be possible for you (TON Dev) to enter in contact with
Koinly.io dev (an app that help us to do our tax incomes for crypto miner or crypto trader)? This app can keep track of all our transaction when we provide them our public crypto adress on a specific blockchain, but the probleme is that TONCOIN use his own blockchain and it's not supported (yet?) on
koinly.io. Could you enter in contact with them so they implement your blockchain on their app? At this moment we have to enter manually each transaction of Toncoin on
Koinly.io (by entering the amount and the hour we made the transaction), and they add the value in $ of each transaction base on coinmarketcap for this specific hour. But as a Toncoin Miner, I get income multiple time each day, so it's a real hassle to add those transaction in
Koinly.io each time. With Ethereum by exemple,
Koinly.io see automatically all transaction that were made so I don't have to enter anything beside my public ETH address and all my tax summary can be automated.
I already contacted
Koinly.io about this, they are not against, they even put Toncoin as available crypto-currency on the platform, so at least when I enter a transaction they can track how much it was worth in $ at this specific moment, but if you could work with them to make the link between their app and your blockchain it would be great!
00:43
Slava Fomin
Hey!
As a user of this service, you should make clear to them that TON integration is desired. It would be better if you would have a community of other miners to back you up. TON is the open platform, so I don't see any problems for their engineers to implement the integration. Also, I'm sure that TON community would be glad to help them if their engineers would have some specific questions. This chat was created specifically for this purpose.
01:39
Funereal
Unfortunately the only miners I know dont declare their income 😂 so I cant ask them to promotr this idea 🤐
02:18
Slava Fomin
This is also an opportunity for you to create such service for TON or a third-party plugin/integration for the service you use.
02:22
Funereal
I dont have competence for this
02:22
Slava Fomin
You can always partner up with somebody ;)
02:26
Funereal
Do you want to partner with me? 😂
Enrique Gamer invited Enrique Gamer
Deleted invited Deleted Account
Hartmann D. invited Hartmann D.
sobhan.eth invited sobhan.eth
Alinа Petrovskaya Sevastopol invited Alinа Petrovskaya Sevastopol
Deleted invited Deleted Account
09:33
Deleted Account
Hello there! to who i can contact purpose AMA? Thanks before
Book Chen invited Book Chen
Gregory | Dubai Real Estate and Investment Dubai. Недвижимость и invited Gregory | Dubai Real Estate and Investment Dubai. Недвижимость и
TW/ VistaLabs invited TW/ VistaLabs
Adel Shokri invited Adel Shokri
Dr. Awesome Doge invited Brian 隹凹
Oleg Ponamarchuk invited Oleg Ponamarchuk
Alexander Macedonian invited Alexander Macedonian
فروشگاه لوله و اتصالات صباح - مریوان invited فروشگاه لوله و اتصالات صباح - مریوان
Bentaygaª invited Bentaygaª
Feray furnense invited Feray furnense
Deleted invited Deleted Account
Queen Phronesis invited Queen Phronesis
Deleted invited Deleted Account
Deleted invited Deleted Account
Deleted invited Deleted Account
Deleted invited Deleted Account
Deleted invited Deleted Account
Deleted invited Deleted Account
Deleted invited Deleted Account
tony tang invited tony tang
🐧量子企鵝(已康復) invited 🐧量子企鵝(已康復)
16:32
🐧量子企鵝(已康復)
hello world
sxycjs sxycjs invited sxycjs sxycjs
Aristide Cittadino invited Aristide Cittadino
Francesco Faraldo invited Francesco Faraldo
Giancarlo invited Giancarlo
Crypto- Di invited Crypto- Di
Reza Azimi invited Reza Azimi
18:10
What formrat TON blockchain is supports for NFTs.
We tried to put gif format to our collection yesterday but it didn’t work for somereason. From the other side jpeg links works fine
Deleted invited Deleted Account
18:38
Who can I contact regarding NFT Smart contract?
Bogdan Tonenkij invited Bogdan Tonenkij
◣_◢ NightMare ◣_◢ invited ◣_◢ NightMare ◣_◢
Алексей Шишнёв invited Алексей Шишнёв
Alex Naumov invited Alex Naumov
عبدالمير ابوحسين الغرباري invited عبدالمير ابوحسين الغرباري
20:07
عبدالمير ابوحسين الغرباري
سلام عليكم
Amir Ali Hashemi invited Amir Ali Hashemi
21:10
Amir Ali Hashemi
Hi
21:11
How can I sent ton coin using only python?
21:11
Dario
Is there any call to get the contract address inside it? I cant find anything like that in tvm
21:11
Wrap fift cli and use standard fift scripts for wallet
21:13
Amir Ali Hashemi
no idea what you just said😅
21:13
Dario
Im kinda dumb there is MYADDR
21:17
Amir Ali Hashemi
are
21:21
Dario
Basically you can interact with wallet creating transactions. To make one, you need to run a cli command like ".
/fift -s wallet.fif ..." And stuff. So you can wrap that and use it in python to send transaction. You should also make two http request, the first to get the seqno of your own wallet and the second to upload the transaction to thr network (its a boc file, you need to read it and base64encode it). Everything can be done using toncenter api
21:23
Amir Ali Hashemi
wow nice
21:23
Do you also have any github project in this regard?
21:24
Dario
I dont think so, i
made.my own script in PHP for my projects
21:26
Amir Ali Hashemi
ah cool
21:26
Dario
Well its kinda easy to do that, just grab a fift compiler and make some tests with official scripts
Roger Cassatella invited Roger Cassatella
Поликарп Пустота invited Поликарп Пустота
Christian Euloge Loubaki invited Christian Euloge Loubaki
Richard Cooper invited Richard Cooper
yasamaya deger hayat yasamaya deger hayat invited yasamaya deger hayat yasamaya deger hayat
Александр Самодуров invited Александр Самодуров
00:17
Dario
Hello, sorry for being annoying, i have another question.
Talking about the swap,
let assume that an user send some token to the "dex address" with a payload, so the wallet receive an update and send the notification to "dex address". Now, the dex create a pool contract with the walletA and.. walletB? How can i know which wallet belong to the dex address for b token?
00:18
Also, i cant send two token with one transaction, so it doesn't make too much sense.
I guess the standard should should add the possibility to use the master jetton contract to make payments as a proxy
00:26
I cant even let users send two transactions to initialize "pool contract" because that would be untrusted. there is no way to let users to create pairs
Tin Systems invited Tin Systems
Marco Muñoz invited Marco Muñoz
DoLBY DIGITAL CUSA-1338 invited DoLBY DIGITAL CUSA-1338
Ketua DPC Badan Advokasi Indonesia Kab.Banyuwangi invited Ketua DPC Badan Advokasi Indonesia Kab.Banyuwangi
04:06
Ketua DPC Badan Advokasi Indonesia Kab.Banyuwangi
Bagaimana cara mining cloud ton?
04:14
Ascari
Hello, I know someone who lost their TON doing the ether bridge swap, can someone help?
Ida Nazaro invited Ida Nazaro
Blezz Junior invited Blezz Junior
Keing Mastr invited Keing Mastr
07:58
TON technical overview
Looks like that when you create pool between walletA and walletB you don't need to send both tokens, you can just create empty pool.
Then asymmetrical deposits of liquidity are trivial, symmetric one is more interesting: there are a couple ways including special deposit intermediate contracts or account system for users, etc
10:35
Emilia
Hi,
may I ask some technical questions here?
10:38
Deleted Account
Hi, yep.
Андрей 13 invited Андрей 13
11:13
Dario
Yeah i will try to do everything symmetric, i think i will need at least 4 contract
11:13
Or maybe i will move to an order based dex, which is more easy to build
11:14
The swap is kinda hard to do, due to ton architecture
13:45
I Am New To Theis Chanel
15:27
Emilia
Hi,
I've been following TON from the beginning since the Telegram days. I would like to get some information that I could not find on the whitepaper and primer.
1) What is the average transaction fee?
2) Are workchains implemented? The roadmap says 50% and that they can be up to 2^32.
3) What is the current and maximum throughput (tps) for masterchain and workchains?
4) What are the transaction finalization values? Number of blocks and block time?
5) What is the amount of TONs that will actually come into circulation out of the total 5 billion (currently 1.22 billion)? In the original draft of Telegram the breakdown was: 52% (2.6 billion) TON reserve, 4% (0.2 billion) developers and 46% (2.2 billion) public.
Thank you
15:29
Graber
Hello everyone. I am trying to compile a funC smart contract, but an error occurs when executing the "cmake~
/ton" command:
CMake Error in CMakeLists.txt:
Running
'nmake' '-?'
failed with:
the specified file cannot be found
CMake Error: CMAKE_C_COMPILER not set, after Enable Language
CMake Error: CMAKE_CXX_COMPILER not set, after Enable Language
-- Configuring incomplete, errors occurred!
See also "C:/Users/sulta/Desktop/ton-2/ton/CMakeFiles/CMakeOutput.log".
Deleted invited Deleted Account
Jahongir Dovurov invited Jahongir Dovurov
Jahongir Dovurov invited Ф
19:09
I
Tomorrow at 3pm in London,
@toniccx will be hosting a Zoom conference on emerging NFT Marketplaces on TON.
We will be joined by reps from Getgems, Disintar and TonUniverse, where they will present their marketplaces and answer questions that you have.
Please submit questions in advance to
@tonicadmin on Telegram.
Link to conference is
here. (Conference in in English). Use
this link to add the event to your Google Calendar.
19:35
ᅠ
Hi Ilya. I don't understand why not use Telegram many of us don’t have or like Zoom and Telegram does video with screen sharing too nor why the Ton Foundation Telegram “community” (which by the way blocked me permanently without warning and without violating any rules within seconds of joining in December and simply posting a helpful reply to a question and there’s no recourse no admins to contact it’s like Stalinist dictatorship which leaves a very bitter taste to a new Ton investor) promotes Twitter for Telegram users instead of promoting Telegram to the Twitter audience, and why they promote the Medium censorship platform instead of promoting Telegraph. Half of the battle for the mass adoption of TON is to attract people to Telegram?
19:37
Ascari
I agree, I don't like Zoom and frankly I do not trust them at all, if we can step away from them that would be great
19:39
ᅠ
@tolyayanot sorry no one has answer for this? This pops up from time to time on MacOS wallet- Which thanks to you is among the best Ton wallets currently, with 2 of the 3 mobile wallets currently leaving much to be desired.
19:41
I
Hi! I can't speak for the foundation, but I can speak for Tonic. Zoom is a more fully feautured tool for video conferences, that's the reason we chose it. Quite simple.
19:42
ᅠ
Ok understood. Is it the muting and speaking controls which are better?
19:43
Tonic
Yep, as well as screen sharing (with annotation), access controls, recording options, audience interaction options.
Deleted invited Deleted Account
Anon ⛓🕸 | Kazora ⚔️ invited Anon ⛓🕸 | Kazora ⚔️
Dmitry Ponomarev invited Dmitry Ponomarev
D a v i d e invited D a v i d e
Alexander Smekhnov invited Alexander Smekhnov
Pradeep Tripathi invited Pradeep Tripathi
Aleksandr Maksin invited Aleksandr Maksin
Gaming Continues. invited Gaming Continues.
23:47
Gaming Continues.
Hi guys, I tried to use the Bridge
TO SWAP TON for BNB, HOURS AGO and its still loading, anybody know a fix for this?
Suoha Master invited Suoha Master
Bruno Werlang invited Bruno Werlang
Alexander Abramenko invited Alexander Abramenko
pagiloy_ kirill 🍀 invited pagiloy_ kirill 🍀
Creker :) invited Creker :)
konstantin kartavcev invited konstantin kartavcev
Deleted invited Deleted Account
Бейсов Абай invited Бейсов Абай
Jitendra Pal invited Jitendra Pal
Александр (12 RUS) invited Александр (12 RUS)
DimOn DimOn invited DimOn DimOn
12:01
Sergey Khaylov
Hello, I need help )
I make transfer request via js sdk :
(await wallet.methods.transfer(....))
const transfer_result = await transfer.send();
return { transfer_result };
This code returns data:
{transfer_result={
@type=ok,
@extra=
1648111903.1049073:17:0.537090894452867}}
1. What is it mean EXTRA? What is it?
2. How I can get transfer transaction data (hash, lt and etc...)
Tnx
12:05
Aleksandr Shepelev
you will not get hash from here
hash and lt will be when transaction will be added to block by validators
12:06
basically there are two ways to check if transaction successfully sent
first is to check seqno of wallet (if it is incremented)
12:06
second is to check address for transaction
12:09
Graber
Hi all! How can I compile my smart contract and send it to the blockchain?
12:09
Sergey Khaylov
Thanks. 👍
17:24
Leo
hello, good afternoon, does anyone know if there is a problem transferring the wallet to the broker? I am not able to send my coins.
21:26
B p
Hello, does anyone know why the pool is not paying me, I have 15 gh/s. It's been 4 days at least, and I still haven't paid.
21:29
Slava Fomin
Hey! Sorry, but it's not a development question. You should ask the pool administrators instead.
23:43
Andrzej Grobarek
TONCoin is PoS?
23:43
My friend send me this message
23:45
Andrzej Grobarek
So, currently i can't mine it?
23:45
Slava Fomin
You actually can. But the PoW mining is not used for network operations. It's just a form of airdrop.
23:47
Andrzej Grobarek
So, what is a end date of mining TON?
23:49
Illia Malovanyi
~ Summer 2022
10:09
Valeriy Osipov
hi, mates, how to create a project based on TON blockchain?
10:27
Evg
Hi everyone!
How i get some TON coins for testing?
10:34
Valeriy Osipov
bro, Just buy it via CryptoBot
10:41
Evg
In thr support chat CryptoBot, I was told that for check my code, can get a TON from TON Dev Chat
10:43
Maybe I misunderstood
10:47
Hartmann D.
Evgeny, please do the search in this chat
@tondev. I'm sure you will find what you are looking for.
10:48
Dr. Awesome Doge
If all you need is a test, there's a faucet for test coins here.
@testgiver_ton_bot
10:50
Hartmann D.
It's a very slow process. AFAIK, 2 coins/hour.
11:29
Alkatras
Contract TON pancakeswap plis?
12:14
Ivan Reinhart
Друзья вопрос к разработчикам, может быть не по теме, но можно ли на блокчейн сделать аналог клауда как например гугл документ? Что бы он не был подвержен блокировкам и тд
12:15
Graber
Да. Разработчики TON уже
делают
12:16
Hartmann D.
Guys, in English please.
12:16
Graber
Вернее собираются
12:16
Ivan Reinhart
Sorry
13:35
Jana k
Hi, can I ask what has Morgenstern in common with this community? He sent link in Telegram
13:37
Hartmann D.
He has nothing. Please avoid following such a link. It looks like he is a scammer.
13:44
Jana k
I know, but i probably misunderstood the point He sent the link
13:48
Sorry, he wrote in Russian.. i am confused
13:49
Thanks for replies, i understand now
20:30
TCJ
hello i need help
20:31
TCJ
hello please i need help from dev
20:32
should i say my problem here or dev will contact me
20:33
Anima_X17
Moment pleas
20:36
TCJ
i downloaded the tonhum wallet on my phone and logged in with my seed. on the app it ask me to migrate my wallet and i did. but my wallet address has been changed and i'm currently mining and staking with my old wallet. is my funds lost
20:58
If not booked, you will not lose, can be transferred
20:59
TCJ
what do you mean
21:05
Tunis
There are 9 types of addresses which can be made from seed:
'simpleR1': SimpleWalletContractR1,
'simpleR2': SimpleWalletContractR2,
'simpleR3': SimpleWalletContractR3,
'v2R1': WalletV2ContractR1,
'v2R2': WalletV2ContractR2,
'v3R1': WalletV3ContractR1,
'v3R2': WalletV3ContractR2,
'v4R1': WalletV4ContractR1,
'v4R2': WalletV4ContractR2
21:06
so, it may be ok to get a bit different address from same seed
21:28
Anima_X17
Welcome !
22:41
TON Go One!
Give me post "Tolya"... "Game on Ton" blablabla...
22:53
Excuse me, do you have any plans to build a low-cost bridge to convert toncoins in different networks ??
22:54
You can coordinate with a popular exchange to give input and output to all three networks, thus creating a bridge with low cost.
01:21
D
На каком языке смарт контракты в тоне пишут?
02:23
Matvey Melishev
FanC
05:03
Viktor
Hey! Tell me, is it possible to write a smart contract for NFT so that NFT holders can receive the distribution of TONs that go to the wallet that generates NFT?
Simply put, I need to replenish my wallet balance with one transaction. And the smart contract should automatically distribute TON among NFT holders in equal parts. Is it possible?
16:08
May have to be refined, there by percent distribution and initially loaded wallets
22:29
how can i eth with ton mining?
03:13
Ruslan Gabdullin
Hello,
@extra value does not mean anything. This is an internal id of task corresponding to your request. It is generated randomly
03:16
Sergey Khaylov
yeh, I saw that... Thnx
10:12
Deleted Account
Ruskiy EST
10:30
Isaac Maxwell
hello guys. is there a dotnet vesion of ton client?
12:18
lee
ya, I also .Net Developer
12:21
Isaac Maxwell
Could you please provide a link?
12:31
lee
Sorry, I don't have any resource about TON/.Net Resource
12:45
Ilia Gaevskii
Hello, I start learn func for contest and have several problem. How compile base smart contract?
where can I put the file with the test task to pull up all the dependencies?
I start compiling it, and it swears at functions that it doesn't know about :(
I tried to put inside the project, the IDE goes through the functions, but the compiler still does not see it :(
23:10
Andrey Tvorozhkov
Completely my fault) Miss send))
23:14
Hi!
We are glad to announce our new (v0.0.22) release of toncli with a lot of features.
The main ones are:
1. Func tests, you can play with an example
here
2. Windows Support
3. A new send command that allows you to send Internal messages from fif files to other smart contracts
4. The ability to send messages / make requests to get methods directly to the address of contracts --address "....."
5. The ability to parse the output of get methods via fift, even if there is a slice or cell
6. A lot of fixes
7. Automatic restart of the lite-client if it could not connect to the server during the process
8. The ability to connect ownnet. You can create one with toncenter using the example of
ton-k8s (compose images are available)
9. The --data-params parameter to which arguments can be passed before the contract is deployed (for example, if you have a contract of 1, and there are many different data (nft 👀 ))
Many other features, but they were not recorded ;)
Unfortunately, to update, you need to suffer a little and merge ~/.config/toncli, it's easier to dump all the keys for ~/.config/toncli/wallet and delete the entire folder to create a new one. Sorry.
https://github.com/disintar/toncli
03:31
Sand Cat
Hi guys glad to be here 🌝
13:53
Dario
Question for toly-, ehm, ton-wallet devs: how do you plan to deal with signing message from a dapp? as it is now, an user cant easly recognize if a dapp is trusted or not, the signing process just show the hex of the message so nobody can tell if the message is going to swap tokena for tokenb or just drain all founds .
13:57
maybe a better wallet smart contract with administration rules and so on would be useful, so a dapp would install his plugin which specify what the dapp can do (move ton, move tokens, move nft) and the only interactions can be done via that plugin
13:58
i guess there is the need of another standard, before moving on ft
22:36
mohsen barekati
Hi, is there any guide for codes when tests failed, i get 9, but how can I interpret it?
22:38
Andrey Tvorozhkov
Check out official docs, tvm exit codes
22:39
Also if you use 0.0.23 toncli u may use -v 1 flag
11:17
Dario
@tvorogme i cant run toncli on my second laptop
11:18
Andrey Tvorozhkov
Describe errors, will try to fix
11:18
Dario
i dont know why, but here i get this error with open(fname, 'rb', encoding='utf-8') as file:
ValueError: binary mode doesn't take an encoding argument
11:18
Andrey Tvorozhkov
Aha, you need to do migration process
11:18
Andrey Tvorozhkov
(I wrote in readme about it)))
You need to delete ~/.config/toncli
11:19
Dario
oh i dont saw it, thanks
11:19
Andrey Tvorozhkov
This is because old version doesn't support new structure
11:20
Dario
maybe you can create a simple bash script to install everything
11:20
which install ton and toncli
11:23
Andrey Tvorozhkov
I guess we totally need, but I have work in
disintar.io where several thousands users want to kill me, because they haven't got cancel sell feature 4example, or some sell contracts are not deployed, etc. etc.
When I have more free time I will do it. But PR always welcome.
11:24
Dario
well its kinda easy to do, you can mostly copy-paste stuff from mytonctrl
for now you can register the subdomain
toncli.disintar.io
21:29
Sand Cat
hi guys, whats port node is use ??
21:30
Amir Ali Hashemi
Telo News - Crypto | DeFi | Web3 29.03.2022 11:19:33
The TON Foundation has announced the release of its TON Smart Challenge, a new competition for software developers where 1,000 winners will receive a total prize pool of 17,777 Toncoin. The participants are to optimize five smart contracts in FunC, the programming language for the TON blockchain.
If you're good at finding bugs in smart contracts, this is your chance to win a share of the 17,777 Toncoin (~$30,000) price pool.
The challenge is now open for participation.
21:31
Amir Ali Hashemi
Guys have you heard of this?
21:57
catiiiiiiiiiiii
how to install sublime text func plugin?
21:59
catiiiiiiiiiiii
ok, i will try it, but how i can use sublime text tho
22:09
catiiiiiiiiiiii
thanks 🙏
06:42
ted zhan
hey guys,why my tonwallet cant stop updating?
06:54
Hartmann D.
Please find it out in other chats. This one is for devs only.
08:53
F
During installation, the port is selected randomly. To see the port in use, use the command netstat -ntlup
Open udp
port.
10:48
Sand Cat
Thx, can i ask one more q?
10:50
F
Yes, this chat is just created to discuss technical issues
10:55
We made 2 nods one is from Abu Dhabi, one Russia Moscow, and russian node dont start. Node from Dhabi is one work.
10:55
Sasha Kernichniy
hi
10:55
can i buy ton coin in telegram?
11:08
catiiiiiiiiiiii
Yes
13:35
𖣘Bᴇ꯭͊ ᴋ۫͊ ᴢ͊۫ ᴏ۫͊ ᴅ꯭͊ ʙ꯭͊ ᴇ꯭͊ ᴋ۫͊ 𖣘 Choriyev
Hello
13:49
Sergei Voroshilov
Hi guys!
I'm trying to figure out the
https://github.com/toncenter/tonweb example and have a few questions.
1. What is Bounceable Address?
2. What is seqno?
Thanks for your help
15:28
D B
Hello TON Community !
I'm looking for TON developers to implement blockchain mechanics into game project, which is in demo version stage already.
If interested please send me a message directly.
Have a great day!
15:44
Andrey Tvorozhkov
toncli v0.0.25 mini update:
- add get_prev_c4
/ get_prev_c5
in run_tests
- fix -c
in run_tests
- fix func
in non project root
- Other minor fixes
To update:
pip install -U toncli
toncli update_libs
15:52
Saber
has anyone faced this problem when running toncli?
— Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.9/logging/__init__.py", line 1086, in emit
stream.write(msg + self.terminator)
UnicodeEncodeError: 'latin-1' codec can't encode character '\U0001f916' in position 9: ordinal not in range(256)
17:20
Yeikel Uriarte
Is there a plugin for VSCode?
17:29
Yeikel Uriarte
Thanks 👍 !!
17:29
Amin
you're welcome
17:41
Andrey Tvorozhkov
👍
21:38
Dong
Can I have some heads up please? Is the function recv_internal
required to have certain arguments or it's completely up to what you want the message sender to send you? I've noticed some funC programs have signature int msg_value, cell in_msg_cell, slice in_msg
while others only have slice in_msg
.
21:59
Amin
Hi,
Does store_slice
act like store_ref
?
For example, If I use store_slice
at sending side, and at receiving side use load_ref
and begin_parse
would it be fine?
I'm trying to understand the underlaying logic of slice
and cell
.
If not, what's the most efficient way to store slice as ref?
22:04
TON technical overview
No store_slice
is function applied to (builder, slice) and it adds slice bits to builder bits and adds slice refs to builder refs.
While store_ref
is function applied to (builder, cell) and it adds cell to builder' refs.
>what's the most efficient way to store slice as ref?
there is no 'very efficient ways'.
builder.store_ref(begin_cell().store_slice(slice).end_cell())
will do the thing, but usually trick is to somehow by-pass creation of extra cell.
22:05
Amin
Thanks, I got it
22:17
Dong
Thank you. So, if my understanding is correct, smart contracts are programmed in FunC, compiled into Fift and have to be deployed on the blockchain - and you can later interact with them using Fift or a wrapper SDK. Is that right?
22:17
TON technical overview
yes
22:19
Dong
Got it. Thanks again for the help
04:53
E 阿里云国际
Is there anyone who needs to connect to the OKEX API? I am from Alibaba Cloud. I can arrange the nearest distance between your server and OKEX to minimize the latency.
15:34
Hartmann D.
Sehmuzz, please address this issue to the FTX support.
18:06
Deleted Account
Hello to all. I need to develop telegram bot ton wallet on Python.
Is where are any examples or libraries to catch the blocks and read it and for sending transactions?
Can I use ton on web3 Python module?
Or maybe some of you can show me how I can make it by api?
Is there are any kind of websoket for catching ton blocks?
18:30
Mohammed R ( NO DM )
Any react native developer here?
18:41
Deleted Account
yeah
18:53
Mohammed R ( NO DM )
Can i ask you something?
19:27
Deleted Account
feel free
19:45
Mohammed R ( NO DM )
What is minimum specification for mobile development ? Especially using react native
19:46
Is it 8GB RAM enough ?
20:18
Mohammed R ( NO DM )
Have you tried ?
23:33
And you dont mi
nope )
23:54
DC
Hey people, someone can help me please?, I tried to bridge my toncoins from ton network to BSC on
ton.com/bridge, but It never arrived
01:12
Deleted Account
Hey, i am Mona, Coo at 3swap, a multichain/crosschain dex that allows user swap two tokens for one. it would mean alot to my team and i if we can show team binance what we have been building so far and maybe possibly a support. Is there anyone i can contact
06:49
Yeikel Uriarte
Hey, I am new in this world the blockchange development, how I started with TON?
10:06
Hartmann D.
Answered in PM.
10:16
Deleted Account
it's just like react developing. but i think you need a phone and install Expo on it then you can test your application in your phone at the same time as when you save your files .
14:33
DBZ
hello to everyone.
14:33
One info regarding sending TOn to BNB -
Collected 5/9 confirmations of oracles
14:34
pending for few hours, so I'm asking is it normal and justi need to wait for all 9 confirmations?
14:45
Hartmann D.
Wrong chat, Vuja. Please follow the main theme of this community - the development based on TON blockchain. Thank you.
14:47
Hartmann D.
I'd recommend to ask your questions in
@toncoin_chat, as example.
14:47
DBZ
Noted, I will join right now. All the best
14:48
Hartmann D.
You, too.
17:00
Hamidreza
Hi!
I was wondering when body of a message is stored as ref cell, when it is recieved by recv_internal
function, is in_msg_body
argument an empty slice and the body must be read from in_msg_full
?
17:04
MBWalter
I've done a bridge it's been an hour and still haven't received funds any help for ton Main net to BSC
18:49
🦾Oleg Tsenilov🦿
Hi, I have a question about Tensor types in FunC. How do i access a certain index? Is there an operator or a function?
19:04
MBWalter
Can I please get some help I made a transaction from TON NET to BSC haven't receive the tokens in my wallet it's been three hours any suggestions or help
21:15
jota
Hello, I have a problem with my Ton wallet that I downloaded from the official page, there is a transfer that I have not made and the amount has disappeared, it has happened to someone else. or do you know how to fix it, thanks
22:55
Slava Fomin
Use English please.
23:23
Dong
This may be a dumb question but..
Is .store_uint(0, 1 + 4 + 4 + 64 + 32 + 1 + 1)
equivalent to .store_uint(0, 107)
? If so, why was it written that way? Clarity?
23:28
🦾Oleg Tsenilov🦿
Yes, it just specifies sizes of fields
23:28
So that it will look less like a magic number
00:00
Dong
Thank you for clearing it up
05:47
Mij
Hi I'm interested in Ton for the first time, so I'm trying one by one, but there seems to be a problem. today
It's been about 72 hours and it hasn't synced yet. Then, strange things appear among the error messages.
05:49
it`s thread Error and mytoncore log ...
I don't know how to solve it.
05:57
"652: adnl query time out ", "651: state not found",
I wonder if there is anything wrong with the "Error" part in mytoncore.log and what kind of situation it is.
13:17
S
Hi guys, where could i see a validator list? I cant find this info in any of the explorers
17:23
Artis
Hi, can anyone tell me how to report a bug with wallet restore phrase?
17:24
Slava Fomin
Hey! What wallet software are we talking about?
17:24
Artis
In general problem ir with predefined word list
17:25
Slava Fomin
Is this a security vulnerability or a general bug?
17:26
Artis
There are some words ir phrase that are not in dictionary. For instance "newer". So it is impossible to restore that wallet
17:27
Slava Fomin
What software was used to generate the seed phrase in the first place?
17:29
Andrey Pfau
Seed phrases BIP-39 campatible, just get random 24 words
17:29
Artis
I believe "TON Wallet" chrome extension
17:30
Slava Fomin
How long ago was it?
17:40
Artis
Thank You. This is the correct path to solve the problem. It turned out to be simply a misspelled word on the paper
17:46
Azat Khabirov
Guys! Someone take me to your jun for free. I really want to develop under TON with experienced mentors. I have more than 6 hours of free time every day
I had experience during 6 months of working as a jun on the frontend 🤌🏿
17:54
Slava Fomin
Do you have a pet-project in TON?
18:22
Анастасия Брусницына
А парусски печать можно
20:24
Ra1n
Is any course about smart contracts to study?
20:24
Slava Fomin
Only the official docs.
22:06
RobyOneKenoby
Hello why Ton coins distribution for POW finish on summer 2022 ?
22:19
Slava Fomin
Because the supply is limited.
23:36
RobyOneKenoby
where is the supply left can we see?
01:37
RobyOneKenoby
Slava can you please explain the graph ?
01:40
Slava Fomin
Look at the data in the table. It has all the information you need.
05:41
i had the same problem.
were you able to solve it?
05:51
Ezequiel Perez
I already did that step, but the tons never arrived
05:52
MBWalter
Put the same amount that you sent in there
05:56
Ezequiel Perez
I made the first transaction but it never went through.
I did it again and burned some fractions of tons. The last time I was left with an amount a fraction greater than the ton sent. For the commissions you request.
06:00
MBWalter
Give it about an hour put the amount what you sent over but don’t fully transact with it and should go through
06:06
Ezequiel Perez
2 hours have passed since the shipment was made and the bridge is waiting for the 43 tons
06:06
Alexander Petrovets
Hello! Is this the best place to ask question about
https://toncenter.com/ http API or should I go to another chat?
11:26
RobyOneKenoby
can somebody help me to figure out when Pow will finish this summer 2022 ?
12:20
Noob Wars
Please the right person to contact about a position of CMO or moderator of this project.
Can help you meet the right users and community members
12:22
You got the resources, but you don’t have the needed experience. Here i come in play
12:24
Hartmann D.
Thank you so much but we don't need such a help yet.
12:26
Noob Wars
I don’t need you to pay me for the first three months of service.
- I can pass KYC
I have 5years experience about crypto. Ton lack marketing it’s a great project
Give me a chance please
12:27
Hartmann D.
I will forward your request to my colleagues. But to be honest, it's extremely unlikely. I mean positive response. We already have a complete team.
12:29
Noob Wars
Thanks you
You have a great team. Pretty sure you are all dev’s
Am a crypto marketing professional.
Give me a chance only.
12:31
Thanks, i will await your response.
12:33
Hartmann D.
Sure. Thank you, too.
12:34
Yaroslav
Hi, I'm not sure if this is the best place to ask, but I give it a try anyway. Are there any open-source implementations of ton stratum for nomp or miningcore pools ?
12:47
Slava Fomin
Hello! Sure )
14:17
Yaroslav
i have a question concerning ton full node
14:17
which ports should be open ?
14:32
Alexander Petrovets
https://toncenter.com/api/v2/getTransactions?address=UQCzwxqIw1pt41DND9pgGfAOhJKtQQEgjVcpn0rHxv-4b8Ob&limit=1<=23481826000001&hash=OBInamdujxrUx%2Fqebnhix%2FAL%2BWEgQaSEssZrGgLhAZo%3D&to_lt=0&archival=true
/getTransactions method above returns me 1 transaction with utime
1638465564https://toncenter.com/api/v2/lookupBlock?workchain=-1&shard=-9223372036854775808&unixtime=1638465564
/lookupBlock method above points me to the block number 16512830
https://toncenter.com/api/v2/getBlockTransactions?workchain=-1&shard=-9223372036854775808&seqno=16512830
/getBlockTransactions for block number 16512830 returns me several transactions, but no one has the same logical time as initial given to
/getTransactions method. Is it expected behavior or I am missing something? What is "count" parameter of
/getBlockTransactions? It seems it doesn't have effect at all.
15:07
TON technical overview
Looks like UQCzwxqIw1pt41DND9pgGfAOhJKtQQEgjVcpn0rHxv-4b8Ob
resides in basechain (workchain=0) but you are looking transactions in masterchain (workchain=-1).
https://toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=-9223372036854775808&seqno=21407484
returns required tx
15:23
Ruslan Gabdullin
1. Your transaction is not in workchain=-1
.
- After lookupBlock find all shards: https://toncenter.com/api/v2/shards?seqno=16512830
.
- For block you’ve found and for each shard get transactions list. You’ll find your transaction in the block (workchain=0, shard=-9223372036854775808, seqno=21407484)
.
15:38
Full Stack Dev
Can I deploy smart contract to MyLocalTon?
15:44
Also, how to connect MyLocalTon using TonWeb?
18:43
Daniil
Hi. What does fee_recipient mean in the nft collection file?
00:29
Slava Fomin
I guess you will need to
install your own instance of the TonCenter and
configure it to use your local TON network config, so it could connect to your LS. After that you can configure TonWeb to connect to your local TonCenter and deploy contracts with it.
15:25
Dario
How can I get public key from friendly text address? tonweb
15:26
nvm, look like i can do
a.hashPart
15:40
TON technical overview
It is not public key, it is hash part. You can get public key by calling get_public_key
get method.
15:49
Dario
Oh okay thanks
15:53
wait, thats not what i need. i want to parse a string address to uint8array(32) rapresenting the pubkey
16:03
TON technical overview
In TON account address and public key (something paired to some private key) are not strictly linked. Contract may have no public key at all. Wallet smart-contracts have public key, it can be retrieved by get_public_key
16:04
Dario
i know, but im trying to do something different so i need help to parse a txt address to pubkey bytes
16:09
look like it can be done via
TonWeb.utils.hexToBytes("HEX");
16:24
Step
why there is always only one shard in masterchain for any seqno?
for example
https://toncenter.com/api/v2/getMasterchainInfo
gives seqno
19586270
then
https://toncenter.com/api/v2/shards?seqno=19586270
gives
{"ok":true,"result":{"@type":"blocks.shards","shards":[{"@type":"ton.blockIdExt","workchain":0,"shard":"-9223372036854775808","seqno":24705898,"root_hash":"WO/lwsDncDa6/EgStxNc+EIho0qGLYfRD6p3tD3A5dY=","file_hash":"fsv3DAqh3NbHMJ1/SUUsYS0uNO9jofgaQWV2QxB9rXs="}],"@extra":"1649164901.0717678:1:0.10214953529318616"}}
16:34
Ruslan Gabdullin
In the future it will be more than one.
16:35
Slava Fomin
Shards are used for network scalability. The network is using one shard at the moment.
16:35
TON technical overview
There is about 2 tx per second in TON currently, one shard is able to process around 100 tps and start to split to subshards around this value. So there is not enough load for many shards. There were actually 16 shards prior 9m blocks (due to global split params) and also some spam events as well.
18:49
Step
ok understood.
18:50
usdt is available in TON?
02:34
Aidan Mattrick
Hi all I am trying to pull all mining history from PoW Giver 1 and am running the following (python) code:
METHOD = 'getTransactions'
url = f'https://api.ton.sh/{METHOD}?address=Ef-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprKDH&page=1'
headers = {"Content-Type": "application/json"}
response = requests.request("GET", url, headers=headers)
json_blob = json.loads(response.text)
However when I try and change the page number (i.e. 2, 3, etc.), I am still only getting recent 10 tx's from this week. Have read the docs but am not sure what I am missing. Can anyone point me in the right direction?
02:38
Ah seems logical time == blocks
06:36
Slava Fomin
Hey. Where did you find the page
parameter?
06:41
Aidan Mattrick
Didn't see on docs so I improvised... doesn't seem to be working...
Trying to get all tx's for a given account. From what I can gather the best way to do this is to pull the most recent ones and then use set the earliest logical time to the latest logical time for the next batch... However this seems like a hacky way to do it.
Would you have any recommendations sir? Currently reading newer whitepaper from 2021 but no mention of logical timee
06:45
It's actually right in the documentation :)
The cursor is controlled by these two parameters.
06:46
Just get these two properties from the last transaction in a batch and query for the next one.
06:49
Aidan Mattrick
Ahh.
1) isn't hash unique to tx so couldn't be used to ID next?
2) i thought I could start at lt = 0 and work my way up but with API is limit is 10 so I wasn't sure how to get all tx's where they have the same lt but there are more than 10 of them
06:51
No limit (or seems to cover up to 1000 per request), more requests, and had to_lt
field
06:51
Slava Fomin
The key point here as that you get recent results and scan to the past.
06:51
Aidan Mattrick
Yes but what if there are more than 10 tx's for a given lt?
06:51
Usually API has page
and offset
params to deal with this if limit
is insufficient
06:52
Forgive me if I'm missing something here, currently making way through whitepaper
06:53
Slava Fomin
Address, LT and hash are three parameters that uniquely identify a transaction in TON. Essentially, you are using last received transaction as a cursor to get the next ones.
06:54
You should Google for cursor based pagination. Offset based pagination has its flaws.
07:00
Yes, TonCenter would be a more advanced solution. Be advised, that you will need to get the API token for it though.
07:01
Aidan Mattrick
Thank you - reading about it...
So is the most efficient way to start at lt = 0
and work way up to latest lt
? (26864278000001)
Feel like 30 calls/min rate limit will make this slow and even if, I see a path to getting all tx's for a given lt
, new request with latest tx_hash
and lt
as starting point.
07:02
Thank you - happy to pay for one but where can I get it?
https://toncenter.com/ I messaged the bot to get one but no reply
07:02
Slava Fomin
I don't think that you will be able to start from LT = 0. You will start from recent transactions and will go to the past.
07:03
It's free and unlimited at the moment. However the limits will be implemented very soon.
07:03
Aidan Mattrick
Also, sir can I DM you or would you prefer to keep chat here? Don't want to clog up for others
07:04
I can see path to working forward but not backward... as tx
and lt
are where to start
07:04
Slava Fomin
However, you can install your own copy of TonCenter. It would be a better solution if you need to do historical scans.
07:05
The API will return the results in backward direction, starting from the most recent transactions and going into the past.
07:06
That's a little counter intuitive, but that's how it works.
07:08
Aidan Mattrick
I got you but if it goes backward and I can input lt
and hash
for starting points, one can guess the lt
that comes before, but not the hash
that comes before no?
07:08
Slava Fomin
By the way, I'm not sure if
ton.sh will return you the entire history of transactions, it could be limited to more recent ones.
07:09
You don't guess it. You take these parameters from the last item in the batch.
07:10
Aidan Mattrick
Oooo
07:11
So even though the documentation says starting I can think of it like starting but facing in a backwards direction (i.e. starting newest --> oldest)? I am thinking of starting going forwards (i.e. oldest --> newest) and based off what your saying think have to shift paradigm
07:11
Slava Fomin
Yep, that's right.
07:12
That's what I've said above :)
07:12
Aidan Mattrick
Ah thank you... wanted to confirm
07:12
Appreciate you taking the time to explain it to me! 🙏
07:12
Slava Fomin
No problem, good luck )
07:13
If you would have any questions regarding TON development you can always ask here.
07:14
Aidan Mattrick
Will do! I am very much enjoying whitepaper - kudos to u and team for work you are doing and appreciate your responsiveness
13:28
e J
Is there anyone help me with ton nft on getgems?
13:32
Aleksandr Shepelev
what do you mean?
13:34
e J
I want to know how to submit NFT project on it but there is no create project option like what we see on
opensea.com
13:34
Aleksandr Shepelev
you want to mint or simply add to catalogue?
13:37
e J
Both can be my option.
13:37
Aleksandr Shepelev
you cannot mint on getgems now.
only catalogue functions avalable.
the only place where you can mint your nfts now is
disintar.ioyou can add your project to getgems catalogue via bot I guess
13:38
e J
Do you know the bot adress
13:38
Aleksandr Shepelev
press "submit my collection"
13:38
e J
So who are those already minted their project
13:39
Aleksandr Shepelev
they all minted via another marketplace
13:43
Because on getgems.ii there is no submit option
13:45
Aleksandr Shepelev
soooo, let's start from the beginning
the current state of marketplaces on TON is the following:
there is first marketplace, disintar. There you can mint individual NFT via site interface (not collection). Or contact them and send files of collection. They will mint collection then for you. All collections which are already minted, went this way. As far as I know, they preparing UI now for minting collections too.
also there is second marketplace, getgems. This marketplace is not ready yet, so only thing you can do is contact them via bot and ask to put your collection in catalogue. but you cannot mint, buy or sell yet.
13:50
e J
This is what i wanted to know.
Thank you bro.
🌹🌹🌹🌹🌹🌹
16:41
Deleted Account
Hello guys, can someone explain fun C a little bit, is it hard and what is similar to?
16:42
🦾Oleg Tsenilov🦿
Its similar to C, but it has functional style features
16:43
Dario
well its like c, and its close as possible to tvm instructions.
16:49
Deleted Account
Do you guys think it makes sense to develop in ton this early or just make it in Ethereum, I wanted to create Defi apps
16:55
Andrey Tvorozhkov
100% make sense
16:57
Vyacheslav Flok
Hello guys, I need your help.
I don’t understand a concept of «contract balance» and «message balance» from the documentation
https://ton.org/docs/#/smart-contracts/tvm_overview?id=initialization-of-tvmI understand what is «balance» in common life. Like a bank account balance. The amount of funds that I have accumulated and which I can spend to something.
But what is message balance?
I suppose that it is a max limit of grams that i can place in
store_grams
() function. Am I correct? If so, what the difference with contract balance?
21:40
TON technical overview
No, unlike other blockchains where only transactions exist, in TON you have messages and transactions. Message is some data (optionally with some fund attached) which will cause transaction once delivered. Message are delivered non-instantaneously (transaction caused by message may be not only in other block but even in other chain then transaction which emitted that message). That means that at any moment total balance of the system is sum of balances of all accounts PLUS sum of all yet un-delivered messages.
21:54
E
Hi everybody!)
tell me pls, may I create smart contract+dapp to mint my collection nft at this moment?
Similar as on etherium?
23:15
Laurent POKKER
hello ,i'm french and i have a problem for a bridge to TON/BSC, it is possible to check the transaction ?
about 18 hours ago02:49:26 p.m. 04 April 2022
68 from EQAGJt..._yE47GComment: swapTo#0x82a1Cd09e82D42Ab3fCe4d68fFb13F38201b2BdA
->
-> external message 0.1 to EQAGJt..._yE47GComment: OK
Fee: 0.4498
But nothing in my wallet BSC...
06:30
Aidan Mattrick
Hi I am trying to get all transactions for a given address and am working my way backwards in time.
I'm making the following request (using last tx_hash
and lt
and plugging into the next request to get earlier dates)
https://toncenter.com/api/v2/getTransactions?address=Ef-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprKDH&hash=PC+fs9j6b6TVrIwkWlG+W+0ge2rM+zYCWC93GVL7OWM=<=26866552000001&limit=100
and I am getting the following error: 'Couldn\'t get next transactions chunk: Invalid transaction id hash size - unexpected lite server response:\n\t{"@type": "error", "code": 400, "message"
.
I checked tx_hash
len and is same as others. Does anyone know what is happening here?
10:09
AmirHossein
You should encode your parameters:
https://toncenter.com/api/v2/getTransactions?address=Ef-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprKDH&limit=2<=26866552000001&hash=PC%2Bfs9j6b6TVrIwkWlG%2BW%2B0ge2rM%2BzYCWC93GVL7OWM%3D&to_lt=0&archival=true
check out MDN docs
14:59
Laurent POKKER
OK thx
15:43
Laurent POKKER
thx , ton-help-bot resove my problem =)
15:48
Name Surname
Hello guys! Could you please tell what was the initial price of TON?
15:49
Dario
At the beginning, when it was available only on dex, as i could remember it was 0.5$
15:50
Name Surname
Ok, Thanks!
16:02
E
What about my question?)
16:15
Ali
Hey I have some questions about ton-contest and I will appreciate if you can help me.
First, what is weighting system for different kind of test-cases on gas consumption? For example, do failure tests which need raised error have the same score with correct ones?
I think the test cases which send correct messages to the contract (what really happens on the chain) should have higher scores.
16:26
E
But there not information about compile… where set metadata?
17:13
R T
Hi! What is the best TON client for golang?
17:19
Dario
Why sometimes window.ton.send randomly doesent work?
17:19
Uncaught (in promise) TypeError: provider.send is not a function
17:20
doesent happen all times but sometimes happen
17:20
i really cant figure why
17:22
TON technical overview
Is it reproducible on extension 1.1.36? If yes, then please open issue in extension github.
17:23
Dario
im checking if its my fault
17:25
looks like i need to open an issue
17:48
does tonweb ovverides window.ton?
18:34
YOTTABYTE
hey guys, I would to ask you few things regarding TON blockchain 😊
18:36
Is there any TON explorer that shows all detailed information about what is going on on the network, like circulating supply, current transactions and who vaildates them? All explorers that I have seen on the TON's apps site were the ones which only show details about particular TON addresses
18:38
Slava Fomin
It overrides window.TonWeb
.
18:43
Dario
what can cause this error?
Uncaught TypeError: window.ton._destroy is not a function
at new TonProvider
18:51
Cukong
What encryption algorithm does Ton coin use to sign data?
19:03
E
But it’s standard.. not example of realization…
19:05
Slava Fomin
Are you waiting for the page to load completely?
19:05
Such problems are often caused by the inconsistent load order of the script files.
19:06
Dario
of course, i used const onTonReady = () => {
and if (window.ton) {
onTonReady();
} else {
window.addEventListener('tonready', () => onTonReady(), false);
}
19:06
from official example
19:08
Slava Fomin
I would suggest to create a minimal reproducible example and add it to your issue then.
19:18
Slava Fomin
You are trying to access window.ton
before making sure that it's initialized.
19:19
Slava Fomin
You should access window.ton
only after onTonReady()
was called.
19:19
Dario
done, still doesent work
19:19
Slava Fomin
Please, update the example.
19:19
Dario
now i got only this error
TypeError: provider.send is not a function
19:20
i just moved that line inside onTonReady
19:24
Slava Fomin
Could you use this tool please?
19:26
Also, is tonweb_provider
part necessary for this issue to occur?
19:27
it doesnt work even without it
19:28
Slava Fomin
You should make your example as minimal as possible. Try to remove all non-essential parts.
19:28
Dario
btw im trying but this tool doesnt work at all
19:35
It works for me. I'm getting a Success
alert.
19:38
I would also suggest to start a new clean instance of Chrome or Chromium with only TON extension installed to isolate possible problems that could come from other extensions. And make sure to install/reinstall the latest version.
19:38
Dario
Wait, i will check in 15 min
20:09
Step
how do i create v4 address using tonweb?
20:12
address i get from tonweb using mnemonic is not same as what i see in my tonkeeper app.
20:13
Dario
update: on a fresh chromium instance it work. i dont understand why, but it works.
20:13
Slava Fomin
Well, I would suggest to start uninstalling other extensions one-by-one to figure this out.
20:14
Or you could start by re-installing the TON extension first, to check if it would help.
20:14
Dario
i suggest to add a check in the wallet
20:14
that search for conflicts
20:15
probably i figured what was the problem.. the ever wallet i guess
20:15
well i removed it and seems to work, thanks
20:16
i will close the issue
20:16
Slava Fomin
Such conflicts are pretty hard to resolve and I don't think that it could be done automatically. Extensions have a lot of control of the browser.
20:16
Step
anybody can help me?
20:16
Slava Fomin
Don't close it yet. Add your findings to it instead.
20:17
We will need to study why exactly does it happen and if there's a way to prevent it.
20:17
Thanks for the help
20:17
Slava Fomin
Sure, don't hesitate to ask again.
20:31
I think that the problem is that you are using var
statements to define global variables like provider
, which conflicts with the other extension that you've mentioned.
20:31
Dario
it works. but i already removed everscale wallet
20:31
Slava Fomin
Could you install it back again? For test purposes.
20:32
You should never use var
in modern JavaScript development. Use let
instead. It doesn't introduce global variables.
20:32
with ever wallet installed
20:34
Slava Fomin
What's the error now?
20:35
Could you give a link to Everscale API? It's probably using the same names as TON.
20:36
sorry i dont know, i never worked with that api
20:37
Slava Fomin
I see. Well it's definitely a conflict then. Thanks for finding this out )
20:46
Dario
replace tonweb.wallet.create with tonweb.wallet.all['v4R2'].create
20:49
Step
tonweb.wallet.all.v4R2.create is not a function
22:01
Duico
Hi everyone,
I'm trying to run
https://github.com/disintar/task-1-playgroundtoncli run_tests
gives the following:
disintar.io NFT owners today say: 🙈 🙉 🙊
INFO: 🌈 Start tests
/home/USER/Documents/TON/task-1-playground/func/code.fc:19:12: error: undefined function `in_msg`, defining a global function of unknown type
throw_if(in_msg.slice_bits() < 32);
^
/home/USER/Documents/TON/task-1-playground/func/code.fc:19:37: error: cannot apply function throw_if : (int, int) -> () to arguments of type int: cannot unify type int with (int, int)
throw_if(in_msg.slice_bits() < 32);
^
Traceback (most recent call last):
File "/home/USER/.local/bin/toncli", line 8, in <module>
sys.exit(main())
File "/home/USER/.local/lib/python3.10/site-packages/toncli/main.py", line 564, in main
test_runner.run(args.contracts.split() if args.contracts else None, verbose=args.verbose)
File "/home/USER/.local/lib/python3.10/site-packages/toncli/modules/tests/tests.py", line 42, in run
fift_build(getcwd(), contracts=real_contracts, cwd=getcwd(), use_tests_lib=True)
File "/home/USER/.local/lib/python3.10/site-packages/toncli/modules/utils/func/commands.py", line 44, in build
build_files(contract.func_files_locations, contract.to_save_location, func_args, cwd,
File "/home/USER/.local/lib/python3.10/site-packages/toncli/modules/utils/func/commands.py", line 65, in build_files
get_output = subprocess.check_output(build_command, cwd=getcwd() if not cwd else os.path.abspath(cwd))
File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/bin/func', '-o', '/home/USER/Documents/TON/task-1-playground/build/contract.fif', '-SPA', '/home/USER/.config/toncli/func-libs/stdlib-tests.func', '/home/USER/Documents/TON/task-1-playground/func/code.fc']' returned non-zero exit status 1.
22:05
TON technical overview
It is a bug in 1.fc which participant should fix: throw_if accepts two parameters, first one is exit_code but it is not provided.
22:06
Duico
Ok, so it's the expected output
01:32
Slava Fomin
Write your question in the most comprehensible manner and PM it to me.
04:22
Evgeniy
Hi! I create new TON wallet app by php. I want to take wallet address by words and password. How i can take it in PHP? )
04:26
Slava Fomin
Hey! I don't believe that ready-made solution exists in PHP right now. You would have much better luck with JavaScript. Or you could implement it from scratch, but it will take a TON of time.
04:29
Evgeniy
May be i can switch to different server-side language (go, python) for my goal?
04:30
Slava Fomin
Yes, JavaScript would be a way to go 😁
04:31
Maybe someone else would be able to help you with python/go.
04:37
Slava Fomin
@iboge this should help you as well. Official web-wallet is actually a good example, because it uses TonWeb under the hood with all the required functionality.
04:40
It is essentially as simple as this:
import { generateMnemonic, mnemonicToKeyPair } from 'tonweb-mnemonic';
import nacl from 'tweetnacl';
const password = '12345';
const myWords = await generateMnemonic(24, password);
const keyPair = await mnemonicToKeyPair(myMnemonicWords, password);
04:43
Ilya Pishchulin
Saw it by digging deeper. Thank you so much!
06:13
Slava Fomin
It is address encoding issue. Essentially they are the same: -1:a491d63f07ba7eefb4cb9f685484ce9089d5abaec97c15858222f04ca592a9ac
06:14
You can convert address to a "canonical" non-user-friendly form like this:
new TonWeb.Address('kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN').toString(false);
06:14
This is especially useful when you need to compare two addresses.
06:15
But it will loose one bit of information (bounce flag).
06:49
Aidan Mattrick
Ah thank you
@slavafomin. Two follow ups:
- Are they not unique IDs? I am looking up address from Whales Pool (`Ef-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprKDH`) on blockexplorer page you linked and don't see any matches with other non-user friendly forms from
ton.org docs. Is this because these are 30 different
account ids
, each one of which points towards one of the 20 giver addresses?
- Is there an SDK in python or is it just JS at this time?
06:54
Slava Fomin
I'm not sure I understood the first part of the question.
Regarding the second part, I'm not aware of the state of things in Python. Maybe someone else could be able to suggest a library.
06:56
Also, regarding the addresses. The same address could be encoded in various forms, and could contain additional information, besides the address hash itself. Like the bounce flag that I've mentioned.
07:25
Aidan Mattrick
Ah ty
@slavafomin I set up a JS script and ran all 10 addresses from
tonwhale.com
and the 20 from
ton.org
giver docs through to find what is UUID and see it involves
workchain_id
: i.e. `-1:243ba2ba421e9833875d8d161896f5402bb220c96f197adfb866f36b56c990e0
. Is this whole string referred to as Canonical address and UUID is `workchain_id
+
account hex
? Still making my way through whitepaper 😅
07:27
Also if I want to get all transactions for each Giver, assuming it doesn't matter if I use address from tonwhale
or ton.org
as they share same UUID?
07:48
Andrey Pfau
UUID is 128 bit, but ton addresses is 256 bit
11:54
R T
Hello again. What is the best golang client? I want to connect to network without separate node running. I want to use this code for mobile app then. And is it possible to hide activity in tor or it requires udp?
11:57
Andrey Pfau
specifically, there is no native client for golang right now. only the original one from the ton-blockchain repository and I am actively working on implementing a light client for kotlin
https://github.com/andreypfau/ton-kotlin
12:49
Slava Fomin
Hey! Yes, UDP is required if you want to connect to the network directly.
12:56
Andrey Pfau
lite client<-> lite server use tcp
13:09
whale
I have trouble when I compile the source code
13:09
Add ton
-- Could NOT find ccache
-- Could NOT find LATEX (missing: LATEX_COMPILER)
-- Found ZLIB: /usr/include /usr/lib/x86_64-linux-gnu/libz.so.1
-- Could NOT find Readline (missing: READLINE_INCLUDE_DIR READLINE_LIBRARY)
-- Could NOT find Readline (this is NOT an error)
CMake Warning (dev) at /home/ubuntu/.local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
The package name passed to find_package_handle_standard_args
(mhd) does
not match the name of the calling package (MHD). This can lead to problems
in calling code that expects find_package
result variables (e.g.,
_FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
CMake/FindMHD.cmake:37 (find_package_handle_standard_args)
blockchain-explorer/CMakeLists.txt:4 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found mhd: /usr/include
-- Configuring done
CMake Error at CMakeLists.txt:487 (add_executable):
Target "test-rldp2" links to target "GSL::gsl" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
15:13
Dario
@slavafomin is there any way to detect if the wallet is connected to testnet or mainnet?
16:29
Slava Fomin
What do you mean by the "wallet" and by "connected"?
16:30
Dario
ton wallet extension
literally where the wallet send the boc, testnet or mainnet
16:31
Slava Fomin
The address format doesn't matter much when you use it to query data from the API.
17:02
Slava Fomin
It's not possible at the moment, but we are working on it. Stay tuned for updates.
17:09
Full Stack Dev
Can I call "() recv_external(slice in_msg) impure" method using TonWeb, and how?
17:12
Dario
okay, in web3js its web3.eth.net.getNetworkType([callback])
17:12
hope it will be similar
18:18
Aidan Mattrick
Thank you
21:20
Denny
I sent a transfer from
wallet.ton.org, but FTX didn't accepted. Can I retrieve the transaction?
21:59
Slava Fomin
This is by design. You will have to remove the bounceable flag from the destination address in order for transaction to complete.
22:00
Step
how to remove?
22:01
You can find an example in TON wallet for Web source code.
22:06
Step
i have like this
wallet.methods.transfer({
secretKey: keyPair.secretKey,
toAddress: 'EQCaZIDBfiLx39a5I1ynYoVXINpgWY96-BuOSgwjIo85RqKs',
amount: TonWeb.utils.toNano(0.1), // 0.01 TON
seqno: seqno || 0,
payload: '123456',
sendMode: 3,
}).send().then(tx=>{
console.log(tx);
}).catch(e=>{
console.log(e);
})
22:16
toAddress: new TonWeb.utils.Address(to_address).toString(true,true,false);
can i keep it like this always? or for the first time only?
00:08
Slava Fomin
This chat is only for technical questions.
01:16
Slava Fomin
You should only clear the bounce flag for the uninitialized accounts. In other cases keep it set.
01:50
Kis Kevin
Hi I sent Toncoin without comment and now the coin was lost, can you help me?
01:51
I need the txid number, where can I find?
02:47
Aidan Mattrick
When looking at mining of Giver Contracts why is the out_msgs_source
value different from the giver address address
listed on the website?
Seems there are three key address, implying there are 3 parties involved for each mining tx: the giver contract address
, the out_msgs_source
, and the out_msgs_destination
. Shouldn’t there just be two: destination
= the miner and source
= giver contract address?
02:53
Could this be because the giver contract address
and the out_msgs_source
point to the same address hash
and the only way to figure this out is to run a unpackAddress()
API request for each giver contract address
and out_msgs_source
?
05:39
Juan Plana
where do I see what has been mined so far?
13:06
Vova
what is the maximum and minimum number of characters in a Tonkeepr address?
13:06
I'm making a bot, I need to check for the entered wallet address
14:03
Dario
If you use nodejs, just use TonWeb.Address to verify addresses, in other cases a regex can be useful
14:04
^(0|-1):([a-f0-9]{64}|[A-F0-9]{64})$
14:05
This one can be used to verify pubkeys
15:59
Step
{
'@type': 'query.fees',
source_fees: {
'@type': 'fees',
in_fwd_fee: 9254000,
storage_fee: 580,
gas_fee: 3308000,
fwd_fee: 1000000
},
destination_fees: [],
'@extra': '1649509088.4310362:0:0.8238671278009352'
}
can anybody explain this?
i am trying to calculate fee for a txn how to calculate total fee?
16:39
Step
do i also have to sum destination_fees.in_fwd_fee storage_fee gas_fee fwd_fee?
16:50
Slava Fomin
You will need to add all the fees together.
16:51
Step
both source_fees and destination_fees?
16:51
Slava Fomin
This is the way to go. Just wrap it in the try... catch block.
16:51
No, all four source fees.
16:52
Slava Fomin
This will not work for all address types, so I would advise against using it.
16:54
And this will work not only for Node.js, but for any JavaScript application.
16:59
Dario
Yeah its only for raw pubkeys
17:49
Aidan Mattrick
Hey all -
I am trying to figure out which address from when I call getTransactions()
on a Giver contract represents the address that has mined the TONCoins and is receiving them. I see an in_msg_destination
value and and out_msgs_destination
value in the response. I am assuming that out_msgs_destination
is address that has mined the TONCoins and is receiving them. Is that correct?
18:04
Slava Fomin
I would like to remind everyone that this is an English speaking chat.
18:38
Aidan Mattrick
@slavafomin would you have any insight on my message above?
19:02
Slava Fomin
It's transaction.out_msgs['0'].destination
.
19:02
Aidan Mattrick
Thank u sir !
19:09
Cyber.Pz
Good saturday everyone!
20:56
George K
A question about pure/impure functions. In TON, are functions that read data that are not passed to it through parameters considered pure or impure (considering no data is modified) ?
21:04
Andrey Tvorozhkov
If function return nothing and it's pure - func will optimize it and willn't run
21:08
George K
What determines purity in func ?
a) must only read function params
b) can read values outside of function params and return value dependent on params
c) can read values outside of function params but return value must be independent of global data
In all three cases the function of course does not modify data outside of its scope
22:01
Игорь Коняхин
Practically:
a) "impure" modifier present - guarantees correct behaviour
b) "impure" modifier absent - FunC compiler will do strange things, such as strip out some code without your permission.
22:03
It will
silently remove the function call in two cases:
a) function returns nothing:
() fun() { }
b) function returns something, but this something is not assigned to anything:
(int) fun() { return 5; }
...
int a = fun(); ;; fun is called
fun(); ;; fun call is removed
22:04
This is a very bad behavior of FunC compiler which should be altered, but that is how it is for now
22:15
Игорь Коняхин
In this case I actually think it's an issue of FunC/FunC-compiler, not IntelliJ TON
22:16
Andrey Pfau
unfortunately, func is extremely slow to update, it would be better to do inspections now, and when it is fixed in the func-clampiler, it can be turned off. at the moment, this is a temporary and best solution for this problem
22:23
Игорь Коняхин
Opened
22:25
Andrey Pfau
Next week I will start work on it
23:02
TON technical overview
Well, this is correct behaviour: if result of some code is not used it can be ommited (unless it has side effects). The only problem with that is that 'impureness' is not inherited.
23:04
Witer33 Aaªº°°°
Couldn't you automatically add impure to functions without return values?
23:04
Andrey Pfau
It should be made on IDE level, not on compiler
23:06
As inspection with quick-fix suggestion
23:06
Witer33 Aaªº°°°
Maybe a warning could be useful in the compiler
23:13
Игорь Коняхин
> ... The only problem with that is that 'impureness' is not inherited ...
And that is a
big problem
Automatic impureness actually doesn't even work "one level".
Function
() fun() { set_data(begin_cell().end_cell()); }
is going to be omitted, although it directly uses impure 'set_data'
23:15
"impure" keyword should not exist in the first place.
There is zero problem to automatically compute impureness of everything on the compiler level
23:16
It's Pythonists approach: fix language inherent problems with IDE suggestions:)
23:16
Although even Python is getting better
23:24
Andrey Tvorozhkov
Yep, like warnings
23:24
Or impure functions by default with pure command
23:25
(So you can optimize on own way)
01:14
S
Guys, tell me please, what is this Election contract. And why does he have a balance greater than the stake of all validators?
01:19
Slava Fomin
I guess this is because validator's stake is divided into two halves and only one half is effectively used during pending validation round.
01:19
S
So it is like one part uses as collateral?
01:21
Slava Fomin
No. The validation rounds and the elections are overlapping, so in order to participate in the next round you will need to make a stake before it begins (to participate in the elections), while your previous stake is not yet released.
01:24
Also interested about inflation. As I know it is 0.6%. It is calculated from all circulation supply (more than 5 billions)? Or only from initialized account balances (1.2 billions) or from the validator’ stakes (100-200 mln)?
09:11
Andrey Pfau
From all coins in network (5 billion)
11:20
S
Unfortunately it is not possible.
According to the inflation of 0.6%, new coins with 0.6% of inflation = 30 000 000 new coins. If validators has 200 mln TON coins, only with inflation they will have ROI in 15%, without any gas rewards. But rewards for validators now is only 13%. So I can’t understand the math in this network
11:21
Andrey Pfau
How you calculate 13%?
11:22
S
All the guys who has validators said me that %, also on the page of TON whales nominators they say that rewards of the network is ~ 13%
11:23
Andrey Pfau
Ton whales takes fee
11:23
S
It is without fee, with their fee, it will be 10% only
12:23
Noël
Will the native token functionality open in future? And what's the difference between fungible token?
12:40
J H
Yup. Tonwhale takes about 24.8% of staking profit fee,
Tonstake.com takes 10%, looking forward for the official nominator can give the people a better choice.
15:19
Gnosis
Who told you that the Ton Foundation will make its own staking service?
16:46
J H
It was on the road map, perhaps I was wrong.
16:50
By how you questioning this, I assume the foundation doesn’t need to make it’s own staking service, and they don’t need to. That’s very logical, thanks for correcting,
19:02
Slava Fomin
What is TON?
Oh baby, don't hurt me
Don't hurt me
No more
19:07
In English, please.
19:49
K R
Hey guys... i ran the validator on the local computer..
processes hang and nothing happens in the status
19:52
i have 2 warnings - and I don’t understand what to do .. they write that udp ports must be open - are they open or I don’t understand something
19:56
K R
In general, do I understand this validator on vps correctly?
there is an article on habré where they said that the validator should work for more than 18 hours before getting something for validation
19:57
ok ... i can to translate