Repository for Python projects of Dmitry Korobeynikov
donate_wallet = 'EQBnk2PqeZZjIya2zvPlH2pnSQYYPjNReMntiOyWYt9au_fc'
t.me/monkeys_guarantor_bot - Telegram bot for P2P deals and auctions for NFT on TON blockchain. It helps to decrease risks for users when they want to sell NFT without commissions via P2P deals. Also it helps to provide auctions (also without commissions).
Functionality of mankeys_guarantor_bot
Main functionality:
- Creation of new NFT auctions of the main TON NFT collections
- Automatic notification of new/closed auctions (with detailed information) in a special channel(s)
- Participation in active auctions (bid increase, bid change notifications)
- Conducting P2P transactions for the sale of NFTs between two participants
- Protection of participants from fraud - transfer of funds of the auction winner and P2P buyer to the wallet of the guarantor bot and automatic sending only after the transfer of NFT
- Maintaining a blacklist of unscrupulous participants (Telegram account, TON wallet, NFT address) and a ban on further use of the bot by such participants
- Verification of Monkeys - checking if the user has a special NFT that gives access to the closed Monkeys community group (ApeRedList) with bonuses for participants (discounts, presales, airdrops, etc.)
Additional functionality:
- Bilingual interface (automatic language selection according to user settings)
- Verification of wallets of auction organizers and participants
- Verification of ownership of NFT by the organizer of the auction and the seller in the transaction
- Checking the sufficiency of the balance of participants to participate in auctions and increase rates
- Extended statistics on the attributes of the lot (number in the collection,%, rank, etc.)
Installation of mankeys_guarantor_bot
- Install PostgreSQL 13
- Create database (botdb)
- Create schemas, tables and views (SQL script from ddl folder)
- Insert info about bot in table nft_auction_bot.d_bots (bot name, token, entity_id etc.)
- Insert info in main_config.py (db connection parameters, admins user_id, api_id and hash to Telegram account for telethon client etc
- Install Python 3 and libraries:
- psycopg2-binary
- pytelegrambotapi
- requests
- telethon
- ton
- tvm-valuetypes
7a. using ton library For Windows:
- use ./lib/tonlibjson.amd64.dll file (with full path to it)
7b. using ton library For Linux
- build manually libtonlibjson.so on your server from binary (https://github.com/kdimentionaltree/ton-builder )
-
Set on scheduler files autoclose_auction_monkeys.sh, blacklist_users_monkeys.sh, send_money_by_queue.sh
-
Run start_bot.py with bot_id from nft_auction_bot.d_bots table