-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from nayms/dev
Next MAINNET upgrade
- Loading branch information
Showing
168 changed files
with
7,310 additions
and
7,955 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
export LOCAL_RPC_URL= | ||
export ETH_MAINNET_RPC_URL= | ||
export ETH_GOERLI_RPC_URL= | ||
export ETH_SEPOLIA_RPC_URL= | ||
export BASE_GOERLI_RPC_URL= | ||
export ETH_GOERLI_RPC_URL= | ||
export ETHERSCAN_API_KEY= | ||
export NAYMS_SALT= | ||
export OWNER_ACCOUNT_KEY= | ||
export SYSTEM_ADMIN_1= | ||
export BOOL_FORK_TEST= | ||
export TESTS_FORK_UPGRADE_DIAMOND= | ||
export TESTS_FORK_DIAMOND_ADDRESS_1= | ||
export TESTS_FORK_DIAMOND_ADDRESS_11155111= | ||
export TESTS_FORK_DIAMOND_ADDRESS_31337= | ||
export TESTS_FORK_DIAMOND_ADDRESS_84531= | ||
export FORK_BLOCK_1= | ||
export FORK_BLOCK_11155111= | ||
export FORK_BLOCK_31337= | ||
export FORK_BLOCK_31337= | ||
export FORK_BLOCK_84531= |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
module.exports = { | ||
env: { | ||
browser: false, | ||
es2021: true, | ||
mocha: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"standard", | ||
"plugin:prettier/recommended", | ||
"plugin:node/recommended", | ||
], | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["hardhat.config.js"], | ||
globals: { task: true }, | ||
env: { | ||
browser: false, | ||
es2021: true, | ||
mocha: true, | ||
node: true, | ||
}, | ||
], | ||
eslint: { | ||
runtime: "node" | ||
}, | ||
extends: ["standard", "plugin:prettier/recommended", "plugin:node/recommended"], | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["hardhat.config.js"], | ||
globals: { task: true }, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.json | ||
*.sol | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,8 +24,13 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: "yarn" | ||
|
||
- name: Install solc | ||
run: svm install 0.7.6 && svm install 0.8.17 && svm use 0.8.17 | ||
run: svm install 0.7.6 && svm install 0.8.20 && svm use 0.8.20 | ||
|
||
- name: Fix ownership | ||
run: git config --global --add safe.directory /__w/contracts-v3/contracts-v3 | ||
|
@@ -36,18 +41,26 @@ jobs: | |
- name: Install Node dependencies | ||
run: yarn | ||
|
||
- name: Prepare build | ||
run: make prep-build | ||
- name: Drop-in Test Wallet | ||
run: echo "test test test test test test test test test test test junk" > ./nayms_mnemonic.txt && echo "test test test test test test test test test test test junk" > ./nayms_mnemonic_mainnet.txt | ||
|
||
- name: Build solidity contracts | ||
run: make build | ||
env: | ||
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }} | ||
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }} | ||
ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }} | ||
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }} | ||
BASE_GOERLI_RPC_URL: ${{ secrets.BASE_GOERLI_RPC_URL }} | ||
|
||
- name: Tests - local | ||
run: make test | ||
env: | ||
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }} | ||
ETH_SEPOLIA_RPC_URL: ${{ secrets.ETH_SEPOLIA_RPC_URL }} | ||
ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }} | ||
run: make test | ||
BASE_MAINNET_RPC_URL: ${{ secrets.BASE_MAINNET_RPC_URL }} | ||
BASE_GOERLI_RPC_URL: ${{ secrets.BASE_GOERLI_RPC_URL }} | ||
|
||
- name: Coverage report | ||
env: | ||
|
@@ -61,35 +74,12 @@ jobs: | |
path-to-lcov: "./lcov-filtered.info" | ||
|
||
- name: Slither Static Analyser | ||
uses: crytic/[email protected] | ||
id: slither | ||
with: | ||
sarif: results.sarif | ||
target: src/diamonds/nayms | ||
slither-args: --exclude solc-version,assembly-usage,naming-convention,low-level-calls --ignore-compile | ||
continue-on-error: true | ||
env: | ||
SOLC_VERSION: 0.8.20 | ||
run: make slither | ||
|
||
- name: Upload Slither SARIF file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} | ||
|
||
# - name: Generate upgrade hashes | ||
# env: | ||
# ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL }} | ||
# ETH_GOERLI_RPC_URL: ${{ secrets.ETH_GOERLI_RPC_URL }} | ||
# ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | ||
# run: | | ||
# make upgrade-hash-mainnet | ||
# make upgrade-hash-goerli | ||
# make upgrade-hash-sepolia | ||
|
||
# echo "### Upgrade hash" >> $GITHUB_STEP_SUMMARY | ||
# echo " - mainnet \`$(jq --raw-output '.returns.upgradeHash.value' broadcast/SmartDeploy.s.sol/1/dry-run/hash-latest.json || echo "Not Available")\`" >> $GITHUB_STEP_SUMMARY | ||
# echo "> $(jq --raw-output '.returns.cut.value' broadcast/SmartDeploy.s.sol/1/dry-run/hash-latest.json || echo "Not Available")" >> $GITHUB_STEP_SUMMARY | ||
|
||
# echo " - goerli \`$(jq --raw-output '.returns.upgradeHash.value' broadcast/SmartDeploy.s.sol/5/dry-run/hash-latest.json || echo "Not Available")\`" >> $GITHUB_STEP_SUMMARY | ||
# echo "> $(jq --raw-output '.returns.cut.value' broadcast/SmartDeploy.s.sol/5/dry-run/hash-latest.json || echo "Not Available")" >> $GITHUB_STEP_SUMMARY | ||
|
||
# echo " - sepolia \`$(jq --raw-output '.returns.upgradeHash.value' broadcast/SmartDeploy.s.sol/11155111/dry-run/hash-latest.json || echo "Not Available")\`" >> $GITHUB_STEP_SUMMARY | ||
# echo "> $(jq --raw-output '.returns.cut.value' broadcast/SmartDeploy.s.sol/11155111/dry-run/hash-latest.json || echo "Not Available") >> $GITHUB_STEP_SUMMARY | ||
sarif_file: results.sarif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.