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/erc1271-hash-support-fuzzer-updates #69

Merged
merged 11 commits into from
Nov 17, 2023
Merged
200 changes: 101 additions & 99 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
IntegrationTestCaveats:testOriginateUnapprovedFulfiller() (gas: 366161)
IntegrationTestCaveats:testOriginateWBorrowerApproval() (gas: 321616)
IntegrationTestCaveats:testOriginateWCaveats() (gas: 295705)
IntegrationTestCaveats:testOriginateWCaveatsExpired() (gas: 175535)
IntegrationTestCaveats:testOriginateWCaveatsIncrementedNonce() (gas: 203823)
IntegrationTestCaveats:testOriginateWCaveatsInvalidSalt() (gas: 301886)
IntegrationTestCaveats:testOriginateWCaveatsInvalidSaltManual() (gas: 179365)
IntegrationTestCaveats:testOriginateWLenderApproval() (gas: 321692)
IntegrationTestCaveats:testRefinanceAsLender() (gas: 1086879)
IntegrationTestCaveats:testRefinanceCaveatFailure() (gas: 434339)
IntegrationTestCaveats:testRefinanceLoanStartAtBlockTimestampInvalidLoan() (gas: 383301)
IntegrationTestCaveats:testRefinanceUnapprovedFulfiller() (gas: 492114)
IntegrationTestCaveats:testRefinanceWCaveatsInvalidSalt() (gas: 412606)
IntegrationTestCaveats:testRefinanceWLenderApproval() (gas: 435972)
ModuleTesting:testFixedTermDutchAuctionSettlement() (gas: 428531)
ModuleTesting:testFixedTermDutchAuctionSettlementGetSettlementAuctionExpired() (gas: 431308)
ModuleTesting:testFixedTermDutchAuctionSettlementNotValid() (gas: 427419)
ModuleTesting:testFixedTermDutchAuctionSettlementValid() (gas: 428283)
IntegrationTestCaveats:testOriginateUnapprovedFulfiller() (gas: 369613)
IntegrationTestCaveats:testOriginateWBorrowerApproval() (gas: 323372)
IntegrationTestCaveats:testOriginateWCaveats() (gas: 297466)
IntegrationTestCaveats:testOriginateWCaveatsExpired() (gas: 177232)
IntegrationTestCaveats:testOriginateWCaveatsIncrementedNonce() (gas: 205798)
IntegrationTestCaveats:testOriginateWCaveatsInvalidSalt() (gas: 303717)
IntegrationTestCaveats:testOriginateWCaveatsInvalidSaltManual() (gas: 179719)
IntegrationTestCaveats:testOriginateWLenderApproval() (gas: 323448)
IntegrationTestCaveats:testRefinanceAsLender() (gas: 1088462)
IntegrationTestCaveats:testRefinanceCaveatFailure() (gas: 437545)
IntegrationTestCaveats:testRefinanceLoanStartAtBlockTimestampInvalidLoan() (gas: 384815)
IntegrationTestCaveats:testRefinanceUnapprovedFulfiller() (gas: 495425)
IntegrationTestCaveats:testRefinanceWCaveatsInvalidSalt() (gas: 414216)
IntegrationTestCaveats:testRefinanceWLenderApproval() (gas: 437545)
ModuleTesting:testFixedTermDutchAuctionSettlement() (gas: 436187)
ModuleTesting:testFixedTermDutchAuctionSettlementGetSettlementAuctionExpired() (gas: 438965)
ModuleTesting:testFixedTermDutchAuctionSettlementNotValid() (gas: 435075)
ModuleTesting:testFixedTermDutchAuctionSettlementValid() (gas: 435939)
PausableNonReentrantImpl:test() (gas: 2442)
PausableNonReentrantImpl:testReentrancy() (gas: 2735)
TestBorrowerEnforcer:testBERevertAdditionalTransfers() (gas: 75662)
Expand All @@ -24,40 +24,41 @@ TestBorrowerEnforcer:testBEValidLoanTerms() (gas: 72021)
TestBorrowerEnforcer:testBEValidLoanTermsAnyIssuer() (gas: 72085)
TestCustodian:testCannotLazyMintTwice() (gas: 78796)
TestCustodian:testCannotMintInvalidLoanInvalidCustodian() (gas: 69031)
TestCustodian:testCannotMintInvalidLoanValidCustodian() (gas: 74533)
TestCustodian:testCustodySelector() (gas: 2829377)
TestCustodian:testCannotMintInvalidLoanValidCustodian() (gas: 74555)
TestCustodian:testCustodySelector() (gas: 2830993)
TestCustodian:testDefaultCustodySelectorRevert() (gas: 72312)
TestCustodian:testGenerateOrderInvalidPostRepayment() (gas: 178835)
TestCustodian:testGenerateOrderInvalidPostSettlement() (gas: 163276)
TestCustodian:testGenerateOrderRepay() (gas: 182953)
TestCustodian:testGenerateOrderRepayAsRepayApprovedBorrower() (gas: 199422)
TestCustodian:testGenerateOrderRepayERC1155AndERC20() (gas: 874122)
TestCustodian:testGenerateOrderRepayERC1155AndERC20HandlerAuthorized() (gas: 795523)
TestCustodian:testGenerateOrderInvalidPostRepayment() (gas: 178774)
TestCustodian:testGenerateOrderInvalidPostSettlement() (gas: 163188)
TestCustodian:testGenerateOrderRepay() (gas: 182892)
TestCustodian:testGenerateOrderRepayAsRepayApprovedBorrower() (gas: 199361)
TestCustodian:testGenerateOrderRepayERC1155AndERC20() (gas: 882157)
TestCustodian:testGenerateOrderRepayERC1155AndERC20HandlerAuthorized() (gas: 803591)
TestCustodian:testGenerateOrderRepayInvalidHookAddress() (gas: 97601)
TestCustodian:testGenerateOrderRepayInvalidHookReturnType() (gas: 91896)
TestCustodian:testGenerateOrderRepayInvalidHookReturnType() (gas: 91984)
TestCustodian:testGenerateOrderRepayNotBorrower() (gas: 106802)
TestCustodian:testGenerateOrderSettlement() (gas: 154915)
TestCustodian:testGenerateOrderSettlementHandlerAuthorized() (gas: 160450)
TestCustodian:testGenerateOrderSettlementNoActiveLoan() (gas: 163439)
TestCustodian:testGenerateOrderSettlement() (gas: 154943)
TestCustodian:testGenerateOrderSettlementHandlerAuthorized() (gas: 160340)
TestCustodian:testGenerateOrderSettlementNoActiveLoan() (gas: 163351)
TestCustodian:testGenerateOrderSettlementUnauthorized() (gas: 101822)
TestCustodian:testGenerateOrdersWithLoanStartAtBlockTimestampInvalidLoan() (gas: 457017)
TestCustodian:testGenerateOrdersWithLoanStartAtBlockTimestampInvalidLoan() (gas: 461053)
TestCustodian:testGetBorrower() (gas: 78641)
TestCustodian:testInvalidAction() (gas: 118566)
TestCustodian:testInvalidAction() (gas: 173284)
TestCustodian:testInvalidActionRepayInActiveLoan() (gas: 130104)
TestCustodian:testInvalidActionSettleActiveLoan() (gas: 130108)
TestCustodian:testMintWithApprovalSetAsBorrower() (gas: 361292)
TestCustodian:testInvalidActionSettleActiveLoan() (gas: 130086)
TestCustodian:testInvalidEncodedData() (gas: 26192)
TestCustodian:testMintWithApprovalSetAsBorrower() (gas: 362794)
TestCustodian:testMintWithApprovalSetAsBorrowerInvalidLoan() (gas: 60792)
TestCustodian:testMintWithApprovalSetNotAuthorized() (gas: 76737)
TestCustodian:testName() (gas: 7143)
TestCustodian:testMintWithApprovalSetNotAuthorized() (gas: 76759)
TestCustodian:testName() (gas: 7121)
TestCustodian:testNonPayableFunctions() (gas: 215173)
TestCustodian:testOnlySeaport() (gas: 17851)
TestCustodian:testPreviewOrderNoActiveLoan() (gas: 105827)
TestCustodian:testPreviewOrderRepay() (gas: 241652)
TestCustodian:testPreviewOrderSettlement() (gas: 191927)
TestCustodian:testOnlySeaport() (gas: 17829)
TestCustodian:testPreviewOrderNoActiveLoan() (gas: 105805)
TestCustodian:testPreviewOrderRepay() (gas: 241591)
TestCustodian:testPreviewOrderSettlement() (gas: 191866)
TestCustodian:testPreviewOrderSettlementInvalidFufliller() (gas: 108243)
TestCustodian:testPreviewOrderSettlementInvalidRepayer() (gas: 116961)
TestCustodian:testRatifyOrder() (gas: 189774)
TestCustodian:testSeaportMetadata() (gas: 8523)
TestCustodian:testRatifyOrder() (gas: 189713)
TestCustodian:testSeaportMetadata() (gas: 8632)
TestCustodian:testSupportsInterface() (gas: 9428)
TestCustodian:testSymbol() (gas: 7105)
TestCustodian:testTokenURI() (gas: 67024)
Expand All @@ -67,75 +68,76 @@ TestLenderEnforcer:testLERevertInvalidLoanTerms() (gas: 80962)
TestLenderEnforcer:testLEValidLoanTerms() (gas: 71955)
TestLenderEnforcer:testLEValidLoanTermsAnyBorrower() (gas: 72087)
TestLenderEnforcer:testLEValidLoanTermsWithAdditionalTransfers() (gas: 73310)
TestLoanCombinations:testLoan20For721SimpleInterestDutchFixedRepay() (gas: 592222)
TestLoanCombinations:testLoan20for20SimpleInterestDutchFixedRepay() (gas: 599433)
TestLoanCombinations:testLoan721for20SimpleInterestDutchFixedRepay() (gas: 590484)
TestLoanCombinations:testLoanAstariaSettlementRepay() (gas: 580325)
TestNewLoan:testBuyNowPayLater() (gas: 2868927)
TestLoanCombinations:testLoan20For721SimpleInterestDutchFixedRepay() (gas: 599132)
TestLoanCombinations:testLoan20for20SimpleInterestDutchFixedRepay() (gas: 606345)
TestLoanCombinations:testLoan721for20SimpleInterestDutchFixedRepay() (gas: 597426)
TestLoanCombinations:testLoanAstariaSettlementRepay() (gas: 587236)
TestNewLoan:testBuyNowPayLater() (gas: 2872541)
TestNewLoan:testInvalidSenderBNPL() (gas: 1613720)
TestNewLoan:testInvalidUserDataHashBNPL() (gas: 1616299)
TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 420243)
TestNewLoan:testNewLoanERC721CollateralLessDebtThanOffered() (gas: 2348)
TestNewLoan:testNewLoanRefinanceNew() (gas: 163)
TestNewLoan:testNewLoanViaOriginatorBorrowerApprovalAndLenderApproval() (gas: 328494)
TestNewLoan:testNewLoanViaOriginatorLenderApproval() (gas: 382896)
TestNewLoan:testSettleLoan() (gas: 632320)
TestNewLoan:testNewLoanAs1271ProxyAccountSender() (gas: 864104)
TestNewLoan:testNewLoanAs1271ProxyAccountThirdPartyFiller() (gas: 873525)
TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 427351)
TestNewLoan:testNewLoanRefinance() (gas: 588883)
TestNewLoan:testNewLoanViaOriginatorBorrowerApprovalAndLenderApproval() (gas: 328439)
TestNewLoan:testNewLoanViaOriginatorLenderApproval() (gas: 384733)
TestNewLoan:testSettleLoan() (gas: 639391)
TestPausableNonReentrant:testNotOwner() (gas: 21254)
TestPausableNonReentrant:testPauseAndUnpause() (gas: 22555)
TestPausableNonReentrant:testReentrancy() (gas: 15360)
TestPausableNonReentrant:testUnpauseWhenNotPaused() (gas: 12582)
TestRepayLoan:testRepayLoanApprovedRepayer() (gas: 666500)
TestRepayLoan:testRepayLoanBase() (gas: 602725)
TestRepayLoan:testRepayLoanGenerateOrderNotSeaport() (gas: 428683)
TestRepayLoan:testRepayLoanInSettlement() (gas: 578488)
TestRepayLoan:testRepayLoanInvalidRepayer() (gas: 602275)
TestRepayLoan:testRepayLoanThatDoesNotExist() (gas: 881201)
TestRepayLoan:testRepayLoanApprovedRepayer() (gas: 672743)
TestRepayLoan:testRepayLoanBase() (gas: 608946)
TestRepayLoan:testRepayLoanGenerateOrderNotSeaport() (gas: 436382)
TestRepayLoan:testRepayLoanInSettlement() (gas: 583350)
TestRepayLoan:testRepayLoanInvalidRepayer() (gas: 607116)
TestRepayLoan:testRepayLoanThatDoesNotExist() (gas: 884491)
TestSimpleInterestPricing:test_calculateInterest() (gas: 881308)
TestSimpleInterestPricing:test_getPaymentConsideration() (gas: 928516)
TestSimpleInterestPricing:test_getRefinanceConsideration() (gas: 919289)
TestStarport:testActive() (gas: 69298)
TestStarport:testAdditionalTransfers() (gas: 299521)
TestStarport:testAdditionalTransfersOriginate() (gas: 274239)
TestStarport:testAdditionalTransfersRefinance() (gas: 214181)
TestStarport:testApplyRefinanceConsiderationToLoanMalformed() (gas: 78162)
TestStarport:testCannotIssueSameLoanTwice() (gas: 361051)
TestStarport:testCannotOriginateWhilePaused() (gas: 73544)
TestStarport:testCannotSettleInvalidLoan() (gas: 75003)
TestStarport:testCannotSettleUnlessValidCustodian() (gas: 71073)
TestStarport:testCaveatEnforcerRevert() (gas: 99151)
TestStarport:testDefaultFeeRake() (gas: 359891)
TestStarport:testDefaultFeeRakeExoticDebt() (gas: 369406)
TestStarport:testExoticDebtWithNoCaveatsNotAsBorrower() (gas: 375643)
TestStarport:testIncrementCaveatNonce() (gas: 34605)
TestStarport:testActive() (gas: 69320)
TestStarport:testAdditionalTransfers() (gas: 301282)
TestStarport:testAdditionalTransfersOriginate() (gas: 276000)
TestStarport:testAdditionalTransfersRefinance() (gas: 214276)
TestStarport:testApplyRefinanceConsiderationToLoanMalformed() (gas: 121896)
TestStarport:testCannotIssueSameLoanTwice() (gas: 364572)
TestStarport:testCannotOriginateWhilePaused() (gas: 73457)
TestStarport:testCannotSettleInvalidLoan() (gas: 74915)
TestStarport:testCannotSettleUnlessValidCustodian() (gas: 70985)
TestStarport:testCaveatEnforcerRevert() (gas: 99214)
TestStarport:testDefaultFeeRake() (gas: 361421)
TestStarport:testDefaultFeeRakeExoticDebt() (gas: 370933)
TestStarport:testExoticDebtWithNoCaveatsNotAsBorrower() (gas: 377404)
TestStarport:testIncrementCaveatNonce() (gas: 35208)
TestStarport:testInitializedFlagSetProperly() (gas: 67393)
TestStarport:testInvalidAdditionalTransfersOriginate() (gas: 226782)
TestStarport:testInvalidAdditionalTransfersRefinance() (gas: 163953)
TestStarport:testInvalidAmountCollateral() (gas: 161794)
TestStarport:testInvalidAmountCollateral721() (gas: 161794)
TestStarport:testInvalidItemType() (gas: 147742)
TestStarport:testInvalidTransferLengthCollateral() (gas: 149948)
TestStarport:testInvalidTransferLengthDebt() (gas: 171749)
TestStarport:testInvalidateCaveatSalt() (gas: 32858)
TestStarport:testNonDefaultCustodianCustodyCallFails() (gas: 262686)
TestStarport:testNonDefaultCustodianCustodyCallSuccess() (gas: 288899)
TestStarport:testNonPayableFunctions() (gas: 111955)
TestStarport:testOverrideFeeRake() (gas: 355780)
TestStarport:testPause() (gas: 18158)
TestStarport:testRefinancePostRepaymentFails() (gas: 120713)
TestStarport:testTokenNoCodeCollateral() (gas: 146555)
TestStarport:testTokenNoCodeDebt() (gas: 176962)
TestStarport:testUnpause() (gas: 17263)
TestStarport:testInvalidAdditionalTransfersOriginate() (gas: 228469)
TestStarport:testInvalidAdditionalTransfersRefinance() (gas: 163975)
TestStarport:testInvalidAmountCollateral() (gas: 163481)
TestStarport:testInvalidAmountCollateral721() (gas: 163481)
TestStarport:testInvalidItemType() (gas: 149429)
TestStarport:testInvalidTransferLengthCollateral() (gas: 151635)
TestStarport:testInvalidTransferLengthDebt() (gas: 173436)
TestStarport:testInvalidateCaveatSalt() (gas: 33463)
TestStarport:testNonDefaultCustodianCustodyCallFails() (gas: 264447)
TestStarport:testNonDefaultCustodianCustodyCallSuccess() (gas: 290660)
TestStarport:testNonPayableFunctions() (gas: 112043)
TestStarport:testOverrideFeeRake() (gas: 357317)
TestStarport:testPause() (gas: 18093)
TestStarport:testRefinancePostRepaymentFails() (gas: 120804)
TestStarport:testTokenNoCodeCollateral() (gas: 148242)
TestStarport:testTokenNoCodeDebt() (gas: 178649)
TestStarport:testUnpause() (gas: 17198)
TestStrategistOriginator:testEncodeWithAccountCounter() (gas: 12307)
TestStrategistOriginator:testGetStrategistData() (gas: 1489933)
TestStrategistOriginator:testIncrementCounterAsStrategist() (gas: 18676)
TestStrategistOriginator:testIncrementCounterNotAuthorized() (gas: 13401)
TestStrategistOriginator:testInvalidCollateral() (gas: 209808)
TestStrategistOriginator:testInvalidDeadline() (gas: 215523)
TestStrategistOriginator:testInvalidDebt() (gas: 211446)
TestStrategistOriginator:testInvalidDebtAmountAskingMoreThanOffered() (gas: 211807)
TestStrategistOriginator:testInvalidDebtAmountOfferingZero() (gas: 212106)
TestStrategistOriginator:testInvalidDebtAmountRequestingZero() (gas: 212060)
TestStrategistOriginator:testInvalidDebtLength() (gas: 210689)
TestStrategistOriginator:testInvalidOffer() (gas: 425546)
TestStrategistOriginator:testInvalidSigner() (gas: 214017)
TestStrategistOriginator:testInvalidCollateral() (gas: 209797)
TestStrategistOriginator:testInvalidDeadline() (gas: 215512)
TestStrategistOriginator:testInvalidDebt() (gas: 211435)
TestStrategistOriginator:testInvalidDebtAmountAskingMoreThanOffered() (gas: 211796)
TestStrategistOriginator:testInvalidDebtAmountOfferingZero() (gas: 212095)
TestStrategistOriginator:testInvalidDebtAmountRequestingZero() (gas: 212049)
TestStrategistOriginator:testInvalidDebtLength() (gas: 210678)
TestStrategistOriginator:testInvalidOffer() (gas: 427302)
TestStrategistOriginator:testInvalidSigner() (gas: 214006)
TestStrategistOriginator:testSetStrategist() (gas: 17796)
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ignored_error_codes = [2018, 9302, 5574]

[profile.default.fuzz]
include_storage = false
runs = 10000

[fmt]
line_length = 120
Expand Down
Loading