Skip to content

MidEvils/floor-swap

Repository files navigation

Floor Swap

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.

Project setup

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 install

FloorSwap program

You'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:lint

Generating IDLs

You may use the following command to generate an IDL for the program.

pnpm generate:idls

Generating clients

Once the IDL has been generated, you can generate a client for it using the following command.

pnpm generate:clients

Alternatively, you can use the generate script to generate both the IDL and the client at once.

pnpm generate

Managing clients

The following clients are available. You can use the following link to learn more.

Starting and stopping the local validator

The following script is available to start your local validator.

pnpm validator:start

By 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:restart

Finally, you may stop the local validator using the following command.

pnpm validator:stop

About

An app for swapping floors

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors