Skip to content

Commit

Permalink
forge snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
waynehoover committed Nov 15, 2023
1 parent f2a7072 commit e1b3e77
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
52 changes: 26 additions & 26 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ ProtocolRewardsTest:test_withdraw() (gas: 34148)
ProtocolRewardsTest:test_withdrawFor() (gas: 28858)
ProtocolRewardsTest:test_withdrawForFullBalance() (gas: 29017)
ProtocolRewardsTest:test_withdrawFullBalance() (gas: 32031)
TestQuest1155:test_RevertIf_initialize_EndTimeInPast() (gas: 2205711)
TestQuest1155:test_RevertIf_initialize_EndTimeLessThanOrEqualToStartTime() (gas: 2203641)
TestQuest1155:test_RevertIf_initialize_EndTimeInPast() (gas: 2187471)
TestQuest1155:test_RevertIf_initialize_EndTimeLessThanOrEqualToStartTime() (gas: 2185401)
TestQuest1155:test_RevertIf_not_enough_eth() (gas: 63799)
TestQuest1155:test_RevertIf_not_enough_tokens() (gas: 27823)
TestQuest1155:test_RevertIf_pause_Unauthorized() (gas: 13520)
TestQuest1155:test_RevertIf_singleClaim_NotQuestFactory() (gas: 87442)
TestQuest1155:test_RevertIf_singleClaim_NotStarted() (gas: 90178)
TestQuest1155:test_RevertIf_singleClaim_whenNotPaused() (gas: 110449)
TestQuest1155:test_RevertIf_singleClaim_NotQuestFactory() (gas: 82389)
TestQuest1155:test_RevertIf_singleClaim_NotStarted() (gas: 85125)
TestQuest1155:test_RevertIf_singleClaim_whenNotPaused() (gas: 105396)
TestQuest1155:test_RevertIf_unpause_Unauthorized() (gas: 13517)
TestQuest1155:test_RevertIf_withdrawRemainingToken_AlreadyWithdrawn() (gas: 136227)
TestQuest1155:test_RevertIf_withdrawRemainingToken_NotEnded() (gas: 91605)
Expand All @@ -32,55 +32,55 @@ TestQuest1155:test_initialize() (gas: 49323)
TestQuest1155:test_maxProtocolReward() (gas: 16863)
TestQuest1155:test_pause() (gas: 41906)
TestQuest1155:test_queue() (gas: 72943)
TestQuest1155:test_singleClaim() (gas: 185071)
TestQuest1155:test_singleClaim() (gas: 178257)
TestQuest1155:test_unpause() (gas: 31710)
TestQuest1155:test_withdrawRemainingTokens() (gas: 135331)
TestQuest:test_RevertIf_initialize_EndTimeInPast() (gas: 1629900)
TestQuest:test_RevertIf_initialize_EndTimeLessThanOrEqualToStartTime() (gas: 1627265)
TestQuest:test_RevertIf_initialize_EndTimeInPast() (gas: 1627078)
TestQuest:test_RevertIf_initialize_EndTimeLessThanOrEqualToStartTime() (gas: 1624465)
TestQuest:test_RevertIf_pause_Unauthorized() (gas: 13586)
TestQuest:test_RevertIf_refund_InvalidRefundToken() (gas: 20441)
TestQuest:test_RevertIf_refund_Unauthorized() (gas: 15804)
TestQuest:test_RevertIf_singleClaim_ClaimWindowNotStarted() (gas: 25863)
TestQuest:test_RevertIf_singleClaim_NotQuestFactory() (gas: 27560)
TestQuest:test_RevertIf_singleClaim_whenNotPaused() (gas: 52463)
TestQuest:test_RevertIf_singleClaim_NotQuestFactory() (gas: 29685)
TestQuest:test_RevertIf_singleClaim_NotStarted() (gas: 25863)
TestQuest:test_RevertIf_singleClaim_whenNotPaused() (gas: 54588)
TestQuest:test_RevertIf_unpause_Unauthorized() (gas: 13518)
TestQuest:test_RevertIf_withdrawRemainingToken_AlreadyWithdrawn() (gas: 80211)
TestQuest:test_RevertIf_withdrawRemainingToken_NoWithdrawDuringClaim() (gas: 16034)
TestQuest:test_fuzz_protocolFee(uint256) (runs: 256, μ: 56762, ~: 56898)
TestQuest:test_RevertIf_withdrawRemainingToken_NotEnded() (gas: 16012)
TestQuest:test_fuzz_protocolFee(uint256) (runs: 256, μ: 56759, ~: 56898)
TestQuest:test_fuzz_receiptRedeemers(uint256) (runs: 256, μ: 42665, ~: 43754)
TestQuest:test_fuzz_singleClaim(uint256,uint256,uint256,uint256) (runs: 256, μ: 2580389, ~: 2580934)
TestQuest:test_fuzz_withdrawRemainingTokens(uint16,uint256,uint256,uint16) (runs: 256, μ: 8169385, ~: 8477710)
TestQuest:test_fuzz_singleClaim(uint256,uint256,uint256,uint256) (runs: 256, μ: 2573351, ~: 2573889)
TestQuest:test_fuzz_withdrawRemainingTokens(uint16,uint256,uint256,uint16) (runs: 256, μ: 7360502, ~: 7299071)
TestQuest:test_getRewardAmount() (gas: 12406)
TestQuest:test_getRewardToken() (gas: 12619)
TestQuest:test_initialize() (gas: 66477)
TestQuest:test_maxProtocolReward() (gas: 22294)
TestQuest:test_maxTotalRewards() (gas: 16953)
TestQuest:test_pause() (gas: 39825)
TestQuest:test_refund() (gas: 630202)
TestQuest:test_singleClaim() (gas: 98425)
TestQuest:test_singleClaim() (gas: 96080)
TestQuest:test_singleClaim_stream() (gas: 210)
TestQuest:test_totalTransferAmount() (gas: 19746)
TestQuest:test_unpause() (gas: 29988)
TestQuest:test_withdrawRemainingTokens() (gas: 131166)
TestQuestFactory:test_RevertIf_claim_AddressAlreadyMinted() (gas: 754167)
TestQuestFactory:test_RevertIf_claim_AddressAlreadyMinted() (gas: 754092)
TestQuestFactory:test_RevertIf_claim_InvalidHash() (gas: 581117)
TestQuestFactory:test_RevertIf_claim_InvalidMintFee() (gas: 575729)
TestQuestFactory:test_RevertIf_claim_QuestEnded() (gas: 590464)
TestQuestFactory:test_RevertIf_claim_QuestNotStarted() (gas: 588954)
TestQuestFactory:test_RevertIf_claim_QuestEnded() (gas: 629507)
TestQuestFactory:test_RevertIf_claim_QuestNotStarted() (gas: 628800)
TestQuestFactory:test_RevertIf_create1155QuestAndQueue_MsgValueLessThanQuestNFTFee() (gas: 98029)
TestQuestFactory:test_RevertIf_createQuestAndQueue_Erc20QuestAddressNotSet() (gas: 88780)
TestQuestFactory:test_RevertIf_createQuestAndQueue_QuestIdUsed() (gas: 553462)
TestQuestFactory:test_RevertIf_createQuestAndQueue_RewardNotAllowed() (gas: 67273)
TestQuestFactory:test_claim_with_bytes() (gas: 797819)
TestQuestFactory:test_claim_with_bytes_no_referrer() (gas: 760647)
TestQuestFactory:test_claim_with_claim1155Rewards_with_referrer() (gas: 749620)
TestQuestFactory:test_claim_with_claim1155Rewards_without_referrer() (gas: 712678)
TestQuestFactory:test_claim_with_claimRewards_with_referrer() (gas: 780182)
TestQuestFactory:test_claim_with_claimRewards_without_referrer() (gas: 743206)
TestQuestFactory:test_claim_with_bytes() (gas: 872112)
TestQuestFactory:test_claim_with_bytes_no_referrer() (gas: 826268)
TestQuestFactory:test_claim_with_claim1155Rewards_with_referrer() (gas: 755304)
TestQuestFactory:test_claim_with_claim1155Rewards_without_referrer() (gas: 712093)
TestQuestFactory:test_claim_with_claimRewards_with_referrer() (gas: 786342)
TestQuestFactory:test_claim_with_claimRewards_without_referrer() (gas: 743131)
TestQuestFactory:test_create1155QuestAndQueue() (gas: 513118)
TestQuestFactory:test_createERC20StreamQuest() (gas: 580611)
TestQuestFactory:test_createQuestAndQueue() (gas: 558398)
TestQuestFactory:test_fuzz_claim(string,uint256,uint256) (runs: 256, μ: 811060, ~: 799994)
TestQuestFactory:test_fuzz_claim(string,uint256,uint256) (runs: 256, μ: 817532, ~: 806154)
TestQuestFactory:test_initialize() (gas: 23408)
TestQuestFactory:test_questData() (gas: 568436)
TestRabbitHoleTickets:test_RevertIf_mint_OnlyMinter() (gas: 16218)
Expand Down
8 changes: 4 additions & 4 deletions test/Quest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ contract TestQuest is Test, TestUtils, Errors, Events {
quest.singleClaim(participant);
}

function test_RevertIf_singleClaim_ClaimWindowNotStarted() public {
function test_RevertIf_singleClaim_NotStarted() public {
vm.warp(START_TIME - 1);
vm.prank(questFactoryMock);
vm.expectRevert(abi.encodeWithSelector(ClaimWindowNotStarted.selector));
vm.expectRevert(abi.encodeWithSelector(NotStarted.selector));
quest.singleClaim(participant);
}

Expand Down Expand Up @@ -346,8 +346,8 @@ contract TestQuest is Test, TestUtils, Errors, Events {
);
}

function test_RevertIf_withdrawRemainingToken_NoWithdrawDuringClaim() public {
vm.expectRevert(abi.encodeWithSelector(NoWithdrawDuringClaim.selector));
function test_RevertIf_withdrawRemainingToken_NotEnded() public {
vm.expectRevert(abi.encodeWithSelector(NotEnded.selector));
vm.prank(protocolFeeRecipient);
quest.withdrawRemainingTokens();
}
Expand Down

0 comments on commit e1b3e77

Please sign in to comment.