Skip to content

Commit f79cf71

Browse files
authored
feat: add some important local settings (#14)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added Solidity language settings for VSCode across multiple projects. - **Refactor** - Updated `runs-on` configuration to `namespace-profile-btp-scs` in GitHub workflows for multiple projects. - Removed `timeout` property from Hardhat configuration files across various projects. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 5b36f33 commit f79cf71

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.github/workflows/pr-labels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ permissions:
2323

2424
jobs:
2525
labels:
26-
runs-on: ubuntu-latest
26+
#runs-on: ubuntu-latest
27+
runs-on: namespace-profile-btp-scs
2728
steps:
2829
- uses: fuxingloh/multi-labeler@v4

.github/workflows/solidity.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,6 @@ jobs:
4747
apk update
4848
apk add --no-cache cairo-dev jpeg-dev pango-dev giflib-dev build-base g++ pkgconfig
4949
50-
- name: Fetch semgrep rules
51-
uses: actions/checkout@v4
52-
with:
53-
repository: decurity/semgrep-smart-contracts
54-
path: rules
55-
56-
- run: semgrep ci --sarif --output=semgrep.sarif || true
57-
env:
58-
SEMGREP_RULES: rules/solidity/security rules/solidity/performance
59-
6050
- uses: crytic/[email protected]
6151
id: slither
6252
with:

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"[solidity]": {
3+
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity"
4+
},
5+
"solidity.formatter": "forge",
6+
"solidity.telemetry": false,
7+
"taskManager.exclude": "lib|install|tsc|hardhat"
8+
}

foundry.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@
2828
gas_reports = ["*"]
2929
fuzz = { runs = 1_000 }
3030
auto_detect_solc = false
31-
extra_output_files = [ "metadata" ]
31+
extra_output_files = [ "metadata" ]
32+
viaIR = true

hardhat.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const config: HardhatUserConfig = {
77
solidity: {
88
version: "0.8.24",
99
settings: {
10+
viaIR: true,
1011
optimizer: {
1112
enabled: true,
1213
runs: 10_000,
@@ -18,7 +19,6 @@ const config: HardhatUserConfig = {
1819
btp: {
1920
url: process.env.BTP_RPC_URL || "",
2021
gasPrice: process.env.BTP_GAS_PRICE ? parseInt(process.env.BTP_GAS_PRICE) : "auto",
21-
timeout: 100_000,
2222
},
2323
},
2424
etherscan: {

test/Counter.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity ^0.8.24;
33

4-
import {Test, console} from "forge-std/Test.sol";
5-
import {Counter} from "../contracts/Counter.sol";
4+
import { Test, console } from "forge-std/Test.sol";
5+
import { Counter } from "../contracts/Counter.sol";
66

77
contract CounterTest is Test {
88
Counter public counter;

0 commit comments

Comments
 (0)