Skip to content

Commit

Permalink
build: Raffle 2024-01-19 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xhiroshi authored Jan 19, 2024
1 parent 19bbe09 commit a856640
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions scripts/simulation/CreateRaffleMainnet.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,45 +18,45 @@ contract CreateRaffleMainnet is Script, SimulationBase {
pricingOptions[2] = IRaffleV2.PricingOption({entriesCount: 500, price: 0.525 ether});
pricingOptions[3] = IRaffleV2.PricingOption({entriesCount: 1_000, price: 0.98 ether});

address azuki = 0xED5AF388653567Af2F388E6224dC7C4b3241C544;
address elementals = 0xB6a37b5d14D502c3Ab0Ae6f3a0E058BC9517786e;
address beanz = 0x306b1ea3ecdf94aB739F1910bbda052Ed4A9f949;
// address pudgy = 0xBd3531dA5CF5857e7CfAA92426877b022e612cf8;
// address lilPudgy = 0x524cAB2ec69124574082676e6F654a18df49A048;
// address azuki = 0xED5AF388653567Af2F388E6224dC7C4b3241C544;
// address elementals = 0xB6a37b5d14D502c3Ab0Ae6f3a0E058BC9517786e;
// address beanz = 0x306b1ea3ecdf94aB739F1910bbda052Ed4A9f949;
address pudgy = 0xBd3531dA5CF5857e7CfAA92426877b022e612cf8;
address lilPudgy = 0x524cAB2ec69124574082676e6F654a18df49A048;
// address rods = 0x062E691c2054dE82F28008a8CCC6d7A1c8ce060D;

IRaffleV2.Prize[] memory prizes = new IRaffleV2.Prize[](3);
IRaffleV2.Prize[] memory prizes = new IRaffleV2.Prize[](6);

prizes[0].prizeTier = 0;
prizes[0].prizeType = IRaffleV2.TokenType.ERC721;
prizes[0].prizeAddress = azuki;
prizes[0].prizeAddress = pudgy;
prizes[0].prizeAmount = 1;
prizes[0].winnersCount = 1;
prizes[0].prizeId = 8_647;
prizes[0].prizeId = 6530;

prizes[1].prizeTier = 1;
prizes[1].prizeType = IRaffleV2.TokenType.ERC721;
prizes[1].prizeAddress = elementals;
prizes[1].prizeAmount = 1;
prizes[1].winnersCount = 1;
prizes[1].prizeId = 12_684;
for (uint256 i = 1; i < 6; i++) {
prizes[i].prizeTier = 1;
prizes[i].prizeType = IRaffleV2.TokenType.ERC721;
prizes[i].prizeAddress = lilPudgy;
prizes[i].prizeAmount = 1;
prizes[i].winnersCount = 1;
}

prizes[2].prizeTier = 2;
prizes[2].prizeType = IRaffleV2.TokenType.ERC721;
prizes[2].prizeAddress = beanz;
prizes[2].prizeAmount = 1;
prizes[2].winnersCount = 1;
prizes[2].prizeId = 6_279;
prizes[1].prizeId = 1010;
prizes[2].prizeId = 11449;
prizes[3].prizeId = 14323;
prizes[4].prizeId = 21331;
prizes[5].prizeId = 21716;

console2.logBytes(
abi.encodeCall(
IRaffleV2.createRaffle,
(
IRaffleV2.CreateRaffleCalldata({
cutoffTime: uint40(block.timestamp + 1 days + 30 minutes),
cutoffTime: uint40(block.timestamp + 3 days + 6 hours + 30 minutes),
isMinimumEntriesFixed: true,
minimumEntries: 9_500,
maximumEntriesPerParticipant: 2_000,
minimumEntries: 29_000,
maximumEntriesPerParticipant: 9_000,
protocolFeeBp: 500,
feeTokenAddress: address(0),
prizes: prizes,
Expand Down

0 comments on commit a856640

Please sign in to comment.