Skip to content

Commit

Permalink
Update project dependencies (#296)
Browse files Browse the repository at this point in the history
* update project dependencies

* remove not relevant files

* upgrade github actions

* edr dependency

* fix solidity-coverage, slither

* update tests viem way
  • Loading branch information
mtabasco authored May 6, 2024
1 parent 3c12e52 commit 499d63a
Show file tree
Hide file tree
Showing 46 changed files with 8,988 additions and 21,591 deletions.
16 changes: 0 additions & 16 deletions .editorconfig

This file was deleted.

1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ MAINNET_OWNER_PRIVATE_KEY=
GAS_PRICE=
GAS=
ETHERSCAN_KEY=
INFURA_KEY=
MINIMUM_BLOCKS_BEFORE_LIQUIDATION=100800
MINIMUM_LIQUIDATION_COLLATERAL=200000000
OPERATOR_MAX_FEE_INCREASE=3
Expand Down
27 changes: 0 additions & 27 deletions .eslintrc.js

This file was deleted.

13 changes: 6 additions & 7 deletions .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Solidity code coverage

on:
push:
on: [push]

jobs:
ci:
runs-on: ubuntu-latest

name: Solidity code coverage
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '20.x'
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
- run: NO_GAS_ENFORCE=1 npx hardhat coverage
- run: SOLIDITY_COVERAGE=true NO_GAS_ENFORCE=1 npx hardhat coverage
7 changes: 4 additions & 3 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
name: Solidity linter
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '20.x'
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
node-version: 18
node-version: 20
fail-on: high
slither-args: --exclude controlled-delegatecall,incorrect-return
slither-args: --exclude controlled-delegatecall,incorrect-return
11 changes: 5 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: Run tests

on:
push:
on: [push]

jobs:
ci:
runs-on: ubuntu-latest

name: Hardhat unit test
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '20.x'
- run: npm ci
env:
GH_TOKEN: ${{ secrets.github_token }}
Expand Down
23 changes: 14 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
node_modules
.env
.env.prod
.env.stage
abis
cache
coverage
coverage.json
artifacts
typechain-types/
.openzeppelin/*.json

# Hardhat files
/cache
/artifacts

# TypeChain files
/typechain
/typechain-types

# solidity-coverage files
/coverage
/coverage.json

.DS_Store
.history
.dccache
abis
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
}
}
]
}
}
3 changes: 3 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
skipFiles: ['test','deprecated','token','upgrades']
};
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SSV Network Smart Contracts

# SSV Network Smart Contracts

### Intro | [Architecture](./docs/architecture.md) | [Setup](./docs/setup.md) | [Tasks](./docs/tasks.md) | [Local development](./docs/local-dev.md) | [Roles](./docs/roles.md) | [Publish](./docs/publish.md)

This repository contains the Solidity smart contracts for the SSV Network. The SSV Network is a decentralized network for the operation of Ethereum validators. It allows for secure, scalable, and decentralized staking on the Ethereum blockchain. The key elements of this system are represented through several Ethereum smart contracts, all of which are outlined below.
Expand Down
Loading

0 comments on commit 499d63a

Please sign in to comment.