Skip to content

Commit

Permalink
Merge branch 'main' into minting
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/coverage.yml
#	.github/workflows/tests-integration-mainnet.yml
#	scripts/scratch/steps/0130-grant-roles.ts
#	test/integration/accounting.integration.ts
  • Loading branch information
tamtamchik committed Oct 14, 2024
2 parents 4d78887 + 45daed6 commit 5281ce6
Show file tree
Hide file tree
Showing 56 changed files with 2,896 additions and 1,249 deletions.
6 changes: 5 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ 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=
HARDHAT_FORKING_URL=

# https://docs.lido.fi/deployed-contracts
MAINNET_LOCATOR_ADDRESS=0xC1d0b3DE6792Bf6b4b37EccdcC24e45978Cfd2Eb
Expand Down Expand Up @@ -57,3 +58,6 @@ DEPLOYER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
GENESIS_TIME=1639659600
GAS_PRIORITY_FEE=1
GAS_MAX_FEE=100

# Etherscan API key for verifying contracts
ETHERSCAN_API_KEY=
10 changes: 9 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: Coverage

#on: [pull_request]
#on:
# pull_request:
# push:
# branches: [ master ]
#
#jobs:
# coverage:
# name: Hardhat
# runs-on: ubuntu-latest
#
# permissions:
# contents: write
# issues: write
# pull-requests: write
#
# steps:
# - uses: actions/checkout@v4
#
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/release-abis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ jobs:
- name: Common setup
uses: ./.github/workflows/setup

- name: Compile contracts
run: yarn compile

- name: Extract ABIs
run: yarn extract-abis
run: yarn abis:extract

- name: Create ABIs archive
run: zip -j ABIs.zip lib/abi/*.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-integration-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Integration Tests
#
# services:
# hardhat-node:
# image: feofanov/hardhat-node:2.22.9
# image: ghcr.io/lidofinance/hardhat-node:2.22.12
# ports:
# - 8545:8545
# env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-integration-scratch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
NETWORK_STATE_DEFAULTS_FILE: "scripts/scratch/deployed-testnet-defaults.json"

- name: Finalize scratch deployment
run: yarn hardhat --network local run --no-compile scripts/scratch/send-hardhat-mine.ts
run: yarn hardhat --network local run --no-compile scripts/utils/mine.ts

- name: Run integration tests
run: yarn test:integration:fork:local
Expand Down
4 changes: 0 additions & 4 deletions .solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ module.exports = {
// https://github.com/sc-forks/solidity-coverage/issues/632#issuecomment-1736629543
skipFiles: [
"common/interfaces",
"common/test_helpers",
"0.4.24/template",
"0.4.24/test_helpers",
"0.6.11/deposit_contract.sol",
"0.6.12/interfaces",
"0.6.12/mocks",
"0.8.9/interfaces",
"0.8.9/test_helpers",
// Skip contracts that are tested by Foundry tests
"common/lib", // 100% covered by test/common/*.t.sol
"0.8.9/lib/UnstructuredStorage.sol", // 100% covered by test/0.8.9/unstructuredStorage.t.sol
Expand Down
Loading

0 comments on commit 5281ce6

Please sign in to comment.