Skip to content

Commit 56e08bc

Browse files
committed
chore: move all files into solidity-empty
0 parents  commit 56e08bc

Some content is hidden

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

85 files changed

+39790
-0
lines changed

.github/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: v1
2+
3+
labels:
4+
- label: 'feat'
5+
matcher:
6+
title: '^feat:.*'
7+
- label: 'fix'
8+
matcher:
9+
title: '^fix:.*'
10+
- label: 'chore'
11+
matcher:
12+
title: '^chore:.*'
13+
- label: 'docs'
14+
matcher:
15+
title: '^docs:.*'

.github/release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
changelog:
2+
categories:
3+
- title: Breaking Changes 🛠
4+
labels:
5+
- breaking-change
6+
- title: Exciting New Features 🎉
7+
labels:
8+
- feat
9+
- title: Important Bug Fixes 🐛
10+
labels:
11+
- fix
12+
- title: Documentation 📚
13+
labels:
14+
- docs
15+
- title: Other changes 🏗️
16+
labels:
17+
- chore
18+
- title: Dependencies 📦
19+
labels:
20+
- dependencies

.github/renovate.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
":automergeMinor",
6+
":automergePr",
7+
":automergeRequireAllStatusChecks",
8+
":gitSignOff",
9+
":pinVersions",
10+
":semanticCommits",
11+
":semanticCommitTypeAll(chore)",
12+
":enableVulnerabilityAlerts",
13+
":combinePatchMinorReleases",
14+
":prConcurrentLimitNone",
15+
":prHourlyLimitNone",
16+
"security:openssf-scorecard",
17+
"schedule:nonOfficeHours",
18+
":disableDependencyDashboard"
19+
],
20+
"labels": ["dependencies"],
21+
"rebaseWhen": "conflicted",
22+
"packageRules": [],
23+
"hostRules": [
24+
{
25+
"timeout": 3000000
26+
}
27+
]
28+
}

.github/workflows/pr-labels.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: PR Labels
2+
3+
on:
4+
pull_request:
5+
types: [opened, closed]
6+
branches:
7+
- main
8+
9+
permissions:
10+
actions: write
11+
checks: write
12+
contents: write
13+
deployments: write
14+
id-token: write
15+
issues: write
16+
discussions: write
17+
packages: write
18+
pages: write
19+
pull-requests: write
20+
repository-projects: write
21+
security-events: write
22+
statuses: write
23+
24+
jobs:
25+
labels:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: fuxingloh/multi-labeler@v4

.github/workflows/solidity.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Branch
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
tags:
11+
- "v*"
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
actions: write
19+
checks: write
20+
contents: write
21+
deployments: write
22+
id-token: write
23+
issues: write
24+
discussions: write
25+
packages: write
26+
pages: write
27+
pull-requests: write
28+
repository-projects: write
29+
security-events: write
30+
statuses: write
31+
32+
jobs:
33+
ci:
34+
name: CI
35+
uses: settlemint/smart-contracts-actions/.github/workflows/solidity.yml@main
36+
secrets:
37+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
with:
39+
docker-image-name: solidity-empty
40+
runs-on: solidity-empty
41+
ignition-module: "ignition/modules/Counter.ts"
42+
subgraph-contract-address-key: "CounterModule#Counter"

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
node_modules
2+
.env
3+
4+
# Hardhat files
5+
/cache
6+
/artifacts
7+
8+
# TypeChain files
9+
/typechain
10+
/typechain-types
11+
12+
# solidity-coverage files
13+
/coverage
14+
/coverage.json
15+
16+
# Hardhat Ignition default folder for deployments against a local node
17+
ignition/deployments/chain-31337
18+
19+
# Compiler files
20+
cache_forge/
21+
out/
22+
23+
# Ignores development broadcast logs
24+
!/broadcast
25+
/broadcast/*/31337/
26+
/broadcast/**/dry-run/
27+
28+
# Docs
29+
docs/
30+
31+
# Dotenv file
32+
.env
33+
34+
# Subgraphs
35+
generated
36+
build
37+
38+
.pnpm

