Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit 4a8ab05

Browse files
#90/next js (#91)
* #90 created next init app * #90 moving files around * #90 moved mnemonics and css * #90 trying to fix eslint error * #90 fixed lint errors * #90 updated readme and .env * #90 moving components to common. changed tsconfig etc. vite is building * #90 some yarn changes * #90 updating locations, fighthign type issues * #90 updating locations, fighthign type issues * #90 some yarn changes * #90 some yarn changes * #90 ignore config.json * #90 moved more packages and fixed issues with tsconfig and visual code * #90 moved more packages and fixed issues with tsconfig and visual code * #90 fixing issues with contract context. needs to be in the same workspace * #90 fixing burner * #90 fix config * #90 updated packages for parse fix, added syncpack, fixed faucet button * #90 got vite app to work. managed packages * #90 updated packages * #90 updated packages for nextjs. started filling out next js components, env and ant styles * #90 fixes for env and other package issues * #90 fixed issues cjs to esm in packages. also fixed window issues in nextjs * #90 update next js errors, fixed eth-hooks eth-components libraries to emit cjs and esm. * #90 moved common components. removed react-router form nextjs * #90 nextjs beta is now working! * #90 nextjs beta is now working! * #90 updated github actions * #90 nextjs beta is now working! * #90 updated github actions * #90 updated github actions * #90 updated github actions * fixed github actions * fixed github actions * #90 updated packages * #90 updated commands * #90 updated commands * #90 fixes to react query and also some app.config issues in nextjs * #90 updated packges * #90 updated packges * fixed github actions * #90 updated github actions
1 parent fcc7daa commit 4a8ab05

File tree

141 files changed

+4617
-2574
lines changed

Some content is hidden

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

141 files changed

+4617
-2574
lines changed

.eslintignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ node_modules/
88
**/*.json
99
**/*.png
1010
**/*.svg
11-
generated/
11+
**/generated/**/*

.github/workflows/pull-request.yml

+28-24
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
32
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
43

54
name: Pull Request CI
65

76
on:
8-
workflow_dispatch:
7+
workflow_dispatch:
98
push:
109
branches: [release, next]
1110
pull_request:
@@ -26,7 +25,7 @@ jobs:
2625
uses: actions/setup-node@v2
2726
with:
2827
node-version: ${{ matrix.node-version }}
29-
- name: 'cache'
28+
- name: 'Load node modules from cache'
3029
uses: actions/cache@v2
3130
with:
3231
path: |
@@ -37,32 +36,37 @@ jobs:
3736
restore-keys: |
3837
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
3938
- run: yarn install --immutable
40-
41-
- name: 'test hardhat run compile'
39+
- name: 'Check hardhat compile'
4240
run: |
43-
yarn hardhat-ts compile --force
44-
45-
- name: 'build contracts'
41+
yarn w:hardhat compile --force
42+
43+
- name: 'Build contracts'
4644
run: |
47-
yarn shx cp ./packages/vite-app-ts/scripts/hardhat_contracts.json.bak ./packages/vite-app-ts/src/generated/hardhat_contracts.json
45+
yarn shx cp ./packages/common/scripts/hardhat_contracts.json.bak ./packages/common/src/generated/hardhat_contracts.json
4846
yarn contracts:build
4947
50-
- name: 'test hardhat tasks'
48+
- name: 'Check hardhat run tasks'
5149
run: |
5250
yarn hardhat
5351
54-
- name: 'build production'
52+
- name: 'Build vite production'
53+
run: |
54+
yarn run start:vite optimize --force
55+
yarn cross-env NODE_OPTIONS=--max_old_space_size=4096 yarn build:vite
56+
57+
- name: 'Build nextjs production'
5558
run: |
56-
yarn run start optimize --force
57-
yarn run build
58-
# - name: "run tests"
59-
# run: yarn test
60-
# - name: Publish Unit Test Results
61-
# uses: EnricoMi/publish-unit-test-result-action@v1
62-
# if: always()
63-
# with:
64-
# files: testresult.xml
65-
# comment_mode: update last
66-
# hide_comments: all but latest
67-
# compare_to_earlier_commit: true
68-
# check_run_annotations: all tests, skipped tests
59+
yarn cross-env NODE_OPTIONS=--max_old_space_size=4096 yarn build:nextjs
60+
61+
- name: 'Run tests'
62+
run: yarn test
63+
64+
- name: Publish unit test results
65+
uses: EnricoMi/publish-unit-test-result-action@v1
66+
if: always()
67+
with:
68+
files: testresult.xml
69+
comment_mode: update last
70+
hide_comments: all but latest
71+
compare_to_earlier_commit: true
72+
check_run_annotations: all tests, skipped tests

.gitignore

+19-9
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
33
**/node_modules
44

5-
packages/subgraph/config/config.json
6-
tenderly.yaml
7-
85
#build
96
*.tsbuildinfo
107
*.stackdump
@@ -21,16 +18,22 @@ packages/hardhat-ts/generated
2118
!packages/hardhat-ts/generated/.gitignore
2219
cache
2320
artifacts
21+
tenderly.yaml
2422

25-
# secrets
26-
.secret
23+
24+
# secrets / env
25+
**/.env.*.local
26+
**/*.secret
2727
**/aws.json
28-
packages/hardhat-ts/mnemonic.secret
28+
!packages/hardhat-ts/mnemonics/README.md
29+
**/mnemonics/*.secret
30+
**/mnemonics/*.txt
2931

3032
#subgraph
31-
packages/subgraph/subgraph.yaml
32-
packages/subgraph/generated
33-
packages/subgraph/abis/*
33+
packages/advanced/subgraph/config/config.json
34+
packages/advanced/subgraph/subgraph.yaml
35+
packages/advanced/subgraph/generated
36+
packages/advanced/subgraph/abis/*
3437

3538
# dependencies, yarn, etc
3639
/node_modules
@@ -60,4 +63,11 @@ yarn-error.log*
6063
.idea
6164

6265

66+
# vercel
67+
**/.vercel/**/*
68+
**/.next/**/*
69+
**/out/**/*
6370

71+
# misc
72+
.DS_Store
73+
*.pem

.prettierrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"singleQuote": true,
3+
"bracketSpacing": true,
4+
"trailingComma": "es5",
5+
"requirePragma": false,
6+
"arrowParens": "always",
7+
"bracketSameLine": true,
8+
"tabWidth": 2,
9+
"printWidth": 120,
10+
"endOfLine": "lf"
11+
}

.vscode/extensions.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"recommendations": [
3+
"hookyqr.beautify",
4+
"naumovs.color-highlight",
5+
"ms-azuretools.vscode-docker",
6+
"usernamehw.errorlens",
7+
"igorsbitnev.error-gutters",
8+
"spoonscen.es6-mocha-snippets",
9+
"dsznajder.es7-react-js-snippets",
10+
"dbaeumer.vscode-eslint",
11+
"tintinweb.vscode-ethover",
12+
"gimenete.github-linker",
13+
"oderwat.indent-rainbow",
14+
"sburg.vscode-javascript-booster",
15+
"esbenp.prettier-vscode",
16+
"christian-kohler.path-intellisense",
17+
"nomicfoundation.hardhat-solidity",
18+
"bradlc.vscode-tailwindcss",
19+
"tintinweb.solidity-visual-auditor",
20+
"tintinweb.vscode-solidity-language",
21+
"tintinweb.vscode-solidity-flattener",
22+
"infeng.vscode-react-typescript",
23+
"planbcoding.vscode-react-refactor",
24+
"tintinweb.graphviz-interactive-preview",
25+
"graphql.vscode-graphql",
26+
"natqe.reload",
27+
"EditorConfig.EditorConfig"
28+
]
29+
}

.vscode/launch.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Next.js: debug server-side",
6+
"type": "node-terminal",
7+
"request": "launch",
8+
"command": "yarn start:next",
9+
"sourceMapPathOverrides": {
10+
"webpack:///./*": "${workspaceRoot}/packages/nextjs-app-ts/*"
11+
}
12+
},
13+
{
14+
"name": "Next.js: debug client-side",
15+
"type": "pwa-chrome",
16+
"request": "launch",
17+
"url": "http://localhost:3000",
18+
"sourceMapPathOverrides": {
19+
"webpack:///./*": "${workspaceRoot}/packages/nextjs-app-ts/*"
20+
}
21+
},
22+
{
23+
"name": "Next.js: debug full stack",
24+
"type": "node-terminal",
25+
"request": "launch",
26+
"command": "yarn start:next",
27+
"console": "integratedTerminal",
28+
"serverReadyAction": {
29+
"pattern": "started server on .+, url: (https?://.+)",
30+
"uriFormat": "%s",
31+
"action": "debugWithChrome"
32+
},
33+
"sourceMapPathOverrides": {
34+
"webpack:///./*": "${workspaceRoot}/packages/nextjs-app-ts/*"
35+
}
36+
}
37+
]
38+
}

.vscode/settings.json

