Helpful?
IUniswapV4DeployerCompetition
Git Source - Generated with forge doc
A competition to deploy the UniswapV4 contract with the best address
Functions
updateBestAddress
Updates the best address if the new address has a better vanity score
The first 20 bytes of the salt must be either address(0) or msg.sender
function updateBestAddress(bytes32 salt) external;
Parameters
Name | Type | Description |
---|---|---|
salt | bytes32 | The salt to use to compute the new address with CREATE2 |
deploy
deploys the Uniswap v4 PoolManager contract
The bytecode must match the initCodeHash
function deploy(bytes memory bytecode) external;
Parameters
Name | Type | Description |
---|---|---|
bytecode | bytes | The bytecode of the Uniswap v4 PoolManager contract |
Events
NewAddressFound
event NewAddressFound(address indexed bestAddress, address indexed submitter, uint256 score);
Errors
InvalidBytecode
error InvalidBytecode();
CompetitionNotOver
error CompetitionNotOver(uint256 currentTime, uint256 deadline);
CompetitionOver
error CompetitionOver(uint256 currentTime, uint256 deadline);
NotAllowedToDeploy
error NotAllowedToDeploy(address sender, address deployer);
WorseAddress
error WorseAddress(address newAddress, address bestAddress, uint256 newScore, uint256 bestScore);
InvalidSender
error InvalidSender(bytes32 salt, address sender);