🎉」 init: started blockchain dev

This commit is contained in:
2025-07-24 12:42:33 +02:00
parent d52aad94aa
commit f148526efa
6 changed files with 67 additions and 1 deletions

40
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: CI
on:
push:
pull_request:
workflow_dispatch:
env:
FOUNDRY_PROFILE: ci
jobs:
check:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Show Forge version
run: |
forge --version
- name: Run Forge fmt
run: |
forge fmt --check
id: fmt
- name: Run Forge build
run: |
forge build --sizes
id: build
- name: Run Forge tests
run: |
forge test -vvv
id: test

7
.gitignore vendored
View File

@ -8,4 +8,9 @@ node_modules/
.env
# built files
dist/*
dist
# foundry files
lib
out
cache

3
.solhint.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "solhint:recommended"
}

View File

@ -39,12 +39,17 @@
nodejs_22
pnpm
just
foundry
];
shellHook = ''
if [ ! -d node_modules/ ]; then
echo Installing node env
pnpm install
fi
if [ ! -d lib/ ]; then
echo Installing foundry env
forge i
fi
export PATH+=:$(pwd)/node_modules/.bin
echo entering ft_trans env
'';

6
foundry.toml Normal file
View File

@ -0,0 +1,6 @@
[profile.default]
src = "src/contract"
out = "out"
libs = ["node_modules", "lib"]
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

7
src/contract/main.sol Normal file
View File

@ -0,0 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;
contract scoreStore {
}