22 October 2022
c
21:16
cryshado
In reply to this message
It's not programming language, it's just a "likeness" of programming language, which translates into FunC. Tact => FunC => FiftASM => TVM Byte code. This can only add more bugs and weirdness
21:17
just zoomer lol
AT
21:18
Andrey Tvorozhkov
In reply to this message
That's not true, they will do Tact => Tvm directly
c
21:20
cryshado
In reply to this message
"they will do", but now it's a pice of sh...
21:20
I'd rather use solidity. Why do I need the tact?
SF
21:22
Slava Fomin
In reply to this message
That's doubtful. I have seen a lot of OOP code that was a fucked up mess. The quality and readability of the code primarily depends on the code author and only secondly on the language in question. Each language supports abstraction and this is a great tool to make your code easily readable.
c
21:23
cryshado
In reply to this message
Is readable C code possible? No. Is readable FunC code possible? No too.
NN
21:23
Nick Nekilov
In reply to this message
Is that efficient enough for stack-based machines? 🙂
c
21:24
cryshado
In reply to this message
yes, solidity is enough optimized and efficient
NN
21:24
Nick Nekilov
In reply to this message
What about LLVM?
SF
21:24
Slava Fomin
Abstract complex parts into manageable modules, cover them with unit tests and build your main program out of these modules using a layered approach — if your abstraction is good — you will get a good readable code.
c
21:26
cryshado
In reply to this message
developers want tap tap and get the result, they don't want to count bits, wake up to reality and business processes
21:27
look at the source code of FunC and laugh at what you call a programming language
21:31
I can write readable, well-working code in FunC, but it obviously takes longer than if I were writing it in Solidity. And that's given my deep knowledge of FunC
SF
21:31
Slava Fomin
I'm not talking about funC per se, I'm talking about any programming language in general, because the point that I've mentioned still stands. I have no doubt that you can write terribly unreadable code in Solidity, and I've seen such examples.
c
21:31
cryshado
In reply to this message
Yes, I agree with this, you can write terribly unreadable code in Solidity
Y
22:41
Yakitori
In reply to this message
I never said that OOP code is always pristine, rather that it's easier to read if written well. To illustrate, you can compare the Jetton contract (well, only the wallet!) to its Solidity counterpart.
22:42
In reply to this message
Thanks, I didn't know about it!
22:46
I mean, 50 lines of code just to send tokens, including some assembler stuff, with 0 comment - why?
WD
23:05
Weird Dude
Hey I followed this tutorial and got this error:
error: redefinition of built-in assembler function `cons`
forall X -> tuple cons(X head, tuple tail) asm "CONS";
.
.
.
raise ValueError(f"😥 No address_text found in {contract.address}")
ValueError: 😥 No address_text found in C:\Users\[my-username]\AppData\Local\toncli\toncli\wallet/build/contract_address
23:06
should I install toncli on linux for better development exprience?
AT
23:18
Andrey Tvorozhkov
In reply to this message
Just comment all duplicating functions in your code
WD
23:21
Weird Dude
In reply to this message
I understand it seems like a c/c++ duplicate identifier error. but code is rather simple:
() recv_internal(slice in_msg_body) impure {
throw_if(35,in_msg_body.slice_bits() < 32);

int n = in_msg_body~load_uint(32);

slice ds = get_data().begin_parse();
int total = ds~load_uint(64);

total += n;

set_data(begin_cell().store_uint(total, 64).end_cell());
}

int get_total() method_id {
slice ds = get_data().begin_parse();
int total = ds~load_uint(64);

return total;
}

And I'm running :
toncli deploy -n testnet
23 October 2022
WD
00:06
Weird Dude
In reply to this message
Just use old gold ubuntu. windows is error prone for Ton development
JF
00:40
John Fyodor
In reply to this message
bounceable flag is Address parameter
WD
01:05
Weird Dude
ubuntu is ok
JF
01:07
John Fyodor
18.04
D
01:07
Dario
In reply to this message
Arch :v
01:07
No, actually there is ton-git aur package which is pretty useful
01:08
So the installation is pretty simple, just run yay -S ton-git
01:09
If you are under windows, maybe its easier if you just use js packages
o
07:52
oxlti.qube
In reply to this message
n
08:36
nocriz
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:16:9: error: undefined function `now`, defining a global function of unknown type
now(), ;; unixtime
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:20:35: error: undefined function `null`, defining a global function of unknown type
unsafe_tuple([1000000000, null()]), ;; balance_remaining
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:21:9: error: undefined function `my_address`, defining a global function of unknown type
my_address(), ;; myself
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/stdlib.func:29:22: error: function `null` was already declared as an ordinary function
forall X -> X null() asm "PUSHNULL";
^
08:36
Does anyone know what the issue could be?
08:40
I don't think there is a issue in the code
08:41
The issue I think is in the configuration, but I've just compiled the binaries
AT
08:41
Andrey Tvorozhkov
In reply to this message
This is deprecated repo with old code
n
08:41
nocriz
Oh.
08:42
Seems that toncli sample deploy wallet does not work now
08:42
In reply to this message
You mean that old code does not work now?
08:42
INFO: 🌈 Start tests
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:16:9: error: undefined function `now`, defining a global function of unknown type
now(), ;; unixtime
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:20:35: error: undefined function `null`, defining a global function of unknown type
unsafe_tuple([1000000000, null()]), ;; balance_remaining
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:21:9: error: undefined function `my_address`, defining a global function of unknown type
my_address(), ;; myself
AT
08:43
Andrey Tvorozhkov
In reply to this message
This is first contest code, which was developed not for deployment. Only for tests. But they are written in old way, so you need something else
08:43
You can try toncli start nft_collection or something else to figure out how it work
n
08:45
nocriz
(base) shendengdui@MacBook-Pro-12 test % toncli start wallet
INFO:
🐒 I'll create folder /Users/shendengdui/Desktop/test/wallet with project wallet and all needed files
INFO:
👑 Folder successfully created - happy blockchain hacking
INFO:
🐼 You now can do cd wallet and toncli deploy -n testnet
(base) shendengdui@MacBook-Pro-12 test % cd wallet
(base) shendengdui@MacBook-Pro-12 wallet % toncli deploy -n testnet
INFO:
🚀 You want to interact with your contracts ['contract'] in testnet - that's great!
INFO:
Do not panic - i'm creating wallet in /Users/shendengdui/Library/Application Support/toncli, so you can easily manage your contracts
INFO:
🐒 I'll create folder /Users/shendengdui/Library/Application Support/toncli/wallet with project wallet and all needed files
INFO:
👑 Folder successfully created - happy blockchain hacking
INFO:
🐼 You now can do cd wallet and toncli deploy -n testnet
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:16:9: error: undefined function `now`, defining a global function of unknown type
now(), ;; unixtime
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:20:35: error: undefined function `null`, defining a global function of unknown type
unsafe_tuple([1000000000, null()]), ;; balance_remaining
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/tests-helpers.func:21:9: error: undefined function `my_address`, defining a global function of unknown type
my_address(), ;; myself
^
/Users/shendengdui/Library/Application Support/toncli/func-libs/stdlib.func:29:22: error: function `null` was already declared as an ordinary function
forall X -> X null() asm "PUSHNULL";
^
08:46
So basically I've run toncli start wallet
AT
08:46
Andrey Tvorozhkov
In reply to this message
What version of toncli u are using?
n
08:46
nocriz
INFO: v0.0.43
08:47
What do you think the issue is?
AT
08:47
Andrey Tvorozhkov
Strange, will check out today
08:48
In reply to this message
Can you try install directly from git and start wallet?
n
08:49
nocriz
So not pip install?
08:49
Oh.
08:49
Let me try
08:50
(base) shendengdui@MacBook-Pro-12 ~ % pip install https://github.com/disintar/toncli.git
Collecting https://github.com/disintar/toncli.git
Downloading https://github.com/disintar/toncli.git
| 226 kB 860 kB/s
ERROR: Cannot unpack file /private/var/folders/45/94zqnqp12cv193w1g27tlmr80000gn/T/pip-unpack-z5uww80k/toncli.git (downloaded from /private/var/folders/45/94zqnqp12cv193w1g27tlmr80000gn/T/pip-req-build-od59cmkv, content-type: text/html; charset=utf-8); cannot detect archive format
ERROR: Cannot determine archive format of /private/var/folders/45/94zqnqp12cv193w1g27tlmr80000gn/T/pip-req-build-od59cmkv
08:50
Doesn't work?
AT
08:51
Andrey Tvorozhkov
git clone https://github.com/disintar/toncli.git && cd toncli && pip install -e .
n
08:52
nocriz
I downgraded to 0.0.38 and it works now
08:53
Let me try your solution now
08:54
In reply to this message
Same issue
D
09:52
DistantYesterday
Are there any simple dApps that run natively on TON? I would like to learn how to interact with TON smart contracts (probably with tonweb?), but don’t know where to start.
n
09:53
nocriz
Can anyone help explain how to send external message in toncli?
F
11:14
Fortune
How do we convert contract.pk from toncli to 32-byte public key (and 32-byte private key)
11:14
Or rather if contract.pk is private key bytes, how do I get public key?
11:19
How do I print a constant in fift?
WD
11:27
Weird Dude
How one can include functions from stdlib in tests folder?!!
error: undefined function `.slice_bits`, defining a global function of unknown type
throw_if(35, in_msg_body.slice_bits() < 32);
M
12:30
Mark
Good day!
Excude me, where I can read about recv_internal signature?
I'm trying to understand difference between cell in_msg_full and slice in_msg_body
One of the sources tells:
;;;; Cell with an incoming message
;;;; Incoming message body, slice type
Does it mean the "in_msg_full" stores contract itself and in_msg_body is what comes to the contract from the outside (with a message)?
12:33
So in the first task we already have an injection point: execute(request), and it only take to write a function that would send TONs pulled from the contract to your own wallet
Am I right?
12:33
Oh somebody already made it happen🙂
s
13:03
shahar
I’m trying to understand the way SEND_MODE works, especially the 2 (ignore errors) flag.

I have a contract which does the following:

() recv_internal(…) {

set_data(…)
send_raw_message(…, 128 + 2)
}


If the contract does not have enough balance to carry out the action enqueued by send_raw_message, I get:
1. exit code 0 for compute phase
2. exit code 37 (not enough balance) in action phase
3. changes do not get persisted to storage
4. I send my message with a bounce flag, but the amount does not get bounced back to my wallet

Is it the intended behavior that messages only bounce in the compute phase? do errors in the action phase get swallowed?
n
13:21
nocriz
Anyone know how logic time is implemented in TON?
A
13:22
Alexander
I'm trying to send via toncli but getting this:

"ERROR: � Please, send more TON for deployment to ... "
13:23
how much TON do I need to send to deployer-wallet to fully initialize it?
13:24
weird
13:25
I've sent 2 but it is still not happy
13:25
Balance: 2.100009996�, Is inited: False
13:27
how to activate 'deploy-wallet' via toncli?
A
14:30
Alexander
In reply to this message
anybody?
AG
14:34
Alex Golev
In reply to this message
What command you tried to execute? 'Deploy wallet' will be deployed when you will try deploy your own wallet, for example.
t
14:37
tumbler
I want to compose a message body in body.fif file.
"Asm.fif" include

<b
op 32 u,
;;whatelse??
;;comments? how to write them?
b>

how to write comments ?
AK
14:38
Artemii Kulikov
In reply to this message
im interested too 🙂
A
14:39
Alexander
In reply to this message
I've tried to send tx:

toncli send -n mainnet -a 0.03 --address ....
AG
14:57
Alex Golev
In reply to this message
Did you try it again afer top up your deploy wallet?
ÉD
15:09
Érvin Dimitri
Hello
I'm looking for a tutorial that shows how to install the compiler and deploy the Smart contract written in FunC
V
15:13
Vinay
In reply to this message
Thanks
A
16:48
Alexander
In reply to this message
sure, and it didn't work
24 October 2022
P
10:13
Pil
IMG_20221024_101239_499.png
Not included, change data exporting settings to download.
87.7 KB
10:14
In reply to this message
Hello there, I want to run ton site, but I got this error in rldp-http-proxy compiling
D
10:15
Dr. Awesome Doge
In reply to this message
1. Please describe your operating system name and version.
2. Please describe all the commands you run.
P
10:22
Pil
In reply to this message
Linux 5.4.0-29-generic #33-Ubuntu SMP Wed 2020 x86_64 x86_64 x86_64 GNU/Linux

I followed the documention
cmake --build . --target rldp-http-proxy
RG
10:41
Ruslan Gabdullin
In reply to this message
Hello, here is a Docker with proxy.
S
11:57
Shawn
Hi all! Shawn again from Orbs! Just yesterday we (Orbs) published a TON grant to the Ton Society footsteps repository. The grant amount/reward is 2000 $TON. Please check it out and DM with any questions

https://github.com/ton-society/ton-footsteps/issues/57
S
12:57
Silvio
Hello everyone. I would like to ask a technical question about the TON Bridge and the new possibility of transferring tokens:

The bridge fee is quite high for ordinary users, is there no way to reduce it? Is it created like this on purpose?

Note: I mean the main bridge, the token bridge has a low fee.
L
16:17
Lisa
Don't miss such a livestream today ✌️
L
16:17
Lisa
T
TON Society 24.10.2022 16:15:30
Hack-TON-berfest livestream

Hacktoberfest is underway for open-source projects on TON and will close in a week.

More than 20 TON projects need help from contributors, so all developers are encouraged to join the festival!

Hack-TON-berfest is an excellent opportunity to make the first step toward building a reputation in the TON community, contribute to the development of the Web3 internet, and receive a limited-edition NFT.

Today, Oct. 24 at 16:00 (UTC), people will be able to join a livestream where they’ll learn how to make a quality Pull Request, the reasons why people should participate in such an event, and how open-source development influences the growth of the TON ecosystem.

The stream will be hosted by:

— Danila Volkov, creator of the first mining pool on TON and one of the developers at Whales Corp.

— Mark Okman, another member of the TonWhales team and creator of YouTube and Telegram channels on programming on TON and in the world of Web3.

The stream will be held on YouTube and on TON Society’s channel.

