Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: master from lido-dao with master with core #842

Closed
wants to merge 866 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
866 commits
Select commit Hold shift + click to select a range
bbf167e
fix: import
tamtamchik Jul 10, 2024
e0cb6e4
fix: required sdvt setup
tamtamchik Jul 10, 2024
3733732
test: add submitting eth part
tamtamchik Jul 10, 2024
ee99220
feat: hash consensus frames
eddort Jul 10, 2024
a486706
feat: hash consensus report processor tests
eddort Jul 10, 2024
a66ee77
feat: hash consensus members tests
eddort Jul 11, 2024
57a965a
test: update integration test codebase
tamtamchik Jul 11, 2024
36fe0c6
chore: apply some new eslint rules
tamtamchik Jul 11, 2024
3b4e69d
chore: fix all ci errors
tamtamchik Jul 11, 2024
b173573
feat: add comments about DEADLINE_SLOT_OFFSET var
eddort Jul 12, 2024
e6ec096
feat: hash consensus getTime test
eddort Jul 12, 2024
198da7b
test: add new steps to happy path
tamtamchik Jul 12, 2024
6cf096d
chore: update dependencies
tamtamchik Jul 12, 2024
a5afe75
chore: linters
tamtamchik Jul 12, 2024
7d1fda7
chore: rename
tamtamchik Jul 15, 2024
e9fd831
chore: fix coverage
tamtamchik Jul 15, 2024
422a4fd
chore: cleanup test helpers
tamtamchik Jul 15, 2024
cde8c97
chore: fix types
tamtamchik Jul 15, 2024
3513cb5
chore(deps): bump setuptools from 69.5.1 to 70.0.0
dependabot[bot] Jul 15, 2024
8fa9d60
chore: cleanup typed import and some overrides
tamtamchik Jul 16, 2024
56a648a
fix: linters
tamtamchik Jul 16, 2024
351145f
chore: update condition to make the test pass
tamtamchik Jul 16, 2024
2cdc304
chore: update docs
tamtamchik Jul 17, 2024
a93e811
chore: update docs and tracer
tamtamchik Jul 17, 2024
df89511
test: finished happy path
tamtamchik Jul 17, 2024
70f9cfd
docs: update docs
tamtamchik Jul 18, 2024
1896129
chore: restore transfers assertion for rebase
tamtamchik Jul 18, 2024
9f5e756
test: 100% covered
tamtamchik Jul 18, 2024
bf36c3e
Merge pull request #128 from lidofinance/dependabot/pip/setuptools-70…
TheDZhon Jul 18, 2024
722e025
Merge pull request #126 from lidofinance/feat/remove-helpers
TheDZhon Jul 18, 2024
ecd4064
Merge branch 'repovation' into feat/integration
tamtamchik Jul 19, 2024
663337c
fix: restore formatting
tamtamchik Jul 19, 2024
1bdab86
Update test/0.8.9/oracle/hashConsensus.fastLaneLength.test.ts
eddort Jul 19, 2024
fd23829
Update test/0.8.9/oracle/hashConsensus.fastLaneMembers.test.ts
eddort Jul 19, 2024
8d8787d
Update test/0.8.9/oracle/hashConsensus.fastLaneMembers.test.ts
eddort Jul 19, 2024
c2bc829
fix: restore dummy contract
tamtamchik Jul 22, 2024
3d90f46
ci: add workflows for repovation branch
tamtamchik Jul 22, 2024
ccd4bbc
Merge pull request #135 from lidofinance/feat/restore-dummy-empty-con…
tamtamchik Jul 22, 2024
69e2fc7
Merge branch 'repovation' into feat/integration
tamtamchik Jul 22, 2024
855daa4
feat: update local discovery
tamtamchik Jul 22, 2024
08a5561
refactor: code review
eddort Jul 22, 2024
af7c711
Merge branch 'feat/hash-consensus-tests' of github.com:lidofinance/co…
eddort Jul 22, 2024
db21108
fix: hash consensus access control test deploy params
eddort Jul 22, 2024
5f5e2ff
fix: re-triggering consensus tests description
eddort Jul 22, 2024
9ba5468
Merge branch 'repovation' into feat/hash-consensus-tests
tamtamchik Jul 23, 2024
16ad4a9
Merge pull request #120 from lidofinance/feat/hash-consensus-tests
tamtamchik Jul 23, 2024
1f5f399
lint: fix errors
tamtamchik Jul 23, 2024
7a9e1cb
Merge branch 'repovation' into feat/integration
tamtamchik Jul 23, 2024
4aca67e
test: burn shares
tamtamchik Jul 23, 2024
5c922d1
chore: refactoring and provisioning for scratch deploy
tamtamchik Jul 25, 2024
b0ef606
fix: linters
tamtamchik Jul 25, 2024
083c2cc
chore: finish provisioning
tamtamchik Jul 25, 2024
8d95a5f
chore: update tests on scratch deploy
tamtamchik Jul 26, 2024
2b62d14
Merge pull request #132 from lidofinance/repovation
mymphe Jul 26, 2024
382defb
chore: review updates and fixes
tamtamchik Jul 26, 2024
5a2f047
chore: update equality check
tamtamchik Jul 26, 2024
73f8706
chore: review fixes
tamtamchik Jul 26, 2024
139d1cd
Merge branch 'master' into feat/integration
tamtamchik Jul 26, 2024
3d455db
fix: types naming
tamtamchik Jul 26, 2024
3ca85d0
chore: diversity
tamtamchik Jul 26, 2024
4fc0e5b
Merge pull request #137 from lidofinance/chore/equality
tamtamchik Jul 29, 2024
9e49e1f
Merge pull request #139 from lidofinance/master
tamtamchik Jul 29, 2024
475bf79
Merge branch 'repovation' into feat/integration
tamtamchik Jul 29, 2024
6f1ce5d
chore: update dependencies
tamtamchik Jul 30, 2024
d5bea29
chore: make tests work on scratch deploy
tamtamchik Jul 30, 2024
834766c
chore: log level
tamtamchik Jul 30, 2024
b108b98
chore: some minor tweaks applied
tamtamchik Jul 30, 2024
e673c52
fix: oracle committee members
tamtamchik Aug 1, 2024
0899c39
Merge pull request #105 from lidofinance/feat/integration
tamtamchik Aug 2, 2024
96819ba
Merge pull request #138 from lidofinance/repovation
mymphe Aug 5, 2024
344df09
fix: integration node docker version
tamtamchik Aug 7, 2024
2fbcd89
Merge pull request #143 from lidofinance/fix/integration-node
tamtamchik Aug 7, 2024
76f0de8
chore: update dependencies
tamtamchik Aug 12, 2024
1e56e2a
Create SECURITY.md
mymphe Aug 12, 2024
f176968
Create CONTRACT-BUG-REPORT.yml
mymphe Aug 12, 2024
ef66ce0
Create FEATURE-REQUEST.yml
mymphe Aug 12, 2024
9656274
fix: linter setup
tamtamchik Aug 12, 2024
b6368c7
chore: bump ci runner
tamtamchik Aug 12, 2024
7d1018d
chore: update poetry dependencies
tamtamchik Aug 12, 2024
d3b0f40
Merge pull request #146 from lidofinance/feat/hh-update
tamtamchik Aug 12, 2024
86177d4
Merge branch 'master' into chore/issue-form
mymphe Aug 13, 2024
4680833
add a Pull Request template
mymphe Aug 13, 2024
95ae5cc
chore(deps): bump axios from 1.6.8 to 1.7.4
dependabot[bot] Aug 14, 2024
ee11a80
Add CODEOWNERS file
mymphe Aug 14, 2024
ada0eaa
Merge branch 'master' into pr-template
mymphe Aug 15, 2024
c40498f
Update .github/CODEOWNERS
mymphe Aug 15, 2024
5f0abc3
Merge branch 'master' into chore/issue-form
mymphe Aug 15, 2024
705b179
Merge branch 'master' into security-notice
mymphe Aug 15, 2024
4915a6e
feat: initial accounting integration tests port
vp4242 Jul 24, 2024
8f6707c
test: first accounting test
vp4242 Jul 24, 2024
31da8a4
test: negative rebase report
vp4242 Jul 25, 2024
7ea732d
fix: dependencies
vp4242 Jul 25, 2024
1f388f1
chore: remove duplicate function
vp4242 Jul 29, 2024
4041f22
test: make tests anvil friendly
vp4242 Jul 29, 2024
2d810c0
test: add positive CL rebase close to the limits
vp4242 Jul 29, 2024
a7fc514
test: sanity checker revert report
vp4242 Jul 31, 2024
b9d1d90
test: remove block specific requests
vp4242 Aug 1, 2024
e51e178
test: remove more block specific requests
vp4242 Aug 1, 2024
e6b36eb
test: should account correctly if no EL rewards
vp4242 Aug 1, 2024
69411e7
test: should account correctly normal EL rewards
vp4242 Aug 1, 2024
d0f3f24
test: should account correctly EL rewards at limits
vp4242 Aug 2, 2024
49ec136
chore: fix rebaseLimitWei() and usage
vp4242 Aug 2, 2024
cae98c6
test: should account correctly EL rewards above limits
vp4242 Aug 2, 2024
8c8e857
fix: case for non-finalized withdrawal queue
vp4242 Aug 9, 2024
b03056a
fix: case for non-finalized withdrawal queue
vp4242 Aug 9, 2024
8647165
test: should account correctly with no withdrawals
vp4242 Aug 9, 2024
be68357
fix: formatting
vp4242 Aug 9, 2024
c3fa30d
fix: clarify report phases log
vp4242 Aug 14, 2024
e877cc4
feat: add wstETH contract to discovery
vp4242 Aug 14, 2024
dc74135
test: add helpers
vp4242 Aug 14, 2024
37e6b03
test: add more tests
vp4242 Aug 14, 2024
203a5e9
test: add final tests
vp4242 Aug 15, 2024
70187ec
fix: types
vp4242 Aug 15, 2024
c2c5ea1
fix: extract eth holder
vp4242 Aug 15, 2024
e3487e8
fix: increase whale balance
vp4242 Aug 15, 2024
04bd088
Merge pull request #153 from lidofinance/codeowners
TheDZhon Aug 16, 2024
40f7922
docs: contributing
tamtamchik Aug 19, 2024
d64a0f3
Merge pull request #154 from lidofinance/feat/contributing
tamtamchik Aug 20, 2024
f10f7c7
Merge branch 'master' into pr-template
tamtamchik Aug 20, 2024
8356238
feat: update codeowners
tamtamchik Aug 20, 2024
54d4864
Merge branch 'master' into security-notice
tamtamchik Aug 20, 2024
ee9619d
Merge pull request #156 from lidofinance/feat/codeowners
TheDZhon Aug 20, 2024
8372b16
Merge branch 'master' into pr-template
TheDZhon Aug 20, 2024
3f87563
chore: apply suggestions from code review
tamtamchik Aug 20, 2024
f4de001
Merge branch 'master' into security-notice
tamtamchik Aug 20, 2024
dfee3bd
Merge pull request #147 from lidofinance/security-notice
TheDZhon Aug 20, 2024
3b36358
Merge branch 'master' into pr-template
tamtamchik Aug 21, 2024
4edb275
Merge branch 'master' into dependabot/npm_and_yarn/axios-1.7.4
tamtamchik Aug 21, 2024
7693ed0
chore: update contributing guide again
tamtamchik Aug 21, 2024
92880a6
chore: 0.4.24 grooming
tamtamchik Aug 21, 2024
b988d27
chore: 0.4.24 grooming continues
tamtamchik Aug 21, 2024
c2864a1
chore: 0.4.24 grooming continues more
tamtamchik Aug 21, 2024
3531d28
chore: 0.4.24 grooming lido and nor tests
tamtamchik Aug 22, 2024
7169cad
chore: 0.4.24 grooming done
tamtamchik Aug 22, 2024
f58b34d
chore: 0.6.12 grooming done
tamtamchik Aug 22, 2024
f9dc2be
chore: 0.8.4 grooming done
tamtamchik Aug 22, 2024
cf52ab9
chore: cleanup some deploy params
tamtamchik Aug 22, 2024
97ba06d
chore: 0.8.9 grooming contracts
tamtamchik Aug 22, 2024
9b9b8ed
chore: 0.8.9 grooming done
tamtamchik Aug 23, 2024
46a4f5b
chore: grooming sol files and deploys
tamtamchik Aug 23, 2024
d475cbe
fix: ci errors
tamtamchik Aug 23, 2024
4b84f0f
ci: bump hh version
tamtamchik Aug 23, 2024
0d9df71
chore: add auto-lint for test contracts
tamtamchik Aug 23, 2024
81e68be
Merge pull request #159 from lidofinance/feat/mock-harness
tamtamchik Aug 26, 2024
2fc9848
lint: run prettier
tamtamchik Aug 26, 2024
48fb2ec
Merge branch 'repovation' into feat/oracle-integration
tamtamchik Aug 26, 2024
08ca51c
ci: add integration tests on scratch deployment
tamtamchik Aug 27, 2024
5a7465f
fix: restore fork env
tamtamchik Aug 27, 2024
937653f
Merge pull request #165 from lidofinance/ci/scratch
tamtamchik Aug 27, 2024
eb04c2b
chore: review updates
tamtamchik Aug 27, 2024
0a07ae4
ci: use special image
tamtamchik Aug 27, 2024
0987793
ci: tune naming
tamtamchik Aug 27, 2024
3b858e8
ci: add coverage threshold 95%
tamtamchik Aug 27, 2024
b976533
chore: update scratch deploy libs
tamtamchik Aug 28, 2024
ddc1ccd
chore: add migrator
tamtamchik Aug 28, 2024
293b8c1
chore: update deployment steps
tamtamchik Aug 28, 2024
06d9853
fix: fix scratch deploy command
tamtamchik Aug 28, 2024
a00002c
chore: update ci scratch deploy script
tamtamchik Aug 28, 2024
b820ee5
fix: fix scratch deploy env
tamtamchik Aug 28, 2024
bd8c029
chore: restore scratch acceptance test file
tamtamchik Aug 28, 2024
5b1efb7
chore: remove factories
tamtamchik Aug 28, 2024
0e411d3
fix: typings
tamtamchik Aug 28, 2024
3d54394
chore: working local integration tests with scratch deploy and tracing
tamtamchik Aug 29, 2024
1a938f1
chore: update commands and docs
tamtamchik Aug 29, 2024
3f676ca
chore: review updates
tamtamchik Aug 30, 2024
0de12c0
Merge branch 'feat/integration-deployment' into feat/accounting-scratch
tamtamchik Aug 30, 2024
9a2f46c
fix: docs
tamtamchik Aug 30, 2024
02d9e83
Merge branch 'feat/integration-deployment' into feat/accounting-scratch
tamtamchik Aug 30, 2024
05a770f
fix: better logging texts
vp4242 Aug 30, 2024
9699355
fix: remove dedicated getEvents()
vp4242 Aug 30, 2024
5010074
test: move setting balance inside snapshotted part
vp4242 Aug 30, 2024
d54bedc
test: add some comments
vp4242 Aug 30, 2024
4719d3c
test: remove logging, add chech
vp4242 Aug 30, 2024
4f698a4
chore: simplify template
mymphe Sep 2, 2024
ff1089f
chore: draw attention to bug bounty
mymphe Sep 2, 2024
8cff49c
Merge branch 'master' into chore/issue-form
mymphe Sep 2, 2024
c14888f
Merge pull request #162 from lidofinance/repovation
mymphe Sep 2, 2024
d1a2c5a
chore(deps): bump micromatch from 4.0.7 to 4.0.8
dependabot[bot] Sep 2, 2024
a27e1da
Merge branch 'master' into pr-template
mymphe Sep 2, 2024
6a00b1b
Merge branch 'master' into chore/issue-form
mymphe Sep 2, 2024
6dabfa3
chore: update migrator logic
tamtamchik Sep 2, 2024
becbce7
chore: unify migration config
tamtamchik Sep 2, 2024
eb91362
Merge branch 'master' into feat/integration-deployment
tamtamchik Sep 2, 2024
b779758
Merge pull request #151 from lidofinance/pr-template
TheDZhon Sep 2, 2024
7751659
Merge branch 'master' into chore/issue-form
TheDZhon Sep 2, 2024
2915342
Merge pull request #148 from lidofinance/chore/issue-form
TheDZhon Sep 2, 2024
d0d88b6
Merge branch 'repovation' into dependabot/npm_and_yarn/axios-1.7.4
tamtamchik Sep 2, 2024
765599f
Merge pull request #152 from lidofinance/dependabot/npm_and_yarn/axio…
tamtamchik Sep 2, 2024
84c15fb
Merge pull request #170 from lidofinance/dependabot/npm_and_yarn/micr…
tamtamchik Sep 2, 2024
5a38b97
Merge branch 'repovation' of github.com:lidofinance/core into repovation
tamtamchik Sep 2, 2024
a6822f3
chore: update dependencies
tamtamchik Sep 2, 2024
e6fa3f1
test: add more comments
vp4242 Sep 2, 2024
a093e76
Merge branch 'repovation' into feat/integration-deployment
tamtamchik Sep 3, 2024
ad59107
Merge branch 'feat/oracle-integration' into feat/accounting-scratch
tamtamchik Sep 3, 2024
0d8c410
Merge branch 'feat/integration-deployment' into feat/accounting-scratch
tamtamchik Sep 3, 2024
925d4fd
fix: cache deployment steps on multiple tests
tamtamchik Sep 3, 2024
af4643b
Merge branch 'feat/integration-deployment' into feat/accounting-scratch
tamtamchik Sep 3, 2024
81b018f
chore: some tooling upgrades
tamtamchik Sep 4, 2024
06f8c55
chore: improve resolution
tamtamchik Sep 4, 2024
f751ee9
chore: 9 of 10 accounting tests stabilized
tamtamchik Sep 4, 2024
1c6d9e0
chore: accounting should work
tamtamchik Sep 4, 2024
6203a32
fix: foundry tests
tamtamchik Sep 5, 2024
bf74808
Merge branch 'repovation' into feat/fix-foundry-tests
tamtamchik Sep 5, 2024
b49c377
fix: foundry tests
tamtamchik Sep 5, 2024
b76849b
Merge pull request #200 from lidofinance/feat/fix-foundry-tests
tamtamchik Sep 5, 2024
fa677e0
Merge branch 'repovation' into feat/accounting-scratch
tamtamchik Sep 5, 2024
4cd08ae
Merge branch 'repovation' into feat/oracle-integration
tamtamchik Sep 5, 2024
788bbce
Merge branch 'feat/oracle-integration' into feat/accounting-scratch
tamtamchik Sep 5, 2024
838938e
Merge pull request #199 from lidofinance/feat/accounting-scratch
tamtamchik Sep 5, 2024
bdc1379
Merge pull request #166 from lidofinance/feat/integration-deployment
tamtamchik Sep 5, 2024
98b47bb
Merge branch 'repovation' into feat/oracle-integration
tamtamchik Sep 5, 2024
1aef8c4
chore: update discovery
tamtamchik Sep 5, 2024
ba80c84
fix: tests
tamtamchik Sep 5, 2024
7febc70
Merge pull request #136 from lidofinance/feat/oracle-integration
tamtamchik Sep 5, 2024
41e7ef9
feat: add sepolia deposit adapter
vp4242 Sep 4, 2024
829ac17
fix: formatting
vp4242 Sep 4, 2024
d2ca7a8
feat: remove event as there is OwnershipTransferred
vp4242 Sep 4, 2024
1929ef8
test: add proxy call test
vp4242 Sep 4, 2024
4a7b284
feat: implement versioning for adapter
vp4242 Sep 6, 2024
2fba778
test: fix proxy specific tests
vp4242 Sep 6, 2024
2bd7a77
test: add comments
vp4242 Sep 6, 2024
3cd650d
test: remove unused code
vp4242 Sep 6, 2024
2a70fdc
Merge pull request #198 from lidofinance/feat/sepolia-deposit-adapter
vp4242 Sep 6, 2024
7ce88b7
chore: update slither-analyzer
tamtamchik Sep 9, 2024
b191098
chore: add slitherin
tamtamchik Sep 9, 2024
436a3d8
Merge pull request #202 from lidofinance/feat/update-slither
tamtamchik Sep 9, 2024
ba0a1b1
fix: generation of SARIF file
tamtamchik Sep 9, 2024
b4aae7d
chore: remove redundant prams
tamtamchik Sep 9, 2024
e716645
Merge branch 'repovation' into feat/add-slitherin
tamtamchik Sep 9, 2024
4bb3a46
Merge pull request #203 from lidofinance/feat/add-slitherin
tamtamchik Sep 9, 2024
78408f4
chore: cleanup comments in analyze action
tamtamchik Sep 9, 2024
5408996
Merge pull request #205 from lidofinance/feat/fix-comments
TheDZhon Sep 9, 2024
a8c7ed3
chore: extract abis action added
tamtamchik Sep 9, 2024
7bd989a
chore: simplify
tamtamchik Sep 9, 2024
3b8b8b9
fix: rename HARDHAT_FORKING_URL
tamtamchik Sep 10, 2024
fb6f3ce
fix: sepoliaDepositAdapter SPDX header
tamtamchik Sep 10, 2024
71c56fc
docs: add link to discontinuation of aragon ui
tamtamchik Sep 10, 2024
850a5e0
chore: better descriptions for integration test flags
tamtamchik Sep 10, 2024
e4dc3e8
chore: cleanup some redundant comments
tamtamchik Sep 10, 2024
8b8ab0d
chore: rename migration steps
tamtamchik Sep 10, 2024
759448b
ci: update scratch deploy ci action
tamtamchik Sep 10, 2024
057f447
Merge pull request #206 from lidofinance/feat/release-abis
tamtamchik Sep 10, 2024
a0cef3f
Merge pull request #207 from lidofinance/feat/review-fixes
tamtamchik Sep 10, 2024
0d4231e
Merge pull request #188 from lidofinance/repovation
tamtamchik Sep 10, 2024
9d44fa9
docs: fix minor typo
mollybs Sep 22, 2024
0c772b0
Merge pull request #212 from mollybs/master
tamtamchik Sep 23, 2024
c2dcee1
Update scratch-deploy.md
nnsW3 Sep 30, 2024
3094e63
Update README.md
nnsW3 Sep 30, 2024
9eb1257
Merge pull request #222 from nnsW3/docs-fix-spelling-issues
tamtamchik Sep 30, 2024
57f03d8
Merge branch 'master' into sync/dao-master
tamtamchik Sep 30, 2024
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
  •  
  •  
  •  
