Skip to content

Commit

Permalink
chore: bump starport (#49)
Browse files Browse the repository at this point in the history
* chore: bump starport

* fix: ci and snapshot cmd
  • Loading branch information
0xgregthedev authored Feb 20, 2024
1 parent e746129 commit ffe591f
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 73 deletions.
120 changes: 52 additions & 68 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,70 +1,54 @@
TestAstariaV1Loan:testNewLoanCollateral6DecimalsStakeSplit() (gas: 1877169)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallAuctionFailLenderClaim() (gas: 660621)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallAuctionFailLenderClaimRandomFulfiller() (gas: 651605)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallBase() (gas: 1088220)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLender() (gas: 674814)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLiquidation() (gas: 1442192)
TestAstariaV1Pricing:testGetRefinanceConsiderationAsBorrowerZeroRate() (gas: 71573)
TestAstariaV1Pricing:testGetRefinanceConsiderationInsufficientRefinance() (gas: 109124)
TestAstariaV1Pricing:testGetRefinanceConsiderationInvalidRefinance() (gas: 70348)
TestAstariaV1Pricing:testGetRefinanceConsiderationValidEqualRate() (gas: 143430)
TestAstariaV1Pricing:testGetRefinanceConsiderationValidHigherRate() (gas: 155400)
TestAstariaV1Pricing:testGetRefinanceConsiderationValidLowerRate() (gas: 150553)
TestAstariaV1Pricing:testGetRefinanceConsiderationZeroRate() (gas: 76477)
TestAstariaV1Pricing:testGetRefinanceNewDecimalMismatch() (gas: 76406)
TestAstariaV1Pricing:testV1PricingValidateInvalid() (gas: 69869)
TestAstariaV1Pricing:testV1PricingValidateValid() (gas: 69677)
TestAstariaV1Settlement:testGetAuctionStart() (gas: 474646)
TestAstariaV1Settlement:testGetAuctionStartNotStarted() (gas: 474018)
TestAstariaV1Settlement:testGetCurrentAuctionPrice() (gas: 489719)
TestAstariaV1Settlement:testGetCurrentAuctionPriceNoAuction() (gas: 477671)
TestAstariaV1Settlement:testGetSettlementConsiderationDutchAuctionSettlementAbove() (gas: 530858)
TestAstariaV1Settlement:testGetSettlementConsiderationFailedDutchAuction() (gas: 490176)
TestAstariaV1Settlement:testGetSettlementConsiderationLoanNotRecalled() (gas: 480266)
TestAstariaV1Settlement:testGetSettlementConsiderationLoanRecalledByLender() (gas: 517604)
TestAstariaV1Settlement:testGetSettlementConsiderationNoRecallRate() (gas: 492115)
TestAstariaV1Settlement:testV1SettlementHandlerValidate() (gas: 460572)
TestAstariaV1Settlement:testV1SettlementValidateInvalid() (gas: 62594)
TestAstariaV1Settlement:testV1SettlementValidateValid() (gas: 61969)
TestAstariaV1Status:testCannotRecallTwice() (gas: 592471)
TestAstariaV1Status:testCannotWithdrawLoanHasNotBeenRefinanced() (gas: 469091)
TestAstariaV1Status:testCannotWithdrawWithdrawDoesNotExist() (gas: 478179)
TestAstariaV1Status:testGenerateRecallConsideration() (gas: 509526)
TestAstariaV1Status:testInvalidRecallInvalidStakeType() (gas: 531205)
TestAstariaV1Status:testInvalidRecallLoanDoesNotExist() (gas: 521930)
TestAstariaV1Status:testIsActive() (gas: 473722)
TestAstariaV1Status:testIsRecalledInsideWindow() (gas: 603952)
TestAstariaV1Status:testIsRecalledOutsideWindow() (gas: 601884)
TestAstariaV1Status:testRecallAndRefinanceInsideWindow() (gas: 770958)
TestAstariaV1Status:testRecallAndRefinanceWithLenderCaveat() (gas: 829087)
TestAstariaV1Status:testRecallPauseable() (gas: 19795)
TestAstariaV1Status:testRecallRateActiveRecall() (gas: 589358)
TestAstariaV1Status:testRecallRateEmptyRecall() (gas: 470962)
TestAstariaV1Status:testSetValidPricing() (gas: 51752)
TestAstariaV1Status:testV1StatusRevertInvalidPricing() (gas: 524862)
TestAstariaV1Status:testV1StatusValidateInValid() (gas: 70188)
TestAstariaV1Status:testV1StatusValidateValid() (gas: 65917)
TestCompoundInterest:testDecimalsTooHigh() (gas: 3340)
TestCompoundInterest:testDecimalsTooLowZero() (gas: 3369)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallAuctionFailLenderClaim() (gas: 569882)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallBase() (gas: 910054)
TestAstariaV1Loan:testNewLoanERC721CollateralDefaultTermsRecallLenderClaimRandomFulfiller() (gas: 567197)
TestAstariaV1Loan:testNewLoanERC721CollateralRecallNotBlockedBorrower() (gas: 473813)
TestAstariaV1Loan:testNewLoanERC721CollateralRecallNotBlockedLender() (gas: 473538)
TestAstariaV1Loan:testNewLoanERC721CollateralRecallerNotBorrowerOrLender() (gas: 446127)
TestAstariaV1Pricing:testGetPaymentConsiderationIncrementation() (gas: 57195)
TestAstariaV1Pricing:testGetRefinanceConsiderationAsBorrowerZeroRate() (gas: 60433)
TestAstariaV1Pricing:testGetRefinanceConsiderationInsufficientRefinance() (gas: 95727)
TestAstariaV1Pricing:testGetRefinanceConsiderationInvalidRefinance() (gas: 59300)
TestAstariaV1Pricing:testGetRefinanceConsiderationValidEqualRate() (gas: 97989)
TestAstariaV1Pricing:testGetRefinanceConsiderationValidHigherRate() (gas: 108970)
TestAstariaV1Pricing:testGetRefinanceConsiderationValidLowerRate() (gas: 104617)
TestAstariaV1Pricing:testGetRefinanceConsiderationZeroRate() (gas: 64686)
TestAstariaV1Pricing:testGetRefinanceNewDecimalMismatch() (gas: 64618)
TestAstariaV1Pricing:testV1PricingValidateInvalid() (gas: 56870)
TestAstariaV1Pricing:testV1PricingValidateValid() (gas: 57388)
TestAstariaV1Settlement:testGetSettlementConsideration() (gas: 440480)
TestAstariaV1Settlement:testV1SettlementHandlerValidate() (gas: 436565)
TestAstariaV1Settlement:testV1SettlementValidateInvalid() (gas: 51055)
TestAstariaV1Settlement:testV1SettlementValidateValid() (gas: 50398)
TestAstariaV1Status:testCannotRecallTwice() (gas: 530871)
TestAstariaV1Status:testInvalidRecallLoanDoesNotExist() (gas: 497581)
TestAstariaV1Status:testIsActive() (gas: 446151)
TestAstariaV1Status:testIsRecalledInsideWindow() (gas: 541272)
TestAstariaV1Status:testIsRecalledOutsideWindow() (gas: 538810)
TestAstariaV1Status:testRecallAndRefinanceInsideWindow() (gas: 683957)
TestAstariaV1Status:testRecallAndRefinanceWithLenderCaveat() (gas: 742794)
TestAstariaV1Status:testRecallPauseable() (gas: 19669)
TestAstariaV1Status:testRecallRateActiveRecall() (gas: 527199)
TestAstariaV1Status:testRecallRateEmptyRecall() (gas: 446889)
TestAstariaV1Status:testV1StatusValidateInValid() (gas: 58479)
TestAstariaV1Status:testV1StatusValidateValid() (gas: 51916)
TestCompoundInterest:testDecimalsTooHigh() (gas: 3318)
TestCompoundInterest:testInterestAccrual() (gas: 52624)
TestCompoundInterest:testMaxAmountDecimals() (gas: 7891)
TestCompoundInterest:testRateExceedsMaxRecallRate() (gas: 3319)
TestCompoundInterest:testRateTooLowOne() (gas: 5105)
TestCompoundInterest:testRateTooLowOneNonWADDecimal() (gas: 6406)
TestCompoundInterest:testRateTooLowZero() (gas: 5126)
TestV1BorrowerEnforcer:testFuzzRateMethods((uint256,uint256,uint256),uint256) (runs: 10000, μ: 1174, ~: 1174)
TestV1BorrowerEnforcer:testRevertLocateCurrentRateAndAmount() (gas: 61120)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerCollateralAmountOOB() (gas: 128578)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerDebtAmountOOB() (gas: 115463)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerDebtBundlesNotSupported() (gas: 75125)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerEnd() (gas: 123093)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerHalfway() (gas: 117214)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateGTCurrent() (gas: 95559)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateLTCurrent() (gas: 103593)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerStart() (gas: 100750)
TestV1LenderEnforcer:testV1LenderEnforcerAdditionalTransfers() (gas: 121698)
TestV1LenderEnforcer:testV1LenderEnforcerAmount() (gas: 198587)
TestV1LenderEnforcer:testV1LenderEnforcerDebtBundlesNotSupported() (gas: 75312)
TestV1LenderEnforcer:testV1LenderEnforcerMatchIdentifier() (gas: 126958)
TestV1LenderEnforcer:testV1LenderEnforcerMinDebtExceedsMax() (gas: 91261)
TestV1LenderEnforcer:testV1LenderEnforcerRate() (gas: 119018)
TestCompoundInterest:testRateExceedsMaxRecallRate() (gas: 3297)
TestCompoundInterest:testRateTooLowZero() (gas: 3413)
TestV1BorrowerEnforcer:testFuzzRateMethods((uint256,uint256,uint256),uint256) (runs: 10000, μ: 1223, ~: 1223)
TestV1BorrowerEnforcer:testRevertLocateCurrentRateAndAmount() (gas: 50278)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerCollateralAmountOOB() (gas: 112121)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerDebtAmountOOB() (gas: 99409)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerDebtBundlesNotSupported() (gas: 57321)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerEnd() (gas: 106805)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerHalfway() (gas: 101968)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateGTCurrent() (gas: 81834)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerRateLTCurrent() (gas: 89323)
TestV1BorrowerEnforcer:testV1BorrowerEnforcerStart() (gas: 86476)
TestV1LenderEnforcer:testV1LenderEnforcerAdditionalTransfers() (gas: 105167)
TestV1LenderEnforcer:testV1LenderEnforcerAmount() (gas: 173982)
TestV1LenderEnforcer:testV1LenderEnforcerDebtBundlesNotSupported() (gas: 63352)
TestV1LenderEnforcer:testV1LenderEnforcerMatchIdentifier() (gas: 109746)
TestV1LenderEnforcer:testV1LenderEnforcerMinDebtExceedsMax() (gas: 77387)
TestV1LenderEnforcer:testV1LenderEnforcerRate() (gas: 102337)
4 changes: 2 additions & 2 deletions .github/workflows/format_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
run: forge fmt

- name: Snapshot
run: forge snapshot --diff --no-match-path *fuzz*
run: yarn snapshot

- name: Test
run: forge test -vvv

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore(bot): format & snapshot'
commit_message: "chore(bot): format & snapshot"
2 changes: 1 addition & 1 deletion .github/workflows/lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
run: forge test -vvv

- name: Snapshot
run: forge snapshot --diff --no-match-path "*fuzz*"
run: yarn snapshot --check
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"prepare": "husky install",
"snapshot": "forge snapshot --diff --no-match-path *fuzz*",
"snapshot": "forge snapshot --no-match-path *fuzz*",
"test": "forge test --no-match-path *fuzz*"
},
"dependencies": {
Expand Down

0 comments on commit ffe591f

Please sign in to comment.