We recommend all beginners join the stream of open-source development who want to join the festival but don’t know where to start.
N
17:03
Nobody
Hi. Who has a node with a validator, write to me, I have a couple of questions. I am ready to pay your time $.
M1
17:20
M 19
Hi
A
18:18
Allan
Please I need assistance on how to use the highLoad wallet multi sender API . If you can help please notify and I’ll also pay tip to appreciate you and for your service and time .
T
18:20
Tim
In reply to this message
just use js wrapper
18:22
there is also example of how to use it
P
20:26
Pil
In reply to this message
Thanks, how can I connect my ton domain to this?
RG
20:30
Ruslan Gabdullin
In reply to this message
1) follow the instruction on GitHub
2) after third section you should have a “private” folder with adnl file
3) adnl in user-friendly form (check example in official instruction)
P
20:35
Pil
In reply to this message
I have, but I don't know how can I connect to ton domain
RG
20:38
Ruslan Gabdullin
I’ve not finished))
20:39
4) Go to chrome dns.ton.org, find your domain and press edit. Pass the suitable form of your adnl there.
P
20:39
Pil
In reply to this message
Oh sorry thx
RG
20:40
Ruslan Gabdullin
Please, make a backup of the content of your private folder. If you loose it, you have to send another transaction and pay fees to change the adnl
20:40
In reply to this message
As I remember, the chrome extension is required
P
20:58
Pil
In reply to this message
Thanks
20:58
If domain is on sale I can't use it for ton sites?
RG
21:03
Ruslan Gabdullin
You should buy it on auction
21:04
You may find a necessary info here
P
21:04
Pil
In reply to this message
I can see domain in my ton keeper and getgems but dns.ton.org says you are not the owner of this domain

I logged in with ton extension
RG
21:06
Ruslan Gabdullin
On which version of wallet did you buy the domain?
P
21:06
Pil
In reply to this message
V4R2
RG
21:07
Ruslan Gabdullin
🤔
21:08
I have no idea what’s wrong…
P
21:08
Pil
In reply to this message
I removed sale mode and it is fixed now
V
21:11
Vladimir
guys, help me with this
const wallet = tonweb.wallet.create({publicKey});
what is {publicKey}?
P
21:12
Pil
In reply to this message
DNS ton org have ton site text box with "HEX" placeholder,
I should enter the adnl-hex data ?
21:13
What is subdomains
RG
21:15
Ruslan Gabdullin
In reply to this message
Yes
P
21:17
Pil
In reply to this message
Done, now I'm done 😐

What should I do now?
RG
21:18
Ruslan Gabdullin
In reply to this message
From the official documentation: you can manage domains like *.<your-domain>.ton
https://ton.org/docs/#/web3/dns?id=subdomains
P
21:18
Pil
In reply to this message
Nice
RG
21:18
Ruslan Gabdullin
As I know, this is not standartized yet. Please, correct me if i’m wrong)
21:19
In reply to this message
Are you already finished with this instruction?
21:20
In reply to this message
Hm, looks like you can use any form here
P
21:22
Pil
In reply to this message
I excuted your docker and I have private keys and,
I set hex adnl..

Now just need to route my custom Django port to ton site
RG
21:24
Ruslan Gabdullin
Fine, in file .env change TON_PROXY_REMOTE_ADDR variable to <ip-of-django>:<your-port>. If Django is running on the same machine, use localhost. After this restart container with docker compose restart rldp-proxy.
21:25
In reply to this message
Don’t remove double quotes
21:27
In reply to this message
Next: try to open your site from console: curl -x in1.ton.org:8080 http://<your-domain>.ton -v. You should see the html-source of your site. If don’t, check the output for problems.
SF
21:29
Slava Fomin
In reply to this message
Well, it's a public key of your wallet of course. Could you be more specific?
V
21:30
Vladimir
In reply to this message
can u show example?
21:30
how it looks
SF
21:31
Slava Fomin
In reply to this message
If it wasn't a public key I would have thought that this is a scam 😁
21:33
In reply to this message
tonweb-mnemonic is used to generate a mnemonic phrase and a key pair from it.
P
21:33
Pil
In reply to this message
it's docker-compose restart rldp-proxy ? In root project? I got error
SF
21:34
Slava Fomin
In reply to this message
21:34
This chat is English-only.
RG
21:34
Ruslan Gabdullin
In reply to this message
Yes, in the root of rldp-proxy repo
V
21:34
Vladimir
In reply to this message
ok)
RG
21:35
Ruslan Gabdullin
In reply to this message
Attach the output in DM, please.
P
21:35
Pil
In reply to this message
can u give me the command
RG
21:35
Ruslan Gabdullin
This one: docker compose restart rldp-proxy
21:36
Maybe you should use this one: docker-compose restart rldp-proxy
21:36
And maybe sudo is required
P
21:37
Pil
In reply to this message
I don't know where is rldp-proxy repo,
RG
21:38
Ruslan Gabdullin
And where did you started this docker?
P
21:38
Pil
In reply to this message
Ton proxy docker repo
RG
21:38
Ruslan Gabdullin
Oh, sure. In the root of this repo
21:38
I’ve missed the name
P
21:42
Pil
In reply to this message
RG
21:43
Ruslan Gabdullin
Docker-compose up
21:52
Any success?
P
21:53
Pil
In reply to this message
I lost connection to server
21:57
In reply to this message
Yes done, thank you
S
21:57
Silvio
In reply to this message
Nobody know about this? 😔
RG
21:58
Ruslan Gabdullin
Now your site should work from browser with proxy. If you have any problems with proxy, please tag me or write in direct messages
P
22:04
Pil
In reply to this message
Thx
T
22:48
Tonox DeFi
T
Tonox DeFi 24.10.2022 22:47:41
News

- FunC libraries updated. Everything has been moved to a mono-repo to store all contracts.
- New lib: crypto/secp2561k.func, a PoC to work with elliptic curve secp2561k in TON.
- Updated math.func

https://github.com/TonoxDeFi/open-contracts
T
22:49
Tonox DeFi
For all FunC developers, if you are interested feel free to review or contribute
25 October 2022
D
10:44
D a v i d e
what you think about tact?
F
21:55
Fortune
Is it possible to get public and private keys in hex from toncli's generated .pk file?
SF
21:56
Slava Fomin
AT
22:02
Andrey Tvorozhkov
In reply to this message
"TonUtil.fif" include

"build/contract.pk" load-generate-keypair // generate key pair
constant private_key // save private to constant
constant public_key // save public to constant

."Private key: " private_key Bx. cr
."Public key: " public_key Bx. cr


Create fift/print-hex.fif in wallet project in config of toncli, then run 🙂
F
22:06
Fortune
Thanks it worked
22:11
If I don't add the public key to the data cell when deploying the contract, would it still be mappable to any wallet version address?
22:12
On ton explorer it shows as unknown contract in Contract Type. And I'm guessing that may be why
AT
22:15
Andrey Tvorozhkov
In reply to this message
Explorers use hash code of wallets to check if it is wallet, but there is custom “hello_world” get method in toncli code, so it’s not worked correctly
22:15
We think to remove it to add support 🙂
MO
22:32
Markо Okhman
Is there any web wallets working with testnet? Like https://wallet.ton.org but for testnet
NK
22:32
Nikita Kuznetsov
In reply to this message
22:34
In a header switch to change to testnet and vice versa
MO
22:35
Markо Okhman
nice, thanks!
i can even create multiple wallets there
22:35
super 🚀
NK
22:35
Nikita Kuznetsov
Yes, you could create multiple wallets as well
R
22:54
Roy
How can I parse block on TON ? Any help will be appreciated.
o
23:09
oxlti.qube
In reply to this message
Technical, or onchain analytics?
A
23:09
Allan
In reply to this message
I’ll DM.
A
23:35
Amin
In reply to this message
https://wallet.ton.org works with testnet too, to switch go to About in the menu, hold shift and click the version.
t
23:50
tumbler
In reply to this message
This hasn't worked for me :(
but appending ?testnet=true as a query parameter for wallet.ton.org did the job.
26 October 2022
JF
01:14
John Fyodor
In reply to this message
What exactly do you need?
R
01:15
Roy
In reply to this message
I’ll send a DM.
YD
10:15
Yura Dukhno | XP.NETWORK
Hey. Trying to connect TonKeeper to my dApp and have some issues. 1. How can i generating qrcode to scan it with wallet for connection?
10:16
Already checked their repo https://github.com/tonkeeper/ton-connect and found nothing.
n
10:20
n3ko_sempai
In reply to this message
Remember is a alpha version. Reading a bit I can't find that feature either.
10:21
Tonhub does have this feature if I am not mistaken.
YD
10:38
Yura Dukhno | XP.NETWORK
Yes they do but apparently they think i should guess how to do it because i generated a qrcode according to the walletconnect example naf Tonhub does not want to scan it :-/
o
10:39
oxlti.qube
In reply to this message
Try PyQR to generate from tonconnect link, I’m not sure if it gonna work, but still😅
d
10:40
doni
In reply to this message
you can look at the code of the webapp scaleton which implements the connect flow 👛
YD
10:43
Yura Dukhno | XP.NETWORK
In reply to this message
so you can provide me a link to? i can't fine it in google.
o
10:44
oxlti.qube
In reply to this message
11:01
as i remember you need to run a backend for connecting with tonkeeper ( they are working on a newer standard now)
r
18:05
rony
hi can any one help me understand how i can parse the data
18:06
with node js
r
18:10
rony
the data itself
18:10
data: 'te6cckECEgEAAhwAA7V+mKIgZsOxCPVp2Ae0GZHJYGT9rvxN37zpshlY5K6RgPAAAdVneppwF1CM7SrbEQtPqs0UDaZ1IqFyOfxytrYAON9DYzRY5c/AAAHVZ28owDY1U84wAARnk3QoAQIDAQGgBACCcoih4gYcmq8G73IqZ1ruFs7VzwybxminuZ/lYZaM/n/J893jJg/cGekQi7C8vgGPajybhZ2HztjkKPf+SJevBNwCDwxARhhJXURAEBEBRYgB0xREDNh2IR6tOwD2gzI5LAyftd+Ju/edNkMrHJXSMB4aBQIBNAYHAQ7/APgAiPsECABQAAAAAAAAAAD33aRB4XlpBLyp9HK6WHqmuTqJZjWpnRc0d/r01v2yOgEU/wD0pBP0vPLICwkCASAKCwIBSAwNAJzygwjXGCDTH9Mf0x8C+CO78mPtRNDTH9Mf0//RUTK68qFRRLryogT5AVQQVfkQ8qP4AAKkyMsfyx8Sy//J7VT4D5Mg10qW0wfUAvsA6DAABNAwAgFIDg8AF7s5ztRNDTPzHXC/+AARuMl+1E0NcLH4AJ1ASyMTiAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAFvAAAAAAAACAAIAAAABasZEdy8sQaduzygQ+vSnD/AV5co9UpAiWluet7m2VWIEhGJzWQ==',
18:12
In reply to this message
how to parse the data itself
T
18:13
Tim
In reply to this message
you need to know how it was packed
18:14
You parse it as BOC and then read in right order
r
18:14
rony
In reply to this message
what do you mean?
18:14
whats BOC?
T
18:14
Tim
Check out how transaction send works
r
18:15
rony
can you refer me to a doc?
T
18:15
Tim
to parse it - you read from boc with same order
18:15
No, I don't know good links, maybe someone else can. You can check out tonweb source code
JF
18:17
John Fyodor
In reply to this message
What exactly you are trying to achieve with data deserialization?
r
18:18
rony
In reply to this message
i want to get all the information about the transaction
OB
18:18
Oleg Baranov
In reply to this message
https://github.com/xssnick/ton-deep-doc/blob/master/README.md#bag-of-cells on russian but you ca use google translate maybe 🙂
JF
18:18
John Fyodor
In reply to this message
You can use ton3 to deserialize boc, but it will contain cells that need to be readed as TLB scheme
18:20
In reply to this message
F
19:02
Fortune
In reply to this message
Bit of an ask, but is it possible to get the 32-byte seed as well?
AT
19:04
Andrey Tvorozhkov
In reply to this message
No, you can’t get seed phrase from key
F
19:05
Fortune
Understandable. Was hoping to have some interoperability with the other js-tools which use a different secretKey format
D
20:52
Developer
Is fragment. com for telegram usernames auction scam ?
20:55
Is this real ?
S
20:56
Silvio
In reply to this message
@ fragment
20:56
The bot dont have bot at the end.
20:57
The money from the auctions goes into a smart contract owner by Telegram.
D
20:58
Developer
In reply to this message
Oh that's great 👌
27 October 2022
S
02:03
Step
In reply to this message
who is the smart contract owner ? is it telegram founder pavel?
SF
02:29
Slava Fomin
This chat is for discussing engineering TON-related questions. Please adhere to this subject.
T
05:52
ToS
Hello, my TON token is stuck on bridge (at 4/9 confirmation). Really need help. what should I do
05:52
Please help
SF
11:15
Slava Fomin
In reply to this message
If you have funds stuck in the bridge, please contact the: @ton_help_bot.
A
12:20
Andrew
Hello guys! Is there any info about USDT token in TON chain ?
T
12:31
ToS
In reply to this message
Done that. Thanks!
SF
12:44
Slava Fomin
‼️READ ME!

This English chat is for TON-related technical / engineering questions only! All unrelated messages will be deleted without warning. Users with fake profile verification checkmarks are not allowed. Support TON by using the premium status icon: 💎

If you have funds stuck in the bridge, please contact the: @ton_help_bot.

🌐 TON RESOURCES
TON whitepapers
TON Space / official docs 🗣 @SwiftAdviser
TON Overflow (Q/A portal) 🗣 @talkol
Russian chat
TonCenter (TON HTTP API) 🗣 @ruslixag
TON Index API 🗣 @oct123123
TON source code

⭐️ TON CONCEPTS
TON Virtual Machine (TVM)
Cells
TL-B language
TON networking

TON TECHNOLOGIES
TON Nodes
TON Tokens (Jettons / NFT)
TON Payments (payment channels)
TON DNS
TON Sites & TON Proxy

🔨 JS LIBRARIES
TonWeb (core JavaScript library) / examples / TS candidate 🗣 @slavafomin
ton
ton3 🗣 @ohwhoopsiedaisy
func-js 🗣 @Narek
ton-compiler

🔨 TON LIBRARIES & TOOLS
toncli / @tvorogme
PyTONLib (core Python library)
tonutils-go (Golang) 🗣 @xssnik
ton-kotlin 🗣 @andreypfau
intellij-ton (syntax highlight) 🗣 @andreypfau
TonLib (core C++ library) / tonlib-go / tonlib-java
SF
13:05
Slava Fomin
In reply to this message
If you know anything that should be added here, please let me know 🙏🏻
F pinned this message
NK
13:16
Nikita Kuznetsov
In reply to this message
Could you please add this resource: https://www.openmask.app/docs/getting-started

