mirror of
https://github.com/luxfi/oracle.git
synced 2026-10-30 15:23:21 +00:00
21 lines
648 B
Bash
Executable File
21 lines
648 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
PROTOCOL_DIR=$(pwd)
|
|
sudo chmod -R a+rwx /usr/local/lib/node_modules
|
|
|
|
|
|
run_slither() {
|
|
cd $1
|
|
mkdir -p node_modules/
|
|
cp -r ../../node_modules/@openzeppelin ./node_modules/@openzeppelin
|
|
|
|
cd $PROTOCOL_DIR
|
|
|
|
# print out slither version for debugging
|
|
slither --version
|
|
slither --exclude=divide-before-multiply,unused-return,timestamp,naming-convention,pragma,solc-version,external-function,reentrancy-benign,reentrancy-no-eth,arbitrary-send,incorrect-equality,reentrancy-events,assembly,uninitialized-local --filter-paths="@openzeppelin|WETH9.sol|test" $1
|
|
}
|
|
|
|
run_slither $PROTOCOL_DIR/packages/core
|