Uniswap Sniper Bot  1.0
Namespaces | Variables
config.hpp File Reference
#include <cstdint>

Go to the source code of this file.

Namespaces

 Config
 
 Config::Transaction
 
 Config::Transaction::SwapExactETHForTokens
 
 Config::BloXroute
 
 Config::BloXroute::Connection
 
 Config::BloXroute::Filters
 
 Config::TransactionPreGen
 
 Config::Size
 

Variables

constexpr char Config::Transaction::Nonce [] = "1"
 Transaction nonce. More...
 
constexpr char Config::Transaction::Value [] = "0de0b6b3a7640000"
 Transaction value. More...
 
constexpr char Config::Transaction::To [] = "7a250d5630B4cF539739dF2C5dAcb4c659F2488D"
 Receiver of the transaction (Uniswap V2 Router 02). More...
 
constexpr char Config::Transaction::GasLimit [] = "30d40"
 Gas limit of transaction (200000 units is enough for most swapExactETHForTokens calls). More...
 
constexpr char Config::Transaction::PrivateKey [] = "4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318"
 Private key of sending wallet. More...
 
constexpr char Config::Transaction::SwapExactETHForTokens::AmountOutMin [] = "3635C9ADC5DEA00000"
 Minimum amount of tokens to receive from the swap. More...
 
constexpr char Config::Transaction::SwapExactETHForTokens::TokenAddress [] = "48bef6bd05bd23b5e6800cf0406e524b517af250"
 Token address. More...
 
constexpr char Config::Transaction::SwapExactETHForTokens::ReceiverAddress [] = "f82d59152f33E6F65Aa4aE1a3B38eD2Ca1B7633b"
 Address of receiving wallet. More...
 
constexpr char Config::BloXroute::Connection::Address [] = "ws://localhost:3000"
 BloXroute Cloud API server address. More...
 
constexpr char Config::BloXroute::Connection::AuthToken [] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
 BloXroute Cloud API auth token. More...
 
constexpr char Config::BloXroute::Filters::MaxGasPrice [] = "1000000000000"
 Listen for transactions below specified max gas price. More...
 
constexpr char Config::BloXroute::Filters::MinValue [] = "0"
 Listen for transactions above specified min value (avoid tokens with small added liquidity). More...
 
constexpr char * Config::BloXroute::Filters::TokenAddress = (char*) Config::Transaction::SwapExactETHForTokens::TokenAddress
 Token address, alias to Config::Transaction::SwapExactETHForTokens::TokenAddress. More...
 
constexpr uint64_t Config::TransactionPreGen::GasPriceGweiFrom = 100
 
constexpr uint64_t Config::TransactionPreGen::GasPriceGweiTo = 500
 
constexpr uint64_t Config::TransactionPreGen::GasPriceGweiDecimals = 100
 
constexpr std::size_t Config::TransactionPreGen::ArraySize = (GasPriceGweiTo - GasPriceGweiFrom) * GasPriceGweiDecimals + 1
 
constexpr std::size_t Config::Size::TransactionQuantityBuffer = 32
 
constexpr std::size_t Config::Size::TransactionAddressBuffer = 20
 
constexpr std::size_t Config::Size::TransactionDataBuffer = 512
 
constexpr std::size_t Config::Size::TransactionRawBuffer = 512
 
constexpr std::size_t Config::Size::BloXrouteTransactionMessageString = 1024