There a lot’s of examples how to connect dApp with in page providers and work with ton wallets
13:19
Tutorial, how to deploy contract from dApp and how read data from blockchain via web:

https://www.openmask.app/blog/deploy-contract-tutorial
SF
13:48
Slava Fomin
In reply to this message
As I understand, we don't still have consensus regarding the best dApps approach. We will have to wait on that in order not to steer developers into some specific direction.
M
14:41
Meren | knit finance
Hello @slavafomin

whom do i reachout for grants application?
DS
14:42
Daniil Sedov
In reply to this message
AG
14:42
Alex Golev
In reply to this message
Perhaps https://github.com/ton-blockchain/ton should be placed in "TON LIBRARIES"? What do You think?
SF
14:43
Slava Fomin
In reply to this message
It's a JS lib doesn't it?
DS
14:44
Daniil Sedov
In reply to this message
It's main TON repository 😁
AG
14:44
Alex Golev
As I remember a lot of questions about old repo of TON. Just wonder how it could be solved too.
M
14:46
Meren | knit finance
In reply to this message
thank you, Daniil.

Grant Template link is not working, can anyone help
https://telegra.ph/TON-Project-Proposal-Template-05-12
DS
14:47
Daniil Sedov
In reply to this message
Works for me
14:47
M
14:48
Meren | knit finance
In reply to this message
Thanks, which browser ?
DS
14:48
Daniil Sedov
In reply to this message
Any browser 😁

Idk why it doesn't work for you.. try VPN
SF
14:56
Slava Fomin
In reply to this message
Oh, sorry, I thought that was ton npm package. Will do, thanks :)
MN
15:24
Molah Nelson
Please is there anything AMM dex yet
d
18:00
doni
In reply to this message
you mean source code ?
18:01
or a live app you want to play with ?
HW
18:41
Hemi Weingarten
In reply to this message
@TonSwapOfficialBot - live, mainnet, opensource
R
20:09
Roy
data: {
ok: false,
error: 'Validation error: 1 validation error for Request\n' +
'body -> boc\n' +
' field required (type=value_error.missing)',
code: 422
}
20:09
Please what this means ?
SF
20:15
Slava Fomin
Looks like you are missing the required field. Check the OpenAPI specs for your request.
ММ
20:19
Міша Микитюк
Screenshot from 2022-10-27 20-16-37.png
Not included, change data exporting settings to download.
136.3 KB
I build ton-binaries from source code and copied files to /usr/local/app. I tried to run tests from Tutorial 2, but compilation fails. Maybe somebody has a quick (or not) solution for this issue?
MN
20:39
Molah Nelson
In reply to this message
I mean something like Uniswap or Pancakeswap
HW
20:40
Hemi Weingarten
In reply to this message
Tonswap is modeled after Uni v2. is there a specific coin you are looking for, a specific functionality?
MN
20:41
Molah Nelson
In reply to this message
Not apparently i want to create my token and pool liquidity for trading
20:44
Please link to tonswap
HW
20:46
Hemi Weingarten
In reply to this message
👆
SF
21:52
Slava Fomin
In reply to this message
Users with fake profile verification checkmarks are not allowed int this chat.
NK
21:56
Nikita Kuznetsov
In reply to this message
The feature is not released yet
S
21:56
Silvio
In reply to this message
Not yet.
DS
22:03
Daniil Sedov
In reply to this message
you don't need to tag someone to ask a question like that
28 October 2022
MA
00:29
Mikhail Alpeev
Hello everyone
00:30
Does Fragment have public API?
F
00:37
Fortune
When using lite-client's sendfile x.boc or it's toncenter API equivalent, does the boc data get broadcast to every wallet's recv_external then the signature (starting bytes of x.boc) checked and processed if matched.

I'm just trying to understand as there's no standard for external messages and boc seems to be processed as-is (no prior prefix processing by a router) in wallet, nor a means to put a destination address parameter in the above mentioned methods to direct where your boc goes to. It's just sent "to the Blockchain"
SF
01:30
Slava Fomin
@benfriedman please contact the @ton_help_bot
BF
01:30
Ben Friedman
In reply to this message
Thanks @slavafomin. I've reached out.
MA
09:15
Mikhail Alpeev
In reply to this message
My question is about fragment.com, ton auction where users can buy and sell their usernames
09:15
maybe someone know something about my question
SH
09:21
Seitaro Higuchi
In reply to this message
Actually all auctions, betting etc happens onchain. So fragment.com is kind of DApp - application with TON blockchain as backend.
That is how disintar and getgems got the data: directly from blockchain.
So you can get data from blockchain as well, or using indexes provided by tonapi.io and dton.
MA
09:22
Mikhail Alpeev
In reply to this message
can i do it for checking is username is free or not?
DS
09:49
Daniil Sedov
In reply to this message
I think you can use some library that can work with cells and addresses in TON (like tonweb) to get the smart contract address of some specific username/domain and then use any API provider to check if that address is active or not
MA
09:50
Mikhail Alpeev
Thanks for the idea (Spasibo)
DS
09:50
Daniil Sedov
Smart contract address in TON depends on it's initial code and data, so if you know the code (it's public) and data (username you would like to check), you can get the address
09:51
Maybe there's some easier way to do that, but it is the first thing that comes to my mind
09:52
Also if you really trust fragment.com, you can just parse their website to get the required information 😁
F
09:54
Fortune
In reply to this message
Any ideas would be helpful. I'm using a non-standard recv_external. And all the documentation I've gone through speaks very sparsely on how to order the boc, and how exactly they're processed when externally sent
MM
11:26
Mehdi Mr12
Hello, please what does "Bitcoin & EVM Workchains" mean on the 2023 roadmap?
KV
11:42
Kon Vik
what is WTON address on mainnet?
o
12:23
oxlti.qube
In reply to this message
Yes
12:38
In reply to this message
Whitepaper of TON is the best documentation for you😉
12:39
In reply to this message
Workchains
12:43
In reply to this message
DS
12:43
Daniil Sedov
In reply to this message
workchains aren't released yet
RK
12:55
Roman Krutovoy @work
In reply to this message
Sure you can! But as every validator should upgrade their code after launch of your workchain, you need something valuable to attract them do upgrade
12:56
In reply to this message
https://ton.org/ton.pdf

You need:
2.1.7. Creation and activation of new workchains
DS
12:57
Daniil Sedov
In reply to this message
is it possible to create a workchain right now? I thought this feature isn't ready yet (primer pdf says workchains are done 50%)
RK
13:00
Roman Krutovoy @work
In reply to this message
if you have a big willingness to do that, you will help guys to finish all jobs done, because ton-blockchain is an open-source project. So everyone could be a contributor.
13:00
that only depends of power of your will and skill
13:05
In reply to this message
good question! I think the best place is here:

https://github.com/ton-blockchain/TEPs

All discussions about the standards and requests are there
RK
13:29
Roman Krutovoy @work
so, because there are no standards, the only way to make a workchain — create a standard
13:30
we're in the wild west right now regarding the workchains. Everyone is a sheriff, everyone is a king
13:31
In reply to this message
who are ready to risks, often will be rewarded more 😁
13:36
In reply to this message
feel free to pm, I'll be happy to help 👍
MM
14:58
Mehdi Mr12
Hello, please what does "Bitcoin & EVM Workchains" mean on the 2023 roadmap?
MM
15:15
Mehdi Mr12
In reply to this message
ho i see, did you have any document to send me about this men ? :)
15:21
In reply to this message
okay i see thank you, Maybe there is a project developer here who could enlighten me?
29 October 2022
&2
06:11
&rey 2ne:v
In reply to this message
Then, do you really need a workchain? 😀 Won't a smart contract validating messages according to your rules do the work?
DS
08:09
Daniil Sedov
In reply to this message
Smart contracts can process big amount of transactions
BN
09:06
B N
Hi all)
I have already developed:

- NFT Marketplace
Stack:
React, Node.js, Express.js, MongoDB, Socket.iо, Redis, Firebase, Solidity
A custom-made version for the Estonian business with adaptation to the local market and support for settlements using bank cards

- AMM Exchange
Stack: Node.js, Express.js, MongoDB, FunC


- MLM projects on various models: matrix, binary and linear

Processing of fiat payments using Payeer, Perfect Money, bank cards and more. Accepting payments and payments using a variety of cryptocurrencies: BTC, LTC, ETH (ERC-20), BNB (BEP-20), TRON (TRC-20), TON (Jetton)

- Crypto Bridge

- Telegram bots

- Smart Contracts
Development for EVM-based blockchains on Solidity and FunC for TON SC's

PM me for cases and details.
SF
11:00
Slava Fomin
@Alfazazee720 please contact the @ton_help_bot
i
11:59
isoscele 💎
Highloadv2 wallet isn't using seqno but only a deadline but before that a replay attack is possible. Why is this allowed?
12:00
What are the use cases of such a contract and is parallel transaction worth if replay attack is possible?
d
12:33
doni
replay attack is not possible

the query id for each tx is used as a key against replay attacks

( docs )

this version does not use seqno for replay protection; instead, it remembers all recent query_ids

;; in this way several external messages with different query_id can be sent in parallel
12:34
In reply to this message
☝🏻
i
12:36
isoscele 💎
In reply to this message
I thought i used same boc but i think i regenerated it accidentally. I'll retry and keep update. Thank you
i
12:59
isoscele 💎
In reply to this message
I confirm this. It works as expected now
MM
15:36
Muhammad Mustapha Ahmad
In reply to this message
Okay, Thank you
D
18:08
De Iōḥānān
Can someone send some test coins to me? The giver chat-bot seems to be empty. kQDFmYxPYg0UH94u0jbH2RPOVMK2W-f5VdiC6pP-gZ-TPtWB
18:11
I received 500 testnet TON. Thanks 😉
o
21:22
oxlti.qube second
In reply to this message
With bulletproof smart-contracts? 😃
21:24
In reply to this message
U are buildin Telegram on steroids?
21:30
In reply to this message
With blackjack and bches?
K(
21:35
KillTeamSeller (ᵇᵉᵗᵗᵉʳ ᵗʰᵃⁿ ᵘ)
@tolyayanot maybe you can help?
&2
22:00
&rey 2ne:v
In reply to this message
If you doubt whether site will steal your private words, you can always make a separate wallet just for it.
o
22:00
oxlti.qube second
In reply to this message
Yes, but be sure that this is official Ton-diamonds deployer.
22:04
In reply to this message
Hm, you will be needed to change metadata in contract, moreover tondiamonds deployer doesn’t support editable_nft .
22:07
In reply to this message
I’m not sure about this. Probably, you can.
22:17
In reply to this message
@TrueCarry can help you with it.
30 October 2022
D
14:29
D a v i d e
In reply to this message
how can you parse the website?
DS
14:29
Daniil Sedov
In reply to this message
just make a http request to get the HTML and then find needed information
D
14:30
D a v i d e
In reply to this message
ok thanks
14:52
Deleted Account
Hey guys, I am trying to set up my environement on MacOs (m1) following this tutorial https://github.com/ton-defi-org/ton-binaries.
But console gives me zsh: command not found: func
When I try to execute the binary by myself : “func” cannot be opened because it is from an unidentified developer.
d
15:05
doni
In reply to this message
I would try the following


Open finder , go to the folder where the func binary ,

select func file and right click and select open,

this should mark this file is trustable … so the terminal would “trust” this file
S
16:26
Shawn
In reply to this message
Just wanted to highlight this in case any have missed it. Hope everyone has a good weekend 🎃
S
18:18
Saber
Hi, I have a technical question about the NFT standard as I was developing my GameFi on the NFT standard:)

Why are we relying on the user side to send the “contentNFTURI”? was it a feasibility issue?

The problem that I see is that in my Dapp I have to query the nft-collection for the latest nft-index and use it to make the “contentNFTURI” ref and then send the tx to TON blockchain, but what if at the same time another user of my Dapp also do the same(the stste of the contract will show e.g. 10 as the latest index), so they will send 11 as the contentNFTURI and that will cause a problem in the metadata of the nft of one of them.
M
18:35
Mark Okhman on TON
Happy Sunday, friends!

Here is a fresh tutorial for you - i’m breaking down the usage of tonstarter-contracts and creating a simple smartcontract with this typescript stack.

Enjoy the coding!

TON Study 2 - Writing a first FunC smart contract with tonstarter-smartcontracts boilerplate


https://youtu.be/kToGTWDQHQ8
D
20:33
Dr. Awesome Doge
T
TON Status 30.10.2022 20:30:53
We remind you that tomorrow at 12:00 UTC all validators will need to send their vote for the DNS proposal.

