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

Migrate SqrtPriceMath tests from HardHat to Foundry #317

Merged
merged 15 commits into from
Jul 31, 2023

Commits on Jul 25, 2023

  1. foundry-test: Refactor constants to a library.

    The constants library will allow to directly access constants from
    multiple Foundry tests.
    
    Ref: Uniswap#315
    gitcoindev committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    4ff1283 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1cc5abd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d8678d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    488137a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    83e3f25 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    64e147c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3b44c34 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3e2eb6e View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. test: SqrtPriceMath: Use forge-gas-snapshot, delete expandTo18Decimal…

    …s and JS references.
    
    Refactor after PR review findings.
    gitcoindev committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    eed97dd View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2023

  1. Configuration menu
    Copy the full SHA
    7aa0ac5 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Configuration menu
    Copy the full SHA
    d1d5b5e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a72796e View commit details
    Browse the repository at this point in the history
  3. test: Update correct SqrtPriceMath gas snapshot for

    getNextSqrtPriceFromInput_zeroForOneEqualsFalseGas.
    gitcoindev committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    c56e765 View commit details
    Browse the repository at this point in the history
  4. test: SqrtPriceMath: Call library directly instead of test contract.

    The test contract was a middle layer between library and was used by
    javascript / HardHat tests. Due to the middle layer using Foundry,
    gas cost usage was calculated incorrectly.
    
    Generate correct gas snapshots using direct library calls.
    
    Ref: Uniswap#315
    gitcoindev committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    9ca00b0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3fd8a91 View commit details
    Browse the repository at this point in the history