Skip to content

Commit 54fc07f

Browse files
authored
Initial commit
0 parents  commit 54fc07f

File tree

775 files changed

+76094
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

775 files changed

+76094
-0
lines changed

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.env.example

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
2+
# Public Variables
3+
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
4+
# Public Provider(s) - Useful for testing
5+
NEXT_PUBLIC_USE_PUBLIC_PROVIDER=true
6+
7+
# Alchemy: https://www.alchemy.com
8+
NEXT_PUBLIC_ALCHEMY_API_KEY=
9+
10+
# Infura: https://www.infura.io
11+
NEXT_PUBLIC_INFURA_API_KEY=
12+
13+
# Enables the use of production networks in the development environment
14+
NEXT_PUBLIC_PROD_NETWORKS_DEV=false
15+
16+
# Livepeer: https://livepeer.com
17+
NEXT_PUBLIC_LIVEPEER_API_KEY=
18+
19+
# Website URL
20+
NEXT_PUBLIC_SITE_URL=
21+
22+
# WalletConnect Project: https://cloud.walletconnect.com/
23+
NEXT_PUBLIC_WC_PROJECT_ID=
24+
25+
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
26+
# Private Variables
27+
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
28+
# Generate one here: https://generate-secret.vercel.app/32
29+
NEXTAUTH_SECRET=
30+
31+
# Prisma: https://www.prisma.io
32+
DATABASE_URL=
33+
34+
# Users to be added as admins. Separate with commas. Can access the application database
35+
# Example: "0x123,0x456"
36+
APP_ADMINS=""
37+
38+
# Disco: https://docs.disco.xyz
39+
# Request API access at https://discoxyz.typeform.com/requestapi
40+
DISCO_API_KEY=
41+
42+
# Etherscan: https://docs.etherscan.io
43+
ETHERSCAN_API_KEY=
44+
ETHERSCAN_API_KEY_OPTIMISM=
45+
ETHERSCAN_API_KEY_ARBITRUM=
46+
ETHERSCAN_API_KEY_POLYGON=
47+
48+
# OpenAI API Key: https://platform.openai.com/account/api-keys
49+
OPENAI_API_KEY=
50+
51+
# Moralis API Key: https://admin.moralis.io/settings#secret-keys
52+
MORALIS_API_KEY=
53+
54+
# Gitcoin Passport Scorer ID and API key: https://scorer.gitcoin.co/#/dashboard/scorer
55+
GITCOIN_PASSPORT_SCORER_ID=
56+
GITCOIN_PASSPORT_API_KEY=

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/generated/**-wagmi.ts
2+
**/generated/blockchain.ts
3+
**/components/shared/table/**
4+
**/generated
5+
.next/**
6+
tailwind.config.js

.eslintrc.cjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
root: true,
4+
extends: [
5+
"next/core-web-vitals",
6+
"eslint:recommended",
7+
"prettier",
8+
"plugin:tailwindcss/recommended",
9+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
10+
],
11+
plugins: ["@typescript-eslint", "tailwindcss"],
12+
parser: "@typescript-eslint/parser",
13+
parserOptions: {
14+
project: "./tsconfig.json",
15+
tsconfigRootDir: __dirname,
16+
},
17+
rules: {
18+
"@next/next/no-html-link-for-pages": "off",
19+
"@next/next/no-img-element": "off", // We currently not using next/image because it isn't supported with SSG mode
20+
"react-hooks/exhaustive-deps": "off", // Incorrectly report needed dependency with Next.js router
21+
"tailwindcss/no-custom-classname": "error",
22+
"tailwindcss/classnames-order": "error",
23+
"@typescript-eslint/no-misused-promises": "off",
24+
"@typescript-eslint/no-unsafe-assignment": "off",
25+
"@typescript-eslint/no-unsafe-member-access": "off",
26+
"@typescript-eslint/no-unsafe-argument": "off",
27+
"no-unused-vars": "off",
28+
},
29+
settings: {
30+
tailwindcss: {
31+
callees: ["cn"],
32+
config: "tailwind.config.js",
33+
},
34+
next: {
35+
rootDir: true,
36+
},
37+
},
38+
}

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- integrations
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version-file: ".nvmrc"
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v2
24+
id: pnpm-install
25+
with:
26+
version: 7
27+
run_install: false
28+
29+
- name: Get pnpm store directory
30+
id: pnpm-cache
31+
shell: bash
32+
run: |
33+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
34+
35+
- name: Setup pnpm cache
36+
uses: actions/cache@v3
37+
with:
38+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
39+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
40+
restore-keys: |
41+
${{ runner.os }}-pnpm-store-
42+
43+
- name: Install dependencies
44+
run: pnpm install --frozen-lockfile
45+
46+
- name: Check formatting and linting
47+
run: pnpm run-ci

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# turborepo
9+
.turbo
10+
11+
# testing
12+
/coverage
13+
14+
# next.js
15+
/.next/
16+
/out/
17+
18+
# production
19+
/build
20+
21+
# misc
22+
.DS_Store
23+
*.pem
24+
25+
# debug
26+
npm-debug.log*
27+
yarn-debug.log*
28+
yarn-error.log*
29+
.pnpm-debug.log*
30+
31+
# local env files
32+
.env
33+
.env*.local
34+
.env*.prd
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# npm run lint

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.16.0

0 commit comments

Comments
 (0)