harb/onchain/script/DeployBaseSepolia.sol
johba 7961bfdada Add Solidity linting with solhint, Foundry formatter, and pre-commit hooks
- Added .solhint.json with recommended rules + custom config
  - 160 char line length (warn)
  - Double quotes enforcement (error)
  - Explicit visibility required (error)
  - Console statements allowed (scripts/tests need them)
  - Gas optimization warnings enabled
  - Ignores test/helpers/, lib/, out/, cache/, broadcast/

- Added foundry.toml [fmt] section
  - 160 char line length
  - 4-space tabs
  - Double quotes
  - Thousands separators for numbers
  - Sort imports enabled

- Added .lintstagedrc.json for pre-commit auto-fix
  - Runs solhint --fix on .sol files
  - Runs forge fmt on .sol files

- Added husky pre-commit hook via lint-staged

- lint:sol - run solhint
- lint:sol:fix - auto-fix solhint issues
- format:sol - format with forge fmt
- format:sol:check - check formatting
- lint / lint:fix - combined commands

- Added explicit visibility modifiers (internal) to constants in scripts and tests
- Fixed quote style in DeployLocal.sol
- All Solidity files formatted with forge fmt

-  forge fmt --check passes
-  No solhint errors (warnings only)
-  forge build succeeds
-  forge test passes (107/107)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-04 13:15:31 +00:00

22 lines
899 B
Solidity

// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.19;
import { DeployBase } from "./DeployBase.sol";
/**
* @title DeployBaseSepolia
* @notice Deployment script for Base Sepolia testnet
* @dev Run with: forge script script/DeployBaseSepolia.sol --rpc-url $BASE_SEPOLIA_RPC --broadcast --verify
*/
contract DeployBaseSepolia is DeployBase {
constructor() {
// Base Sepolia testnet configuration
feeDest = 0xf6a3eef9088A255c32b6aD2025f83E57291D9011; // Fee destination address
weth = 0x4200000000000000000000000000000000000006; // WETH on Base Sepolia
v3Factory = 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24; // Uniswap V3 Factory on Base Sepolia
// Uncomment if reusing existing optimizer (for upgrades)
// optimizer = 0xFCFa3b066981027516121bd27a9B1cBb9C00c5Fd;
optimizer = address(0); // Deploy new optimizer
}
}