Install dependencies

You’ll need these installed to start building:

  • Docker — runs MongoDB, the server, and the frontend app locally

  • Foundry — compiles and deploys the Solidity contracts; also provides Anvil, the local blockchain

curl -L https://foundry.paradigm.xyz | bash
  • MongoDB Compass — GUI for inspecting the database during development

  • Node.js — required to run the server and app

  • Postman — for sending API requests during the walkthrough (curl works too)

  • pnpm — the package manager used throughout this project

Pull the repo

This will include the OCF and Foundry repos as submodules.

git clone --recurse-submodules https://github.com/transfer-agent-protocol/tap-cap-table.git

Then install workspace dependencies:

pnpm install

Learn the structure

Everything you need to develop your onchain smart contracts lives under the chain folder in the repo.

        • ICapTable.sol
        • ICapTableFactory.sol
        • DeleteContext.sol
        • Stock.sol
        • Structs.sol
        • TxHelper.sol
      • CapTable.sol
      • CapTableFactory.sol