Please stay in touch.
31 October 2022
00:09
Deleted Account
Hello, I have problem when deploying the contract from this tutorial (https://society.ton.org/ton-hello-world-step-by-step-guide-for-writing-your-first-smart-contract-in-func)

On await client.sendExternalMessage(wallet, transfer);, I got an Unhandled Promise Rejection Warning

Error: Request failed with status code 429

Can you please help?
00:09
In reply to this message
?
JF
00:10
John Fyodor
In reply to this message
00:14
Deleted Account
In reply to this message
Oh thank you! But where do you precise this api key?

const client = await new TonClient({ endpoint: "https://testnet.toncenter.com/api/v2/jsonRPC" });
00:15
Oh great, thanks! Like this :

const client = await new TonClient({ endpoint: "https://testnet.toncenter.com/api/v2/jsonRPC", apiKey: ''});
JF
00:16
John Fyodor
tg_image_3701205390.jpeg
Not included, change data exporting settings to download.
25.0 KB
00:20
Deleted Account
Another question, looks like contract had been deployed

https://tonsandbox.com/explorer/address/EQD-wYMojhzECA1t7OLzMhH-c8xwAHFMPeNf3cNI22PnB3xf

but it shows uninitialized (never active) and not active (as mentionned in the tutorial https://society.ton.org/ton-hello-world-step-by-step-guide-for-writing-your-first-smart-contract-in-func)
JF
00:22
John Fyodor
you need to send ~1 ton before deployment to contract address
00:23
Deleted Account
const transfer = await wallet.createTransfer({
secretKey: key.secretKey, // from the secret mnemonic of the deployer wallet
seqno: seqno,
sendMode: SendMode.PAY_GAS_SEPARATLY + SendMode.IGNORE_ERRORS,
order: new InternalMessage({
to: newContractAddress, // calculated before
value: 0.02, // fund the new contract with 0.02 TON to pay rent
bounce: false,
body: new CommonMessageInfo({
stateInit: new StateInit({ data: initDataCell, code: initCodeCell }), // calculated before
body: null,
}),
}),
});


yes, I am sending 0.02 TON here
JF
00:24
John Fyodor
In reply to this message
00:24
its balance is 0
00:24
Deleted Account
Tried, with 0.5
Also, probably a stupid question. But why each time I deploy it, new contract address remains same? 😕
JF
00:24
John Fyodor
send it manually
00:24
you need to send to non-bounceable address btw
00:24
or funds will be returned
00:27
Deleted Account
In reply to this message
I don't understand what this mean.
In tutorial, he is funding the smart contract in transfer with value: 0.02
00:27
When I try manually, it always return ton back
JF
00:27
John Fyodor
In reply to this message
as i said, you need to use non-bounceable address
00:27
starting with UQ
00:27
not EQ
00:28
Deleted Account
Ah... but where can I find it?
JF
00:28
John Fyodor
make address.toString() with bounce = false
00:28
i dont know which argument in tonweb used for making address non-bounceable
00:28
Deleted Account
const newContractAddress = contractAddress({ workchain: 0, initialData: initDataCell, initialCode: initCodeCell })
JF
00:28
John Fyodor
check docs
00:28
Deleted Account
Ok
00:28
Thank you!
JF
00:28
John Fyodor
👍
SF
00:32
Slava Fomin
TonWeb examples have a complete code for sending the transfer, including the address flags handling. Make sure to check it.
00:33
Deleted Account
Yes okay, checking!

I was just following this tutorial https://society.ton.org/ton-hello-world-step-by-step-guide-for-writing-your-first-smart-contract-in-func

And it never mentions any bounceable addresses or the necessity to manually fund the smart contract
00:34
Oh, I am using ton, not tonweb

https://www.npmjs.com/package/ton
JF
00:34
John Fyodor
In reply to this message
you can try to use ton3
00:34
cool ton js low-level library
00:34
Deleted Account
Ok thanks!
SF
00:38
Slava Fomin
In reply to this message
I would ask you not to use such evaluation judgments considering any libraries. We have several of them and we should equally respect all the authors here.
JF
00:38
John Fyodor
In reply to this message
ok, sorry
00:44
In reply to this message
its always neccesary, otherwise you will get your ton returned (usually) after trying to fill inactive contract
n
07:36
n3ko_sempai
I need the contact of tegro's developer(s)
?️
12:52
𝐴𝑅𝐸𝐹 𝑆𝑆 ️
Can we also create a platform for buying and selling usernames, or does only Telegram have the right to do so?
d
12:53
doni
I guess that for the secondary market
12:53
you can create any nft marketplace , so people will trade in
o
12:53
oxlti.qube
In reply to this message
How will you accrue usernames?
?️
12:57
𝐴𝑅𝐸𝐹 𝑆𝑆 ️
In reply to this message
Telegram said, in the next step, everyone can sell their username or buy other people's usernames
o
12:58
oxlti.qube
In reply to this message
Trough their marketplace.
YD
15:26
Yura Dukhno | XP.NETWORK
Hey guys! Trying to connect to tonwallet with this repo https://github.com/toncenter/tonweb/blob/master/src/utils/README.md and every time got a different wallet address from const nonBounceableAddress = address.toString(true, true, false); Some one can explain me what i doing wrong?
&2
15:59
&rey 2ne:v
I have an idea how to improve NFT and jettons: Authorized-Controllable Tokens.

For example, consider someone who needs to transfer NFT to other person at specified time. First person would request timer to schedule message. Then he needs to allow this message to transfer NFT; he could transfer NFT to timer account first but then (1) NFT wouldn't be visible on the first account, (2) in case of some bugs NFT will remain on timer account forever, (3) someone could request another message transferring NFT from timer smart-contract to her first.

So I propose to create Authorized-Controllable Tokens. Owner of some assets sends an authorization message (contanining address of controlled tokens, allowed operations and so on) to smart-contract. At needed time smart-contract sends a message with Merkle proof of its authorization to NFT/jetton wallet contract, token checks the proof and performs the requested operation.

If owner wishes to revoke control on his token, he could send a message revoke_authorizations_before to his token (not to authorized contract, because that would need to increase Merkle proof to prove that there were no deauthorize messages).
JF
16:02
John Fyodor
In reply to this message
Bet you every time generate new mnemonic
NA
16:03
Narek Abovyan
Hey guys! We are planning to improve ton-contract-executor and we need some feedback from those of yours who use it!

What kind of functionality do you miss?
Maybe you are facing some problems using it?
YD
16:04
Yura Dukhno | XP.NETWORK
In reply to this message
Yes I understand but it's just because I trying couple of times. In normal flow I'll call this method only once. But even the first time it's returns me not my wallet address.
JF
16:04
John Fyodor
In reply to this message
Library agnostic
D
16:05
Dario
In reply to this message
sometime it reach memory limits, i cant test some stuff with it
JF
16:05
John Fyodor
In reply to this message
Just save words from new Menmonic() and use them later
T
16:05
Tim
In reply to this message
make Ton3Cell and TonCell to have same toBoc signature
o
16:05
oxlti.qube
In reply to this message
You just invented deferred transactions
NA
16:05
Narek Abovyan
In reply to this message
Can you provide minimal example?
JF
16:08
John Fyodor
In reply to this message
Better throw bytes and have ton as optional dependency
A
16:09
Amin
In reply to this message
Hi! ton-contract-executor is great for testing contracts
There is a small problem that it uses old version of ton-compiler, which is not WASM-based. It doesn't work on windows for instance. It would be great to upgrade to ton-compiler v2.0.0.
Actually I created a PR about a week ago and upgraded to the ton-compiler v2.0.0 with the needed changes.
JF
16:09
John Fyodor
In reply to this message
Which will map to its native types
T
16:09
Tim
In reply to this message
It'll make usage harder. I think it's possible to make it new SmartContract(code: TonCell | Ton3Cell), but fully library agnostic is too far
NA
16:10
Narek Abovyan
In reply to this message
Yeah, i think we will remove fromFuncSource, so you can use ton-compiler or func-js (which runs on web too) for compiling
16:10
I think we should keep executor as simple abstraction over TVM
AT
16:14
Andrey Tvorozhkov
In reply to this message
BTW if someone use python, you can checkout https://github.com/ton-blockchain/ton/pull/494

You can emulate tvm in python, get all op codes, and stacks. Also it easy to debug transactions in browser with dton: https://dton.io/tx/BAAC47F3588AFDF356058AD951CA99F1A48F372635766BE729804EF068911195?time=2022-10-30%2003:12:12

(Computation phase -> Server run) You can check all tvm op, and stacks. It's pre early beta not final at all, but very useful :)
A
16:17
Amin
In reply to this message
fromFuncSource can remain too with just temporary file workaround.
I don't know about the web environment, that's why you think removing it is better?
NA
16:19
Narek Abovyan
I think we should remove that to keep executor simple layer above TVM, compilers should be used from other packages (like func-js or ton-compiler)
Aslo fromFuncSource accepts only single source file and does not support imports and stuff like that
A
16:20
Amin
In reply to this message
Hmm, that's a nice idea.
?️
17:20
𝐴𝑅𝐸𝐹 𝑆𝑆 ️
In reply to this message
If there's anyone who wants to make this idea operational, we can team up together.
T
17:24
Tim
In reply to this message
You can also trade nfts on getgems for example
?️
17:27
𝐴𝑅𝐸𝐹 𝑆𝑆 ️
In reply to this message
Yes, But they haven't added the ability to buy and use the username yet. Otherwise, we can plan from now on, before we can offer this capability.
o
17:27
oxlti.qube
In reply to this message
It’s impossible at the moment.
?️
17:27
𝐴𝑅𝐸𝐹 𝑆𝑆 ️
In reply to this message
A market for usernames only
17:28
In reply to this message
We can start with the development of UI.
o
17:28
oxlti.qube
In reply to this message
For secondary market, there is already getgems.io and disintar.io and you will be able to trade on fragment.com too.
?️
17:30
𝐴𝑅𝐸𝐹 𝑆𝑆 ️
In reply to this message
For the most well-known username marketplace is fragment.com site. But we can be the second.
KV
19:03
Kon Vik
To where can we report about scam? Has anyone ton society contacts?
Comment: Get 66.25 TON from TON Foundation https:// ton. events/ airdrop
they do airdrop sending
they collect keywords - there is url handles backup
SF
19:16
Slava Fomin
In reply to this message
19:17
In reply to this message
However, this is a known issue. No need to report it.
KV
19:17
Kon Vik
ok, cool
KV
22:13
Kon Vik
Action Phase and Result Code 34 when I try to send jetton - What does it mean 34 code? from wallet v3 r2 Outgoing messages don't send.
Incoming message exists, Does there exist any way to decode and check that all is ok on this step? Decode cell, etc...
I understand this flow, how to send jetton, so - from wallet v3 r2 sends to jetton wallet address the message with payload from createTransferBody, but no luck. Just messages bounce and all..
1 November 2022
o
00:06
oxlti.qube
In reply to this message
Because TON Bridge is a “small POS network” upon the TON blockchain, it has its own nodes with their oracle stake (multinode bridge) , that’s why fees are pretty high, they are going to these bridge nodes who are securing the bridge.
S
00:11
Silvio
In reply to this message
Thanks. ❤️

So isn't the token bridge a small PoS network too?
o
00:13
oxlti.qube
In reply to this message
I’m not sure since it doesn’t have tech docs, but I think it’s not a small network too, because it would be very not profitable to hold ur own oracle node to secure the token bridge, since transaction fees are pretty low.
S
00:14
Silvio
In reply to this message
So we get low fees at the expense of bridge safety?
o
00:17
oxlti.qube
In reply to this message
Yes
S
00:18
Silvio
In reply to this message
Thanks again. 👍

And Happy Halloween for all. 🎃
S
10:32
Slava Yakimenko
Tell me please. Ton Wallet is a multi-currency wallet or not? If yes, how to see other tokens without TONCOIN?
KV
10:54
Kon Vik
In reply to this message
ton wallet doesn't support jetton yet https://github.com/toncenter/ton-wallet/issues/154
HW
12:13
Hemi Weingarten
GM. Does anyone know if the TON blockchain has been stress tested ? For example, has sharding happened? If not, under what conditions can we expect to see sharding occur?
KV
14:15
Kon Vik
In reply to this message
Found it, there was not "amount", but "value" for a wallet by transfer, code 34 is related to "not enough money to forward"
Y
15:00
Yigael
In reply to this message
A shard chain splits when 64 consecutive blocks were 90%+ full. I'm not sure what the max capacity of a block is but let's assume it's 1K transactions, and a block is generated every 5 seconds => it will take ~64K transactions wanting to be pushed into the chain over a period of 5.3 minutes (64*5/60) that will cause a single shard split
HW
15:06
Hemi Weingarten
In reply to this message
I wonder if that has happened yet on TON? Anyone here know?
AK
15:06
Anil Kumar N
Under the dome
Y
15:07
Yigael
that would be a sight to see!
D
15:08
Dario
In reply to this message
I think it happened in masterchain
HW
15:16
Hemi Weingarten
In reply to this message
masterchain?? do you have details? when did it happen? how?
D
15:17
Dario
In reply to this message
No jk i was wrong, masterchain dont split at all
Y
15:30
Yigael
In reply to this message
True:)
&2
15:58
&rey 2ne:v
In reply to this message
If you need a tool to observe that, you'll be able to try toncli lc allshards - currently it shows that there are no shards neither in mainnet nor in testnet.
SF
16:06
Slava Fomin
In reply to this message
As far as I know such tests were performed in the testnet some time ago.
&2
16:18
&rey 2ne:v
In reply to this message
I've looked through the docs and found out that Authorized-Controllable Tokens would need information about TON blocks. So I have three proposals for TON developers and validators:
1. add shardchain configuration into either global config parameters or c7 (temporary data)
2. add most recent masterchain and shardchain block data into c7 (not representation hashes but full data)
3. possibly add representation hash of some key block (for example, last block signed by previous validators group) into each block serialization to reduce sizes of Merkle proof of transaction existence
SF
16:47
Slava Fomin
In reply to this message
I would suggest you to write a paper on your proposal if you are serious about it.
16:49
After that, file it as TEP.
&2
16:51
&rey 2ne:v
In reply to this message
TEP template requires me to discuss idea in TON Dev Chats first 🙂
SF
16:57
Slava Fomin
In reply to this message
OK

break;
O
17:25
Oleg
Hello everyone, what can be done now on the ton? What do you recommend?
17:27
Can I add payment using a ton in a telegram bot?
2 November 2022
B
12:44
Bor
Hello any tool to monitor blocks On the blockchain ? I’ll appreciate.
RK
13:51
Roman Krutovoy @work
In reply to this message
B
13:54
Bor
In reply to this message
Thanks 👍🏻
RK
13:58
Roman Krutovoy @work
In reply to this message
l
14:05
lin
How to activate this account
JF
14:17
John Fyodor
Deploy it
l
14:22
lin
how
RK
14:28
Roman Krutovoy @work
In reply to this message
send any amount of ton from it
HW
14:28
Hemi Weingarten
In reply to this message
Who’s the team working on tontech? I have a few questions
l
14:41
lin
Which third-party wallets in TON can import private keys
AP
14:43
Andrey Pfau
In reply to this message
Mnemonic 24 words or raw private key in binary form?
l
14:53
lin
private key
n
15:12
nocriz
Hi, does anyone know where pytonlib documents are?
A
15:58
Alex
Hello guys
n
15:59
nocriz
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/var/folders/45/94zqnqp12cv193w1g27tlmr80000gn/T/ipykernel_39202/3923502270.py in <module>
1 # init TonlibClient
----> 2 client = TonlibClient(ls_index=0, config=ton_config, keystore=keystore_dir)

TypeError: __init__() missing 1 required positional argument: 'loop'
15:59
Can anyone help? What is loop supposed to be? It is not in the example
A
15:59
Alex
i have question
i'm useing Tonhub wallet
when tx is success it return me base64 string

te6cckECAwEAARQAAZw7Wn8Ir4dEXP92/scZM87tyZnIrnLtu6TULiBKrMcicWXQivtIORObiBY6MmyNZNvaNszlYNx6InMLcMWikNAGKamjF2NiYJgAAAACAAMBAc1iABROzGm51PmIt7opuWJmE0PhVJBiM8nYvb81g6py4r62ITOk/HAAAAAAAAAAAAAAAAAAX8w9FAAAAAAAAAAAgB7ixOeW0Iy6JEGWYW0eYTZcj8ahBsqDAEZEFe8gS8ggoQiSIIOQAgCuBwAqMHg0N0JmMGRhZTZlOTJlNDlhM2M5NWU1YjBjNzE0MjI4OTFENWNkNEZFMHgyZDY5MDdkZjMxNkQ1OTYwZTkwNjQ0MTJhNzE4MTBBN2M5RDhmNGM3Q7e9eQ==


how i can take out from that txHash?
n
16:25
nocriz
Does anyone know how to download the entire chain?
&2
16:36
&rey 2ne:v
In reply to this message
You can search "starting full node" in ton.org/docs
n
17:12
nocriz
I happen to be exploring TON chain and I see many junk transactions like this https://tonscan.org/address/EQDZdpns67arLztXSbXsun5oplQ4yOxIYqOHvlqNwkh_aXim
17:12
What exactly are these?
17:23
Look at transaction history, a lot of 0.1TON transactions
17:24
Millions of these transactions over Jan 2021- Feb 2021
DS
17:24
Daniil Sedov
In reply to this message
As I see someone was looping their TONs between two wallets by 2 ton transactions
n
17:25
nocriz
Another question: What is EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c?
17:25
Actually, who is EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c
T
17:27
Tim
In reply to this message
It's 0 address
17:27
First 2 letters are flags, last 3 is hash
&2
17:28
&rey 2ne:v
In reply to this message
Zero address - coins sent there are distributed among validators.
17:28
Why would 0 address send out message
&2
17:32
&rey 2ne:v
In reply to this message
As far as I know, yes. But the easier way is to send lots of zero-value messages out of smart-contract.
17:33
In reply to this message
Governance decision (not sure if this is possible) or distribution of received coins.
n
17:33
nocriz
Huh, very funny
&2
17:38
&rey 2ne:v
In reply to this message
Oh, I've meant that it can be more popular way of donating coins because sending lots of messages (and thus spending much gas) will work for sure.
E
18:20
Edo
Hi guys, someone could please point me at the documentation to mint GIF NFTs?
18:32
In reply to this message
thank you so much! I find this as well here https://t.me/tondev_eng/11848
A
19:38
Alex
How i can get from body hash
in_msg:
the hash?
AT
21:22
Andrey Tvorozhkov
In reply to this message
Those are external messages
21:22
They are messages from “nowhere”
21:23
It's not clear from dton about it, because it's more technical instrument, than tonscan (which is user-friendly)
21:23
But maybe we will try to clarify this
?️
23:34
𝐴𝑅𝐸𝐹 𝑆𝑆 ️
😂
3 November 2022
l
06:36
lin
Unable to get seqno: not enough bytes for magic prefix
06:37
can anyone tell me why this is
&2
07:10
&rey 2ne:v
In reply to this message
That's more about use-after-free because null pointer would mean selling nonexistent diamond 💎.
If only world was similar to Rust with its concept of ownership and borrowing... 😀
l
11:38
lin
Is it possible to predict the txhash in advance before sending the transaction to the chain
&2
11:43
&rey 2ne:v
In reply to this message
It's very hard as you send a message, not a transaction. Things that you certainly need to predict are tx logical and UNIX time (lt can depend on messages imported from other shardchains) and contract storage fee (that depends on time since last message to contract) and maybe block random seed generated by validators.
l
12:02
lin
I just need to send a normal transfer transaction, I want to know the transaction hash and the required fees in advance, is this possible?
&2
12:05
&rey 2ne:v
In reply to this message
It's easier to consider you can't know tx hash in advance and can only calculate its fees approximately (with precision <1/10000 TON, but not exactly).
12:07
If storage fee isn't important, then you are able to emulate message and calculate all the remaining fees precisely.
l
12:09
lin
Is there a fee field in the structure of the sending transaction? I refer to the sdk of golang and did not find it
DS
12:13
Daniil Sedov
In reply to this message
What do you mean
l
12:14
lin
Can I set a fee when I send a transaction
DS
12:14
Daniil Sedov
In reply to this message
Fee depends on transaction itself
M
12:16
Mark Okhman on TON
Folks, I decided to host a little workshop on Saturday, where I would personally help those who are struggling to get their first smart contract written and deployed.

It will be hosted here ➡️ https://ton.circle.so/c/events/func-beginners-workshop

IMPORTANT! Please RSVP if you would like to attend it.

See you soon! ❤️
l
12:17
lin
Can I calculate the fee in advance, then set the fee in the transaction, and then send the transaction?
DS
12:18
Daniil Sedov
In reply to this message
You don't need to "set the fee"
12:18
And yes, you can calculate it
l
12:21
lin
12:21
Is gas_price fixed?
DS
12:22
Daniil Sedov
In reply to this message
Read the screenshot you've sent few more times
12:22
It literally explains the things you're asking
l
12:25
lin
ok thanks, i want to confirm it
l
12:46
lin
error code: 0 , message: cannot apply external message to current state : External message was not accepted
Cannot run message on account: inbound external message rejected by transaction
12:46
Why does sending transaction return this error
12:46
What causes it
DS
12:46
Daniil Sedov
In reply to this message
Are you trying to interact with regular wallet?
l
12:47
lin
DS
12:48
Daniil Sedov
Your contact is not deployed
l
12:48
lin
ton can be received, this error occurred when sending ton
DS
12:49
Daniil Sedov
In reply to this message
Because your contact isn't deployed
12:49
Any address can receive coins. But to send them the contact on that address must be deployed
12:49
Which tool do you use to send transaction?
l
12:52
lin
The address I created with code
12:54
12:54
how do i deploy
DS
12:59
Daniil Sedov
In reply to this message
As I see that thing doesn't deploy, it just generates address and wallet object
l
13:01
lin
Can you give me some information, how to deploy after generating the address?
DS
13:05
Daniil Sedov
In reply to this message
Sorry but I've never used the tongo library and I don't know Go so I can't help you
13:05
I hope someone who worked with it will help you here
l
14:19
lin
@xssnik Hi,I have some problems developing ton wallet, can you help me
OB
14:20
Oleg Baranov
In reply to this message
Hi, my golang lib is https://github.com/xssnick/tonutils-go, tongo belongs to @subden
l
14:24
lin
How to deploy the newly generated wallet
OB
14:25
Oleg Baranov
In reply to this message
it will be deployed automatically, when you send first transaction
14:25
lib will do it under the hood
14:26
just generate a seed, top up some coins and do transfer as in example
l
14:32
lin
ok, thanks
14:34
@subden can you help me
14:37
tongo how to deploy
l
15:02
lin
I called this method but it didn't work
&2
15:04
&rey 2ne:v
In reply to this message
That only generates deploy message, doesn't send it to the network.
l
15:09
lin
After generating the deployment message, I call SendRawMessage, which returns an error message
15:09
error code: 0 , message: cannot apply external message to current state : External message was not accepted
Cannot run message on account: inbound external message rejected by transaction
d
15:18
doni
maybe try lite client for a better error messgae
A
17:44
Anton
who knows how to create nft collections on tone with github code? write in pm please
NA
18:42
Narek Abovyan
Hey guys!
Just moved ton-contract-executor to ton-community org

https://github.com/ton-community/ton-contract-executor

We try to collect all community-driven repo’s to ton-community, so if you have some stuff and want to move it there - fill free to do that!
4 November 2022
l
12:01
lin
I sent the transfer transaction successfully
12:02
But I have a question, how to prevent the fee from being too high
DS
12:07
Daniil Sedov
In reply to this message
is it high?
l
12:16
lin
No, it is to prevent the generation of high fees
DS
12:22
Daniil Sedov
In reply to this message
Why your fee is high?
l
12:30
lin
For example, the contract is abnormal and the gas is too high
12:30
just make an assumption
اV
13:39
النعيمي VIP
Please, what is the way to create a store and allocate Tun coin for payment
TD
15:46
Tonana DEV
Hi folks 🖖👨‍💻

If you need to

1️⃣ chat about the next Hack-a-TON x

2️⃣ find new early stage TON projects & teams to become an angel investor, advisor or join it as a team member

3️⃣ find new team members of different skillsets (from developers to designers) for your TON project

join the global TON hackathon Hack-a-TON x community @hackatonx 💎
R
16:44
Ruslan [MSK+5] Sh.
Hi!
Could you tell me please is it possible to connect TON DNS to ipfs content (site)?
5 November 2022
n
07:09
nocriz
@rulon Hi Seitaro, I'm available at this point. Can you add me as a contact please?
A
17:14
AMSTER
Hello. How can i create NFTs with my usernames Telegram?
D
21:03
Developer
In reply to this message
I think it's not possible at this time
A
21:06
AMSTER
In reply to this message
yep. I can't find any information about it. the usernames currently being sold for the fragment are nft. like dns (ton domains). but with the creation and purchase of a dns ton everything is clear. I don't understand how people can create their own nft usernames Telegram. how they will confirm ownership of the username and how this nft will be deployed.
21:07
In reply to this message
nope
D
21:11
Developer
In reply to this message
There's a function in their contract which you can mint your username as nft with cost of 1 ton but i don't see that function in ui till now 😅.
A
21:11
AMSTER
In reply to this message
now the fragment sells usernames (nft), which are created by the fragment itself. I can't create nft my username, deploy it to my wallet, and sell it on the auction. I'm wondering if this will be available
21:13
In reply to this message
yep :D
&2
21:13
&rey 2ne:v
In reply to this message
I doubt whether this will be available at all, as that would mean Telegram deleting your username.
A
21:14
AMSTER
In reply to this message
but then how are they going to make the username an asset?
21:15
In reply to this message
username can be set not only on my profile. channel, group
&2
21:15
&rey 2ne:v
In reply to this message
As far as I know, currently they sell only free usernames (and those occupied by inactive channels).
A
21:16
AMSTER
In reply to this message
so it remains to wait )
21:21
according to Durov, usernames will become assets. and everyone will be able to sell or buy any username. so i have a question. how can a person make nft with his username (profile, channel or chat), and prove that this username belongs to him? and most importantly, what happens after the sale?) that is, the username disappears for the seller, and the username appears for the buyer (owner of the asset)? strange
D
21:23
Developer
In reply to this message
What will happen to username after sale ?
A bot will login to your account and will change username.
Like those channels have blue verification tick
A
21:27
AMSTER
In reply to this message
I think about it too. i think it will be possible to create nft in the "Telegram Usernames" collection, a "description" and "metadata" will be added. in the metadata will be "description, image, name"
DI
21:28
Digibrokers-G64 Group Integrated Technology Group
I want to launch and IDO of our protocol token HEIM of our decentralized deeptech project heim.ai ? Do you have a launchpad where I can list our project and token?
A
21:29
AMSTER
In reply to this message
what is chain? Ton?
DS
21:29
Daniil Sedov
In reply to this message
Check out tonstarter
DI
21:30
Digibrokers-G64 Group Integrated Technology Group
In reply to this message
the protocol token for accounting purpose can be deployed on TON for now until we launch our own mainnet as HEIM aims to build an internet of time-like interacting blockchains secured by laws of quantum physics
A
21:31
AMSTER
In reply to this message
OMG. so hard :D
21:31
quantum physics
DI
21:32
Digibrokers-G64 Group Integrated Technology Group
In reply to this message
not hard really
21:32
We are building an interplanetary-scale internet of Time-like blockchains aimed to upgrade decentralized computing and energy infrastructure.

