|
Uniswap Sniper Bot
1.0
|
#include <utils.hpp>Go to the source code of this file.
Namespaces | |
| TransactionDataBuilder | |
| Utilities to build transaction data to call swapExactETHForTokens on Uniswap V2 Rotuer 02 contract. | |
Functions | |
| std::size_t | TransactionDataBuilder::buildData (const char *amountOutMin, const char *targetTokenAddress, const char *receiverAddress, char *output) |
| Builds swapExactETHForTokens input data. More... | |
| bool | BloXrouteMessageParser::validateTransaction (const char *message, const char *targetTokenAddress) |
| Check if message is of "subscribe" method and regards specified token address. More... | |
| std::size_t | BloXrouteMessageParser::extractGasPrice (const char *message, char *output) |
| Extract gas price hex value from the message. More... | |
| std::size_t | BloXrouteMessageBuilder::buildSubscribe (const char *minimumLiquidityETH, const char *maximumGasPrice, char *output) |
| Builds subscribe message. More... | |
| std::size_t | BloXrouteMessageBuilder::buildTransaction (const char *rawTransaction, char *output) |
| Builds transaction message. More... | |
Variables | |
| constexpr char const * | TransactionDataBuilder::DataBoilerplate { "7ff36ab5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000000" } |
| Boilerplate transaction data. More... | |
| constexpr std::size_t | TransactionDataBuilder::DataLength { std::char_traits<char>::length(DataBoilerplate) } |
| Boilerplate transaction data length. More... | |
| constexpr std::size_t | BloXrouteMessageParser::MethodPosition = 37 |
| Position of the method name in the message string. More... | |
| constexpr std::size_t | BloXrouteMessageParser::TokenPosition = 179 |
| Position of the token address in the message string. More... | |
| constexpr std::size_t | BloXrouteMessageParser::GasPricePosition = 555 |
| Position of the gas price hex value in the message string. More... | |