+63-62
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,64 @@
11
{
2-
"files.exclude": {
3-
"**/.git": true,
4-
"**/.svn": true,
5-
"**/.hg": true,
6-
"**/CVS": true,
7-
"**/.DS_Store": true,
8-
"**/Thumbs.db": true,
9-
"**/.cache": true,
10-
"**/.vs/": true,
11-
"**/*.cs": true,
12-
"**/*.orig": true,
13-
"**/bin/": true,
14-
"**/build/": true,
15-
"**/build/**/*": true,
16-
"**/debug/": true,
17-
"**/dist/": true,
18-
"**/obj": true,
19-
"yarn-error.log": true,
20-
"**/yarn-error.log": true,
21-
"**/.yalc": true
22-
},
23-
"search.exclude": {
24-
"**/.git": true,
25-
"**/.svn": true,
26-
"**/.hg": true,
27-
"**/CVS": true,
28-
"**/.DS_Store": true,
29-
"**/Thumbs.db": true,
30-
"**/.cache": true,
31-
"**/.vs/": true,
32-
"**/*.cs": true,
33-
"**/*.orig": true,
34-
"**/bin/": true,
35-
"**/build/": true,
36-
"**/build/**/*": true,
37-
"**/debug/": true,
38-
"**/dist/": true,
39-
"**/obj": true,
40-
"node_modules": true,
41-
"node_modules/*/**": true,
42-
"**/node_modules": true,
43-
"yarn-error.log": true,
44-
"**/yarn-error.log": true,
45-
"**/.yalc": true,
46-
"**/.yarn": true
47-
},
48-
"explorerExclude.backup": null,
49-
"eslint.workingDirectories": [
50-
51-
{ "directory": "packages/eth-hooks", "changeProcessCWD": true },
52-
{ "directory": "packages/hardhat-ts", "changeProcessCWD": true },
53-
{ "directory": "packages/vite-app-ts", "changeProcessCWD": true },
54-
],
55-
"solidity.packageDefaultDependenciesDirectory": "packages/hardhat-ts/node_modules",
56-
"editor.formatOnSave": true,
57-
"solidity.formatter": "prettier", // This is the default so it might be missing.
58-
"[solidity]": {
59-
"editor.defaultFormatter": "JuanBlanco.solidity"
60-
},
61-
"solidity.defaultCompiler": "localNodeModule",
62-
"mochaExplorer.configFile": "./packages/hardhat-ts/.mocharc.json",
63-
}
2+
"files.exclude": {
3+
"**/.git": true,
4+
"**/.svn": true,
5+
"**/.hg": true,
6+
"**/CVS": true,
7+
"**/.DS_Store": true,
8+
"**/Thumbs.db": true,
9+
"**/.cache": true,
10+
"**/.vs/": true,
11+
"**/*.cs": true,
12+
"**/*.orig": true,
13+
"**/bin/": true,
14+
"**/build/": true,
15+
"**/build/**/*": true,
16+
"**/debug/": true,
17+
"**/dist/": true,
18+
"**/obj": true,
19+
"yarn-error.log": true,
20+
"**/yarn-error.log": true,
21+
"**/.yalc": true
22+
},
23+
"search.exclude": {
24+
"**/.git": true,
25+
"**/.svn": true,
26+
"**/.hg": true,
27+
"**/CVS": true,
28+
"**/.DS_Store": true,
29+
"**/Thumbs.db": true,
30+
"**/.cache": true,
31+
"**/.vs/": true,
32+
"**/*.cs": true,
33+
"**/*.orig": true,
34+
"**/bin/": true,
35+
"**/build/": true,
36+
"**/build/**/*": true,
37+
"**/debug/": true,
38+
"**/dist/": true,
39+
"**/obj": true,
40+
"node_modules": true,
41+
"node_modules/*/**": true,
42+
"**/node_modules": true,
43+
"yarn-error.log": true,
44+
"**/yarn-error.log": true,
45+
"**/.yalc": true,
46+
"**/.yarn": true
47+
},
48+
"explorerExclude.backup": null,
49+
"eslint.workingDirectories": [
50+
{ "directory": "packages/hardhat-ts", "changeProcessCWD": true },
51+
{ "directory": "packages/vite-app-ts", "changeProcessCWD": true },
52+
{ "directory": "packages/next-app-ts", "changeProcessCWD": true },
53+
{ "directory": "packages/common", "changeProcessCWD": true }
54+
{ "directory": "packages/advanced/subgraph", "changeProcessCWD": true }
55+
],
56+
"solidity.packageDefaultDependenciesDirectory": "packages/hardhat-ts/node_modules",
57+
"editor.formatOnSave": true,
58+
"solidity.formatter": "prettier", // This is the default so it might be missing.
59+
"[solidity]": {
60+
"editor.defaultFormatter": "JuanBlanco.solidity"
61+
},
62+
"solidity.defaultCompiler": "localNodeModule",
63+
"mochaExplorer.configFile": "./packages/hardhat-ts/.mocharc.json"
64+
}

.yarn/plugins/@yarnpkg/plugin-typescript.cjs

+9
Large diffs are not rendered by default.

.yarnrc.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
nmHoistingLimits: "workspaces"
1+
checksumBehavior: ignore
2+
3+
nmHoistingLimits: workspaces
24

35
nodeLinker: node-modules
46

57
plugins:
68
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
7-
spec: "@yarnpkg/plugin-interactive-tools"
9+
spec: '@yarnpkg/plugin-interactive-tools'
10+
- path: .yarn/plugins/@yarnpkg/plugin-typescript.cjs
11+
spec: '@yarnpkg/plugin-typescript'
812

913
yarnPath: .yarn/releases/yarn-3.2.0.cjs
10-
11-
checksumBehavior: "ignore"

0 commit comments

Comments
 (0)