Skip to content

Commit cf39c28

Browse files
authored
Merge pull request #98 from Proof-Of-Humanity/testnets
Testnets
2 parents 528a1a4 + 71304fd commit cf39c28

147 files changed

Lines changed: 11778 additions & 10879 deletions

File tree

Some content is hidden

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

.eslintrc.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
module.exports = {
2-
extends: ["next/core-web-vitals"],
2+
extends: [
3+
'next',
4+
'next/core-web-vitals',
5+
'eslint:recommended',
6+
'plugin:react/recommended',
7+
'plugin:@typescript-eslint/recommended',
8+
'prettier',
9+
],
10+
plugins: ['react', '@typescript-eslint'],
11+
parserOptions: {
12+
ecmaVersion: 2021,
13+
sourceType: 'module',
14+
},
315
rules: {
4-
"react/no-unescaped-entities": 0,
5-
"react/display-name": "off",
16+
'react/no-unescaped-entities': 0,
17+
'react/display-name': 'off',
618
},
719
};

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
version: 2
77
enable-beta-ecosystems: true
88
updates:
9-
- package-ecosystem: "npm"
10-
directory: "/"
9+
- package-ecosystem: 'npm'
10+
directory: '/'
1111
schedule:
12-
interval: "weekly"
12+
interval: 'weekly'
1313
open-pull-requests-limit: 10
1414
labels:
1515
- dependencies

.github/workflows/codeql.yml

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: "CodeQL Advanced"
1+
name: 'CodeQL Advanced'
22

33
on:
4-
merge_group:
4+
merge_group:
55
branches:
66
- master
77
- dev
@@ -37,43 +37,42 @@ jobs:
3737
- javascript
3838

3939
steps:
40-
- name: Harden Runner
41-
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
42-
with:
43-
egress-policy: audit
44-
45-
- name: Checkout repository
46-
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
40+
- name: Harden Runner
41+
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
42+
with:
43+
egress-policy: audit
4744

48-
# Initializes the CodeQL tools for scanning.
49-
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
51-
with:
52-
languages: ${{ matrix.language }}
53-
# If you wish to specify custom queries, you can do so here or in a config file.
54-
# By default, queries listed here will override any specified in a config file.
55-
# Prefix the list here with "+" to use these queries and those in the config file.
45+
- name: Checkout repository
46+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
5647

57-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
58-
# queries: security-extended,security-and-quality
48+
# Initializes the CodeQL tools for scanning.
49+
- name: Initialize CodeQL
50+
uses: github/codeql-action/init@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
51+
with:
52+
languages: ${{ matrix.language }}
53+
# If you wish to specify custom queries, you can do so here or in a config file.
54+
# By default, queries listed here will override any specified in a config file.
55+
# Prefix the list here with "+" to use these queries and those in the config file.
5956

57+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
58+
# queries: security-extended,security-and-quality
6059

61-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
62-
# If this step fails, then you should remove it and run the build manually (see below)
63-
- name: Autobuild
64-
uses: github/codeql-action/autobuild@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
60+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
61+
# If this step fails, then you should remove it and run the build manually (see below)
62+
- name: Autobuild
63+
uses: github/codeql-action/autobuild@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
6564

66-
# ℹ️ Command-line programs to run using the OS shell.
67-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65+
# ℹ️ Command-line programs to run using the OS shell.
66+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6867

69-
# If the Autobuild fails above, remove it and uncomment the following three lines.
70-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
68+
# If the Autobuild fails above, remove it and uncomment the following three lines.
69+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
7170

72-
# - run: |
73-
# echo "Run, Build Application using script"
74-
# ./location_of_script_within_repo/buildscript.sh
71+
# - run: |
72+
# echo "Run, Build Application using script"
73+
# ./location_of_script_within_repo/buildscript.sh
7574

76-
- name: Perform CodeQL Analysis
77-
uses: github/codeql-action/analyze@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
78-
with:
79-
category: "/language:${{matrix.language}}"
75+
- name: Perform CodeQL Analysis
76+
uses: github/codeql-action/analyze@2cb752a87e96af96708ab57187ab6372ee1973ab # v2.22.0
77+
with:
78+
category: '/language:${{matrix.language}}'

.prettierrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: 'all',
4+
singleQuote: true,
5+
printWidth: 100,
6+
tabWidth: 2,
7+
plugins: ['prettier-plugin-tailwindcss'],
8+
};

codegen.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
overwrite: true
22
#schema: "https://api.studio.thegraph.com/query/64099/proof-of-humanity-sepolia/version/latest"
3-
schema: "https://api.studio.thegraph.com/query/64099/proof-of-humanity-mainnet/version/latest"
4-
documents: "schemas/**/*.gql"
3+
schema: 'https://api.studio.thegraph.com/query/64099/proof-of-humanity-mainnet/version/latest'
4+
documents: 'schemas/**/*.gql'
55
generates:
66
./src/generated/graphql.ts:
77
plugins:
8-
- "typescript"
9-
- "typescript-operations"
10-
- "typescript-graphql-request"
8+
- 'typescript'
9+
- 'typescript-operations'
10+
- 'typescript-graphql-request'

env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ declare global {
1515
}
1616
}
1717

18-
export {};
18+
export {};

next.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const nextConfig = {
55
config.module.rules.push({
66
test: /\.svg$/i,
77
issuer: /\.[jt]sx?$/,
8-
use: ["@svgr/webpack"],
8+
use: ['@svgr/webpack'],
99
});
1010

1111
return config;
@@ -16,15 +16,15 @@ const nextConfig = {
1616
CHIADO_RPC: process.env.CHIADO_RPC,
1717
SEPOLIA_RPC: process.env.SEPOLIA_RPC,
1818
GNOSIS_RPC: process.env.GNOSIS_RPC,
19-
MAINNET_RPC: process.env.MAINNET_RPC
19+
MAINNET_RPC: process.env.MAINNET_RPC,
2020
},
2121
images: {
2222
remotePatterns: [
2323
{
24-
protocol: "https",
24+
protocol: 'https',
2525
hostname: process.env.REACT_APP_IPFS_GATEWAY,
26-
port: "",
27-
pathname: "/ipfs/**",
26+
port: '',
27+
pathname: '/ipfs/**',
2828
},
2929
],
3030
},

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@
1818
"@types/ua-parser-js": "^0.7.36",
1919
"assert": "^2.0.0",
2020
"browserify-zlib": "^0.2.0",
21-
"eslint": "^7.32.0",
21+
"eslint": "^9.13.0",
2222
"eslint-config-next": "14.0.1",
23+
"eslint-config-prettier": "^9.1.0",
24+
"eslint-plugin-prettier": "^5.2.1",
25+
"eslint-plugin-react": "^7.37.1",
2326
"events": "^3.3.0",
2427
"os-browserify": "^0.3.0",
2528
"path-browserify": "^1.0.1",
2629
"postcss": "^8.4.13",
2730
"postcss-nested": "^6.0.0",
31+
"prettier-plugin-tailwindcss": "^0.6.8",
2832
"process": "^0.11.10",
2933
"stream-browserify": "^3.0.0",
3034
"tailwindcss": "^3.4.10",
@@ -33,7 +37,6 @@
3337
},
3438
"dependencies": {
3539
"@cyntler/react-doc-viewer": "^1.16.3",
36-
"react-markdown": "^8.0.7",
3740
"@ffmpeg/ffmpeg": "^0.10.1",
3841
"@legendapp/state": "^1.11.1",
3942
"@web3modal/ethereum": "^2.7.1",
@@ -52,12 +55,13 @@
5255
"next": "14.0.1",
5356
"pino-pretty": "^11.0.0",
5457
"postcss-import": "^14.1.0",
55-
"prettier": "^2.0.0",
58+
"prettier": "^3.3.3",
5659
"react": "^18.2.0",
5760
"react-dom": "^18.2.0",
5861
"react-dropzone": "^14.2.2",
5962
"react-easy-crop": "^4.4.0",
6063
"react-jazzicon": "^1.0.4",
64+
"react-markdown": "^8.0.7",
6165
"react-select": "^5.7.7",
6266
"react-toastify": "^9.0.7",
6367
"react-webcam": "^7.0.1",

public/manifest.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"background_color": "#fff",
3-
"display": "standalone",
4-
"homepage_url": "https://poh.vercel.app",
5-
"name": "Proof of Humanity",
6-
"description": "Proof of Humanity",
7-
"iconPath": "./poh-logo-colored.svg",
8-
"short_name": "PoH",
9-
"start_url": ".",
10-
"theme_color": "#FF9966"
11-
}
2+
"background_color": "#fff",
3+
"display": "standalone",
4+
"homepage_url": "https://poh.vercel.app",
5+
"name": "Proof of Humanity",
6+
"description": "Proof of Humanity",
7+
"iconPath": "./poh-logo-colored.svg",
8+
"short_name": "PoH",
9+
"start_url": ".",
10+
"theme_color": "#FF9966"
11+
}

0 commit comments

Comments
 (0)