Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add SealedBidTokenSale contract and specification for a sealed-bid, multi-unit uniform-price token sale with USDC deposits, using OpenZeppelin's Ownable for ownership, Merkle-based token claims, and proceeds withdrawal to a treasury address. * Remove outdated ownership and treasury details from SealedBidTokenSale specification for clarity. * Remove maximum cap check and associated error handling from SealedBidTokenSale contract. * Refactor SealedBidTokenSale contract: update OpenZeppelin imports, use SafeERC20 for USDC transfers, and rename usdcToken to USDC for clarity. * Refactor SealedBidTokenSale constructor to use custom errors for invalid treasury address and end * Refactor SealedBidTokenSale contract: enhance error handling, update event emissions, improve function documentation, and streamline token transfer logic. * Remove unnecessary whitespace in SealedBidTokenSale.sol for improved code readability. * Add sale token address validation and initialization in SealedBidTokenSale contract. * Refactor SealedBidTokenSale contract to enhance error handling with detailed InvalidProof error and update finalize logic; add comprehensive unit tests for contract functionality. * Refactor SealedBidTokenSale test contract: rename file, update Merkle proof logic, and enhance test coverage. * Refactor SealedBidTokenSale contract: remove endTime, rename functions and events for clarity, update tests accordingly. * Remove maximumCap from SealedBidTokenSale contract and update related tests and constructor parameters. * Refactor SealedBidTokenSale contract and test to include USDC allocation in claimTokens function, update Merkle proof logic, and adjust test setup and assertions accordingly. * Refactor BridgerL2.t.sol by moving 'deal' function call for gasFee after setting bridgeData.gasFee. * Refactor SealedBidTokenSale contract to replace 'successful' with 'capReached' for clarity in sale status logic. * Refactor SealedBidTokenSale contract to include user address in claimTokens function and update Merkle proof handling in tests. * Refactor error handling in SealedBidTokenSale contract and enhance unit tests with additional scenarios for deposit, endSale, withdraw, claimTokens, setMerkleRoot, and withdrawProceeds functions. * Refactor SealedBidTokenSale contract to enhance documentation, improve error messages, and clarify function descriptions for better code readability and maintainability. * Refactor error handling and add comments for clarity in SealedBidTokenSale contract and update corresponding test case. * Refactor SealedBidTokenSale: simplify timing, remove max cap, add dual allocations, optimize gas, and enhance security with reentrancy protection. * Removed the "Key Design Changes" section from SealedBidTokenSale.md, simplifying the technical specification and focusing on the core contract details. * Add SaleInfo struct and saleStatus function to SealedBidTokenSale contract, update state variables, and enhance unit tests for comprehensive sale status tracking. * Add maxPrice functionality to SealedBidTokenSale contract and update tests accordingly. * Refactor deposit logic to enforce a minimum deposit amount and update corresponding tests. * Add max price range check in SealedBidTokenSale and update unit tests accordingly. * Add early participation window for emissaries in SealedBidTokenSale contract with tests for deposit logic and boundary conditions. * Refactor SealedBidTokenSale contract to support UUPS upgradeability, update imports, and adjust unit tests for proxy initialization. * Add SealedBidTokenSale deployment script, update artifacts with new contract addresses, and include transaction details in JSON files for chain 7887.
- Loading branch information