Socket
Book a DemoInstallSign in
Socket

@nftchance/mev

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nftchance/mev

A MEV bot engine designed specifically for individuals that need high data stream throughput paired with the ability to craft new strategies in as few lines of code possible.

latest
npmnpm
Version
0.0.16
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

🥵 MEV

A Typescript-based "process-parallel" MEV bot that has been evolved throughout the years. What this means, is that instead of creating new scripts and collectors for each of your strategies you can simply reuse the streams of data that already exist. Instead of needing a new block collector for every single strategy you run within the EVM ecosystem you can simply reuse a constant feed from one RPC endpoint. By doing this your RPC interactions remain far more managable and you are less limited by scale and throughput.

Installation image

Inspired by Artemis, the key pieces of this engine can be broken down into:

  • Collectors: Streams of data that consume and forward onchain and offchain events/triggers.
  • Executors: Actions taken when an event is received.
  • Strategies: Organization of Collectors and Executors to form a single-lane outcome.

Getting Started

[!NOTE] When using the bot you will want to create a playground that contains all the individual pieces of your strategies, this repository contains the core engine that is needed to get you up and running. There are no default strategies included at this time. However, you can see an example of implementation at src/core/strategies/block.log.ts.

To get started, we will use pnpm to install the dependencies and run the bot.

First, install the dependencies:

pnpm install

If you are starting a new bot or do not have a configuration to import, you can run the following command to generate a new configuration file:

pnpm mev init

As your strategies become more complex you will need local interfaces to the contracts that you interact with. To do so, simply run:

pnpm mev references

By running mev init a configuration with a base example has been generated at mev.config.ts folder of your project root. Just like that, you are up and running. Of course, if there was no configuration to run a money-making bot that would be awesome, wouldn't it? That is not the case here.

With a passing test suite, you are cleared to enable the bot and let it run. With all the effort leading up to here, just run:

pnpm mev start

FAQs

Package last updated on 01 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts