Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 2.52 KB

File metadata and controls

51 lines (31 loc) · 2.52 KB

Project Name: GraphLinq Contracts

Setting up the repository

Initialize and update submodules

git submodule update --init --recursive

Install Foundry

curl -L https://foundry.paradigm.xyz | bash foundryup

Install project dependencies

forge install

Run static analysis

./lint.sh

Run build

forge build

Run Tests

forge test --fork-url https://mainnet.infura.io/v3/[API_KEY] --fork-block-number 19946000

Deploy

forge script script/Deploy.s.sol --rpc-url YOUR_RPC_URL --broadcast

Testnet

Run anvil

anvil --fork-url https://eth-mainnet.g.alchemy.com/v2/[API_KEY] --fork-block-number 21002215 --chain-id 31337

Deploy

forge script script/Deploy.s.sol --fork-url http://localhost:8545 --broadcast --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80

Static Analysis Report

This document details the results of the static analysis performed on the Solidity smart contracts in this project using Solhint and Slither. The issues identified have been reviewed and acknowledged.

Linter Issue Severity File Status
Slither Reentrancy in Fundraiser.setFailed() High src/Fundraiser.sol#144-152 Alleviated
Slither Ignored return value by positionManager.createAndInitializePoolIfNecessary Medium src/Fundraiser.sol#256-260 Acknowledged
Slither Reentrancy in Fundraiser.contribute(uint256) High src/Fundraiser.sol#106-116 Alleviated
Slither Reentrancy in Fundraiser.finalize() High src/Fundraiser.sol#121-139 Alleviated
Slither Reentrancy in FundraiserFactory.createFundraiser(bytes,bytes,uint8) High src/FundraiserFactory.sol#63-111 Alleviated