This repository contains the OxTitans(based on the original 0xMonaco) developed by Matchbox-DAO.
For the platform please visit
To use this project, you need to have Node (>=14) and Foundry installed. You can find instructions on how to install it at https://book.getfoundry.sh/getting-started/installation.
To set up the project, follow these steps:
-
Clone the repository:
git clone https://github.com/Matchbox-DAO/0xTitans-Public.git
-
Install dependencies:
forge install
-
Install node modules:
yarn install
-
Add a
logs
folder to the root of the project. -
Run tests:
forge test
-
Make sure all tests passed
To test your strategies, follow these steps:
-
Go to
test/Monaco.t.sol
-
Import your car strategy contract.
-
Go to
testGames()
on line 50. -
Add strategies as
w1
,w2
, andw3
. -
Add a
logs
folder to the root of the project (if not done yet). -
Run the command
forge test
to execute the tests. -
Check the logs for any errors or issues, as well as the full simulation of the race and any additional data.
All car strategies should be based on the ICar
interface. You can check the src/samples
directory to get a better idea of different car strategies. We've added a few successful cars from previous editions, so feel free to test your car against them. You can test your car against the previous finalists, including Polygon, Uniswap, and OtterSec.
However, note that these cars have been created for different versions of the game contract and might be less effective for the current version
In the platform, you won't submit the actual source code but only the bytecode of it. In order to produce bytecode of your car contract, run the command:
forge inspect <contract name> b
By following these steps, you should be able to create and test your car strategy for the OxTitans project.