Skip to content

Commit

Permalink
build: Raffle 2023-11-10
Browse files Browse the repository at this point in the history
  • Loading branch information
0xhiroshi committed Nov 10, 2023
1 parent 0e88063 commit b70b3ef
Showing 1 changed file with 35 additions and 15 deletions.
50 changes: 35 additions & 15 deletions scripts/simulation/CreateRaffleMainnet.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ contract CreateRaffleMainnet is Script, SimulationBase {

address azuki = 0xED5AF388653567Af2F388E6224dC7C4b3241C544;
address elementals = 0xB6a37b5d14D502c3Ab0Ae6f3a0E058BC9517786e;
address beanz = 0x306b1ea3ecdf94aB739F1910bbda052Ed4A9f949;

IRaffleV2.Prize[] memory prizes = new IRaffleV2.Prize[](13);
IRaffleV2.Prize[] memory prizes = new IRaffleV2.Prize[](23);

for (uint256 i = 0; i <= 2; i++) {
prizes[i].prizeTier = 0;
Expand All @@ -31,9 +32,9 @@ contract CreateRaffleMainnet is Script, SimulationBase {
prizes[i].winnersCount = 1;
}

prizes[0].prizeId = 4519;
prizes[1].prizeId = 7491;
prizes[2].prizeId = 7428;
prizes[0].prizeId = 1169;
prizes[1].prizeId = 6818;
prizes[2].prizeId = 7654;

for (uint256 i = 3; i <= 12; i++) {
prizes[i].prizeTier = 1;
Expand All @@ -43,16 +44,35 @@ contract CreateRaffleMainnet is Script, SimulationBase {
prizes[i].winnersCount = 1;
}

prizes[3].prizeId = 3274;
prizes[4].prizeId = 4628;
prizes[5].prizeId = 7453;
prizes[6].prizeId = 9060;
prizes[7].prizeId = 10082;
prizes[8].prizeId = 12298;
prizes[9].prizeId = 13676;
prizes[10].prizeId = 13845;
prizes[11].prizeId = 18187;
prizes[12].prizeId = 19124;
prizes[3].prizeId = 221;
prizes[4].prizeId = 1538;
prizes[5].prizeId = 2435;
prizes[6].prizeId = 2711;
prizes[7].prizeId = 2943;
prizes[8].prizeId = 7873;
prizes[9].prizeId = 13845;
prizes[10].prizeId = 16132;
prizes[11].prizeId = 17305;
prizes[12].prizeId = 19564;

for (uint256 i = 13; i <= 22; i++) {
prizes[i].prizeTier = 2;
prizes[i].prizeType = IRaffleV2.TokenType.ERC721;
prizes[i].prizeAddress = beanz;
prizes[i].prizeAmount = 1;
prizes[i].winnersCount = 1;
}

prizes[13].prizeId = 433;
prizes[14].prizeId = 605;
prizes[15].prizeId = 771;
prizes[16].prizeId = 4407;
prizes[17].prizeId = 7353;
prizes[18].prizeId = 8055;
prizes[19].prizeId = 13735;
prizes[20].prizeId = 15013;
prizes[21].prizeId = 17306;
prizes[22].prizeId = 18926;

console2.logBytes(
abi.encodeCall(
Expand All @@ -61,7 +81,7 @@ contract CreateRaffleMainnet is Script, SimulationBase {
IRaffleV2.CreateRaffleCalldata({
cutoffTime: uint40(block.timestamp + 3 days + 2 hours + 30 minutes),
isMinimumEntriesFixed: true,
minimumEntries: 23_000,
minimumEntries: 32_000,
maximumEntriesPerParticipant: 10_000,
protocolFeeBp: 500,
feeTokenAddress: address(0),
Expand Down

0 comments on commit b70b3ef

Please sign in to comment.