Skip to content

Commit ba23555

Browse files
authored
Merge pull request #14 from praveenlodhiofficial/master
Refactor supply-chain flow, role checks, and Next.js 16 migration
2 parents 1e15a58 + e050206 commit ba23555

100 files changed

Lines changed: 24457 additions & 57702 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.

.github/workflows/ci.yml

Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches: [ master, main ]
6-
paths-ignore:
7-
- 'README.md'
8-
- 'CODE_OF_CONDUCT.md'
9-
- 'CONTRIBUTING.md'
10-
- 'docs/**'
11-
- '*.md'
12-
- 'assets/**'
13-
pull_request:
14-
branches: [ master, main ]
15-
paths-ignore:
16-
- 'README.md'
17-
- 'CODE_OF_CONDUCT.md'
18-
- 'CONTRIBUTING.md'
19-
- 'docs/**'
20-
- '*.md'
21-
- 'assets/**'
22-
jobs:
23-
backend:
24-
name: Backend (Hardhat)
25-
runs-on: ubuntu-latest
26-
27-
defaults:
28-
run:
29-
working-directory: backend
30-
31-
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@v4
34-
35-
- name: Use Node.js
36-
uses: actions/setup-node@v4
37-
with:
38-
node-version: 20
39-
cache: 'npm'
40-
cache-dependency-path: backend/package-lock.json
41-
42-
- name: Install dependencies
43-
run: npm ci
44-
45-
- name: Compile contracts
46-
run: npx hardhat compile
47-
48-
- name: Run tests
49-
run: npx hardhat test
50-
51-
frontend:
52-
name: Frontend (Next.js)
53-
runs-on: ubuntu-latest
54-
needs: backend
55-
56-
defaults:
57-
run:
58-
working-directory: client
59-
60-
steps:
61-
- name: Checkout repository
62-
uses: actions/checkout@v4
63-
64-
- name: Use Node.js
65-
uses: actions/setup-node@v4
66-
with:
67-
node-version: 20
68-
cache: 'npm'
69-
cache-dependency-path: client/package-lock.json
70-
71-
- name: Install dependencies
72-
run: npm ci
73-
74-
- name: Run tests
75-
run: npm test -- --runInBand
76-
77-
- name: Lint
78-
run: npm run lint
79-
80-
- name: Build
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
paths-ignore:
7+
- 'README.md'
8+
- 'CODE_OF_CONDUCT.md'
9+
- 'CONTRIBUTING.md'
10+
- 'docs/**'
11+
- '*.md'
12+
- 'assets/**'
13+
pull_request:
14+
branches: [ master, main ]
15+
paths-ignore:
16+
- 'README.md'
17+
- 'CODE_OF_CONDUCT.md'
18+
- 'CONTRIBUTING.md'
19+
- 'docs/**'
20+
- '*.md'
21+
- 'assets/**'
22+
jobs:
23+
backend:
24+
name: Backend (Hardhat)
25+
runs-on: ubuntu-latest
26+
27+
defaults:
28+
run:
29+
working-directory: backend
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v4
34+
35+
- name: Use Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 20
39+
cache: 'npm'
40+
cache-dependency-path: backend/package-lock.json
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
45+
- name: Compile contracts
46+
run: npx hardhat compile
47+
48+
- name: Run tests
49+
run: npx hardhat test
50+
51+
frontend:
52+
name: Frontend (Next.js)
53+
runs-on: ubuntu-latest
54+
needs: backend
55+
56+
defaults:
57+
run:
58+
working-directory: client
59+
60+
steps:
61+
- name: Checkout repository
62+
uses: actions/checkout@v4
63+
64+
- name: Use Node.js
65+
uses: actions/setup-node@v4
66+
with:
67+
node-version: 20
68+
cache: 'npm'
69+
cache-dependency-path: client/package-lock.json
70+
71+
- name: Install dependencies
72+
run: npm ci
73+
74+
- name: Run tests
75+
run: npm test -- --runInBand
76+
77+
- name: Lint
78+
run: npm run lint
79+
80+
- name: Build
8181
run: npm run build

.gitignore

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
.vscode/
3-
.env
4-
cache/
5-
# dependencies
6-
/node_modules
7-
/client/node_modules
8-
/.pnp
9-
.pnp.js
10-
11-
# testing
12-
/coverage
13-
14-
# production
15-
client/build
16-
17-
# misc
18-
.DS_Store
19-
.env.local
20-
.env.development.local
21-
.env.test.local
22-
.env.production.local
23-
24-
npm-debug.log*
25-
yarn-debug.log*
26-
yarn-error.log*
27-
28-
29-
node_modules/
30-
31-
/deployments.json
32-
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
.vscode/
3+
.env
4+
cache/
5+
# dependencies
6+
/node_modules
7+
/client/node_modules
8+
/.pnp
9+
.pnp.js
10+
11+
# testing
12+
/coverage
13+
14+
# production
15+
client/build
16+
17+
# misc
18+
.DS_Store
19+
.env.local
20+
.env.development.local
21+
.env.test.local
22+
.env.production.local
23+
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
29+
node_modules/
30+
31+
/deployments.json
32+
3333
backend/client/src/artifacts/

CODE_OF_CONDUCT.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
# Code of Conduct
2-
3-
## Our Pledge
4-
5-
We as members, contributors, and maintainers pledge to make participation in this project a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6-
7-
## Our Standards
8-
9-
Examples of behavior that contributes to a positive environment include:
10-
11-
- Being respectful and considerate in your communication
12-
- Giving and gracefully accepting constructive feedback
13-
- Focusing on what is best for the community
14-
- Showing empathy towards other community members
15-
16-
Examples of unacceptable behavior include:
17-
18-
- Harassment, discrimination, or personal attacks
19-
- Trolling, insulting or derogatory comments
20-
- Publishing others’ private information without permission
21-
- Any conduct which could reasonably be considered inappropriate in a professional setting
22-
23-
## Our Responsibilities
24-
25-
Project maintainers are responsible for clarifying and enforcing this Code of Conduct. They may remove, edit, or reject comments, commits, code, issues, and other contributions that are not aligned with this Code of Conduct.
26-
27-
## Scope
28-
29-
This Code of Conduct applies within all project spaces and in public spaces when an individual is representing the project or its community.
30-
31-
## Enforcement
32-
33-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainer at:
34-
35-
> **Contact:** _[add your preferred contact email or link here]_
36-
37-
All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.
38-
39-
## Attribution
40-
41-
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
42-
1+
# Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and maintainers pledge to make participation in this project a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to a positive environment include:
10+
11+
- Being respectful and considerate in your communication
12+
- Giving and gracefully accepting constructive feedback
13+
- Focusing on what is best for the community
14+
- Showing empathy towards other community members
15+
16+
Examples of unacceptable behavior include:
17+
18+
- Harassment, discrimination, or personal attacks
19+
- Trolling, insulting or derogatory comments
20+
- Publishing others’ private information without permission
21+
- Any conduct which could reasonably be considered inappropriate in a professional setting
22+
23+
## Our Responsibilities
24+
25+
Project maintainers are responsible for clarifying and enforcing this Code of Conduct. They may remove, edit, or reject comments, commits, code, issues, and other contributions that are not aligned with this Code of Conduct.
26+
27+
## Scope
28+
29+
This Code of Conduct applies within all project spaces and in public spaces when an individual is representing the project or its community.
30+
31+
## Enforcement
32+
33+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project maintainer at:
34+
35+
> **Contact:** _[add your preferred contact email or link here]_
36+
37+
All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.
38+
39+
## Attribution
40+
41+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 2.1.
42+

0 commit comments

Comments
 (0)