Skip to content

Bringing community and environmental actions onchain to better measure, track and reward impact on local communities with a simple PWA.

License

Notifications You must be signed in to change notification settings

greenpill-dev-guild/green-goods

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Green Goods

Green Goods is an offline-first, single-chain platform for documenting conservation work and proving impact on-chain. Operators approve gardener submissions, and the protocol anchors the results in Ethereum attestation infrastructure.

Quick Start

git clone https://github.com/your-org/green-goods.git
cd green-goods
bun install

cp .env.example .env          # All packages share the root env file
vi .env                       # Populate keys (Base Sepolia is the default chain: 84532)

bun dev                       # Starts client, admin, indexer via pm2

Useful follow-ups:

  • bun dev:stop — stop the pm2 services
  • bun exec pm2 logs <service> — stream logs for client, admin, or indexer

Common Commands

# Format, lint, test across the workspace
bun format && bun lint && bun test

# Build everything or target a package
bun build
bun --filter client build

# Contracts: compile, test, deploy through the wrappers
bun --filter contracts build
bun --filter contracts test
bun --filter contracts deploy:testnet    # runs deploy.js with the correct profile

Scripts live in package.json; contract-specific flows are described in the Contracts Handbook.

Documentation

Package-specific READMEs:

  • packages/client/README.md — offline-first PWA
  • packages/admin/README.md — operator dashboard
  • packages/indexer/README.md — Envio indexer
  • packages/contracts/README.md — foundry project layout and scripts

Contributing

  • Stick to conventional commits (feat(client): …)
  • Run bun format && bun lint && bun test before opening PRs
  • Keep environment-only secrets in the root .env and never add package-level .env files

For more project background, automation guidelines, and tooling policies see AGENTS.md and the package-specific agent guides.

Languages

  • TypeScript 64.7%
  • Solidity 20.4%
  • JavaScript 10.8%
  • CSS 3.3%
  • Other 0.8%