Bot Event Tool

The idea of this bot in telegram is to obtain information based on the events of a contract, process this information and provide it to the user

ETHOnline 2024Shipped August 23, 2024#defi
Visit Repo
Bot Event Tool banner

About

I am a solidity auditor and sometimes to demonstrate a bug or calculate the amount of possible damage I have to read different events from the blockchain. For this I usually have to create a project in node and all this takes a lot of time. Given this approach and with the help of Envio I decided to create a bot in telegram (could be moved to discord, whatsapp, etc) with which a user can get events from a contract in a simple way. A clear example is the event that is triggered when changing the implementation of the `TransparentUpgradeableProxy` contract, here an auditor can look for the change in the code and a normal user can be alarmed. The first option of the bot is to give you the list of events, after that you can subscribe to the event so that the bot will send a message to the user once a new event appears. On the other hand, leave a tool that can read events from the blockchain and save them in a file for later processing, this is really useful for auditors and developers.

How it's made

The technologies I use are `node.js`, `TelegramBot`, `ethers`, `@envio-dev/hypersync-client`, among others. - `@envio-dev/hypersync-client`: I use it to get the blockchain contract logs, it's a quick and easy way to get them. - `node.js`: I use it to make the backend of the bot. - TelegramBot`: It gives me the ability for users to connect and communicate with the bot. - `ethers`: I use it as a communication library with web3.

I think the most hacky thing is that a common user can for example see the new implementations of a contract to be aware of the changes in the code where he invested his money. While it is still an MVP, using this you can process a lot of events making usability really great, another fascinating example is that you can monitor the events of a liquidity pool of uniswap, and thus calculate the price of the token in any block.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

AI Web3 Assistant

Meet TxGPT, your AI chatbot for effortless blockchain interaction! Manage transactions, check balances, and explore data with natural language. Powered by Circle's wallets and ENS mapping Telegram IDs to addresses. Say hello to seamless blockchain use! 🚀

AirBots

A Telegram bot that provides real-time crypto data, simplifies token swaps with instant cross-chain functionality, and offers easy token creation tools—all in one platform.

Duckbot

Building a prediction market Telegram bot that lets users bet on real-world events directly within the app. Utilizing blockchain for transparent and verifiable outcomes, ensuring fairness and security. Bet, track, and win – on-chain!