Skip to content

LimeChain/runes-marketplace

Repository files navigation

Runes Marketplace using OP_CAT

Marketplace for trading Rune tokens using covenants to allow for partial filling of sell orders.

The specification is here

Requirements

  • node >=v22.13.0
  • make
  • jq
  • docker

Build

Create .env file

Tip

You can use the .env.example

Start the infrastructure

cd infrastructure
./setup_ord.sh && make keep-mining SEC=20

Warning

The script works on macOS. If you're using a different OS, change the ord directory in setup_ord.sh based on this table

Compile the contracts

cd contracts
npx scrypt-cli@latest compile -i "src/contracts/sellOrder.ts" --asm

Test the contract

NETWORK=regtest npx mocha --no-config --require ts-node/register tests/sellOrder.test.ts

Move contract to frontend

Contract files should be automatically linked in the frontend. If they aren't, copy sellOrder.ts, sigHashUtils.ts and opmul.ts from contracts/src/contracts and sellOrder.json from contracts/artifacts to frontend/contracts

Run the backend

cd backend
npm run start

Run the frontend

cd frontend
npm run dev

Marketplace Implementation

Marketplace Homepage Marketplace Homepage

Create Sell Order Create Sell Order Dialog

Buy Listing Buy Listing Dialog

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published