From d894ba9a1e8a7d451ed5f9d1c80ac46f9f2df10b Mon Sep 17 00:00:00 2001 From: Andrew Redden Date: Fri, 3 Nov 2023 14:02:45 -0300 Subject: [PATCH] update snapshot --- .gas-snapshot | 245 +++++++++++++++++++++++++------------------------- 1 file changed, 123 insertions(+), 122 deletions(-) diff --git a/.gas-snapshot b/.gas-snapshot index a9c48ec9..9fb49d2b 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,43 +1,44 @@ -DiffFuzzTestStarportLib:testSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 880572, ~: 882838) -DiffFuzzTestStarportLib:testUnboundSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 232905, ~: 237832) -IntegrationTestCaveats:testOriginateUnapprovedFulfiller() (gas: 341364) -IntegrationTestCaveats:testOriginateWBorrowerApproval() (gas: 296255) -IntegrationTestCaveats:testOriginateWCaveats() (gas: 272295) -IntegrationTestCaveats:testOriginateWCaveatsIncrementedNonce() (gas: 200191) -IntegrationTestCaveats:testOriginateWCaveatsInvalidSalt() (gas: 257950) -IntegrationTestCaveats:testOriginateWCaveatsInvalidSaltManual() (gas: 175868) -IntegrationTestCaveats:testOriginateWLenderApproval() (gas: 296374) -IntegrationTestCaveats:testRefinanceAsLender() (gas: 1056510) -IntegrationTestCaveats:testRefinanceCaveatFailure() (gas: 422245) -IntegrationTestCaveats:testRefinanceUnapprovedFulfiller() (gas: 480148) -IntegrationTestCaveats:testRefinanceWCaveatsInvalidSalt() (gas: 401136) -IntegrationTestCaveats:testRefinanceWLenderApproval() (gas: 423774) +DiffFuzzTestStarportLib:testSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 880420, ~: 883377) +DiffFuzzTestStarportLib:testUnboundSpentToReceived((uint8,address,uint256,uint256)[]) (runs: 256, μ: 232899, ~: 237832) +IntegrationTestCaveats:testOriginateUnapprovedFulfiller() (gas: 341293) +IntegrationTestCaveats:testOriginateWBorrowerApproval() (gas: 298091) +IntegrationTestCaveats:testOriginateWCaveats() (gas: 272268) +IntegrationTestCaveats:testOriginateWCaveatsIncrementedNonce() (gas: 200258) +IntegrationTestCaveats:testOriginateWCaveatsInvalidSalt() (gas: 257879) +IntegrationTestCaveats:testOriginateWCaveatsInvalidSaltManual() (gas: 175824) +IntegrationTestCaveats:testOriginateWLenderApproval() (gas: 298188) +IntegrationTestCaveats:testRefinanceAsLender() (gas: 1036542) +IntegrationTestCaveats:testRefinanceCaveatFailure() (gas: 402664) +IntegrationTestCaveats:testRefinanceLoanStartAtBlockTimestampInvalidLoan() (gas: 377412) +IntegrationTestCaveats:testRefinanceUnapprovedFulfiller() (gas: 460158) +IntegrationTestCaveats:testRefinanceWCaveatsInvalidSalt() (gas: 381151) +IntegrationTestCaveats:testRefinanceWLenderApproval() (gas: 405713) PausableNonReentrantImpl:test() (gas: 2442) PausableNonReentrantImpl:testReentrancy() (gas: 2735) -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallBase() (gas: 1043793) -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLender() (gas: 728313) -TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLiquidation() (gas: 767030) -TestAstariaV1Settlement:testGetAuctionStart() (gas: 433724) -TestAstariaV1Settlement:testGetAuctionStartNotStarted() (gas: 433297) -TestAstariaV1Settlement:testGetCurrentAuctionPrice() (gas: 448579) -TestAstariaV1Settlement:testGetCurrentAuctionPriceNoAuction() (gas: 436928) -TestAstariaV1Settlement:testGetSettlementDutchAuctionSettlementAbove() (gas: 490549) -TestAstariaV1Settlement:testGetSettlementFailedDutchAuction() (gas: 448902) -TestAstariaV1Settlement:testGetSettlementLoanNotRecalled() (gas: 439404) -TestAstariaV1Settlement:testV1SettlementHandlerExecute() (gas: 419911) -TestAstariaV1Settlement:testV1SettlementHandlerValidate() (gas: 420023) -TestAstariaV1Settlement:testV1SettlementHandlerValidateInvalidHandler() (gas: 420147) -TestAstariaV1Status:testCannotRecallTwice() (gas: 580593) -TestAstariaV1Status:testCannotWithdrawLoanHasNotBeenRefinanced() (gas: 425750) -TestAstariaV1Status:testCannotWithdrawWithdrawDoesNotExist() (gas: 432189) -TestAstariaV1Status:testGenerateRecallConsideration() (gas: 481625) -TestAstariaV1Status:testInvalidRecallInvalidStakeType() (gas: 507950) -TestAstariaV1Status:testInvalidRecallLoanDoesNotExist() (gas: 523957) -TestAstariaV1Status:testIsActive() (gas: 432909) -TestAstariaV1Status:testIsRecalledInsideWindow() (gas: 571483) -TestAstariaV1Status:testIsRecalledOutsideWindow() (gas: 569384) -TestAstariaV1Status:testRecallRateActiveRecall() (gas: 557022) -TestAstariaV1Status:testRecallRateEmptyRecall() (gas: 430563) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallBase() (gas: 1024388) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLender() (gas: 708447) +TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLiquidation() (gas: 747164) +TestAstariaV1Settlement:testGetAuctionStart() (gas: 433653) +TestAstariaV1Settlement:testGetAuctionStartNotStarted() (gas: 433226) +TestAstariaV1Settlement:testGetCurrentAuctionPrice() (gas: 448508) +TestAstariaV1Settlement:testGetCurrentAuctionPriceNoAuction() (gas: 436857) +TestAstariaV1Settlement:testGetSettlementDutchAuctionSettlementAbove() (gas: 490478) +TestAstariaV1Settlement:testGetSettlementFailedDutchAuction() (gas: 448831) +TestAstariaV1Settlement:testGetSettlementLoanNotRecalled() (gas: 439333) +TestAstariaV1Settlement:testV1SettlementHandlerExecute() (gas: 419840) +TestAstariaV1Settlement:testV1SettlementHandlerValidate() (gas: 419952) +TestAstariaV1Settlement:testV1SettlementHandlerValidateInvalidHandler() (gas: 420076) +TestAstariaV1Status:testCannotRecallTwice() (gas: 580716) +TestAstariaV1Status:testCannotWithdrawLoanHasNotBeenRefinanced() (gas: 425689) +TestAstariaV1Status:testCannotWithdrawWithdrawDoesNotExist() (gas: 432118) +TestAstariaV1Status:testGenerateRecallConsideration() (gas: 481554) +TestAstariaV1Status:testInvalidRecallInvalidStakeType() (gas: 507879) +TestAstariaV1Status:testInvalidRecallLoanDoesNotExist() (gas: 523886) +TestAstariaV1Status:testIsActive() (gas: 432838) +TestAstariaV1Status:testIsRecalledInsideWindow() (gas: 571509) +TestAstariaV1Status:testIsRecalledOutsideWindow() (gas: 569410) +TestAstariaV1Status:testRecallRateActiveRecall() (gas: 557048) +TestAstariaV1Status:testRecallRateEmptyRecall() (gas: 430492) TestBorrowerEnforcer:testBERevertAdditionalTransfers() (gas: 73195) TestBorrowerEnforcer:testBERevertInvalidLoanTerms() (gas: 78316) TestBorrowerEnforcer:testBEValidLoanTerms() (gas: 69518) @@ -46,121 +47,121 @@ TestCompoundInterest:testAmountMax() (gas: 65767) TestCompoundInterest:testRateMax() (gas: 68106) TestCompoundInterest:testRateTooLowOne() (gas: 73157) TestCompoundInterest:testRateTooLowZero() (gas: 68419) -TestCustodian:testCannotLazyMintTwice() (gas: 76589) +TestCustodian:testCannotLazyMintTwice() (gas: 76686) TestCustodian:testCannotMintInvalidLoanInvalidCustodian() (gas: 66861) -TestCustodian:testCannotMintInvalidLoanValidCustodian() (gas: 72392) -TestCustodian:testCustodySelector() (gas: 2718568) -TestCustodian:testDefaultCustodySelectorRevert() (gas: 70061) -TestCustodian:testGenerateOrderInvalidHandlerExecution() (gas: 133022) -TestCustodian:testGenerateOrderRepay() (gas: 174613) -TestCustodian:testGenerateOrderRepayAsRepayApprovedBorrower() (gas: 200238) -TestCustodian:testGenerateOrderRepayERC1155AndERC20AndNative() (gas: 869808) -TestCustodian:testGenerateOrderRepayERC1155AndERC20AndNativeHandlerAuthorized() (gas: 794008) -TestCustodian:testGenerateOrderRepayERC1155WithRevert() (gas: 533336) -TestCustodian:testGenerateOrderRepayInvalidHookAddress() (gas: 90307) -TestCustodian:testGenerateOrderRepayInvalidHookReturnType() (gas: 84624) -TestCustodian:testGenerateOrderRepayNotBorrower() (gas: 96398) -TestCustodian:testGenerateOrderSettlement() (gas: 151699) -TestCustodian:testGenerateOrderSettlementHandlerAuthorized() (gas: 160694) -TestCustodian:testGenerateOrderSettlementNoActiveLoan() (gas: 155916) -TestCustodian:testGenerateOrderSettlementUnauthorized() (gas: 94382) -TestCustodian:testGetBorrower() (gas: 76322) -TestCustodian:testInvalidAction() (gas: 114334) -TestCustodian:testInvalidActionRepayInActiveLoan() (gas: 117283) -TestCustodian:testInvalidActionSettleActiveLoan() (gas: 117243) +TestCustodian:testCannotMintInvalidLoanValidCustodian() (gas: 72489) +TestCustodian:testCustodySelector() (gas: 2728398) +TestCustodian:testDefaultCustodySelectorRevert() (gas: 70083) +TestCustodian:testGenerateOrderInvalidHandlerExecution() (gas: 133050) +TestCustodian:testGenerateOrderRepay() (gas: 171915) +TestCustodian:testGenerateOrderRepayAsRepayApprovedBorrower() (gas: 197518) +TestCustodian:testGenerateOrderRepayERC1155AndERC20AndNative() (gas: 833690) +TestCustodian:testGenerateOrderRepayERC1155AndERC20AndNativeHandlerAuthorized() (gas: 757868) +TestCustodian:testGenerateOrderRepayERC1155WithRevert() (gas: 516666) +TestCustodian:testGenerateOrderRepayInvalidHookAddress() (gas: 90335) +TestCustodian:testGenerateOrderRepayInvalidHookReturnType() (gas: 84652) +TestCustodian:testGenerateOrderRepayNotBorrower() (gas: 96426) +TestCustodian:testGenerateOrderSettlement() (gas: 146907) +TestCustodian:testGenerateOrderSettlementHandlerAuthorized() (gas: 155902) +TestCustodian:testGenerateOrderSettlementNoActiveLoan() (gas: 155924) +TestCustodian:testGenerateOrderSettlementUnauthorized() (gas: 94410) +TestCustodian:testGenerateOrdersWithLoanStartAtBlockTimestampInvalidLoan() (gas: 453017) +TestCustodian:testGetBorrower() (gas: 76234) +TestCustodian:testInvalidAction() (gas: 114498) +TestCustodian:testInvalidActionRepayInActiveLoan() (gas: 117469) +TestCustodian:testInvalidActionSettleActiveLoan() (gas: 117407) TestCustodian:testName() (gas: 7098) TestCustodian:testNonPayableFunctions() (gas: 225792) TestCustodian:testOnlySeaport() (gas: 17895) TestCustodian:testPayableFunctions() (gas: 41667) -TestCustodian:testPreviewOrderNoActiveLoan() (gas: 98650) -TestCustodian:testPreviewOrderRepay() (gas: 227169) -TestCustodian:testPreviewOrderSettlement() (gas: 183158) -TestCustodian:testPreviewOrderSettlementInvalidFufliller() (gas: 100773) -TestCustodian:testPreviewOrderSettlementInvalidRepayer() (gas: 106698) -TestCustodian:testRatifyOrder() (gas: 180782) +TestCustodian:testPreviewOrderNoActiveLoan() (gas: 98786) +TestCustodian:testPreviewOrderRepay() (gas: 227648) +TestCustodian:testPreviewOrderSettlement() (gas: 178524) +TestCustodian:testPreviewOrderSettlementInvalidFufliller() (gas: 100823) +TestCustodian:testPreviewOrderSettlementInvalidRepayer() (gas: 106856) +TestCustodian:testRatifyOrder() (gas: 178410) TestCustodian:testSeaportMetadata() (gas: 8567) TestCustodian:testSetRepayApproval() (gas: 37861) -TestCustodian:testSupportsInterface() (gas: 9428) +TestCustodian:testSupportsInterface() (gas: 9450) TestCustodian:testSymbol() (gas: 7127) TestCustodian:testTokenURI() (gas: 64817) -TestCustodian:testTokenURIInvalidLoan() (gas: 13196) +TestCustodian:testTokenURIInvalidLoan() (gas: 13218) TestLenderEnforcer:testLERevertAdditionalTransfersFromLender() (gas: 73743) TestLenderEnforcer:testLERevertInvalidLoanTerms() (gas: 78341) TestLenderEnforcer:testLEValidLoanTerms() (gas: 69496) TestLenderEnforcer:testLEValidLoanTermsAnyBorrower() (gas: 69494) TestLenderEnforcer:testLEValidLoanTermsWithAdditionalTransfers() (gas: 70740) -TestLoanCombinations:testLoan20For721SimpleInterestDutchFixedRepay() (gas: 556813) -TestLoanCombinations:testLoan20for20SimpleInterestDutchFixedRepay() (gas: 544442) -TestLoanCombinations:testLoan721for20SimpleInterestDutchFixedRepay() (gas: 574540) -TestLoanCombinations:testLoanAstariaSettlementRepay() (gas: 564379) -TestLoanCombinations:testLoanSimpleInterestEnglishFixed() (gas: 569855) -TestNewLoan:testBuyNowPayLater() (gas: 2832994) -TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 394612) +TestLoanCombinations:testLoan20For721SimpleInterestDutchFixedRepay() (gas: 537008) +TestLoanCombinations:testLoan20for20SimpleInterestDutchFixedRepay() (gas: 524637) +TestLoanCombinations:testLoan721for20SimpleInterestDutchFixedRepay() (gas: 554832) +TestLoanCombinations:testLoanAstariaSettlementRepay() (gas: 544574) +TestLoanCombinations:testLoanSimpleInterestEnglishFixed() (gas: 550050) +TestNewLoan:testBuyNowPayLater() (gas: 2832923) +TestNewLoan:testNewLoanERC721CollateralDefaultTerms2() (gas: 394541) TestNewLoan:testNewLoanERC721CollateralLessDebtThanOffered() (gas: 2348) TestNewLoan:testNewLoanRefinanceNew() (gas: 207) -TestNewLoan:testNewLoanViaOriginatorBorrowerApprovalAndLenderApproval() (gas: 301998) -TestNewLoan:testNewLoanViaOriginatorLenderApproval() (gas: 356629) -TestNewLoan:testSettleLoan() (gas: 628013) +TestNewLoan:testNewLoanViaOriginatorBorrowerApprovalAndLenderApproval() (gas: 305741) +TestNewLoan:testNewLoanViaOriginatorLenderApproval() (gas: 358465) +TestNewLoan:testSettleLoan() (gas: 608050) TestPausableNonReentrant:testNotOwner() (gas: 21254) TestPausableNonReentrant:testPauseAndUnpause() (gas: 22555) TestPausableNonReentrant:testReentrancy() (gas: 15360) TestPausableNonReentrant:testUnpauseWhenNotPaused() (gas: 12582) TestRefStarportLib:testSpentToReceived() (gas: 13315) TestRefStarportLib:testValidateSalt(address,bytes32) (runs: 256, μ: 33865, ~: 33865) -TestRepayLoan:testRepayLoanApprovedRepayer() (gas: 649239) -TestRepayLoan:testRepayLoanBase() (gas: 585533) -TestRepayLoan:testRepayLoanGenerateOrderNotSeaport() (gas: 402533) -TestRepayLoan:testRepayLoanInSettlement() (gas: 549847) -TestRepayLoan:testRepayLoanInvalidRepayer() (gas: 564256) -TestRepayLoan:testRepayLoanThatDoesNotExist() (gas: 856585) +TestRepayLoan:testRepayLoanApprovedRepayer() (gas: 629456) +TestRepayLoan:testRepayLoanBase() (gas: 565750) +TestRepayLoan:testRepayLoanGenerateOrderNotSeaport() (gas: 402462) +TestRepayLoan:testRepayLoanInSettlement() (gas: 550056) +TestRepayLoan:testRepayLoanInvalidRepayer() (gas: 564465) +TestRepayLoan:testRepayLoanThatDoesNotExist() (gas: 837042) TestSimpleInterestPricing:test_calculateInterest() (gas: 808192) TestSimpleInterestPricing:test_getPaymentConsideration() (gas: 889476) TestSimpleInterestPricing:test_getRefinanceConsideration() (gas: 883676) -TestStarport:testActive() (gas: 67003) -TestStarport:testAdditionalTransfers() (gas: 296003) -TestStarport:testCannotIssueSameLoanTwice() (gas: 337165) -TestStarport:testCannotOriginateWhilePaused() (gas: 70834) -TestStarport:testCannotSettleInvalidLoan() (gas: 72745) -TestStarport:testCannotSettleUnlessValidCustodian() (gas: 68838) -TestStarport:testCaveatEnforcerRevert() (gas: 124071) -TestStarport:testDefaultFeeRake() (gas: 355208) -TestStarport:testExoticDebtWithNoCaveatsNotAsBorrower() (gas: 371351) -TestStarport:testIncrementCaveatNonce() (gas: 34582) -TestStarport:testInitializedFlagSetProperly() (gas: 65344) -TestStarport:testInvalidAmountCollateral() (gas: 157920) -TestStarport:testInvalidAmountCollateral721() (gas: 157897) -TestStarport:testInvalidItemType() (gas: 143819) -TestStarport:testInvalidTransferLengthCollateral() (gas: 165976) -TestStarport:testInvalidTransferLengthDebt() (gas: 170546) -TestStarport:testInvalidateCaveatSalt() (gas: 32852) -TestStarport:testIssued() (gas: 67216) +TestStarport:testActive() (gas: 67100) +TestStarport:testAdditionalTransfers() (gas: 295920) +TestStarport:testCannotIssueSameLoanTwice() (gas: 336999) +TestStarport:testCannotOriginateWhilePaused() (gas: 70790) +TestStarport:testCannotSettleInvalidLoan() (gas: 72725) +TestStarport:testCannotSettleUnlessValidCustodian() (gas: 68816) +TestStarport:testCaveatEnforcerRevert() (gas: 123993) +TestStarport:testDefaultFeeRake() (gas: 355025) +TestStarport:testExoticDebtWithNoCaveatsNotAsBorrower() (gas: 371268) +TestStarport:testIncrementCaveatNonce() (gas: 34671) +TestStarport:testInitializedFlagSetProperly() (gas: 65260) +TestStarport:testInvalidAmountCollateral() (gas: 157842) +TestStarport:testInvalidAmountCollateral721() (gas: 157819) +TestStarport:testInvalidItemType() (gas: 143741) +TestStarport:testInvalidTransferLengthCollateral() (gas: 165898) +TestStarport:testInvalidTransferLengthDebt() (gas: 170468) +TestStarport:testInvalidateCaveatSalt() (gas: 32830) TestStarport:testName() (gas: 7216) -TestStarport:testNonDefaultCustodianCustodyCallFails() (gas: 195229) -TestStarport:testNonDefaultCustodianCustodyCallSuccess() (gas: 261108) -TestStarport:testNonPayableFunctions() (gas: 180369) -TestStarport:testOverrideFeeRake() (gas: 348919) -TestStarport:testPause() (gas: 17208) +TestStarport:testNonDefaultCustodianCustodyCallFails() (gas: 195151) +TestStarport:testNonDefaultCustodianCustodyCallSuccess() (gas: 261025) +TestStarport:testNonPayableFunctions() (gas: 180435) +TestStarport:testOverrideFeeRake() (gas: 348758) +TestStarport:testPause() (gas: 17186) TestStarport:testSupportsInterface() (gas: 9181) -TestStarport:testSymbol() (gas: 7279) -TestStarport:testTokenNoCodeCollateral() (gas: 142676) -TestStarport:testTokenNoCodeDebt() (gas: 175694) -TestStarport:testTokenURI() (gas: 64923) -TestStarport:testTokenURIInvalidLoan() (gas: 13296) -TestStarport:testTransferFromFail() (gas: 80110) -TestStarport:testUnpause() (gas: 16221) +TestStarport:testSymbol() (gas: 7257) +TestStarport:testTokenNoCodeCollateral() (gas: 142510) +TestStarport:testTokenNoCodeDebt() (gas: 175616) +TestStarport:testTokenURI() (gas: 65021) +TestStarport:testTokenURIInvalidLoan() (gas: 13394) +TestStarport:testTransferFromFail() (gas: 80066) +TestStarport:testUnpause() (gas: 16309) TestStarportLib:testSpentToReceived() (gas: 13315) TestStarportLib:testValidateSalt(address,bytes32) (runs: 256, μ: 33865, ~: 33865) TestStrategistOriginator:testEncodeWithAccountCounter() (gas: 12307) TestStrategistOriginator:testGetStrategistData() (gas: 1471010) TestStrategistOriginator:testIncrementCounterAsStrategist() (gas: 18676) TestStrategistOriginator:testIncrementCounterNotAuthorized() (gas: 13467) -TestStrategistOriginator:testInvalidCollateral() (gas: 204508) -TestStrategistOriginator:testInvalidDeadline() (gas: 210237) -TestStrategistOriginator:testInvalidDebt() (gas: 206192) -TestStrategistOriginator:testInvalidDebtAmountAskingMoreThanOffered() (gas: 206640) -TestStrategistOriginator:testInvalidDebtAmountOfferingZero() (gas: 187017) -TestStrategistOriginator:testInvalidDebtAmountRequestingZero() (gas: 206893) -TestStrategistOriginator:testInvalidDebtLength() (gas: 205520) -TestStrategistOriginator:testInvalidOffer() (gas: 399011) -TestStrategistOriginator:testInvalidSigner() (gas: 208731) +TestStrategistOriginator:testInvalidCollateral() (gas: 206371) +TestStrategistOriginator:testInvalidDeadline() (gas: 212100) +TestStrategistOriginator:testInvalidDebt() (gas: 208055) +TestStrategistOriginator:testInvalidDebtAmountAskingMoreThanOffered() (gas: 208503) +TestStrategistOriginator:testInvalidDebtAmountOfferingZero() (gas: 188880) +TestStrategistOriginator:testInvalidDebtAmountRequestingZero() (gas: 208756) +TestStrategistOriginator:testInvalidDebtLength() (gas: 207383) +TestStrategistOriginator:testInvalidOffer() (gas: 400847) +TestStrategistOriginator:testInvalidSigner() (gas: 210594) TestStrategistOriginator:testSetStrategist() (gas: 17818) \ No newline at end of file