The main purpose of the bot is to maintain domain bids within the maximum bid. You need to fill config file only for those domains that have already deployed! If domain is not deployed yet buy it from dns.ton.org.
- Fill config parameters
- seed - seed phrase for wallet
- collection_address - root resolver address. You send message to root contract when deploy new domain. (use default for mainnet)
- domains - list of domains and maximum bid (in Grams. TON = 10^9 Grams) for each
- Set
WalletType = wallet.V4R2 // WRITE YOU WALLET TYPE HERE
you wallet version. - For run TVM you need libs from tongo (https://github.com/startfellows/tongo/tree/master/lib) and add path to ENV
LD_LIBRARY_PATH
- Client connects to mainnet by default, if you need use TESTNET use:
client, err := liteclient.NewClient(nil)
- For each domain runs separate worker (with time shift)
- Every 5 minutes worker check domain contract and extract:
max_bid
value,max_bid_address
who place bid and auctionend_time
- If last bid address != you wallet then try to place new bid
new_bid = 1.051 * prev_bid
- If
new_bid < wallet_balance
andnew_bid < max_bid
(from config) - place bid