7 changes: 3 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4

[*.{js,yml,json,cjs}]
indent_size = 2
max_line_length = 120

[*.sol]
indent_size = 4
59 changes: 59 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# RPC URL for a locally running node (Ganache, Anvil, Hardhat Network, etc.), used for scratch deployment and tests
LOCAL_RPC_URL=http://localhost:8555

LOCAL_LOCATOR_ADDRESS=
LOCAL_AGENT_ADDRESS=
LOCAL_VOTING_ADDRESS=
LOCAL_EASY_TRACK_EXECUTOR_ADDRESS=
LOCAL_ACCOUNTING_ORACLE_ADDRESS=
LOCAL_ACL_ADDRESS=
LOCAL_BURNER_ADDRESS=
LOCAL_DEPOSIT_SECURITY_MODULE_ADDRESS=
LOCAL_EL_REWARDS_VAULT_ADDRESS=
LOCAL_HASH_CONSENSUS_ADDRESS=
LOCAL_KERNEL_ADDRESS=
LOCAL_LEGACY_ORACLE_ADDRESS=
LOCAL_LIDO_ADDRESS=
LOCAL_NOR_ADDRESS=
LOCAL_ORACLE_DAEMON_CONFIG_ADDRESS=
LOCAL_ORACLE_REPORT_SANITY_CHECKER_ADDRESS=
LOCAL_SDVT_ADDRESS=
LOCAL_STAKING_ROUTER_ADDRESS=
LOCAL_VALIDATORS_EXIT_BUS_ORACLE_ADDRESS=
LOCAL_WITHDRAWAL_QUEUE_ADDRESS=
LOCAL_WITHDRAWAL_VAULT_ADDRESS=

