TRX1 Dev Blog #11 (November 2021)
In this episode, I will tell you about the new notifications, Mimir tracking, and the rarity of THORGuards.
Let’s get started.
THORChain Monitoring Bot
What’s new to our Telegram bot?
Block speed
As you know, recently there was a failure in the network, due to a consensus halt among the nodes, the process of block generation stopped. After that, I decided to expand the field of observation of the network status by adding a new type of notification to the bot, which will inform the community that the block generation speed has slowed down or stopped altogether. Of course, you will be notified again when the network starts up again.
Fortunately, there have been no more such incidents between then and the time of this article. However, you can always check the block generation speed in the “Metrics” menu.
Which will give you the following response:
Blue line is expected block time (6 seconds for a block, 10 blocks per minute). Yellow line is actual block generation speed, measured in blocks per minute.
Price chart
Slight changes came in the message of price movements.
- Min/max labels were added to the chart
- Lines got a bit thinner
- Divergence of price between BEP-2 $Rune traded at Binance and the native THOR.RUNE (it is the same to the gap between yellow and blue lines).
I know, I know, it pains me as much as it pains you to see the $Rune so cheap. Shall we buy the dip?
Mimir
Mimir information page got much better. There the constant names were converted to human-readable ones. I also added a default value and the date of the last registered change. Some values are expressed as time intervals, or sums in Runes or Boolean flags if it is necessary.
Same formatting rules are also applied to the Mimir notifications in the public channels.
Miscellaneous
There were many changes done behind the scenes. Or also the changes seen in various rare situations.
- Fixed errors with LP yield calculations for some borderline cases
- A couple of internal classes were rewritten
- Added Russian localization for NodeOp tools alerts
- Correcting typos in the bot’s texts
- Restriction in the bot’s dialogue to avoid errors during bot loading after restarting
- Bug fixes to keep the bot running correctly during a network downtime
- Fixed nodes provider diversity chart (now all the numbers sum up correctly)
- Working on deployment process improvements and better logging system with remote access
There was a request for Slack integration. So I started to educate myself in this direction, registered a developer account and started my first experiments with integration. In my opinion, Slack is not as accessible as Telegram or Discord. So I’m going to have to do some work there.
Work in progress: TOP Pools
In the end of November, I started to work on an everyday summary of the best liquidity pools.
There will be shown TOP 5 pools by volume, TOP 5 deepest pools and TOP 5 profitable pools by APY.
The results of the work will be presented early in December.
Links
MCCN Alert channel (English): https://t.me/thorchain_alert
MCCN Alert channel (Russian): https://t.me/thorchain_alert_rus
MCCN Bot itself: https://t.me/thor_infobot
Source code: https://github.com/tirinox/thorchainmonitorbot
THORGuards Chrome Extension
In November, an amazing NFT project was launched. It is stylized under the influence of THORChain and their partners. I’m talking THORGuards. I could not pass by and developed a tool for this project.
This is an extension for Chrome web browser. It allows to view rarity of each NFT directly on the OpenSea website.
How to install it?
First, go to my GitHub: https://github.com/tirinox/thorguards-rarity-chrome-ext
- Download and unzip this project
- Open Chrome browser (or compatible)
- Navigate to chrome://extensions/
- Turn on “Developer mode”
- Click “Load packed extension”
- Locate the
ext
folder inside the project. - Make sure that “ThorGuards Rarity 0.1.0” extension is there and on
- Go to https://opensea.io/collection/thorguards and enjoy!
The number in square brackets indicates the rarity rating of each character. R:1 is the rarest one.
The rank is calculated from a table where each character’s rank is the product of the logarithms of the probability of each trait or piece of armor.
There is no complete correspondence with the table from RaritySniper, but they are close enough.
Conclusion and future plans
My future plans for the bot are
- Discord integration especially as many communities and developers are moving there from Telegram
- Slack integration as requested
- Increase the reliability of the bot operation, improve the logging and diagnostics processes
Also I’d like to continue to work on THORChain gamification and visualization tools.
There is still a lot to be built. Winter is not a reason to be sad, but a time to work.
Good luck THORChads. Stay tuned.
Ten articles before and after
Telegram Bot 跟我想的不一樣. 第一天進公司時,Slack就被邀進同事們訂便當的群組,在上面會宣布今天訂那一家便… – Telegram Group
How to Create a Telegram Chatbot in 2022 – Telegram Group
Google Sheets Formula & Telegram Message ✈️ – Telegram Group
Monitor Server with Telegram Bot and Python – Telegram Group
How to create a Telegram bot with Python in under 10 min! – Telegram Group
Serverless Telegram bot with Kotlin, Firebase and Google Cloud Functions – Telegram Group
How To: Deploy Java Telegram Bot to Heroku – Telegram Group
How To: Create a Java Telegram Bot – Telegram Group
How I Use A Telegram Bot To Track My Expenses – Telegram Group
CryptoChat: Un chatbot hecho con rasa sobre criptomonedas – Telegram Group