Skip to content

SwaprHQ/stackly

Repository files navigation

COW Dollar Cost Averaging (DCA) Monorepo

What's inside?

This turborepo uses pnpm as a package manager. It includes the following packages/apps:

Apps and Packages

  • contracts: smart contracts developed with Solidity and Foundry
  • eslint-config-custom: eslint configurations (includes eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo
  • app: the main app for the DCA

Each package/app is 100% TypeScript.

Getting Started

Install pnpm if not installed. Clone the monorepo:

git clone [email protected]:ImpeccableHQ/stackly.git

Generate contracts before building the SDK

cd packages/sdk
pnpm run typechain

Then go to the root folder of the monorepo and build the SDK

cd ../..
pnpm run build --filter=dca-sdk

Then run the CRA

cd packages/app
pnpm run start

Get an API key from https://www.alchemy.com/ and add an .env file under app with your API key.

REACT_APP_ALCHEMY_KEY="your_key"