# RPC URL for a separate, non Hardhat Network node (Anvil, Infura, Alchemy, etc.)
MAINNET_RPC_URL=http://localhost:8545
# RPC URL for Hardhat Network forking, required for running tests on mainnet fork with tracing (Infura, Alchemy, etc.)
# https://hardhat.org/hardhat-network/docs/guides/forking-other-networks#forking-other-networks
MAINNET_FORKING_URL=

# https://docs.lido.fi/deployed-contracts
MAINNET_LOCATOR_ADDRESS=0xC1d0b3DE6792Bf6b4b37EccdcC24e45978Cfd2Eb
MAINNET_AGENT_ADDRESS=0x3e40D73EB977Dc6a537aF587D48316feE66E9C8c
MAINNET_VOTING_ADDRESS=0x2e59A20f205bB85a89C53f1936454680651E618e
MAINNET_EASY_TRACK_EXECUTOR_ADDRESS=0xFE5986E06210aC1eCC1aDCafc0cc7f8D63B3F977
MAINNET_ACCOUNTING_ORACLE_ADDRESS=
MAINNET_ACL_ADDRESS=
MAINNET_BURNER_ADDRESS=
MAINNET_DEPOSIT_SECURITY_MODULE_ADDRESS=
MAINNET_EL_REWARDS_VAULT_ADDRESS=
MAINNET_HASH_CONSENSUS_ADDRESS=
MAINNET_KERNEL_ADDRESS=
MAINNET_LEGACY_ORACLE_ADDRESS=
MAINNET_LIDO_ADDRESS=
MAINNET_NOR_ADDRESS=
MAINNET_ORACLE_DAEMON_CONFIG_ADDRESS=
MAINNET_ORACLE_REPORT_SANITY_CHECKER_ADDRESS=
MAINNET_SDVT_ADDRESS=
MAINNET_STAKING_ROUTER_ADDRESS=
MAINNET_VALIDATORS_EXIT_BUS_ORACLE_ADDRESS=
MAINNET_WITHDRAWAL_QUEUE_ADDRESS=
MAINNET_WITHDRAWAL_VAULT_ADDRESS=