We want to unseat existing blockchain, cloud computing and energy grid technologies as well as associated business models. We require $50 Million in aggregate capital to finance our business and marketing plans, internal R&D and product development as well as to hire key executives.

You may visit https://heim.ai to view our project website.
21:32
In reply to this message
here is our elevator pitch
A
21:38
AMSTER
In reply to this message
why did you choose Ton?
21:40
There are chains on which it is easier to launch a project. Like BSC or ETH. make a presale or fire launch, add liquidity and trade on CEX exchanges or exchanges like Dex, CMC, CG
DI
21:40
Digibrokers-G64 Group Integrated Technology Group
In reply to this message
Becasue we have been using Telegram app since 2015 and we have followed the evolution of TON project since 2017. And we think highly of Durov brothers for popularizing secure communication over public IP
A
21:41
AMSTER
I don't mind the ton. I'm talking about the fact that at the moment it is difficult to launch projects on the Ton network
DI
21:41
Digibrokers-G64 Group Integrated Technology Group
In reply to this message
ok
21:41
got you
21:42
can you suggest any community member who can help us with marketing etc
21:42
we are mostly technical guys
DS
21:47
Daniil Sedov
In reply to this message
Only projects with verification mark are "endorsed". There are also a lot of mediocre projects
F.
21:49
Fay .
Hi
AN
22:59
Ana🇬🇪🇬🇪 Nino
Hello everyone
6 November 2022
D
01:00
D a v i d e
In reply to this message
Does the chain shard automatically?
Y
01:00
Yigael
Yes
A
08:01
A
In reply to this message
No
Y
08:38
Yigael
In reply to this message
Plz elaborate
BN
09:48
Behrang Norouzinia
Hi
Where can I learn about "Instant Hypercube Routing"?
DS
09:48
Daniil Sedov
In reply to this message
Whitepaper
BN
09:55
Behrang Norouzinia
Ok, thanks
N
14:21
Nobody
Hi all. How to convert mnemonic to the private key via tonweb-mnemonic ? i'm install this package and node ver 18
&2
14:29
&rey 2ne:v
In reply to this message
...mnemonic.mnemonicToKeyPair(['secret-word-1', 'secret-word-2', ...]).privateKey
N
14:37
Nobody
In reply to this message
aaa oke, I have to write a small script. Thanks!
M
17:46
Mark Okhman on TON
Good Sunday TONanians!
Here is the link to my new YouTube video tutorial:

How to spin up own TON API instance (ton-http-api & ton-api-v4)

https://youtu.be/QHXkA2NZjaM

I will be thankful for feedback 🚀
D
17:55
Dr. Awesome Doge
Hello everyone.
I'm the author of the ton.run website.
The main method here is to directly access Ton-Site without any plug-ins.

For example http://foundation.ton.run/ can be opened directly.

This is the search engine under test
https://dev.ton.run/#/

I hope you can give me some feedback so that I can make better services.

Below is the relevant information and technical notes
https://t.me/tonxrun/3
D
17:57
Dr. Awesome Doge
T
TON RUN 06.11.2022 12:59:00
Ton.Run is a 🌎"Search Engine" based on Ton2Web technology. You can think of us as "Google in the Ton Internet world", especially with the added 🗣Gateway function.

