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: develop from core repo #854

Merged
merged 1,110 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1110 commits
Select commit Hold shift + click to select a range
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
130088f
Merge branch 'master' into feat/sync-with-master
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
243f124
Merge pull request #158 from lidofinance/feat/sync-with-master
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
de9e895
Merge pull request #826 from lidofinance/develop
TheDZhon Sep 3, 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
2b25397
docs: archived notice
mymphe Sep 4, 2024
a9a9ea5
Merge pull request #840 from lidofinance/readme-deprecation
mymphe Sep 4, 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
8d4c244
Merge branch 'develop' into feat/update-develop
tamtamchik Sep 6, 2024
d022f76
chore: fix OracleReportSanityChecker.sol tests
tamtamchik Sep 6, 2024
a64bca8
chore: update negative rebase tests
tamtamchik 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
759c1d0
fix: tests
tamtamchik 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
05fcb34
Merge branch 'master' into feat/update-develop
tamtamchik Sep 12, 2024
d48268a
test: skip integration tests for now
tamtamchik Sep 12, 2024
6c8e359
chore: update scratch deploy for neg rebase sanity checker
tamtamchik Sep 12, 2024
b7528ec
chore: update upgrade for neg rebase sanity checker
tamtamchik Sep 12, 2024
54538e1
fix: ci tests on scratch deploy
tamtamchik Sep 12, 2024
e11c59a
fix: ci tests on mainnet fork
tamtamchik Sep 12, 2024
2aeb34b
fix: calling statefile on fork
tamtamchik Sep 12, 2024
76be705
fix: update params for mainnet
tamtamchik Sep 12, 2024
e5fa6a7
feat: bail on failure
tamtamchik Sep 12, 2024
ff369b0
chore: add comment
tamtamchik Sep 13, 2024
9d44fa9
docs: fix minor typo
mollybs Sep 22, 2024
e125ff9
build: update node dependencies
tamtamchik Sep 23, 2024
4eed5ed
build: update poetry dependencies
tamtamchik Sep 23, 2024
caf4241
docs: update contributions guide
tamtamchik Sep 23, 2024
ebc8d28
docs: improve test running section
tamtamchik Sep 23, 2024
42677fa
docs: some word juggling
tamtamchik Sep 23, 2024
0426b00
chore: test naming
tamtamchik Sep 23, 2024
0c772b0
Merge pull request #212 from mollybs/master
tamtamchik Sep 23, 2024
f0ad8ee
chore: fix some typos
tamtamchik Sep 23, 2024
555d42f
chore: update scratch deploy
tamtamchik Sep 23, 2024
26d5e96
fix: apply suggestions from code review
tamtamchik Sep 23, 2024
e20a363
fix: apply review suggestions
tamtamchik Sep 23, 2024
1476763
Merge pull request #213 from lidofinance/feat/ci-integration-workflow
tamtamchik Sep 23, 2024
3a3f2f6
Merge branch 'master' into feat/update-develop
tamtamchik Sep 23, 2024
eaaed4b
fix: apply review suggestions
tamtamchik Sep 23, 2024
dcaec48
Merge pull request #215 from lidofinance/feat/master-mirror
tamtamchik Sep 23, 2024
669d8e5
Merge pull request #201 from lidofinance/feat/update-develop
tamtamchik Sep 23, 2024
47f4ab2
ci: try to use lidofinance/hardhat-node
tamtamchik Sep 24, 2024
e3feffd
ci: use lidofinance/hardhat-node for scratch
tamtamchik Sep 24, 2024
3902bd2
chore: updates from the lido-dao main branch
tamtamchik Sep 24, 2024
f8e3c67
Merge pull request #217 from lidofinance/feat/lido-hardhat
tamtamchik Sep 24, 2024
e4a6ae4
docs: improve texts
tamtamchik Sep 24, 2024
55164f8
Merge pull request #218 from lidofinance/feat/sync-lido-dao
tamtamchik Sep 24, 2024
6e1df1b
chore: upgrade hardhat
tamtamchik Sep 24, 2024
ff6a009
Merge pull request #219 from lidofinance/feat/hh-speed-up
tamtamchik Sep 24, 2024
168c959
chore: add contract verification script
tamtamchik Sep 24, 2024
c808cd3
chore: small refactoring
tamtamchik Sep 24, 2024
ae1cf46
chore: move abi publish to the task
tamtamchik Sep 25, 2024
9da77fe
chore: small fix
tamtamchik Sep 25, 2024
ece84fd
chore: add force compilation before abi extraction
tamtamchik Sep 25, 2024
0a96d3d
ci: remove duplicate compile
tamtamchik Sep 25, 2024
cc18828
chore: simplify tasks definition
tamtamchik Sep 25, 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
93b0c3f
Merge branch 'master' into feat/sync-master
tamtamchik Sep 30, 2024
25f9583
Merge pull request #223 from lidofinance/feat/sync-master
tamtamchik Sep 30, 2024
9fb4503
Merge pull request #214 from lidofinance/repovation
TheDZhon Sep 30, 2024
0c9cf86
Merge remote-tracking branch 'core/master' into sync/core
tamtamchik Sep 30, 2024
ae8e83d
chore: remove simpledvt deploy
tamtamchik Sep 30, 2024
aae5535
chore: remove duplicate
tamtamchik Sep 30, 2024
e3ca338
chore: update forge
tamtamchik Sep 30, 2024
98ffd32
ci: remove coverage diff
tamtamchik Oct 2, 2024
8fcdd49
ci: enable write permissions
tamtamchik Oct 2, 2024
375ef88
ci: tune coverage
tamtamchik Oct 2, 2024
80a8c60
ci: test permissions
tamtamchik Oct 2, 2024
1c16da4
ci: tune permissions
tamtamchik Oct 2, 2024
df118e5
ci: add comparison to master
tamtamchik Oct 2, 2024
5f32255
ci: fix
tamtamchik Oct 2, 2024
5243b29
fix: review
tamtamchik Oct 2, 2024
9479c3f
chore: simplify contract verification
tamtamchik Oct 2, 2024
7484eea
Update globals.d.ts
tamtamchik Oct 2, 2024
87d7f33
Merge pull request #220 from lidofinance/feat/verify-contracts
tamtamchik Oct 2, 2024
5bec2ea
ci: try write all permissions
tamtamchik Oct 2, 2024
f175c55
ci: update permissions once more
tamtamchik Oct 2, 2024
4214694
Merge branch 'repovation' into feat/test
tamtamchik Oct 2, 2024
469d30e
fix: permissions
tamtamchik Oct 3, 2024
5365a63
Merge pull request #224 from lidofinance/feat/test
tamtamchik Oct 3, 2024
aada422
Merge pull request #225 from lidofinance/repovation
tamtamchik Oct 3, 2024
adefe61
Merge remote-tracking branch 'core/master' into sync/core
tamtamchik Oct 3, 2024
cd9b0d7
chore: cleanup
tamtamchik Oct 4, 2024
ede02e7
chore: remove duplication in getting contracts
tamtamchik Oct 4, 2024
60d6e23
chore: updates non related to sdvt
tamtamchik Oct 4, 2024
eda1182
chore: init simple dvt
tamtamchik Oct 4, 2024
c9e2dc6
chore: grant roles
tamtamchik Oct 5, 2024
0f998c8
docs(readme): add repovation disclaimer
mymphe Oct 7, 2024
aa860a3
ci: fix
tamtamchik Oct 7, 2024
06cec48
chore: attach simple dvt
tamtamchik Oct 7, 2024
446b2b5
ci: fix mine script
tamtamchik Oct 7, 2024
19165ca
Merge branch 'sync/core' into feat/scratch-simple-dvt
tamtamchik Oct 7, 2024
99f378b
docs: restore bug bounty
tamtamchik Oct 7, 2024
e0cac15
chore: restore deploy files
tamtamchik Oct 7, 2024
9743bd3
chore: fix DummyEmptyContract location
tamtamchik Oct 7, 2024
8ba5b24
chore: cleanup sepolia config
tamtamchik Oct 7, 2024
a66bf6d
chore: finish scratch with simple dvt
tamtamchik Oct 7, 2024
7ef0fb5
fix: linters
tamtamchik Oct 7, 2024
13e454d
Merge branch 'sync/core' into feat/scratch-simple-dvt
tamtamchik Oct 7, 2024
57ea90e
fix: review comments
tamtamchik Oct 9, 2024
3057f07
fix: review comments
tamtamchik Oct 9, 2024
096a4fb
Merge pull request #845 from lidofinance/feat/scratch-simple-dvt
tamtamchik Oct 9, 2024
e838b5f
Merge branch 'master' into feat/develop-sync
tamtamchik Oct 9, 2024
2d2b8dc
Merge branch 'sync/core' into sync-core/readme
tamtamchik Oct 9, 2024
69febae
Merge pull request #844 from lidofinance/sync-core/readme
tamtamchik Oct 9, 2024
57cd3d1
fix: review feedback
tamtamchik Oct 10, 2024
17c5ca7
fix: review feedback
tamtamchik Oct 10, 2024
4c8523d
Merge pull request #843 from lidofinance/sync/core
TheDZhon Oct 10, 2024
7e0bae9
fix: restore coverage
tamtamchik Oct 10, 2024
ab36d1c
Merge pull request #229 from lidofinance/feat/develop-sync
TheDZhon Oct 10, 2024
5834d31
Merge remote-tracking branch 'core/develop' into sync/develop
tamtamchik Oct 10, 2024
04557e4
Merge remote-tracking branch 'core/develop' into sync/develop
tamtamchik Oct 10, 2024
72a14c6
Merge branch 'master' into sync/develop
tamtamchik Oct 10, 2024
71badc1
fix: typecheck
tamtamchik Oct 10, 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
63 changes: 63 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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
HARDHAT_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

# Etherscan API key for verifying contracts
ETHERSCAN_API_KEY=
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