# Scratch deployment via hardhat variables
DEPLOYER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
GENESIS_TIME=1639659600
GAS_PRIORITY_FEE=1
GAS_MAX_FEE=100
33 changes: 0 additions & 33 deletions .eslintrc

This file was deleted.

5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
*.sol linguist-language=Solidity
/.yarn/** linguist-vendored
/.yarn/releases/* binary
/.yarn/plugins/**/* binary
/.pnp.* binary linguist-generated
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# CODEOWNERS: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

# Any PR to `master` branch with changes to production contracts notifies the protocol team
/contracts/ @lidofinance/lido-eth-protocol

# Any PR to `master` branch with changes to GitHub workflows notifies the workflow review team
/.github/workflows/ @lidofinance/review-gh-workflows
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/CONTRACT-BUG-REPORT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Contract Bug Report
description: File a bug report in a contract.
title: "[Bug]: "
labels: ["bug", "contracts"]
body:
- type: markdown
attributes:
value: |
⚠️ Important! If the bug may potentially lead to loss of user funds, denial of service, governance hijacks, data breaches, and data leaks, please refer to [Lido Bug Bounty](https://immunefi.com/bug-bounty/lido/information/).
- type: textarea
id: summary
attributes:
label: Summary
description: Short summary of the bug
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behavior
description: Expected behavior of the contract without the bug
validations:
required: true
- type: textarea
id: Impact
attributes:
label: Potential Impact
description: Bug's impact and possible consequences
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: Steps to Reproduce
description: Instructions to reproduce the bug
validations:
required: true
- type: textarea
id: solution
attributes:
label: Possible Solutions
description: Possible ways to fix the bug
validations:
required: false
- type: checkboxes
id: terms
attributes:
label: Guidelines
options:
- label: I agree to follow [Code of Conduct](https://github.com/lidofinance/core/blob/master/CODE_OF_CONDUCT.md).
required: true
- label: I have read [Lido Contribution Guide](https://github.com/lidofinance/core/blob/master/CONTRIBUTING.md).
required: true
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Feature Request
description: Submit a feature request.
title: "[Feature Request]: "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this feature request form!
- type: textarea
id: summary
attributes:
label: Summary
description: Short summary of the feature
validations:
required: true
- type: textarea
id: problem
attributes:
label: Problem
description: Existing problem that the feature solves
validations:
required: true
- type: textarea
id: implementation
attributes:
label: Implementation
description: Possible ways to implement this feature
validations:
required: false
- type: checkboxes
id: terms
attributes:
label: Guidelines
options:
- label: I agree to follow [Code of Conduct](https://github.com/lidofinance/core/blob/master/CODE_OF_CONDUCT.md).
required: true
- label: I have read [Lido Contribution Guide](https://github.com/lidofinance/core/blob/master/CONTRIBUTING.md).
required: true
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
A short summary of the changes.

## Context

What the reviewer needs to know

## Problem

What problem this PR solves, link relevant issue if it exists

## Solution

Your proposed solution
76 changes: 27 additions & 49 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,47 @@
name: Code Analysis
name: Analysis

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

jobs:
slither:
name: Slither
runs-on: ubuntu-latest

permissions:
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/checkout@v4

- name: Setup node.js version
uses: actions/setup-node@v4
with:
node-version: 18
- name: Common setup
uses: ./.github/workflows/setup

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

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

- 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 dependencies
run: poetry install --no-root

- 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
- name: Versions
run: >
curl -sSL https://install.python-poetry.org | python - &&
poetry install --no-root

- name: Remove foundry.toml
run: rm -f foundry.toml
poetry --version &&
python --version &&
echo "slither $(poetry run slither --version)" &&
poetry run slitherin --version

- name: Run slither
run: >
poetry run slither . --sarif results.sarif --no-fail-pedantic
poetry run slither . \
--no-fail-pedantic \
--compile-force-framework hardhat \
--sarif results.sarif \
--exclude pess-strange-setter,pess-arbitrary-call-calldata-tainted

- name: Check results.sarif presence
id: results
Expand All @@ -74,8 +52,8 @@ jobs:
echo 'value=present' >> $GITHUB_OUTPUT ||
echo 'value=not' >> $GITHUB_OUTPUT

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