Ton.Run is expected to announce the official version within 🔔 "3 days", please stay tuned.

Now we also have a development version.
SF
18:03
Slava Fomin
In reply to this message
That's cool, are you using a reverse proxy for this?
D
18:03
Dr. Awesome Doge
In reply to this message
You guessed it.
There are four hosts behind the reverse proxy.

But aside from reverse proxies, there are a lot of technical issues that need to be resolved.

At present, it has achieved 100% coverage and indexing of all ton websites.
S
20:30
Svetlana
Hey! Looking for a frontend dev to make one website 🫡
ما
22:04
مهند الحطامي
Hi ✋
7 November 2022
l
06:14
lin
Can I obtain transaction information only through trxhash, without passing in address
06:15
Get through api
09:49
涼太
Can I attach the wallet to my wordpress store to receive product payments in TON?
?
10:08
💎 Yang 💎
In reply to this message
Really 涼太?
l
10:31
lin
Why do these two parameters not have a filtering effect?
M
13:21
Meren | knit finance
is Tonchain EVM ?
couldn't see it mention on website
SF
13:23
Slava Fomin
In reply to this message
It's TVM, a completely different machine. Read the docs for more details.
AC
13:38
Alex ChangeNOW
Hey, @ruslixag! I’m Alex, senior BDM @ ChangeNOW.io. Could you please assist our dev team with HTTP API Integration? it would be perfect if we could create a group with you and couple my colleagues.
RG
13:45
Ruslan Gabdullin
In reply to this message
Hello, sure! Add me to the group)
N
23:20
Nick
Hi, i have a question about Jettons.

Token was deployed with onchain data on jetton.live

Is it available to change token image and how can i do that?
8 November 2022
?
05:13
💎 Yang 💎
In reply to this message
Follow steps
s
05:19
stevekeol
Is there TON-Network whitepaper?
o
05:23
oxlti.qube
In reply to this message
s
05:27
stevekeol
sorry, my meaning is a detailed description of "Network" part, such as "Telegram Open Network Blockchain", which is intended for "blockchain"
o
05:28
oxlti.qube
In reply to this message
5-74 page
s
05:28
stevekeol
anyway thank u in advance
t
10:31
talkol
In reply to this message
Search for your Jetton by address in the main page. Then connect your wallet that deployed it. You should have the ability to update metadata
N
10:32
Nick
In reply to this message
thanks a lot, ill try
BN
11:25
Behrang Norouzinia
Hi,

I have a few questions about bounceable addresses.

I used TON Wallet chrome extension to send TON to a bounceable address. This address was new, and I expected it to bounce back, but it doesn't, and the address now has a positive balance, even though it is still uninitialized.

1- Shouldn't it be bounced back?

2- Does TON Wallet extension sends the transaction as non-bounceable even though I entered a bounceable address?
SF
15:40
Slava Fomin
In reply to this message
Hey! It won't bounce back and yes, TON wallet changes the flag to non-bounce when the destination account is not active.
BN
16:53
Behrang Norouzinia
In reply to this message
Thanks. Looks like this approach can simplify things by not requiring non-developers to know about them.
SF
16:54
Slava Fomin
In reply to this message
Yes, however, the better UX approach would be to warn the wallet user that the destination address is not initialized.
16:55
E.g. "Would you still want to send the transfer to the uninitialized wallet?"
RK
17:14
Roman Krutovoy @work
In reply to this message
Feel free to use customization part of the jetton minting tutorial

https://www.tonspace.co/develop/dapps/tutorials/jetton-minter
K
17:21
Kimmo
Hey! Is somewhere some statistics on the current size of full archive node on TON?
A
17:23
Alex
Hey all!
Is it’s possible to use ton-connect with Tonkeeper in testnet? When I switch to testnet in app it stops to work
T
17:26
Tim
In reply to this message
2tb+
D
17:44
Dr. Awesome Doge
In reply to this message
1.41 TiB
K
17:45
Kimmo
Thanks for the info, any rough estimation on sync time, assuming a decent server?
9 November 2022
P
03:19
Pil
Hello, How can i add my ton site to searching.ton
AP
03:33
Andrey Pfau
In reply to this message
You can download synced dump
JF
04:49
John Fyodor
In reply to this message
256
04:50
But actually you can set maximum ~30 to send whole Jetton in single transaction
j
05:37
jim
Hi everyone, I'm deploying liteserver through Docker, There is a problem at present The lite-client command can be used normally,However, if accessed through ton http api, it returns 504 code
05:37
05:37
05:37
telegram-cloud-document-5-6291908762567444460.jpg
Not included, change data exporting settings to download.
13.8 KB
05:38
Can someone help me?
K
07:07
Kaio_toxik
Tell me pls is it possible to delete or edit NFT? it was deployed without 0.json so 0 NFT shows without metadata and picture
N
07:10
Nick
You can mint nft to collection as i know
07:11
so you can ask it in marketplaces
07:11
they can hide
K
07:25
Kaio_toxik
In the Collection base URL, enter the common path to your NFT metadata in JSON format. For instance, if you enter http://yourcollection.com/nft/ then the first NFT metadata should be hosted at http://yourcollection.com/nft/0.json, the second at http://yourcollection.com/nft/1.json, etc. These files should be hosted on your side. You can change this path later on if you need to.🤔
07:25
You can change this path later on if you need to
07:27
If to add 0.json now to that directory? Will it fix the situation?
RG
09:22
Ruslan Gabdullin
In reply to this message
Hi!
Did you publish necessary ports in Docker container?
And can you please check if this command works from cli lite-client?
j
09:23
jim
In reply to this message
Yes, I opened the port, and the nodes are also synchronized at present.
09:24
@ruslixag This is the information displayed on the current command line.
d
09:25
doni
so whats the problem ?
j
09:25
jim
I can't access him through ton-http-api.
d
09:26
doni
you dont even see the swagger page right ?
09:27
the html ?
09:27
you can try curl it from the vps it self
09:27
like curl localhost:8080 ( i don’t remember whats the port )
j
09:28
jim
telegram-cloud-document-5-6294073975840442255.jpg
Not included, change data exporting settings to download.
13.8 KB
09:28
Yes, I did access it like this, but he returned the 504 code.
09:29
lite server logs are also some mistakes, but I'm not sure it's normal.
d
09:31
doni
did you create the config file yourself?
j
09:33
jim
I downloaded the file of this website and modified it.(https://ton.org/global-config.json ),If it is not modified, it can be connected to the public node.


But when I point it to my lite server address, I return to 504 code
09:35
I modified the configuration here according to the instructions.
d
09:36
doni
awk
j
09:42
jim
Anyway, thank you for your reply.
RG
09:45
Ruslan Gabdullin
I have no idea why it doesn’t work. Everything looks normal
j
09:55
jim
There are some errors in the node log. Are they related to it?
RG
09:56
Ruslan Gabdullin
The last errors are
09:56
But they are not informative🥲
09:56
Have you tried to restart http-api container?
09:56
Sometimes it works
j
09:58
jim
I have tried it many times. Every time I restart, the following logs will appear in the node.
RG
10:17
Ruslan Gabdullin
In reply to this message
Maybe you need to change init_block in your config
10:18
Try this one. Check it’s id
j
10:27
jim
Where is this configuration?
RG
10:29
Ruslan Gabdullin
In reply to this message
In the end of this file
j
10:31
jim
Thank you. Let me have a try.
10:42
In reply to this message
Thank you very much. He is really useful.
RG
10:45
Ruslan Gabdullin
So, the problem was following:
- when you trying to get the block, ton-http-api downloads and checks proof for this block (one may found details here: https://ton.org/whitepaper.pdf)
- ton-http-api uses init_block to get it
- this block is old enough to be not in db and causes error
j
10:46
jim
yes!
RG
10:46
Ruslan Gabdullin
Another solution you may try is to make ttl bigger (default is a few days).
You can change it to 1-2 years if you have enough storage)
j
10:51
jim
In reply to this message
Okay
D
11:30
D a v i d e
how can I be sure that my smart contract is secured?
RK
11:34
Roman Krutovoy @work
In reply to this message
you can check source code and address, and compare. For example, with this tool:

https://verifier.tonsc.org/
D
11:42
D a v i d e
In reply to this message
and then what I shoukd find?
RK
11:47
Roman Krutovoy @work
if the contract deployed to address and contract sources are not equal — this is probably a scam
l
14:31
lin
Why do I often return this error when sending a transaction to the chain?
14:31
error code: 0 , message: cannot apply external message to current state : Failed to get account state
D
14:45
D a v i d e
In reply to this message
but this is about other smart contract not mine
C
14:46
Coppola
Hi guys! Hope you are having Tonfull day!

I'm looking for a way to follow up transactions inside Ton chain and visualize the chain. Did setup already node but MyTonCtrl doens seem to have a feature for that yet - any suggestions ?
RK
14:54
Roman Krutovoy @work
In reply to this message
ah, true! Do you ask how smart-contracts in TON secured and how it works?
D
14:57
D a v i d e
In reply to this message
how do i know if my smart contract is safe
SF
15:02
Slava Fomin
In reply to this message
Look at this, maybe:
TON Index API
А
15:07
Андрей
In reply to this message
Maybe this will help you, but there may be errors:
https://github.com/ton-blockchain/mytonctrl/blob/master/tests/blocksScanner.py

UPD: And it looks like it is not completed - does not display messages.
UPD2: Although the code seems to have been completed, some changes are missing in another product:
https://github.com/newton-blockchain/ton/compare/master...igroman787:ton:master
t
15:18
talkol
D
15:57
Dr. Awesome Doge
Awesome
DS
16:02
Daniil Sedov
In reply to this message
Write tests and maybe ask someone experienced in vulnerabilities for help
d
16:04
doni
Yes tests are the way to go
16:04
of course audit is important if we assume this contract will hold real funds
i
16:06
isoscele 💎
In reply to this message
What do you mean by audit
d
16:07
doni
There are audit companies ( like quantstamp, cetrik … ) which audits smart contract , basicly they are analyzing the contract and trying to attack the code and find security holes ,

they can provide some kind of assurance that code is verfied , and safe …

ofocurse nothing safe in our world …
DS
16:08
Daniil Sedov
In reply to this message
Code audit by someone experienced to find problems and vulnerabilities. Some companies are also doing audits
i
16:08
isoscele 💎
Ohh ok thx
16:08
Some names of them on ton?
16:08
Never heard of auditing companies on ton smart contracts
D
16:09
Dario
By the way, before audits from other companies the TF should work on static code analysis tools (like mythril) for func code, it could be really useful
SF
16:10
Slava Fomin
Just post a contract hacking challenge with good monetary compensation and you will attract the necessary interest.
DS
16:10
Daniil Sedov
In reply to this message
I heard something about 0xguard
16:10
In reply to this message
Yeah that's also a good idea
&2
16:12
&rey 2ne:v
In reply to this message
Isn't it possible to transpile code (maybe, Fift) into language like C++/Java and run static analysis on that?
D
16:12
Dario
In reply to this message
No and could be really dangerous/useless since internally it works differently. Better to setup an open registry for common unsafe practices and build a tool on top of that
16:13
In reply to this message
At least, this is my opinion*
21:50
Deleted Account
For example a token is created on TON blockchain, is there a platform to swap that token back to TON ?
21:51
For example a token is created on TON blockchain, will any of the TON wallets support that token ?
DS
21:58
Daniil Sedov
In reply to this message
yes
NA
22:59
Narek Abovyan
T
TonTech 09.11.2022 22:56:58
Hey guys!
We just released ton-contract-executor 0.6.0 🚀

Release notes:

- web support! You can now use ton-contract-executor in browser
- worker threads can now be terminated
- SmartContract.fromFuncSource has been deprecated, please use @ton-community/func-js or ton-compiler for FunC compilation
- added support to set gas limits to all SmartContract methods
- helper functions to create TVMStackEntry types have been exported, this would be helpful for calling get-methods
- ExecutionResult has been exported
- Docker image can now be used to build the WASM part of ton-contract-executor
- fixed issue with handling exceptions at TVM level using TRY:<{}>
- all logs from debug opcodes are now collected at debugLogs field
- STRDUMP opcode now logs utf-8 strings

We also moved source code to ton-community or at Github, so now it's even more close to community.

Maybe someone want’s to put up some FunC web playground 🌚?
G
23:31
Greg
Hello everyone, my name is Greg, I develop on solana, but would like to explore developing applications on ton as well. Is there any good documentation for frameworks that are used for ton development? Also is there conventional way to create telegram bot user interfaces for ton chain?
SF
23:58
Slava Fomin
In reply to this message
Hello and welcome! For docs see this message. For Telegram in general I would highly recommend grammY framework.
10 November 2022
G
00:27
Greg
In reply to this message
Interesting, is grammy similar to Anchor or Truffle for SOL & EVM respectively?
SF
00:36
Slava Fomin
In reply to this message
grammY is a framework for TG bot development. However, this is an off-topic for this chat.
l
06:30
lin
ton's address format is base64 or base64Url?
06:34
I call packAddress api which sometimes returns base64 and sometimes base64Url
M
11:41
Max
In reply to this message
Addresses can be turned into strings in several ways, both base64 and base64url can be used
11:42
What's the packAddress api you're referring to?
l
11:47
lin
11:48
Is the base64Url used by the ton wallet plugin wallet?
M
11:59
Max
In reply to this message
I think it will accept any format of addresses, not 100% sure though

In any case, it's easy to convert between b64 and b64url, just replace "+" -> "-" and "/" -> "_" or vice versa
l
12:02
lin
Yes, I want to confirm what format most people used
А
12:11
Андрей
In reply to this message
The standard implies using as addresses base64url
l
12:21
lin
ok thanks
S
13:22
Saber
Has anyone faced this cors issue when using ton client?

Access to XMLHttpRequest at 'https://testnet.toncenter.com/api/v2/jsonRPC' from origin 'http://localhost:3000' has been blocked by CORS policy: Request header field x-ton-client-version is not allowed by Access-Control-Allow-Headers in preflight response.
T
13:32
Tim
You can disable that header in ton source
S
13:39
Saber
In reply to this message
thank you, I removed this line in ton installed package in the node_module(to test), and now the requests work.
13:41
In reply to this message
But, I guess it’s not the best idea to change node_module files
SF
13:43
Slava Fomin
In reply to this message
That's definitely a bad idea. You should create an issue for the library or send a PR.
13:45
By the way, @ruslixag do you think that API should be relaxed to allow such unrecognized headers?
RG
13:46
Ruslan Gabdullin
In reply to this message
Maybe it should be.
l
14:10
lrlab
Hello, is it necessary to deploy a contract to activate an account?
14:11
How to use sdk to create a ton account? sorry i'm a newbie/
&2
14:37
&rey 2ne:v
In reply to this message
"Deploy contract" and "activate contract" mean the same thing - send contract code to blockchain so that it gets stored there.
l
14:39
lrlab
In reply to this message
Thank you very much for your enthusiastic answer, I found how to use golang sdk to create a wallet, thank you very much
RG
15:07
Ruslan Gabdullin
In reply to this message
I've checked: there should not be any restrictions on headers. I've restarted testnet-toncenter. It should work well
S
15:29
Saber
In reply to this message
yes, it’s working now, thank you
RG
15:30
Ruslan Gabdullin
Looks like problem occurs if you debuging your app. In this case origin is localhost:3000 and for this origin there is some limitations.
15:32
In reply to this message
Upd. I've missed. There are restrictions for headers. I've removed them for testnet, but on mainnet they will stay
15:32
Please tag me if you will face same issue on mainnet
M
20:58
Mark Okhman on TON
Hey guys, i've opened a discussion about Junior / Middle / Senior FunC developer

What are your thoughts on this gradation?

https://www.toncompany.org/c/ton-edu-projects/junior-middle-senior-func-developer
JF
21:30
John Fyodor
In reply to this message
1 year is junior, 3 years is middle and 10 years of experience is senior 👍
P
21:31
Purple
In reply to this message
If you learn fift, you automatically become a senior
M
21:33
Mark Okhman on TON
In reply to this message
this is quite classic break down
i agree with @visualstudi0 to a curtain extent though

do we mean that everyone in FunC is no higher then middle? I believe we need to use other gradation rather then amount of years
OL
21:34
OWNED LEAKS
i have a legit Q as far as fragment goes, with ton network why is it No usa customers can use this? with tokkeeper i cannot scan and use the QR code on fragment bc it states not useable to the united states... so its only non usa ppl?
21:36
like me i own 210 single word usernames myself, and cannot list them for auction at all lol thats crazy
SF
21:46
Slava Fomin
In reply to this message
Sadly, the experience in terms of years doesn't show much. I knew expert developers with just 3 years of experience and juniors who worked for 20 years without growing their knowledge much.
JF
21:46
John Fyodor
In reply to this message
that was a joke because func itself is like 4 years old
11 November 2022
S
10:46
Step
any program to generate ton vanity address?
10:47
🥹
10:48
In reply to this message
with mnemonic is possible?
10:50
In reply to this message
it gives only private key? i want it to be able to import any wallet
M
10:51
Mark Okhman on TON
Anybody tried delab's connect lib on Next.js?
https://github.com/delab-team/connect/issues/11
S
11:05
Step
why message deleted?
H
11:06
Hartmann D.
My bad. It looked like spam. Reflex, sorry =)
11:06
This is for experienced developers

