ton-society / grants-and-bounties

TON Foundation invites talent to imagine and realize projects that have the potential to integrate with the daily lives of users.
https://ton.org/grants
281 stars 128 forks source link

.ton subdomain management, telegram bot and showcase on python #410

Closed nessshon closed 5 months ago

nessshon commented 8 months ago

Summary

The idea was to create a detailed Python tutorial and a Telegram bot for managing .ton / .t.me subdomains. Based on a smart contract from repository simple-subdomain. This will simplify the interaction process for both developers and ordinary users.

Context

Many people wonder how to create subdomains for .ton domains. At the moment, only one resource is available - the repository at simple-subdomain. However, even when using this resource, many developers encounter problems. If developers have questions, then it’s even more difficult for ordinary users.

I have prepared a repository ton-subdomain which includes:

What was done:

References

Estimate suggested reward

howardpen9 commented 8 months ago

how to use the bot?

https://github.com/tonmendon/ton-subdomain

howardpen9 commented 8 months ago

Hi, can you explain with me what is the successful subDomain looks like? And why that is important? Where can we show it?

nessshon commented 8 months ago

Hello @howardpen9,

The subdomain is important because it allows users to link the address of the wallet, TON site and TON Storage to a unique subdomain. For example, you can use alternatives such as wallet.nessshon.t.me or ness.republic-mendon.ton.

These subdomains can similarly be inserted into Tonkeeper or any other compatible wallet instead of the wallet address. In addition, these subdomains work easily in explorers.

Here are examples of subdomains created by the bot:

ProgramCrafter commented 6 months ago

May I ask if hosting fee is justified by bot load, or if a cheaper (perhaps free) service could be used?

From the top of my head, I guess you can use PythonAnywhere free tier and attach webhook there, so $60/year seems quite strange.

nessshon commented 6 months ago

@ProgramCrafter, thank you for your inquiry. When choosing hosting for the bots, I considered the minimum cost at the provider I personally use (aeza), where the minimum VPS costs €4.94 per month. In addition, based on past requests for hosting fees in similar bounties, the $60 annual fee did not raise any questions.

There are options to consider more budget-friendly alternatives, such as the PROMO plan at aeza for €1.09 per month (although it is often unavailable) or a VPS at beget for $2.29 per month.

As for the free PythonAnywhere, I haven't personally used it, but judging by the feedback from the bot developer community, the reviews of the free tier are not the most positive, so I'm not considering it.

I want to emphasize that the annual hosting fee is not mandatory; rather, it serves as a guarantee that the bot will work for the community for a year. The bot is currently hosted on my server, but I cannot guarantee its uninterrupted operation for a long time.

delovoyhomie commented 5 months ago

Thank you for your initiative. It would be great to have a subdomain manager right in dns.ton.org, or at least as a separate website. A Python showcase might be useful, but perhaps not to that extent. Maybe in the future, we'll revisit the issue, but for now, we want to implement this on our own internally.