Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add UniswapV4DeployerCompetition #117

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: add UniswapV4DeployerCompetition #117

wants to merge 2 commits into from

Conversation

marktoda
Copy link
Contributor

@marktoda marktoda commented Jun 4, 2024

this commit adds a contract that creates a competition to generate the
vanity address for Uniswap V4. It does so using CREATE2 salts,
pre-calculating the address at which the contract will be deployed and
applying a score to the address based on its vanity. leading 0's are
weighted most heavily, followed by other 0's and 4's. The winner
receives an NFT, a bounty, and deployer privileges

Related Issue

Which issue does this pull request resolve?

Description of changes

this commit adds a contract that creates a competition to generate the
vanity address for Uniswap V4. It does so using CREATE2 salts,
pre-calculating the address at which the contract will be deployed and
applying a score to the address based on its vanity. leading 0's are
weighted most heavily, followed by other 0's and 4's. The winner
receives an NFT, a bounty, and deployer privileges
@marktoda
Copy link
Contributor Author

marktoda commented Jun 4, 2024

hackathon project :D

uint256 public immutable exclusiveDeployDeadline = competitionDeadline + 1 days;
bytes32 public immutable initCodeHash;

constructor(bytes32 _initCodeHash, address _v4Owner) payable ERC721("UniswapV4 Deployer", "V4D") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmmmmm trying to think through how we can get everything to do the same address on every chain. we would definitely love to not have params here 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants