Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1265 commits
Select commit Hold shift + click to select a range
8898d77
Merge pull request #571 from lidofinance/fix/simplified-burner
TheDZhon Feb 7, 2023
ec30df1
Merge pull request #568 from lidofinance/feature/shapella-upgrade-tes…
ujenjt Feb 7, 2023
7ab03eb
docs: fix a typo
skozin Feb 7, 2023
b5266e4
test: more tests for resizable array
skozin Feb 7, 2023
b71c21b
chore: redundant check removed
TheDZhon Feb 8, 2023
6fc8ea3
refactor: minus some asm
krogla Feb 8, 2023
7ed3a22
Merge branch 'feature/shapella-upgrade' into feature/nor-limits
krogla Feb 8, 2023
b2558ba
fix: tests
krogla Feb 8, 2023
9adb386
Use structs in StakingModule. Rework getValidatorsKeysStats method
Psirex Feb 8, 2023
97e4620
fix(wq): remove excessive libs
folkyatina Feb 8, 2023
be34a74
fix(wq): add BUNKER_MODE_REPORT_ROLE to initialize
folkyatina Feb 8, 2023
79c6778
lib: align free mem pointer to 32 bytes when allocating memory
skozin Feb 7, 2023
ac6b40c
Fixed setup and unresolved calls.
Roy-Certora Feb 8, 2023
057ce17
feat: rework set-quorum test structure and update consensus (re)trigg…
Jeday Feb 8, 2023
579be0b
Refactor IStakingModule interface
Psirex Feb 8, 2023
5931b3f
Update tests
Psirex Feb 8, 2023
9b0b4a6
commit update tests
loga4 Feb 8, 2023
07c005f
merge nor-limits
loga4 Feb 8, 2023
4eaa6cf
typo Validators
loga4 Feb 8, 2023
3aa98a1
typo stcuk
loga4 Feb 8, 2023
c0bf0d6
Merge pull request #575 from lidofinance/feature/nor-limits-tests
loga4 Feb 8, 2023
df2e0e1
Rename invalidateReadyToDepositValidators
Psirex Feb 8, 2023
974cf80
fix type Validtators
loga4 Feb 8, 2023
70bb051
test: lib: add tests for unsafeAllocateBytes
skozin Feb 8, 2023
983a4d7
test: hash consensus: add more frames tests
DiRaiks Feb 8, 2023
4b266b7
rename: forgiven -> refund
loga4 Feb 8, 2023
3d23833
test: disable only, it does not work in parallel
folkyatina Feb 8, 2023
0cc010c
test(wq): fix initialization
folkyatina Feb 8, 2023
dc3e3b5
fix: fix the last text error
folkyatina Feb 8, 2023
6b4240b
feat(wq): mass request now accept the only owner
folkyatina Feb 8, 2023
231fb79
fix: timestamp in requests
folkyatina Feb 8, 2023
60357af
test: initial zero processor values in hash consensus
bobunderforest Feb 8, 2023
7cba25b
test: hash consensus version getter
bobunderforest Feb 8, 2023
ea292d4
fix: nor share burner
krogla Feb 8, 2023
d7023e0
renaming and LidoOracle initialize fix
arwer13 Feb 8, 2023
eec4593
tests: fix validator-exit-bus-oracle-deploy
arwer13 Feb 8, 2023
668085d
fix: burner allowance & refactor
krogla Feb 8, 2023
64f60cf
restore shapella-upgrade version of LidoOracle
arwer13 Feb 8, 2023
e2736f5
Merge pull request #579 from lidofinance/oracles-refactoring-init-fix
arwer13 Feb 8, 2023
b4b6925
Merge pull request #572 from lidofinance/feature/improve-mem-alloc-co…
TheDZhon Feb 8, 2023
a18a4ae
hash consensus: improve interface for the daemon
skozin Feb 8, 2023
a501c1a
oracles: revive tests broken by 387c94a
skozin Feb 8, 2023
be34083
chore: reformat Lido a bit
TheDZhon Feb 8, 2023
6804df4
hash consensus: remove zero report processor support
skozin Feb 8, 2023
5ba6d67
Merge pull request #578 from lidofinance/feature/better-interface-for…
ujenjt Feb 8, 2023
2a86b99
chore: better `Lido` naming
TheDZhon Feb 8, 2023
56b578e
Merge pull request #577 from lidofinance/feature/shapella-upgrade-tes…
TheDZhon Feb 8, 2023
2e1fd25
fix(wq): hint check on claim
folkyatina Feb 8, 2023
9adf7e8
 fix: mistype
folkyatina Feb 8, 2023
6258912
Rename "keys" -> "validators" across the codebase
Psirex Feb 8, 2023
47578d7
Update NodeOperatorsRegistry ValidatorsReport views
Psirex Feb 9, 2023
4dc1218
Add getNodeOperatorIds to IStakingModule interface
Psirex Feb 9, 2023
b2b3727
Add StakingModulesDataAggregator contract
Psirex Feb 9, 2023
7a8ae1b
Update ABIs
Psirex Feb 9, 2023
fd30a72
rename provideDepositsData to obtainDepositData
Psirex Feb 9, 2023
f4e6615
Add more detailed comments to getValidatorsReport views in the NodeOp…
Psirex Feb 9, 2023
c9a3e62
Rename depositsDataNonce to depositNonce
Psirex Feb 9, 2023
c952094
Rename invalidateDepositsData to invalidateDepositData
Psirex Feb 9, 2023
92864f0
Merge branch 'feature/shapella-upgrade' into feature/shapella-upgrade…
Psirex Feb 9, 2023
d98395b
Use new ValidatorsReport fields in StakingRouter
Psirex Feb 9, 2023
45565c2
Merge branch 'feature/shapella-upgrade' of github.com:lidofinance/lid…
DiRaiks Feb 9, 2023
a105086
fix: correct description and add final step to test
Jeday Feb 9, 2023
a06a02b
test: hash consensus: fix report processor tests
DiRaiks Feb 9, 2023
913fd37
test: hash consensus: update tests, update getFrameConfig method
DiRaiks Feb 9, 2023
17227a7
Remove StakingModulesDataAggregator contract
Psirex Feb 9, 2023
57459d5
test: hash consensus: update getFrameConfig test
DiRaiks Feb 9, 2023
761a77a
Merge pull request #576 from lidofinance/feature/shapella-upgrade-tes…
TheDZhon Feb 9, 2023
df1a9cc
test: remove obsolete initially zero report processor test
bobunderforest Feb 9, 2023
79d2ac4
feat: add UNREACHABLE_QUORUM to export and prettify file
Jeday Feb 9, 2023
c262289
feat: add disableConsensus tests
Jeday Feb 9, 2023
82382e3
Merge branch 'feature/shapella-upgrade' of github.com:lidofinance/lid…
Jeday Feb 9, 2023
7fe5169
Merge pull request #580 from lidofinance/feature/shapella-upgrade-tes…
TheDZhon Feb 9, 2023
f8d0993
Merge pull request #581 from lidofinance/feature/shapella-upgrade-tes…
TheDZhon Feb 9, 2023
4da385d
💅: renaming and docs
folkyatina Feb 9, 2023
6e448e5
fix: external for findLastFinalizableRequestId
folkyatina Feb 9, 2023
b1f4385
chore: redundant prevProcessor == 0 check
TheDZhon Feb 9, 2023
3a8a603
fix: simplify finalizationBatch()
folkyatina Feb 9, 2023
8d31e23
fix: checks and errors
folkyatina Feb 9, 2023
c4bb93a
fix: add a check to _claimWithdrawalTo
folkyatina Feb 9, 2023
03ad814
LidoOracle, AccountingOracle: deploy related initialize() fixes
arwer13 Feb 9, 2023
338c55a
🏗️: refactor withdrawal request param check
folkyatina Feb 9, 2023
c030adb
Added test for MinFirstAllocationStrategy
Roy-Certora Feb 9, 2023
fcfffe2
fix: proper rewards minting `_distributeFee`
TheDZhon Feb 9, 2023
0e1ce45
test: hash consensus: fix deploy test
DiRaiks Feb 9, 2023
e9e2693
Merge pull request #585 from lidofinance/feature/shapella-upgrade-tes…
TheDZhon Feb 9, 2023
2141ced
test: fix TooMuchEtherToFinalize
folkyatina Feb 9, 2023
6d72fb4
Merge branch 'feature/shapella-upgrade' into fix/wq_review_fixes_2
folkyatina Feb 9, 2023
5e31e3f
chore: abi
folkyatina Feb 9, 2023
ffdcd52
fix: remove zero check on _from
folkyatina Feb 9, 2023
bd08f26
💅(wrnft): docs
folkyatina Feb 9, 2023
7ddd2a1
LidoOracle, AccountingOracle: refactor initializers
arwer13 Feb 9, 2023
be8e3e3
Merge branch 'feature/shapella-upgrade' into feature/nor-limits
krogla Feb 9, 2023
925e01b
fix: call wq sanity checks
TheDZhon Feb 9, 2023
63d4ca3
chore: sanity checks naming
TheDZhon Feb 9, 2023
6b615a8
accounting oracle: better interface for the daemon
skozin Feb 9, 2023
a876e28
refactor: dynamic totals counts
krogla Feb 9, 2023
9f47157
chore: abi upd
krogla Feb 9, 2023
8041705
AccountingOracle: forbid zero legacy oracle
arwer13 Feb 9, 2023
9118d3f
LidoOracle (legacy) naming: newOracle --> accountingOracle
arwer13 Feb 9, 2023
a35fde2
validator exit bus oracle: better interface for the daemon
skozin Feb 9, 2023
ef0de53
chore: add report timestamp check
TheDZhon Feb 9, 2023
5ea50ac
fix: relax scratch deploy sanity check
TheDZhon Feb 9, 2023
80195ab
chore: naming fixes
TheDZhon Feb 9, 2023
ada49f9
fix: optimize transfer code check flow
folkyatina Feb 9, 2023
e79cab0
💅: polish nft a bit more
folkyatina Feb 9, 2023
86fcc55
Merge pull request #587 from lidofinance/feature/even-better-interfac…
ujenjt Feb 9, 2023
b5c4685
fix: roles
krogla Feb 9, 2023
cea9295
chore: review fixes
TheDZhon Feb 9, 2023
932f277
Merge pull request #586 from lidofinance/fix/distributeFee
TheDZhon Feb 9, 2023
ba3e1b6
LidoOracle (legacy): remove _lastCompletedEpochId initialize() arg
arwer13 Feb 9, 2023
aa50735
Merge pull request #583 from lidofinance/fix-oracle-initialize-for-de…
ujenjt Feb 9, 2023
19f6553
fix: dedup steth from wsteth calculation
folkyatina Feb 9, 2023
987ee97
fix tests: partially, related to LidoLocator and protocol deploy
arwer13 Feb 9, 2023
90e5839
fix: spaces
folkyatina Feb 9, 2023
92d9482
Merge pull request #584 from lidofinance/fix/wq_review_fixes_2
ujenjt Feb 9, 2023
9d5cbf3
feat: ERC721Metadata
folkyatina Feb 9, 2023
f44e9a3
💅: code style
folkyatina Feb 9, 2023
569d7a6
Merge pull request #588 from lidofinance/feature/nft-metadata
folkyatina Feb 9, 2023
a316576
fix accounting oracle tests broken by #583
skozin Feb 9, 2023
764f0f7
acct. oracle, staking router: more optimal and flexible exited vals. …
skozin Feb 9, 2023
8b8063d
accounting oracle: fix docs
skozin Feb 9, 2023
9f7ed55
accounting oracle: fix more docs
skozin Feb 9, 2023
7c6611f
staking router: fix incorrect exited/stuck keys report processing
skozin Feb 9, 2023
2aa991d
Rename getDepositNonce() to getNonce()
Psirex Feb 10, 2023
6a1ed2a
Update ValidatorsReport fields
Psirex Feb 10, 2023
44111a3
Add updateRefundedValidatorsCount() method
Psirex Feb 10, 2023
9ddeaf5
finishUpdatingExitedValidatorsCount() -> onAllValidatorsCountersUpdat…
Psirex Feb 10, 2023
0d59b8f
Rename invalidateDepositData() to onWithdrawalCredentialsChanged()
Psirex Feb 10, 2023
4aa1299
Add missing doc comments to the IStakinModule
Psirex Feb 10, 2023
ac49567
fix: review issues
krogla Feb 10, 2023
245213a
fix: stuck penalty
krogla Feb 10, 2023
7b40875
fix: set penalty delay
krogla Feb 10, 2023
c1c2396
Merge branch 'feature/shapella-upgrade' into feature/nor-limits
krogla Feb 10, 2023
ef1d303
Merge pull request #557 from lidofinance/feature/nor-limits
TheDZhon Feb 10, 2023
16e9107
fix: shareRate only if wq finalization required
TheDZhon Feb 10, 2023
01fad86
Merge branch 'feature/shapella-upgrade' into feature/shapella-upgrade…
Psirex Feb 10, 2023
238be34
test: fix oracle report sanity check
TheDZhon Feb 10, 2023
d795ffc
Remove FIXME from NodeOperatorsRegistry
Psirex Feb 10, 2023
f81dbe5
test: revive wq deploy factory
TheDZhon Feb 10, 2023
eb38e3b
After-merge node-operators-registry test fixes
Psirex Feb 10, 2023
78aad7c
💅(wq): formatting
folkyatina Feb 10, 2023
566e0c9
AccountingOracle: move data boundaries to OracleReportSanityChecker
arwer13 Feb 10, 2023
b0041f5
test: more test for HashConsensus.setReportProcessor
bobunderforest Feb 10, 2023
40afce7
fix: add check to HashConsensus.setReportProcessor that next processo…
bobunderforest Feb 10, 2023
a23fb42
💅: nft docs
folkyatina Feb 10, 2023
031954a
Merge pull request #592 from lidofinance/feature/shapella-upgrade-fix…
skozin Feb 10, 2023
9ed326f
💅: fix linter warnings
folkyatina Feb 10, 2023
8b92ee1
hash consensus: improve docs for report processor
skozin Feb 10, 2023
2951e80
Merge branch 'feature/shapella-upgrade' into feature/more-efficient-a…
krogla Feb 10, 2023
82e423a
Merge pull request #589 from lidofinance/feature/more-efficient-accou…
TheDZhon Feb 10, 2023
eba09b2
handle report shares error
bulbozaur Feb 10, 2023
d9da51c
Merge remote-tracking branch 'origin/feature/shapella-upgrade' into f…
bulbozaur Feb 10, 2023
fbf762f
🏗️: rename LidoOracle to LegacyOracle
folkyatina Feb 10, 2023
bc26451
chore: remove `ResizableArray`
TheDZhon Feb 10, 2023
ea278f3
Replace getValidatorsReport() methods
Psirex Feb 10, 2023
9144311
accounting oracle: docs fixes
skozin Feb 10, 2023
47fdf2d
Rename onAllValidatorsCountersUpdated to onAllValidatorCountersUpdated
Psirex Feb 10, 2023
dfa3e6e
💅: unify SPDX file headers
folkyatina Feb 10, 2023
7b39f24
🏗️: remove unused mocks
folkyatina Feb 10, 2023
0a741de
oracle: avoid using 0 as a meaningful type value
skozin Feb 10, 2023
0e42d35
Merge branch 'feature/shapella-upgrade' into feature/shapella-upgrade…
Psirex Feb 10, 2023
aab9e44
Fix typo in NodeOperatorRegistry
Psirex Feb 10, 2023
500019d
Rename keys to validators in var names in the StakingRouter
Psirex Feb 10, 2023
1ec2f26
test: fix setReportProcessor roles test
bobunderforest Feb 10, 2023
6232e97
Update getNonce() comment in NodeOperatorsRegistry
Psirex Feb 10, 2023
11dbb84
Merge pull request #593 from lidofinance/feature/oracle-avoid-zero-as…
TheDZhon Feb 10, 2023
3a0bb7a
test: small access control test refactor
bobunderforest Feb 10, 2023
df026a9
fix: remove forgotten console.log import
folkyatina Feb 10, 2023
040e2fe
💅: delete more unused mocks
folkyatina Feb 10, 2023
175e49f
fix: revert LidoOracle renaming in node operator manual
folkyatina Feb 10, 2023
29e2a7c
Merge branch 'feature/shapella-upgrade' into accounting-boundaries-sa…
arwer13 Feb 10, 2023
f2730f6
fix tests
bulbozaur Feb 10, 2023
a70e8a9
Merge remote-tracking branch 'origin/feature/shapella-upgrade' into r…
folkyatina Feb 10, 2023
e035538
Merge pull request #596 from lidofinance/feature/tests-fix
bulbozaur Feb 10, 2023
9279f11
Add methods for batched node operator and staking module reports rece…
Psirex Feb 10, 2023
6c0d1f6
OracleReportSanityChecker: fix single slot packing of LimitsListPacked
arwer13 Feb 10, 2023
8ea1b90
Merge pull request #595 from lidofinance/refactor/rename_lido_oracle
TheDZhon Feb 10, 2023
5aa5fce
sanity checks: check number of appeared validators in Lido
arwer13 Feb 10, 2023
85931d8
chore: move Pausable into utils
folkyatina Feb 10, 2023
1a4e671
sanity checks: refactor naming of one check-function
arwer13 Feb 10, 2023
3507c9c
fix tests: oracle-report-sanity-checker
arwer13 Feb 10, 2023
3c50fba
fix: emit Paused on initialize in PausableUntil
folkyatina Feb 10, 2023
f3ea54e
fix: optimize discount storage in wq
folkyatina Feb 10, 2023
888eed7
Add updateRefundedValidatorsCount to StakingRouter
Psirex Feb 10, 2023
279fa06
safety checks: combine maxExitedValidators and churnLimit
arwer13 Feb 10, 2023
d5cf565
Add commented var names into tuple decoding
Psirex Feb 10, 2023
37733fd
fix: bunker mode timestamp renaming
folkyatina Feb 10, 2023
a772427
chore: abi
folkyatina Feb 10, 2023
dc6b99d
test updates
bulbozaur Feb 10, 2023
561af46
feat: events for bunker mode
folkyatina Feb 10, 2023
cbfd98c
Merge pull request #598 from lidofinance/refactor/review_fixes
TheDZhon Feb 10, 2023
e34f6d6
feat: allow stETH approval in paused state
TheDZhon Feb 10, 2023
c40fa7a
fix: set approvals for burner
TheDZhon Feb 10, 2023
1f7ad2c
Use uint256 type in external/public methods
Psirex Feb 10, 2023
b606037
remove test
bulbozaur Feb 10, 2023
2b9bfb7
Merge pull request #597 from lidofinance/feature/tests-fix
TheDZhon Feb 10, 2023
33cd6a0
Merge branch 'feature/tests-fix' into accounting-boundaries-sanity
arwer13 Feb 10, 2023
054e40f
Merge pull request #594 from lidofinance/feature/shapella-upgrade-fix…
TheDZhon Feb 10, 2023
f34273c
Merge pull request #574 from lidofinance/feature/shapella-upgrade-sta…
TheDZhon Feb 10, 2023
b793f27
Merge branch 'feature/shapella-upgrade' into accounting-boundaries-sa…
arwer13 Feb 10, 2023
f06e363
fix tests: OracleReportSanityChecker factory
arwer13 Feb 10, 2023
ad39693
Merge pull request #599 from lidofinance/sanity-refactoring
TheDZhon Feb 10, 2023
834155b
fix: remove extra pause check from `_mintShares`
TheDZhon Feb 10, 2023
7379bd9
chore: add nb about allowance in pause
TheDZhon Feb 10, 2023
ffd4642
chore: add missing abi
arwer13 Feb 10, 2023
98bbca6
Merge pull request #600 from lidofinance/fix/remove-redundant-pause-c…
TheDZhon Feb 10, 2023
956d2b0
tests fix: fix roles in StakingRouter tests
arwer13 Feb 10, 2023
2238c7d
fix: remove Pausable rudiment
TheDZhon Feb 10, 2023
f4260d1
chore: fix event name
TheDZhon Feb 10, 2023
94b40f8
Merge pull request #3 from lidofinance/feature/shapella-upgrade
Roy-Certora Feb 12, 2023
a033ace
Feature/shapella upgrade (#4)
Roy-Certora Feb 14, 2023
7f30a69
Update certora verification after last code freeze
Roy-Certora Feb 14, 2023
16ac6fa
Upgraded StakingRouter setup for NodeOpRegistry
Roy-Certora Feb 16, 2023
dcdc92c
Updated specs. Replaced deposit contract to mock.
Roy-Certora Feb 19, 2023
a7481b8
Update StakingRouter spec - separate scripts
Roy-Certora Feb 20, 2023
f2d6eb1
Update branch
Roy-Certora Feb 21, 2023
a6bbaa0
Restore specs
Roy-Certora Feb 21, 2023
0315cf1
NOS spec and script. More fixes after code freeze.
Roy-Certora Feb 22, 2023
4499d95
adding inheritance graph
Feb 26, 2023
5e179f9
AccountingOracle initial setup
Feb 28, 2023
4a91588
fixing setup (copyLoopUnroll,hashing_length_bound)
Feb 28, 2023
a87c955
adding json to .gitignore
Feb 28, 2023
25aa8c6
json updates
Feb 28, 2023
2daed18
adding linking to the setup
Mar 1, 2023
efe80bd
adding rules for AccessControl.sol
Mar 5, 2023
6937e1a
fixing setup, munging BaseOracle, adding rules on AccessControl
Mar 6, 2023
30dcf99
fixing rules for AccessControlEnumerable
Mar 6, 2023
ea88a25
adding rules on cannotSubmitSameReportDataTwice
Mar 7, 2023
1d56352
adding and fixing rules, removing locator, munging
Mar 12, 2023
c1a8a0f
abi json update after munging
Mar 12, 2023
1154ac1
adding rule correctRevertsOfSubmitReportData
Mar 13, 2023
a14df7d
fixed correctRevertsOfSubmitReportData
Mar 13, 2023
e7d5664
adding rules for BaseOracle.sol
Mar 16, 2023
344cb62
adding more BaseOracle rules and cleanup
Mar 16, 2023
096734b
adding more rule ideas and explainers
Mar 20, 2023
569cf63
adding and improving rules
Mar 20, 2023
d85d1af
json update
Mar 20, 2023
f0d62f0
adding more rules for AccountingOracle
Mar 23, 2023
41ab267
polishing rules and fixing numbering
Mar 26, 2023
76cf0ea
minor rule fixes
Mar 26, 2023
9435066
adding rules and ideas for HashConsensus
Mar 27, 2023
0daf652
more rule ideas + rules for setFrameConfig
Mar 28, 2023
33fcec0
updated spec and some fixes
Mar 29, 2023
ac0fafc
commenting unused definitions of roles
Mar 29, 2023
8a3bdc6
update rules on AccessControlEnumerable
Mar 29, 2023
18347cf
adding rule nobodyCanChangeLastProcessingRefSlot
Mar 29, 2023
b8a37c6
fix for cannotInitializeTwice
Mar 30, 2023
1f27b62
clarification to nonInterferenceOfRolesAndAccounts
Mar 30, 2023
cb25157
rule numbering and commenting out bad rules
Mar 30, 2023
8790339
adding CVL function saneTimeConfig()
Apr 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4

[*.{js,yml}]
indent_size = 2
22 changes: 4 additions & 18 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
"node": true,
"es2020": true
},
"extends": [
"standard",
"plugin:prettier/recommended",
"prettier",
"prettier/standard"
],
"parser": "babel-eslint",
"extends": ["standard", "plugin:prettier/recommended", "prettier", "prettier/standard"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
Expand All @@ -18,11 +13,7 @@
"modules": true
}
},
"plugins": [
"node",
"prettier",
"standard"
],
"plugins": ["node", "prettier", "standard"],

