Skip to content

Contrak helps developer teams track and prove ownership of their smart contracts

Notifications You must be signed in to change notification settings

NikitaVr/contrak

Repository files navigation

Contrak

Contrak is a dead-simple tool to keep track of your smart contract deployments and keep your docs up-to-date.

CI

CleanShot 2023-11-13 at 18 36 16@2x

🚀 Getting Started

Deploying Contrak

Deploy on Railway

  1. Click the "Deploy on Railway" button above
  2. Fill in the environment variables:
Variable Description
NEXT_PUBLIC_SITE_URL Set this to https://${{RAILWAY_PUBLIC_DOMAIN}}/
DATABASE_URL Set this to ${{RAILWAY_VOLUME_MOUNT_PATH}}/data.db
  1. Click "Deploy"

👷 Contributing

Setup

  1. Install Node 18 and Yarn
  2. Run cp .env.example .env and fill in any missing environment variables
  3. Run yarn install
  4. Run yarn db:push to generate the database
  5. Run yarn build:sdk to build the SDK package
  6. Run yarn dev:web to start the web server
  7. Run yarn dev:cli to run the CLI to deploy a contract

Directory Structure

  • web: Contains the Next.js web app for Contrak
  • cli: Contains a Node.js CLI for interacting with Contrak
  • packages/db: Contains the database schema using Drizzle ORM
  • packages/rest: Contains the REST API client for Contrak
  • packages/sdk: Contains the TypeScript SDK for Contrak
  • packages/utils: Contains utility functions used across the project

About

Contrak helps developer teams track and prove ownership of their smart contracts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published