TRX1 Dev Blog #8 (August 2021)

Thor Rune Xchain
3 min readSep 24, 2021

--

Why are you so lazy, TRX1? September is about to be over.

aiothornode

This is a simple Python library to access THORChain nodes. It is asynchronous and uses aiohttp.

In the 0.0.19 version, there was added a basic Tendermint block parser and a couple of connections to corresponding ThorNode’s endpoints. This makes it possible to query the native wallet balance (THOR.RUNE) and get a list of native transactions from THORChain blocks, including transfers, bonds, and many others.

Added more tests, and the example code is updated as well.

The fresh version 0.0.19 is uploaded to PyPI. Source code is on GitHub.

THORChain Monitoring Bot

The main focus is switched to building NodeOp tools that enable personal notifications about various events for THORNodes including slash points changes, services going offline and online, stuck block scanning in blockchain clients, changes in bonds, addresses, new software versions.

What was done this month:

  • First, there was added a WebSocket connection to the THORMon (https://thorchain.network/). The data for alerts comes from both an internal source in the bot’s backend and from THORMon too.
  • Designed a new menu dialogue for adding and managing the node list for monitoring. Also started to implement a settings menu where certain types of notifications can be tuned or turned off and on.
NodeOp menu
  • Built a tracker for churning events
  • Version monitoring tracker that handles both new version events and version changes of the selected nodes.
  • THORNode/Midgard/Bifrost/RPC availability tracker
  • IP address tracker
  • Basic slash point tracker
  • Added a connection to the solvency API but it is not used yet.

Liquidity and yield module:

  • Showing current native Rune balance of the wallet
THOR.Rune Balance

Miscellaneous:

  • Better money formatting
  • A few helper classes and functions were developed. Such as bistable triggers and a component for Telegram inline-list with pagination.
  • Bugfix for the node list: messages were too long, from now they will be broken down into smaller ones
  • Fix: Large TX filter malfunction
  • Improved localization strings
  • New configuration settings for the experimental modes
  • Dependencies were upgraded
  • Logging was also improved
  • Discarded the BEPSwap part, because BEPSwap is officially retired.

Runiverse

  • First, I implemented a procedural algorithm to generate wallet objects based on their public address hash. It derives the particle form, color, size and applies some animations. For every address, the result will be unique but constant.
The procedural generator demo
  • Second, the dummy cubes representing TXs were replaced with sprite particles.
  • Introduced isolated scenes for debugging specific objects and their animations

The source code of the project is located on GitHub. There is no public demonstration yet, but you can easily build the project yourself on your local machine if you want to.

Conclusion

My plans for September:

  1. Release the first version of the node operator tools in the THORChain monitoring Telegram bot.
  2. Make Runiverse finally shine!

Thank you for reading. Leave your feedback on my projects. You are always welcome!

--

--

Thor Rune Xchain
Thor Rune Xchain

No responses yet