"rules": {
"prettier/prettier": "error",
Expand All @@ -37,16 +28,11 @@
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"jsx-quotes": ["error", "prefer-single"],
"no-useless-escape": "off",
"valid-jsdoc": "error",
"linebreak-style": ["error", "unix"]
},
"overrides": [
{
"files": [
"./scripts/{**/,}*.js",
"./test/{**/,}*.js",
"./e2e/test/{**/,}*.js"
],
"files": ["./scripts/{**/,}*.js", "./test/{**/,}*.js", "./e2e/test/{**/,}*.js"],
"env": {
"mocha": true
},
Expand Down
128 changes: 0 additions & 128 deletions .github/assert-deployed-bytecode.js

This file was deleted.

16 changes: 0 additions & 16 deletions .github/assert-git-changes.py

This file was deleted.

3 changes: 1 addition & 2 deletions .github/deployed-bytecode-consts.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
const APPS_TO_NAMES = new Map([
['lido', 'Lido'],
['node-operators-registry', 'NodeOperatorsRegistry'],
['oracle', 'LidoOracle']
])

const CONTRACTS_TO_NAMES = new Map([
['wstethContract', 'WstETH'],
['executionLayerRewardsVault', 'LidoExecutionLayerRewardsVault'],
['compositePostRebaseBeaconReceiver', 'CompositePostRebaseBeaconReceiver'],
['selfOwnedStETHBurner', 'SelfOwnedStETHBurner'],
['burner', 'Burner'],
['depositor', 'DepositSecurityModule']
])

Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Code Analysis

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
slither:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup node.js version
uses: actions/setup-node@v3
with:
node-version: 16

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- name: Cache yarn cache
id: cache-yarn-cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-${{ hashFiles('**/yarn.lock') }}

- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: node_modules-${{ hashFiles('**/yarn.lock') }}

- name: Install modules
run: yarn
if: |
steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
steps.cache-node-modules.outputs.cache-hit != 'true'

- uses: actions/setup-python@v4
with:
python-version: '3.10.6'

- name: Install poetry requirements
run: >
curl -sSL https://install.python-poetry.org | python - &&
poetry install --no-root

- name: Run slither
run: >
poetry run slither . --sarif results.sarif || true

- name: Check results.sarif presence
id: results
if: always()
shell: bash
run: >
test -f results.sarif &&
echo 'value=present' >> $GITHUB_OUTPUT ||
echo 'value=not' >> $GITHUB_OUTPUT

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
if: ${{ always() && steps.results.outputs.value == 'present' }}
with:
sarif_file: results.sarif
Loading