MCPcopy Create free account

hub / github.com/0xAlcibiades/mev-bundle-generator / functions

Functions95 in github.com/0xAlcibiades/mev-bundle-generator

↓ 9 callersMethodaddress
(self)
src/wallet.rs:31
↓ 9 callersMethodorder_profit
(&self, order_size: &U256)
src/arbitrage.rs:142
↓ 7 callersMethodget_tokens_out
(&self, token_in: &Address, token_out: &Address, amount_in: &U256)
src/uniswap.rs:270
↓ 6 callersMethodeffective_gas
Return the effective gas price for the bundle
src/flashbots.rs:107
↓ 4 callersMethodtokens
(&self)
src/uniswap.rs:250
↓ 3 callersMethodsubmit
Call a simulation or send to the flashbots relay
src/flashbots.rs:116
↓ 3 callersMethodupdate
(&mut self)
src/markets.rs:162
↓ 2 callersFunctionbigint_bigdecimal
Convert a BigInt into a BigDecimal
src/utilities.rs:27
↓ 2 callersMethodget_tokens_in
(&self, token_in: &Address, token_out: &Address, amount_out: &U256)
src/uniswap.rs:276
↓ 2 callersFunctionkeccak256
Return keccak 256 hash of to_hash.
src/flashbots.rs:21
↓ 2 callersMethodminer_reward_percentage
(&self)
src/uniswap.rs:266
↓ 2 callersMethodsell_tokens
( &self, token_in: &Address, amount_in: &U256, recipient: &Address, )
src/uniswap.rs:282
↓ 2 callersMethodsign
Signs and returns transaction.
src/utilities.rs:156
↓ 2 callersFunctionto_gwei
Convert a U256 of wei to a
src/utilities.rs:39
↓ 2 callersFunctionu256_bigint
Convert a U256 to a BigInt
src/utilities.rs:20
↓ 1 callersMethodbest_ask_market
Return the best market to buy from, given an origin in the token pair
src/markets.rs:143
↓ 1 callersMethodbest_bid_market
TODO(Handle what clippy says here around a boxed reference) Return the best market to sell to, given an origin in the token pair
src/markets.rs:123
↓ 1 callersMethoddelta_contracts
(&self)
src/uniswap.rs:258
↓ 1 callersMethodencode_parameters
This should take the multicall header and a vector of calls
src/evm.rs:110
↓ 1 callersMethodevaluate_markets
( &self, markets: &'a MarketGraph, )
src/arbitrage.rs:205
↓ 1 callersMethodgenerate
( &self, markets: &MarketGraph, transport: &Web3<WebSocket>, account: &Address
src/arbitrage.rs:380
↓ 1 callersFunctiongenerate_contract_transaction
Estimates gas, generates metadata and returns metadata and transaction parameters
src/utilities.rs:73
↓ 1 callersFunctionloop_blocks
(run_data: &mut RunData)
src/lib.rs:268
↓ 1 callersMethodmarket_address
(&self)
src/uniswap.rs:254
↓ 1 callersMethodmarket_count
(&self)
src/markets.rs:171
↓ 1 callersMethodminer_payment
(&self)
src/flashbots.rs:92
↓ 1 callersFunctionnonce
Get the present nonce for an address
src/utilities.rs:47
↓ 1 callersMethodoptimize_volume
Optimize order volume for profit
src/arbitrage.rs:53
↓ 1 callersFunctionprint_startup
Display startup message
src/lib.rs:321
↓ 1 callersFunctionrun
(config: &Config)
src/lib.rs:331
↓ 1 callersMethodscore
Return the bundle score
src/flashbots.rs:87
↓ 1 callersFunctionsearch
TODO(Break down this function further)
src/lib.rs:144
↓ 1 callersMethodsign_transactions
( self, transport: &Web3<WebSocket>, transactions: &mut Vec<utilities::Transaction>,
src/wallet.rs:36
↓ 1 callersMethodtake_crossed_market
( &self, crossed_market: &CrossedMarketDetails<'_, T>, account: &Address, ape_
src/arbitrage.rs:265
↓ 1 callersMethodto_first_market
(&self, token_address: &Address, amount: &U256)
src/uniswap.rs:339
↓ 1 callersMethodupdate_all
Update all markets
src/markets.rs:313
↓ 1 callersMethodupdate_delta
Update markets based on the state block logs
src/markets.rs:276
↓ 1 callersMethodupdate_exchange_rate
(&mut self)
src/compound.rs:43
Functionconstruct_wallet
()
src/wallet.rs:60
Functionconstruct_wallet_invalid
()
src/wallet.rs:75
Methoddelta_contracts
(&self)
src/compound.rs:71
Methoddelta_contracts
(&self)
src/weth_token.rs:47
Methodencode
(&self)
src/evm.rs:83
Methodfmt
(&self, f: &mut fmt::Formatter)
src/arbitrage.rs:163
Methodfmt
(&self, f: &mut fmt::Formatter)
src/markets.rs:39
Methodget_all_markets
(transport: &Web3<WebSocket>)
src/uniswap.rs:230
Methodget_amount_in
(reserve_in: &U256, reserve_out: &U256, amount_out: &U256)
src/uniswap.rs:96
Methodget_amount_out
(reserve_in: &U256, reserve_out: &U256, amount_in: &U256)
src/uniswap.rs:109
Methodget_price_wei
Uses Uniswap v2 getAmountsOut to get the price in weth of a token.
src/uniswap.rs:40
Methodget_prices
(transport: &Web3<WebSocket>)
src/gas.rs:16
Methodget_tokens_in
(&self, token_in: &Address, token_out: &Address, amount_out: &U256)
src/compound.rs:97
Methodget_tokens_in
(&self, _token_in: &Address, _token_out: &Address, amount_out: &U256)
src/weth_token.rs:65
Methodget_tokens_out
These functions are essentially inverse operations
src/compound.rs:85
Methodget_tokens_out
(&self, _token_in: &Address, _token_out: &Address, amount_in: &U256)
src/weth_token.rs:60
Methodget_uniswappy_markets
Return a list of all weth market pairs for a given uniswap v2 factory address
src/uniswap.rs:176
Methodget_uniswappy_markets_batch
( transport: &Web3<WebSocket>, query_interface: &Contract<WebSocket>, factory_address:
src/uniswap.rs:120
Functionmain
()
src/main.rs:7
Methodmarket_address
(&self)
src/compound.rs:67
Methodmarket_address
(&self)
src/weth_token.rs:43
Methodminer_reward_percentage
(&self)
src/compound.rs:80
Methodminer_reward_percentage
(&self)
src/weth_token.rs:56
Methodnew
( origin_token: Address, intermediary_token: Address, bid_market: &'a T, ask_m
src/arbitrage.rs:34
Methodnew
(transport: &web3::Web3<WebSocket>)
src/sushiswap.rs:15
Methodnew
()
src/markets.rs:117
Methodnew
(transport: &Web3<WebSocket>)
src/gas.rs:55
Methodnew
()
src/lib.rs:41
Methodnew
(transport: &Web3<WebSocket>)
src/compound.rs:25
Methodnew
(private_key: &str)
src/wallet.rs:20
Methodnew
( target: Address, method: Vec<u8>, call_type: Type, value: Option<U256>,
src/evm.rs:34
Methodnew
(address: Address, transport: &web3::Web3<WebSocket>)
src/uniswap.rs:29
Methodnew
(transport: &Web3<WebSocket>)
src/weth_token.rs:23
Methodpending_reward_balance
(&self, pid: U256, address: Address)
src/sushiswap.rs:27
Methodprepare_receive
(&self, _token_address: &Address)
src/compound.rs:179
Methodprepare_receive
This is a noop for Uniswap V2
src/uniswap.rs:364
Methodprepare_receive
(&self, _token_address: &Address)
src/weth_token.rs:140
Methodprotocol
(&self)
src/compound.rs:76
Methodprotocol
(&self)
src/uniswap.rs:262
Methodprotocol
(&self)
src/weth_token.rs:52
Methodreceive_directly
(&self, _token_address: &Address)
src/compound.rs:165
Methodreceive_directly
(&self, token_address: &Address)
src/uniswap.rs:335
Methodreceive_directly
(&self, _token_address: &Address)
src/weth_token.rs:127
Methodsell_tokens
( &self, token_in: &Address, amount_in: &U256, _recipient: &Address, )
src/compound.rs:109
Methodsell_tokens
( &self, token_in: &Address, amount_in: &U256, _recipient: &Address, )
src/weth_token.rs:70
Functionsign_body
(body: &str, private_key: &SecretKey)
src/flashbots.rs:29
Functionsushi_balance
( sushi: &Contract<WebSocket>, public_key: Address, block_number: U64, )
src/utilities.rs:55
Methodtaken_profit
(&self)
src/flashbots.rs:78
Functionto_ether
Convert a U256 of wei to an ether BigDecimal
src/utilities.rs:32
Methodto_first_market
TODO(These could be implemented to allow management of funds in another contract or EOA)
src/compound.rs:171
Methodto_first_market
TODO(These could be implemented to allow management of funds in another contract or EOA)
src/weth_token.rs:132
Methodtokens
(&self)
src/compound.rs:63
Methodtokens
(&self)
src/weth_token.rs:39
Methodtotal_market_count
(&self)
src/markets.rs:271
Methodupdate
(&mut self)
src/compound.rs:161
Methodupdate
(&mut self)
src/uniswap.rs:319
Methodupdate
(&mut self)
src/weth_token.rs:123