From b5c87a8d50e2fccb66db3e02e22bfe4a89b91339 Mon Sep 17 00:00:00 2001 From: Jaycen Horton Date: Thu, 10 Aug 2023 15:45:07 -0700 Subject: [PATCH] exclude MarketGasExplorer from gas snapshots (#676) --- .gas-snapshot | 6 ------ package.json | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.gas-snapshot b/.gas-snapshot index 8044e9f7..925ef121 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -38,12 +38,6 @@ LockedNORITest:testNormalWithdrawal() (gas: 1102743) LockedNORITest:testReentryTokensReceived() (gas: 1102887) LockedNORITest:testReentryTokensToSend() (gas: 1104432) LockedNORITest:testTokensReceivedReverts() (gas: 69026) -MarketGasExplorer:test_0_bestPossibleCaseOneRemoval() (gas: 29784823) -MarketGasExplorer:test_1_mostRealisticSeveralSuppliersModerateAmounts() (gas: 54632596) -MarketGasExplorer:test_2_uniqueSuppliersBulkAmounts() (gas: 77978844) -MarketGasExplorer:test_3_uniqueSuppliersVariableAmounts() (gas: 1517539092) -MarketGasExplorer:test_4_singleSupplierGranularAmounts() (gas: 3629646788) -MarketGasExplorer:test_5_uniqueSuppliersGranularAmounts() (gas: 5791445583) MarketInvariantTest:invariant_callSummary() (runs: 400, calls: 6000, reverts: 4265) MarketInvariantTest:invariant_sumOfPurchaseAmounts() (runs: 400, calls: 6000, reverts: 4265) MarketSupplierSelectionNotUsingUpSuppliersLastRemoval:test() (gas: 922133) diff --git a/package.json b/package.json index 660fec6e..bc7fe142 100644 --- a/package.json +++ b/package.json @@ -110,9 +110,9 @@ "hardhat": "hardhat", "node:verbose": "TRACE=true LOG_HARDHAT_NETWORK=true hardhat node", "docgen": "SOLC_PROFILE=test npx hardhat docgen", - "snapshot": "forge snapshot", - "snapshot:test": "FOUNDRY_PROFILE=test forge snapshot --snap .gas-snapshot-test", - "snapshot:production": "FOUNDRY_PROFILE=production forge snapshot --snap .gas-snapshot-production", + "snapshot": "forge snapshot --no-match-path MarketGasExplorer.t.sol", + "snapshot:test": "FOUNDRY_PROFILE=test forge snapshot --snap .gas-snapshot-test --no-match-path MarketGasExplorer.t.sol", + "snapshot:production": "FOUNDRY_PROFILE=production forge snapshot --snap .gas-snapshot-production --no-match-path MarketGasExplorer.t.sol", "lint:diff": "npx eslint --cache --cache-location ./.eslintcache -c .eslintrc.js $(git diff --relative --name-only --diff-filter=d $(git merge-base HEAD origin/master) -- \"*.ts\" \"*.js\" \"*.env\" \"*.toml\")", "artifactregistry-login": "npx google-artifactregistry-auth" }