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

chore: Sync SR1.5 branch with the latest develop #858

Merged
merged 667 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
667 commits
Select commit Hold shift + click to select a range
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
failingtwice Sep 2, 2024
ff1089f
chore: draw attention to bug bounty
failingtwice Sep 2, 2024
8cff49c
Merge branch 'master' into chore/issue-form
failingtwice Sep 2, 2024
c14888f
Merge pull request #162 from lidofinance/repovation
failingtwice 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
failingtwice Sep 2, 2024
6a00b1b
Merge branch 'master' into chore/issue-form
failingtwice 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
failingtwice Sep 4, 2024
a9a9ea5
Merge pull request #840 from lidofinance/readme-deprecation
failingtwice 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
dc3c289
test: second opinion test
vp4242 Sep 18, 2024
5f3ce0b
feat: remove unused stub
vp4242 Sep 19, 2024
87a29e0
test: improve test
vp4242 Sep 19, 2024
ecf9fd0
fix: modify accounting to enable negative rebase checker
vp4242 Sep 19, 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
8f9048b
Merge branch 'develop' into feat/sr-1.5-develop-sync
tamtamchik Sep 24, 2024
9f38053
fix: eslint
tamtamchik Sep 24, 2024
7fa02d7
ci: disable integration tests
tamtamchik Sep 24, 2024
07b46eb
fix: scratch deploy
tamtamchik Sep 24, 2024
4fa09a9
chore: fix mock and harness contracts
tamtamchik Sep 24, 2024
771ebca
chore: fix ts errors
tamtamchik Sep 24, 2024
a78fdf4
chore: formattings
tamtamchik Sep 24, 2024
f008366
test: fix hash consensus
tamtamchik Sep 24, 2024
24ab291
fix: typo
tamtamchik Sep 24, 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
cb315a9
Merge branch 'feat/sr-1.5' into feat/sr-1.5-develop-sync
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
6f1e0a1
Merge remote-tracking branch 'origin/feat/sr-1.5' into feat/sr-1.5-de…
tamtamchik Sep 25, 2024
db3d683
ci: update images
tamtamchik Sep 25, 2024
6d00ddc
chore: rearrange mock and harness contracts
tamtamchik Sep 25, 2024
898ffdb
fix: typecheck errors
tamtamchik Sep 25, 2024
15ce3a4
test: enable integration tests
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
failingtwice Oct 7, 2024
aa860a3
ci: fix
tamtamchik Oct 7, 2024
4ec12a8
test: refine second opinion test
vp4242 Oct 7, 2024
81eef77
feat: refine comments
vp4242 Oct 7, 2024
47e43bd
test: second opinion test
vp4242 Sep 18, 2024
3ff99fc
feat: remove unused stub
vp4242 Sep 19, 2024
66f5e7c
test: improve test
vp4242 Sep 19, 2024
3249449
fix: modify accounting to enable negative rebase checker
vp4242 Sep 19, 2024
c0f4b98
test: refine second opinion test
vp4242 Oct 7, 2024
f45f506
feat: refine comments
vp4242 Oct 7, 2024
5257193
Merge branch 'feat/second-opinion-test' of git-ldo:lidofinance/core i…
vp4242 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
c2470f5
Merge pull request #854 from lidofinance/sync/develop
TheDZhon Oct 11, 2024
d2e4479
Merge branch 'develop' into feat/second-opinion-test
tamtamchik Oct 11, 2024
2ec00cc
fix: tests
tamtamchik Oct 11, 2024
a862c7a
fix: fix mainnet fork update for sanity checker
tamtamchik Oct 11, 2024
071b0df
feat: fix clBalanceOraclesErrorUpperBPLimit value
vp4242 Oct 11, 2024
261f90f
fix: clBalanceOraclesErrorUpperBPLimit value
vp4242 Oct 11, 2024
5897662
Merge branch 'feat/second-opinion-test' of git-ldo:lidofinance/lido-d…
vp4242 Oct 11, 2024
ba3c50e
test: improve second opinion tests
vp4242 Oct 11, 2024
7dea205
fix: remove PostTotalShares event checks
tamtamchik Oct 14, 2024
5888b1c
chore: fix SecondOpinionOracleMock naming
tamtamchik Oct 14, 2024
f3a4a14
Merge pull request #857 from lidofinance/feat/second-opinion-test
tamtamchik Oct 14, 2024
4169110
Merge branch 'develop' into feat/sr-1.5-develop-sync
tamtamchik Nov 7, 2024
a9eacbd
Merge remote-tracking branch 'origin/feat/sr-1.5' into feat/sr-1.5-de…
tamtamchik Nov 7, 2024
a2a846d
fix: scratch deploy
tamtamchik Nov 7, 2024
426fb06
fix: linter
tamtamchik Nov 7, 2024
5e1925c
chore: fix extra reporting by CSM
tamtamchik Nov 7, 2024
38310fc
ci: update scratch deploy params
tamtamchik Nov 7, 2024
2518c9f
test: fix nor distributer rewards
krogla Nov 18, 2024
6f96202
chore: update deps
tamtamchik Nov 25, 2024
1860a19
test(integration): restore happy path
tamtamchik Nov 25, 2024
25ab456
test(integration): restore accounting
tamtamchik Nov 26, 2024
9c0bc19
chore: fix linter warnings
tamtamchik Nov 26, 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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4

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

[*.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=
38 changes: 0 additions & 38 deletions .eslintrc

This file was deleted.

7 changes: 7 additions & 0 deletions .github/CODEOWNERS
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
48 changes: 17 additions & 31 deletions .github/workflows/analyse.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Code Analysis
name: Analysis

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

jobs:
slither:
name: Solidity code analysis
name: Slither
runs-on: ubuntu-latest

permissions:
Expand All @@ -17,30 +13,12 @@ jobs:

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

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"

- name: Install dependencies
run: yarn install
- name: Common setup
uses: ./.github/workflows/setup

# REVIEW: here and below steps taken from official guide
# https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
- name: Install poetry
run: >
pipx install poetry

# REVIEW:
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-adding-a-system-path
- name: Add poetry to $GITHUB_PATH
run: >
echo "$HOME/.local/bin" >> $GITHUB_PATH
run: pipx install poetry

- uses: actions/setup-python@v5
with:
Expand All @@ -50,12 +28,20 @@ jobs:
- name: Install dependencies
run: poetry install --no-root

- name: Remove foundry.toml
run: rm -f foundry.toml
- name: Versions
run: >
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 Down
33 changes: 15 additions & 18 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,38 @@
name: Coverage

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

jobs:
coverage:
name: Solidity coverage
name: Hardhat
runs-on: ubuntu-latest

permissions:
contents: write
issues: write
pull-requests: write

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

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
- name: Common setup
uses: ./.github/workflows/setup

- name: Install dependencies
run: yarn install
# Remove the integration tests from the test suite, as they require a mainnet fork to run properly
- name: Remove integration tests
run: rm -rf test/integration

- name: Run Solidity coverage
- name: Collect coverage
run: yarn test:coverage

- name: Produce the coverage report
uses: insightsengineering/coverage-action@v2
with:
path: ./coverage/cobertura-coverage.xml
publish: true
threshold: 95
diff: true
diff-branch: master
diff-storage: _core_coverage_reports
coverage-summary-title: "Code Coverage Summary"
coverage-summary-title: "Hardhat Unit Tests Coverage Summary"
togglable-report: true
Loading
Loading