Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ CONTRACT_ADDRESS=0x0000000000000000000000000000000000000000
COMMENTS_PORT=8787
COMMENTS_DB_PATH=data/comments.json
API_DB_PATH=data/darkonnet-api.json
# Optional. Defaults to supabase when Supabase credentials are present; set to json to force local file storage.
API_STORE=json
SUPABASE_URL=
SUPABASE_SERVICE_ROLE_KEY=
MARKET_METADATA_API_URL=http://127.0.0.1:8787
API_AUTH_REQUIRED=true
# Comma-separated wallets allowed to accept, decline, resolve, or write oracle/admin market metadata.
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

permissions: {}

on:
push:
pull_request:
workflow_dispatch:

jobs:
check:
name: Foundry project
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: v1.4.4

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm

- name: Install Node dependencies
run: npm ci

- name: Show Forge version
run: forge --version

- name: Run backend smoke tests
run: npm run test:backend

- name: Run Forge fmt
run: forge fmt --check

- name: Run Forge build
run: forge build --sizes

- name: Run Forge tests
run: forge test -vvv
188 changes: 42 additions & 146 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,178 +1,68 @@
<<<<<<< HEAD
# Logs
logs
logs/
.logs/
*.log
*.err.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
pids/
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
# Build and cache output
cache/
out/
dist/
.output/
.cache/
.parcel-cache/
.next/
.nuxt/
.temp/
.vite/
.svelte-kit/
.docusaurus/
.nyc_output/
coverage/
*.lcov
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
# Package manager state
.npm/
.pnpm-store/
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*
.yarn-integrity

# dotenv environment variable files
=======
# Compiler files
cache/
out/

# Commonly ignored directories
.logs/
.ignore/
node_modules/
logs/
*.tgz

# Generated deployment artifacts and logs
broadcast/
*.log
*.err.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Local binaries
forge.exe

# Docs
docs/

# Dotenv file
>>>>>>> c42f364 (initial commit: DarkONNET backend, oracles, and smart contracts)
# Local secret/key material
.env
.env.*
!.env.example

<<<<<<< HEAD
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist
.output

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp directory
.temp

# Sveltekit cache directory
.svelte-kit/

# vitepress build output
**/.vitepress/dist

# vitepress cache directory
**/.vitepress/cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Firebase cache directory
.firebase/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# pnpm
.pnpm-store

# yarn v3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Vite files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vite/
=======
# Local secret/key material
*.key
*.pem
*.p12
Expand All @@ -191,11 +81,17 @@ wallets.json
# Local backend data
data/

# OS/IDE Specific Files
# OS/IDE files
.vscode/
.DS_Store

# Temporary Test Scripts
# Scratch scripts
test-*.js

>>>>>>> c42f364 (initial commit: DarkONNET backend, oracles, and smart contracts)
# Unused vendored monorepo/dependencies. Keep the small build-critical Solidity packages under
# lib/forge-fhevm/dependencies tracked when committing Foundry support.
lib/fhevm/
lib/forge-fhevm/docs/
lib/forge-fhevm/dependencies/@openzeppelin-confidential-contracts-6edd293/
lib/forge-fhevm/dependencies/@openzeppelin-contracts-upgradeable-5.1.0/
lib/forge-fhevm/dependencies/forge-std-1.14.0/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
Loading