Skip to content

Commit

Permalink
fix: change blocksnumber to 10 for the testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Apr 30, 2024
1 parent 70a55ea commit c6e736b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/contracts/BlockTracker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ contract BlockTracker is Ownable {
event NewBlocksPerWindow(uint256 blocksPerWindow);

uint256 public currentWindow = 1;
uint256 public blocksPerWindow = 64;
uint256 public blocksPerWindow = 10;

// Mapping from block number to the winner's address
mapping(uint256 => address) public blockWinners;
Expand Down
2 changes: 0 additions & 2 deletions contracts/scripts/DeployScripts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ contract DeployScript is Script, Create2Deployer {
uint256 minStake = 1 ether;
address feeRecipient = address(0x68bC10674b265f266b4b1F079Fa06eF4045c3ab9);
uint16 feePercent = 2;
uint256 blocksPerWindow = 10;
// Forge deploy with salt uses create2 proxy from https://github.com/primevprotocol/deterministic-deployment-proxy
bytes32 salt = 0x8989000000000000000000000000000000000000000000000000000000000000;

BlockTracker blockTracker = new BlockTracker{salt: salt}(msg.sender);
console.log("BlockTracker deployed to:", address(blockTracker));
blockTracker.setBlocksPerWindow(blocksPerWindow); // todo: move to env var

BidderRegistry bidderRegistry = new BidderRegistry{salt: salt}(minStake, feeRecipient, feePercent, msg.sender, address(blockTracker));
console.log("BidderRegistry deployed to:", address(bidderRegistry));
Expand Down

0 comments on commit c6e736b

Please sign in to comment.