This is a monorepo for the MidEvils FloorSwap app. The apps folder contains the Solana program code (Shank), a React-Router v7 client, and a Cloudflare Workers API.
The first thing you'll want to do is install NPM dependencies which will allow you to access all the scripts and tools provided by this repo.
pnpm installYou'll notice a program folder in the root of this repository. This is where the Solana program is located.
pnpm programs:build
pnpm programs:test
pnpm programs:format
pnpm programs:lintYou may use the following command to generate an IDL for the program.
pnpm generate:idlsOnce the IDL has been generated, you can generate a client for it using the following command.
pnpm generate:clientsAlternatively, you can use the generate script to generate both the IDL and the client at once.
pnpm generateThe following clients are available. You can use the following link to learn more.
The following script is available to start your local validator.
pnpm validator:startBy default, if a local validator is already running, the script will be skipped. You may use the validator:restart script instead to force the validator to restart.
pnpm validator:restartFinally, you may stop the local validator using the following command.
pnpm validator:stop