Read rust code

Job ID: 36310000

Budget: $30 – $250 USD

I am looking for an experienced programmer to read Rust code for a project I am working on.

Moonbeam is a smart contract platform designed to be an Ethereum-compatible parachain on the Polkadot network: https://github.com/PureStake/moonbeam

Substrate is a modular, extensible, and open-source blockchain framework developed by Parity Technologies: https://github.com/PureStake/substrate

Moonbeam builds on Substrate for its network and transaction gossiping.

I build automated arbitrage trading bots. I want to find the point in the code where the first signal of a new transaction is received. I suspect this is in the substrate package under networking. At first contact, it could be a stream of bytes, which may or may not be sufficient. I need the find the point in the code where the first Ethereum-like transaction object is constructed out of these streams of bytes, and perhaps after duplicate checks are completed.

I would also like your recommendation on where/how to best channel this transaction struct to a separate thread, where I will be running a WebSocket server for broadcasting the transaction to my trading bots.

So to reiterate, your task is not to code, but to understand a part of the code and make a recommendation that clearly leads to such information that is a transaction struct.

If you are not familiar with Ethereum transaction structs, you can look at them here: https://github.com/rust-blockchain/ethereum/blob/master/src/transaction.rs

LegacyTransaction and EIP1559Transaction are the most commonly used. But we dont have to go that deep.

I also do Rust programming, but found reading this code to be above my skill level.
Related categories: Rust RUST Programming