From a72796e724d664dbb2c7b4f60c6fc6d078e1062c Mon Sep 17 00:00:00 2001 From: Korrrba Date: Mon, 31 Jul 2023 15:43:56 +0200 Subject: [PATCH] test: Update SqrtPriceMath gas snapshots after migration from Hardhat to Forge. Ref: #315 --- ...ta_gasCostForAmount0WhereRoundUpIsFalse.snap | 1 + ...lta_gasCostForAmount0WhereRoundUpIsTrue.snap | 1 + ...ta_gasCostForAmount1WhereRoundUpIsFalse.snap | 1 + ...lta_gasCostForAmount1WhereRoundUpIsTrue.snap | 1 + ...tPriceFromInput_zeroForOneEqualsTrueGas.snap | 1 + ...riceFromOutput_zeroForOneEqualsFalseGas.snap | 1 + ...PriceFromOutput_zeroForOneEqualsTrueGas.snap | 1 + test/__snapshots__/SqrtPriceMath.spec.ts.snap | 17 ----------------- 8 files changed, 7 insertions(+), 17 deletions(-) create mode 100644 .forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsFalse.snap create mode 100644 .forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsTrue.snap create mode 100644 .forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsFalse.snap create mode 100644 .forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsTrue.snap create mode 100644 .forge-snapshots/getNextSqrtPriceFromInput_zeroForOneEqualsTrueGas.snap create mode 100644 .forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsFalseGas.snap create mode 100644 .forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsTrueGas.snap delete mode 100644 test/__snapshots__/SqrtPriceMath.spec.ts.snap diff --git a/.forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsFalse.snap b/.forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsFalse.snap new file mode 100644 index 000000000..0bdc24309 --- /dev/null +++ b/.forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsFalse.snap @@ -0,0 +1 @@ +6326 \ No newline at end of file diff --git a/.forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsTrue.snap b/.forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsTrue.snap new file mode 100644 index 000000000..49ed577de --- /dev/null +++ b/.forge-snapshots/getAmount0Delta_gasCostForAmount0WhereRoundUpIsTrue.snap @@ -0,0 +1 @@ +6466 \ No newline at end of file diff --git a/.forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsFalse.snap b/.forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsFalse.snap new file mode 100644 index 000000000..135df137f --- /dev/null +++ b/.forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsFalse.snap @@ -0,0 +1 @@ +6314 \ No newline at end of file diff --git a/.forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsTrue.snap b/.forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsTrue.snap new file mode 100644 index 000000000..e9b99b87b --- /dev/null +++ b/.forge-snapshots/getAmount1Delta_gasCostForAmount1WhereRoundUpIsTrue.snap @@ -0,0 +1 @@ +6444 \ No newline at end of file diff --git a/.forge-snapshots/getNextSqrtPriceFromInput_zeroForOneEqualsTrueGas.snap b/.forge-snapshots/getNextSqrtPriceFromInput_zeroForOneEqualsTrueGas.snap new file mode 100644 index 000000000..a20020a05 --- /dev/null +++ b/.forge-snapshots/getNextSqrtPriceFromInput_zeroForOneEqualsTrueGas.snap @@ -0,0 +1 @@ +6498 \ No newline at end of file diff --git a/.forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsFalseGas.snap b/.forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsFalseGas.snap new file mode 100644 index 000000000..80deae325 --- /dev/null +++ b/.forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsFalseGas.snap @@ -0,0 +1 @@ +6639 \ No newline at end of file diff --git a/.forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsTrueGas.snap b/.forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsTrueGas.snap new file mode 100644 index 000000000..6ce2ac6a1 --- /dev/null +++ b/.forge-snapshots/getNextSqrtPriceFromOutput_zeroForOneEqualsTrueGas.snap @@ -0,0 +1 @@ +6277 \ No newline at end of file diff --git a/test/__snapshots__/SqrtPriceMath.spec.ts.snap b/test/__snapshots__/SqrtPriceMath.spec.ts.snap deleted file mode 100644 index 9fd1be31d..000000000 --- a/test/__snapshots__/SqrtPriceMath.spec.ts.snap +++ /dev/null @@ -1,17 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 1`] = `589`; - -exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 2`] = `471`; - -exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = false 1`] = `471`; - -exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = true 1`] = `589`; - -exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = false gas 1`] = `562`; - -exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = true gas 1`] = `743`; - -exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = false gas 1`] = `840`; - -exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = true gas 1`] = `495`;