.solhint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "solhint:recommended"
3+
}

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"recommendations": [
3+
"nomicfoundation.hardhat-solidity",
4+
"genieai.chatgpt-vscode",
5+
"esbenp.prettier-vscode",
6+
"cnshenj.vscode-task-manager",
7+
"catppuccin.catppuccin-vsc-icons",
8+
"catppuccin.catppuccin-vsc"
9+
]
10+
}

.vscode/tasks.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"version": "2.0.0",
3+
"inputs": [
4+
{
5+
"id": "deployment-module",
6+
"description": "Hardhat Ignition Module",
7+
"type": "promptString",
8+
"default": "ignition/modules/Counter.ts"
9+
},
10+
{
11+
"id": "extra-deployment",
12+
"description": "Extra commandline arguments, e.g. --verify",
13+
"type": "promptString",
14+
"default": ""
15+
},
16+
],
17+
"tasks": [
18+
{
19+
"label": "Foundry - Build",
20+
"type": "shell",
21+
"command": "btp-scs foundry build",
22+
"group": {
23+
"kind": "build",
24+
"isDefault": true
25+
},
26+
"problemMatcher": []
27+
},
28+
{
29+
"label": "Hardhat - Build",
30+
"type": "shell",
31+
"command": "btp-scs hardhat build",
32+
"group": {
33+
"kind": "build",
34+
"isDefault": false
35+
},
36+
"problemMatcher": []
37+
},
38+
{
39+
"label": "Foundry - Test",
40+
"type": "shell",
41+
"command": "btp-scs foundry test",
42+
"group": "test",
43+
"problemMatcher": []
44+
},
45+
{
46+
"label": "Hardhat - Test",
47+
"type": "shell",
48+
"command": "btp-scs hardhat test",
49+
"group": "test",
50+
"problemMatcher": []
51+
},
52+
{
53+
"label": "Foundry - Format",
54+
"type": "shell",
55+
"command": "btp-scs foundry format",
56+
"problemMatcher": []
57+
},
58+
{
59+
"label": "Foundry - Start network",
60+
"type": "shell",
61+
"command": "btp-scs foundry network",
62+
"problemMatcher": [],
63+
"isBackground": true
64+
},
65+
{
66+
"label": "Hardhat - Start network",
67+
"type": "shell",
68+
"command": "btp-scs hardhat network",
69+
"problemMatcher": [],
70+
"isBackground": true,
71+
},
72+
{
73+
"label": "Hardhat - Deploy to local network",
74+
"type": "shell",
75+
"command": "btp-scs hardhat deploy local ${input:extra-deployment} -m ${input:deployment-module}",
76+
"problemMatcher": []
77+
},
78+
{
79+
"label": "Hardhat - Reset & Deploy to local network",
80+
"type": "shell",
81+
"command": "btp-scs hardhat deploy local --reset ${input:extra-deployment} -m ${input:deployment-module}",
82+
"problemMatcher": []
83+
},
84+
{
85+
"label": "Hardhat - Deploy to platform network",
86+
"type": "shell",
87+
"command": "btp-scs hardhat deploy remote ${input:extra-deployment} -m ${input:deployment-module}",
88+
"problemMatcher": []
89+
},
90+
{
91+
"label": "Hardhat - Reset & Deploy to platform network",
92+
"type": "shell",
93+
"command": "btp-scs hardhat deploy remote --reset ${input:extra-deployment} -m ${input:deployment-module}",
94+
"problemMatcher": []
95+
},
96+
{
97+
"label": "The Graph - Deploy or update the subgraph",
98+
"type": "shell",
99+
"command": "btp-scs subgraph deploy",
100+
"problemMatcher": []
101+
}
102+
],
103+
}

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM node:20.15.0-bookworm as build
2+
3+
ENV FOUNDRY_DIR /usr/local
4+
RUN curl -L https://foundry.paradigm.xyz | bash && \
5+
/usr/local/bin/foundryup
6+
7+
WORKDIR /
8+
9+
COPY . /usecase
10+
11+
WORKDIR /usecase
12+
13+
USER root
14+
15+
RUN npm install
16+
RUN forge build
17+
RUN npx hardhat compile
18+
19+
FROM cgr.dev/chainguard/busybox:latest
20+
21+
COPY --from=build /usecase /usecase
22+
COPY --from=build /root/.svm /usecase-svm
23+
COPY --from=build /root/.cache /usecase-cache

0 commit comments

Comments
 (0)