mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-08-13 12:02:54 +02:00
「🎉」 init: started blockchain dev
This commit is contained in:
40
.github/workflows/test.yml
vendored
Normal file
40
.github/workflows/test.yml
vendored
Normal 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
7
.gitignore
vendored
@ -8,4 +8,9 @@ node_modules/
|
||||
.env
|
||||
|
||||
# built files
|
||||
dist/*
|
||||
dist
|
||||
|
||||
# foundry files
|
||||
lib
|
||||
out
|
||||
cache
|
||||
|
3
.solhint.json
Normal file
3
.solhint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "solhint:recommended"
|
||||
}
|
@ -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
6
foundry.toml
Normal 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
7
src/contract/main.sol
Normal file
@ -0,0 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8;
|
||||
|
||||
contract scoreStore {
|
||||
|
||||
}
|
Reference in New Issue
Block a user