Check every link from this post, it should help
https://t.me/investkingyru/617
S
11:07
Step
In reply to this message
oh . did you also ban the message sender?
H
11:07
Hartmann D.
In reply to this message
unbanned already, in progress
S
13:53
Saber
Can I use get_c3() in func to calculate the address of some other nft index?
for example I want to calculate the address of nft index #5 inside the code of nft index #6
&2
14:09
&rey 2ne:v
In reply to this message
c3 is a continuation, not a cell, so I think it's impossible.
S
16:15
Step
fragment developed by telegram or ton team? whoever, they should add pagination or something.
its not working well on mobile due to huge list rendered in single page.
DS
16:16
Daniil Sedov
In reply to this message
Telegram
S
16:16
Step
In reply to this message
does it work well on your mobile?
DS
16:16
Daniil Sedov
In reply to this message
Yes, but pagination will be better
16:21
Deleted Account
In reply to this message
Hello Daniil. Why is the mining ⛏️ BOT not working now ? Do you have any update regarding it ? Thank you 🙏🏿
DS
16:21
Daniil Sedov
In reply to this message
What are you talking about
16:25
In reply to this message
Contact their support
16:26
Deleted Account
In reply to this message
But hope it is not a scam ?
DS
16:26
Daniil Sedov
In reply to this message
I don't know
S
16:33
Step
In reply to this message
mining already ended?
16:34
Deleted Account
In reply to this message
Yes but cannot withdraw. Why ?
DS
16:34
Daniil Sedov
In reply to this message
Contact their support please
16:35
Don't ask such questions in this chat.
16:35
Ton dev chat is only for development related questions. If you want to ask something general about ton or some service on ton: @toncoin_chat
i
17:13
isoscele 💎
ton org is down?
M
17:13
Mark Okhman on TON
DS
17:13
Daniil Sedov
In reply to this message
looks like that
M
17:13
Mark Okhman on TON
🥺
DS
17:13
Daniil Sedov
hope they'll fix that asap
i
17:14
isoscele 💎
Starting from a serialized cell, can it be deserialized without knowing what's inside?
D
17:15
Dario
In reply to this message
yes (as long enough bits has been written otherwise you will get cell underflow) but you will get useless data
DS
17:15
Daniil Sedov
In reply to this message
you can't deserialize data if you don't know what is the type of that data. that's why we have TL-B schemes everywhere
i
17:18
isoscele 💎
In reply to this message
So what about arbitrary msgs between smart contracts? On tonapi . io it understands msg body data. Is it because format of these messages is standard and recv_internal of those smart contracts are public?
DS
17:20
Daniil Sedov
In reply to this message
check out https://github.com/ton-blockchain/ton/blob/master/crypto/block/block.tlb

all important types are described there, including messages
17:21
msg body can be any type but there are also some agreements on that:
https://ton.org/docs/#/howto/smart-contract-guidelines?id=internal-messages

"In order to achieve this goal, the following recommended internal message layout can be used (notice that the TON Blockchain does not enforce any restrictions on the message body, so these are indeed just recommendations)"
i
17:21
isoscele 💎
In reply to this message
It's clear for me that looking at constructors you can parse following TL-B schema. My question was more about arbitrary bodies between contracts
А
17:22
Андрей
In reply to this message
image_2022-11-11_17-21-54.png
Not included, change data exporting settings to download.
425.3 KB
14:20 UTC, working
DS
17:22
Daniil Sedov
In reply to this message
yeah, read page from docs that I've sent above. there is described how do we usually serialize body
i
17:22
isoscele 💎
In reply to this message
I'll give it a read! Thank you! 👍
MK
20:10
Myroslav Koval
Is there is any way to integrate TON purchase to custom mobile app?
20:10
maybe some endpoints? or webview?
S
20:14
Ssi
In reply to this message
ya, it's interesting how the tonwhales.com does it
20:16
it's not an app and may be is there an easy way, haven't researched yet. If someone has some usefull links to read, would be glad 🙂
d
20:44
doni
In reply to this message
in case of react native i assume ton-x (tonhub) would be easy integration
MK
21:16
Myroslav Koval
Yes, that's react-native app)
21:16
thank you guys
d
21:24
doni
ok so ton-x should work for you :)
N
21:56
Nikita
Hey everyone! Does anyone know if TON has the functionality to send multiple NFTs from one address to another in one transaction?
T
21:58
Tim
kind of, but there's no benefit from gas standpoint
12 November 2022
S
00:02
Ssi
In reply to this message
you have to read the docs
00:05
In reply to this message
N
01:05
Nikita
In reply to this message
I’m not looking for benefit from gas standpoint. Just looking for all possible solutions to this issue
S
01:23
Saber
In reply to this message
We had some use case that from UX side we needed multi nft transfer so we implemented some kind of NFT chaining transfer mechanism so the i-th nft will transfer its ownership and then tell the (i+1)-th nft of the list to transfer its ownership to some address( you need to check two things, first the owner of the i-th nft should be the same as the owner of (i+1)-th nft and also you need to check the validity of address of the nft(same as jetton wallet)
T
01:24
Tim
You can just use highload wallet
DS
01:32
Daniil Sedov
In reply to this message
You can send up to 4 internal messages at once from regular wallet if I'm not wrong
i
01:40
isoscele 💎
In reply to this message
Does the standard nft contract has the ability to notify like that? I've never seen it
S
01:43
Saber
In reply to this message
nope it’s not in standard nft contract, it’s a solution that we used for our game nft items to support multiple NFT stake with one transaction on our front-end
i
01:53
isoscele 💎
In reply to this message
How do you check inside the nft item 2 that the sender nft item 1 belongs to the same owner?
S
02:00
Saber
In reply to this message
nft item 1 sends two data to nft item 2
its token id: 1 in our case
its owner: some address

so first of all, in nft item 2 we check if address of sender is compatible with the claimed token id which here is 1.
so if this pass nft item 2 knows that this internal message truly comes from nft item 1 therefor now on we have trust that the owner address that nft item 1 claimed to have is true( because we wrote the logic of nft item)
and now nft item 2 has to check one other thing that its owner is equal to the owner that nft item 1 gives
NA
02:06
Narek Abovyan
In reply to this message
You can simply use high-load wallet for that kind of things.
Another interesting approach is to create custom contract which stores all transfer messages in data cell and keep’s calling itself till all of them are sent, you can send up to ~1500 simple transfers that way.
> 1500 is possible, but you would be unable to deploy contract via single message since there is 64kb limit for external messages size in network
D
02:08
D a v i d e
Hello guys, for you is possible to develop a stablecoin with jetton?
NA
02:08
Narek Abovyan
In reply to this message
But i guess your approach is OK if you need mass-transfers but can’t force users to tie NFT’s to high-load wallet or some custom one
S
02:10
Saber
In reply to this message
yeah, I don’t want regular users feel anything unusual, they should just select their NFTs and send a transaction with their normal wallet
NA
02:26
Narek Abovyan
In reply to this message
This chat is not about selling nft and certainly not about selling nft’s in Ethereum
OL
02:26
OWNED LEAKS
yeah just noticed i sent it to the wrong chat my bad
02:26
removing
M
13:26
Mark Okhman on TON
Chill Saturday, fam!

Found a nice repo from @delabteam that is enabling SPA to authenticate with TON wallets.

But ooooops, it didnt work with Next.js which I love and admire. So I decided to write some code to make it happen 🙂

Here is my first dev.to article https://dev.to/markokhman/using-delab-connect-with-nextjs-52j7
К
15:20
Крам
Hi all. With Ftx situation, TON will help customers who lost toncoin like it did Justin Sun 1-1?
А
16:11
Андрей
In reply to this message
K?
16:14
King Seff 👑 🐾
In reply to this message
Man I'd love to but about a year ago before everscale rebranded, I asked a question in there not knowing they were different projects and got outright banned instead of corrected :)
SF
22:30
Slava Fomin
I've created a small example project to demonstrate TonWeb integration with React:
https://github.com/slavafomin/tonweb-react-example

#tonweb
13 November 2022
V
00:38
Vlad
keyPair.publicKey how format in normal address?
DS
00:39
Daniil Sedov
In reply to this message
var wallet = tonweb.wallet.create({publicKey: keyPair.publicKey, wc: 0})

const address = await wallet.getAddress()
i
00:41
isoscele 💎
then
 address.toString(true, true, false);
for different versions
DS
00:42
Daniil Sedov
In reply to this message
And also note that tonweb.wallet generates V3 wallet by default. You may need some other version (like v4)
?
15:33
𝕬𝖓𝖉𝖗𝖎𝖎
hi, where i can check ton mainnet config?
JD
15:34
John Doe
In reply to this message
o
?
15:38
𝕬𝖓𝖉𝖗𝖎𝖎
thanks guys
S
20:58
Saber
In reply to this message
This is proof of concept of this kind of structure, staking 6 nfts with 1 transaction
https://testnet.tonapi.io/transaction/cd748c10f81ef1e8ad016c2283df0f18590bf016f8ccf47708fbc87660aa2251
D
21:02
Dario
In reply to this message
Why didnt you develop a sort of nft-manager?
21:03
Like the owner of the nft is a contract (that can manage multiple nfts) and to change nft owner just replace admin in such contract
&2
21:04
&rey 2ne:v
In reply to this message
And what would you do if you need to send only part of your NFTs?
D
21:04
Dario
In reply to this message
Nft manager(s) can communicate each others
21:05
Just an idea, never worked with nfts in ton actually
S
21:05
Saber
In reply to this message
Owner of nft item should be user and no one except the real owner should have the access to change the ownership
D
21:06
Dario
In reply to this message
Okay makes sense 👍
14 November 2022
L
00:20
Lisa
Hey guys
Do you know any vulnerabilities of ton smart contracts?
I'm new to this. Just trying to understand how it works 😅
OL
01:44
OWNED LEAKS
In reply to this message
if you was new to it i dont think you would start with that Q lol bug hunt maybe?
V
03:56
Vlad
LITE_SERVER_UNKNOWN: cannot apply external message to current state : External message was not accepted
Cannot run message on account: inbound external message rejected by transaction
What error?
DS
05:48
Daniil Sedov
In reply to this message
What message are you trying to send?
О
16:35
Оскар
Hi
16:35
I've got a question
16:37
How to listen to any transaction of some wallet?
16:38
I have a server that connects to user's tonkeeper
16:40
I want the server to monitor this wallet
JD
16:44
John Doe
In reply to this message
Hi!
U can use this bot - @tonutilsbot. Sends webhooks when payments are received to your address
О
16:46
Оскар
Does it listen only to incomming events?
MK
18:13
Myroslav Koval
how to integrate in-app purchase of TON token for react-native ?
18:13
didn't find any solution or SDK
18:17
Ton-x is not providing this solution as well
SF
18:41
Slava Fomin
In reply to this message
Please see the TonWeb examples in the pinned message.
О
19:06
Оскар
Ok, I'll check it again
15 November 2022
M
12:28
MrAm
hi
12:29
how can verification nfts collection in Ton blockchain ?
A
16:46
Alex
In reply to this message
What do you mean? Ownership?
S
16:55
Saber
In reply to this message
try this:

const yourCell = Cell.fromBoc(Buffer.from(“te6cckEBAQEAOQAAbnNi0JwAAAAAAAAAADmJaAgAhaRh9xxNzw5iYjZIe2XBXz533u71Al417Ew5NWU4OKIBAgMEBQatCXqU”,'base64’))[0]

and then begin parse yourCell and extract the data from slice
16:59
In reply to this message
I used ton library not tonweb

import { Cell} from "ton";
&2
17:00
&rey 2ne:v
In reply to this message
// TonWeb version
async function test() {

const boc = "te6cckEBAQEAOQAAbnNi0JwAAAAAAAAAADmJaAgAhaRh9xxNzw5iYjZIe2XBXz533u71Al417Ew5NWU4OKIBAgMEBQatCXqU";
const yourCell = TonWeb.boc.Cell.oneFromBoc(TonWeb.utils.base64ToBytes(boc));
console.log(yourCell);
}
S
17:10
Saber
In reply to this message
const txDataOut = yourCell.beginParse()
txDataOut.readUint(32).toNumber()
//op code which here is 0x7362d09c
txDataOut.readUint(64).toNumber()
// query id
const mintAmount = txDataOut.readCoins();

use the equivalent syntax in tonweb
S
17:25
Saber
use loadBits in tonweb
17:26
also use loadCoins instead of readCoins
S
17:49
Saber
yeah the next data in slice is address of sender and after that it’s forward payload
17:50
18:00
you read the from address incorrectly, it’s not loadUint use loadAddress
I recommend you read a little about cell and the data formats in TON
SF
18:00
Slava Fomin
In reply to this message
Is there a special method to load the address?
DS
18:04
Daniil Sedov
how ton-blockchain/stablecoin-contract is related to stablecoins? isn't it just a modification of Jettons with addition of admin functionality?
why is it called stablecoin if it can be used for anything, not only stables? maybe it's better to call it something like "controllable jetton" or "administrable jetton"?
or I misunderstood something from the repository
d
18:07
doni
In reply to this message
from slice ?
18:07
in general in func
there is a primitive
loadMsgAddress

i suggest you look at the jetton contracts
18:08
as for client side code ( typescript / javascript )

i would look at project such as minter
18:31
Thats a good example
18:31
I prefer ton-npm over tonweb … thats a personal thing
18:36
you refer to jetton ?
18:46
do you want a function that renders jetton transfer metadata ?
18:48
what is the big scope ?
DS
19:51
Daniil Sedov
In reply to this message
?
S
22:20
Saber
how can I detect if ton wallet extension(window.ton) is set on testnet or mainnet?
16 November 2022
d
01:43
doni
you can query a contract that you know it exists only in mainenet
S
03:12
Ssi
Hi there!
I haven't seen verified contracts(in terms eth infrastructure) on an explorer. Is it technically possible to implement?
n
06:11
nick
In reply to this message
Hi, How to parse forwardPayload data?
06:12
I try txDataOut.loadBits(32), but I don't know what to do with it
NN
06:12
Nick Nekilov
In reply to this message
Why do you need to parse it?
n
06:20
nick
In reply to this message
We need this data, this is the corresponding user memo
06:21
const transferBody = await jettonWallet.createTransferBody({
toAddress: new tonweb.Address(toWalletAddress),
responseAddress: new tonweb.Address(fromWalletAddress),
forwardAmount: tonweb.utils.toNano("0.000001"),
forwardPayload: "123456",
jettonAmount: tonweb.utils.toNano(tokenAmount)
});
06:22
How can parse the forwardPayload data?
06:25
"in_msg": {
"@type": "raw.message",
"source": "EQD-M-I5u1AF8GSjioCMSRo8vmBqx_kQrFFqZpRI5EbL2yuF",
"destination": "EQCFs0jtMDy5U62l3xxfAaWWm4ukKA6QYoDgDiyFCbzAuavc",
"value": "1000",
"fwd_fee": "1026675",
"ihr_fee": "0",
"created_lt": "32870931000006",
"body_hash": "eO+7yPsuWhaSJvzPjVswbjWNRV26KO771bwqky1cwvU=",
"msg_data": {
"@type": "msg.dataRaw",
"body": "te6cckEBAQEAOQAAbnNi0JwAAAAAAAAAADmJaAgAhaRh9xxNzw5iYjZIe2XBXz533u71Al417Ew5NWU4OKIBAgMEBQatCXqU",
"init_state": ""
},
"message": "c2LQnAAAAAAAAAAAOYloCACFpGH3HE3PDmJiNkh7ZcFfPnfe7vUCXjXsTDk1ZTg4ogECAwQFBg==\n"
}
06:26
How can i parse the message data? in_msg -> message
NN
06:38
Nick Nekilov
In this case, you should parse msg_data.body as BOC according to this schema:

transfer_notification#7362d09c query_id:uint64 amount:(VarUInteger 16)
sender:MsgAddress forward_payload:(Either Cell ^Cell)
= InternalMsgBody;

const op = body.loadUint(32); // 0x7362d09c
const query_id = body.loadUint(64);
const amount = body.loadCoins();
const sender = body.loadAddress();
const forwardPayload = body.loadBit() ? body.loadRef().beginParse() : body;

const comment = new TextDecoder().decode(forwardPayload.loadBits(forwardPayload.getFreeBits()));
06:38
Something like that.
NN
06:54
Nick Nekilov
const forwardPayload = body.loadBit() ? body.loadRef().beginParse() : body;
06:56
You should skip one bit before reading remaining bits.
06:56
49 = 1 bit + 48 bits (6 symbols * 8 bit)
06:58
In reply to this message
const text = new TextDecoder().decode(forwardPayload.loadBits(forwardPayload.getFreeBits()));
A
07:32
Aria
I created an API key to use with the toncenter.com API, but I am still getting api key errors saying that the API requires a key
07:32
A
10:53
Aria
^ I was able to resolve this using python wrapper instead of direct, unclear what the difference is
C
12:46
Coppola
Hi! Is there yet any good Ton blockchain listeners ? (Events in realtime)
d
14:35
doni
like block listener ?
AT
14:41
Andrey Tvorozhkov
In reply to this message
dton.io have websocket subscription on new blocks / transactions / accounts
C
15:00
Coppola
In reply to this message
No Docs available :(
D
15:27
Dario
T
Tonox DeFi 16.11.2022 15:26:12
News

- New lib: tuples.func, some forgotten tuples instructions that can be useful

I encourage everyone to contribute to the repository, feel free to PR some changes or add libraries.

https://github.com/TonoxDeFi/open-contracts
&2
15:42
&rey 2ne:v
In reply to this message
Possibly User-Agent and similar headers are also needed.
A
15:43
Aria
In reply to this message
My API key is not IP or domain restricted though
S
17:23
Saber
https://testnet.tonapi.io/
is the explorer down?
T
18:32
Tolya
T
The Open Network 16.11.2022 18:29:33
The population of the Earth recently exceeded 8 billion people. According to the most optimistic estimates, only a few percent of the population have ever used a crypto wallet. TON has all the prerequisites to change this and become a truly massive blockchain network.

In a new article for the developer community, we will identify what has been done to date in the TON project and set out priorities for the future.

https://telegra.ph/TON--next-steps-11-16
MB
22:15
Majestic Bank
Hey friends, looking to add TON to swap website so people can buy and sell it instantly. What would be equilenet to bitcoincore-qt for TON? Like full node to handle payments
17 November 2022
n
07:16
nick
Is there any way to get Jetton token decimal by code?
d
07:35
doni
In reply to this message
minter has code that handels jetton uth different decimals

i suggest you look there
D
09:49
Diako
Is there any testnet explorer ?
DS
09:50
Daniil Sedov
In reply to this message
SF
12:13
Slava Fomin
In reply to this message
"critical vulnerabilities" shouldn't be reported in public.
12:13
Please DM me the vulnerability report.
12:21
@vp9348 @Gusarich we do not encourage unsolicited messages in any form please obstain from such discussion in the future.
DS
12:27
Daniil Sedov
Tonspace was moved to official docs ton.org/docs 👏
T
16:04
Tema
Hey guys, if I totally noob in golang and web3, but love crypto and wanna try web3/ton/golang development, where can I get some open-source simple tasks for that goal?

I have 5+ years' experience in web development on ruby/js
T
16:13
Tim
you can check tonutils-go package, it's pretty easy to understand and covers a lot of functions needed to interact with ton
LH
16:23
Lay Hack
Do these staking amounts include the number of tonstake and tonwhale?
16:24
in the offical website
T
16:52
Tema
In reply to this message
Am I right its better to learn FunC/Fift than golang for TON development?
T
16:53
Tim
Depends on what you want to do. You can't write smart contracts in go and you can't write server side code with fift. You usually need both
16:53
So go is alternative to python/js, func you need to learn anyway
T
16:55
Tema
In reply to this message
ah, so I can use other interpreted programming languages like Ruby or JVM based like Clojure for backend and funC/fift for smart-contracts?
T
16:55
Tim
right
A
17:41
Alex
Hello guys,
there is a new Java library for TON development out there.
ton4j is Java JNA wrapper for Tonlib. It also includes many other helpful modules like BitString, Address, Cell, Mnemonic.
Out of the box, you will able to deploy wallets V1 (simple), V2 (multi-send), V3 (wallet-id), V4 (plugins) and other contracts like Jettons, NFTs и DNS.
In documentation and tests there are lots of usage examples. Highload and payments contracts will come soon.
Basically, ton4j is a port of tonweb, that's why you will find it very familiar.
Feel free to report any bugs, contribute to the project via PRs, and post them here or on Github.
https://github.com/neodiX42/ton4j
17:51
Deleted Account
In reply to this message
sorry guys if i broke the rules
Tell me, is it possible to start cooperation with you on an official basis?
17:53
In reply to this message
This is only related to the NFT and should be of interest to the audience
DS
17:53
Daniil Sedov
In reply to this message
It is DEV chat and only about development on ton.
17:53
Deleted Account
In reply to this message
ok man, am sorry
S
21:53
Step
toncenter api has not an endpoint for contract information?
RG
22:04
Ruslan Gabdullin
check section accounts
S
22:11
Step
In reply to this message
not information about nft contract
RG
22:15
Ruslan Gabdullin
Oh, currently there is no
d
22:28
doni
checkout tonapi
22:28
its has indexed a
data api
22:28
nft api and jetton api
18 November 2022
S
08:21
Step
what is Elector Contract and log tests?
https://tonapi.io/v1/blockchain/getTransactions?limit=100
08:22
In reply to this message
is this correct api to get most recent transactions?
DS
13:01
Daniil Sedov
is there any way to overload a FunC function for different argument types so it will act in different ways for them?
D
13:03
Dario
In reply to this message
Tricks with generics?
13:03
I don't think there are
SH
13:03
Seitaro Higuchi
In reply to this message
Automatically? No. But you can make function which accepts template type (see forall), check types (helpers were in tsc#2 code) and then act differently depending on the type.
d
13:41
doni
can you share an example of using this pattern?
LB
14:48
L B
Hello, why withdraw_from_pool can not working? Its makes «WithdrawFromPool - OK» in mytonctrl, but in tonscan says error, exit code 76. https://tonscan.org/tx/5q4EqfMAdyP2qSpdN349Z-_GsVb5XBc82i2qDwjpHww=
SH
14:54
Seitaro Higuchi
In reply to this message
https://github.com/ton-blockchain/func-contest2-solutions/blob/main/4.fc#L31
we pass variable with undefined type x to the function and when inside function check the type and decide how to serialize it.
OB
15:19
Oleg Baranov
Hey, I have implemented native RLDP-HTTP-Proxy which works locally on any platform, and ready to use in 2 seconds. Remote RLDP proxies no more needed, you can use TON sites in a secure way with true end2end encryption!

https://github.com/xssnick/TON-RabbitHole

You can easily build it from sources using golang or download precompilled version for your OS.

It is an ongoing project and the next iteration will be reverse-proxy which will allow you to easilly host your own TON sites.

I will be glad to get some usage feedback! Also to stay updated or ask any questions you can subscribe on our group
AM
15:59
Ayt M.
In reply to this message
Using js?
16:11
In reply to this message
Do u need to parse json?
16:17
In reply to this message
If u want iterate json object, i used some package i forgot
But what about:
for (var key in obj){}
16:19
In reply to this message
Right, u should .parse JSON before
16:23
In reply to this message
Check out JQuery for object, i guess there is something u need
19 November 2022
D
00:08
Diako
how can i verify my contract ? ( like ETH )
F
00:15
Foisoi
Has anyone faced with something similar before?
Smart contract crashes after adding a variable.
TONCLI outputs method_id instead of expected integer.
00:15
00:15
t
00:32
talkol
In reply to this message
We’re working on a decentralized protocol, it will be up and running in a couple of weeks
00:32
@mrbonezy is developing it
D
00:33
Dario
In reply to this message
Could you share more details? Looks interesting
t
00:35
talkol
In reply to this message
https://github.com/ton-blockchain/TEPs/pull/91

The comments include the implemented contracts
D
00:36
Dario
In reply to this message
Great, I missed it
00:36
Thanks
F
00:39
Foisoi
Can I have operations on numbers which are ~512 bits long in FunC without creating custom arithmetic based on Cells or some other data type?
D
00:41
Dario
In reply to this message
No you cant
00:41
But if you do in the first way, ping me
D
01:47
Diako
I'm confused about recv_internal
is recv_internal have multiple implementation ?
in two tutorial, they are used recv_internal with different input argument
are inputs have specific orders ?

recv_internal(int my_balance, int msg_value, cell in_msg_full, slice in_msg_body)
recv_internal(int msg_value, cell in_msg, slice in_msg_body)
D
01:56
De Iōḥānān
recv_internal just unpacks the initial stack int balance, int value, cell msg, slice msg_body. You don't have to take all values of the stack
D
02:01
Diako
In reply to this message
is it possible to i take only msg_value and in_msg_body ?

recv_internal(int msg_value, slice in_msg_body)
D
02:05
De Iōḥānān
In reply to this message
I guess you can skipping only from one side
NA
02:05
Narek Abovyan
In reply to this message
You can’t switch the order, but you can skip the tail
NA
02:05
Narek Abovyan
since it’s just stack it will skip it
D
02:20
Diako
recv_internal(int my_balance, int msg_value, cell msg_full, slice msg_body)

what is different between msg_full and msg_body ? what data exists in these argument ?
( I can't find good document about these )
M
02:46
Max
In reply to this message
F
12:09
Frog
How can i buy nft from some collection using pytonlib?
DS
12:14
Daniil Sedov
In reply to this message
You need to send a required message to the selling contract
F
12:15
Frog
In reply to this message
How do I find out the desired message
DS
12:15
Daniil Sedov
In reply to this message
Check out getgems contracts on github
F
12:36
Frog
In reply to this message
Which one
DK
20:21
Don Kim
excuse me
20:22
i wanna ask about testnet
DK
20:22
Don Kim
DK
Don Kim 19.11.2022 20:08:32
DK
20:22
Don Kim
In reply to this message
are these configs not load now?