Skip to content

Commit cbb1793

Browse files
committed
Initial commit - Copy Abacus Nft app
0 parents  commit cbb1793

File tree

122 files changed

+21150
-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.

122 files changed

+21150
-0
lines changed

.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
dist
3+
build
4+
coverage
5+
src/types
6+
hardhat.config.ts
7+
next.config.js
8+
tailwind.config.js

.eslintrc

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"browser": true,
5+
"es2021": true
6+
},
7+
"root": true,
8+
"parser": "@typescript-eslint/parser",
9+
"parserOptions": {
10+
"ecmaVersion": 12,
11+
"sourceType": "module",
12+
"project": "./tsconfig.json"
13+
},
14+
"plugins": ["@typescript-eslint"],
15+
"extends": [
16+
"eslint:recommended",
17+
"plugin:@typescript-eslint/recommended",
18+
"next",
19+
"next/core-web-vitals",
20+
"prettier"
21+
],
22+
"rules": {
23+
"no-console": ["warn"],
24+
"no-eval": ["error"],
25+
"no-ex-assign": ["error"],
26+
"no-constant-condition": ["off"],
27+
"@typescript-eslint/ban-ts-comment": ["off"],
28+
"@typescript-eslint/explicit-module-boundary-types": ["off"],
29+
"@typescript-eslint/no-explicit-any": ["off"],
30+
"@typescript-eslint/no-floating-promises": ["error"],
31+
"@typescript-eslint/no-non-null-assertion": ["off"],
32+
"@typescript-eslint/no-require-imports": ["warn"]
33+
}
34+
}

.github/workflows/ci.yml

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: ci
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main branch
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
install:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/cache@v2
19+
with:
20+
path: .//node_modules
21+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
22+
23+
- name: yarn-install
24+
# Check out the lockfile from main, reinstall, and then
25+
# verify the lockfile matches what was committed.
26+
run: |
27+
yarn install
28+
CHANGES=$(git status -s)
29+
if [[ ! -z $CHANGES ]]; then
30+
echo "Changes found: $CHANGES"
31+
git diff
32+
exit 1
33+
fi
34+
35+
build:
36+
runs-on: ubuntu-latest
37+
needs: [install]
38+
steps:
39+
- uses: actions/checkout@v2
40+
41+
- name: yarn-cache
42+
uses: actions/cache@v2
43+
with:
44+
path: .//node_modules
45+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
46+
47+
- name: build-cache
48+
uses: actions/cache@v2
49+
with:
50+
path: ./*
51+
key: ${{ github.sha }}
52+
53+
- name: build
54+
run: yarn run build
55+
56+
prettier:
57+
runs-on: ubuntu-latest
58+
needs: [install]
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: actions/cache@v2
62+
with:
63+
path: .//node_modules
64+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
65+
66+
- name: prettier
67+
run: |
68+
yarn run prettier
69+
CHANGES=$(git status -s)
70+
if [[ ! -z $CHANGES ]]; then
71+
echo "Changes found: $CHANGES"
72+
exit 1
73+
fi
74+
75+
lint:
76+
runs-on: ubuntu-latest
77+
needs: [install]
78+
steps:
79+
- uses: actions/checkout@v2
80+
- uses: actions/cache@v2
81+
with:
82+
path: .//node_modules
83+
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
84+
85+
- name: lint
86+
run: yarn run lint
87+
88+
test:
89+
runs-on: ubuntu-latest
90+
needs: [build]
91+
steps:
92+
- uses: actions/checkout@v2
93+
- uses: actions/cache@v2
94+
with:
95+
path: ./*
96+
key: ${{ github.sha }}
97+
98+
- name: test
99+
run: yarn run test

.gitignore

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# dependencies
2+
/node_modules
3+
/.pnp
4+
.pnp.js
5+
cache/
6+
.yarn/install-state.gz
7+
8+
# testing
9+
/coverage
10+
coverage.json
11+
/test/outputs
12+
13+
# next.js
14+
/.next/
15+
/out/
16+
17+
# production
18+
/src/types/
19+
/src/deploy/output
20+
/artifacts
21+
/build
22+
/dist
23+
24+
# misc
25+
.DS_Store
26+
*.pem
27+
28+
# debug
29+
npm-debug.log*
30+
yarn-debug.log*
31+
yarn-error.log*
32+
.pnpm-debug.log*
33+
34+
# local env files
35+
.env*.local
36+
37+
# vercel
38+
.vercel
39+
40+
# typescript
41+
*.tsbuildinfo

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src/types
2+
test/outputs
3+
public

.prettierrc

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"tabWidth": 2,
3+
"singleQuote": true,
4+
"trailingComma": "all",
5+
"overrides": [
6+
{
7+
"files": "*.sol",
8+
"options": {
9+
"printWidth": 80,
10+
"tabWidth": 4,
11+
"useTabs": false,
12+
"singleQuote": false,
13+
"bracketSpacing": false,
14+
"explicitTypes": "always"
15+
}
16+
}
17+
],
18+
"importOrder": ["^@abacus-network/(.*)$", "^../(.*)$", "^./(.*)$"],
19+
"importOrderSeparation": true,
20+
"importOrderSortSpecifiers": true
21+
}

.solcover.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
skipFiles: ['test'],
3+
};

.solhint.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "solhint:recommended",
3+
"rules": {
4+
"compiler-version": ["error", ">=0.6.0"],
5+
"func-visibility": ["warn", {"ignoreConstructors":true}],
6+
"not-rely-on-time": "off"
7+
}
8+
}

.vscode/settings.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"search.exclude": {
3+
"**/node_modules": false
4+
},
5+
"files.exclude": {
6+
"**/*.js.map": true,
7+
"**/*.js": {"when": "$(basename).ts"},
8+
"**/*.map": {"when": "$(basename).map"},
9+
"**/dist": true,
10+
},
11+
"files.watcherExclude": {
12+
"**/.git/objects/**": true,
13+
"**/.git/subtree-cache/**": true,
14+
"**/node_modules/*/**": true
15+
},
16+
"typescript.updateImportsOnFileMove.enabled": "always",
17+
"[typescript]": {
18+
"editor.formatOnSave": true,
19+
"editor.codeActionsOnSave": {
20+
"source.organizeImports": true
21+
},
22+
"editor.defaultFormatter": "esbenp.prettier-vscode"
23+
},
24+
"[typescriptreact]": {
25+
"editor.formatOnSave": true,
26+
"editor.codeActionsOnSave": {
27+
"source.organizeImports": true
28+
},
29+
"editor.defaultFormatter": "esbenp.prettier-vscode"
30+
},
31+
"[html]": {
32+
"editor.defaultFormatter": "esbenp.prettier-vscode"
33+
},
34+
"[css]": {
35+
"editor.defaultFormatter": "esbenp.prettier-vscode"
36+
},
37+
"[json]": {
38+
"editor.defaultFormatter": "esbenp.prettier-vscode"
39+
},
40+
"editor.tabSize": 2,
41+
"editor.detectIndentation": false,
42+
}

.yarn/releases/yarn-3.2.0.cjs

+785
Large diffs are not rendered by default.

.yarnrc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-3.2.0.cjs

0 commit comments

Comments
 (0)