Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.54 KB

run-mantis-blackbox-and-solver.md

File metadata and controls

20 lines (13 loc) · 1.54 KB

In order to be a MANTRIS Solver, one must call the MANTIS Order Contract.

Here are the provided instructions on how to run an example solver that calls the Order contract.

The example Solver consists of two services:

  1. First service is the MANTIS Blackbox.

    • Blackbox finds optimal cross-chain routes using CVM GLT and external Oracle data.
    • It can be run using this script. Blackbox is written in Python and can be configured via environment variables, including HTTP APIs, RPC endpoints, and contract addresses.
    • Blackbox does not issue transactions on-chain; however, it relies on calling third-party services, which may incur costs.
  2. To run the Solver service, use the following script.

    • You must configure it via command line or environment variables with your own private key and PICA to pay gas to the Order contract.
    • The router variable must point to the HTTP host of Blackbox.

After you run these two services, you are effectively a Solver.

All scripts have been tested on Linux, which is the recommended system for operating as a solver.

A deeper technical dive into the solver infrastructure is available here.