Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add ovm compiler * tune down optimizer * perf(swap-math): -1kb * perf(tick-bitmap): -0.5kb * perf(position): -0.5kb * perf(tick): -0.5kb * perf(tick-math): -0.8kb (core compiles now) * perf(oracle): -1.88kb * perf(factory): -3kb * perf(pool): combine requires -0.17kb * test: link libraries before deploying contracts * perf(mock-deployer): ovm-ify to be under 24kb * ci: add job for ovm unit tests * tests: lower hh polling interval * tests: use provider wallets instead of waffle signers * Revert "tests: use provider wallets instead of waffle signers" This reverts commit 7a4e277. -> Temporary revert. TODO: Load wallets conditionally on `--network optimism` * Fix code style issues with Prettier * Add optimism folder to .gitignore * Override waffle.provider.getWallets() when network is optimism * Override waffle.createFixtureLoader() to return no-op when network is optimism * Fix createFixtureLoader() override to use provided signers and provider * fix: use correct receipt index when creating a pool * fix factory tests Waffle event emitter seems to be having problems with Optimism * fixtures: wait for tx to be mined + hardcode gas * fix pool test to manually decode log * fix: use correct receipt index based on network (again) * Hardcode estimateGas response to avoid failures when gas cannot be estimated * Fix NoDelegateCall OVM test to use Proxy contract instead of minimal proxy bytecode * Modify hardhat config so all transactions call `.wait()` automatically * Bump mocha timeout to 60s to remove timeout test failures * Contracts created by contract.connect(wallet) now automatically .wait() * Add RECEIPT_OFFSET to account for additional Transfer event emitted by OVM * Remove .wait() calls that were added before the hardhat config was modified to handle it * Add helper method to adjust log index when testing against OVM * Remove unused imports * Bump mocha timeout and fix typos * refactor: move the state machine to a library function * chore: update snapshots * Fix for Invalid property descriptor error. See comments for details * test: use Optimism 0.4.0 * chore: do not snapshot error message The try/catch pattern does not yield the revert msg when used with geth. We would need to use the `expect(tx).to.be.revertedWith` pattern * ci: update snapshots all the time so that tests pass * chore: prettier * Revert "refactor: move the state machine to a library function" This reverts commit c6da41a. * Revert "perf(tick): -0.5kb" This reverts commit 3d6eb05. * perf(oracle): make observeSingle public * perf(pool): replace modifier with function * perf(pool): remove revert reasons * perf(pool): deduplicate require calls * perf(pool): replace lock modifier with function * perf(pool): combine tick.update calls in 1 * Revert "perf(pool): replace lock modifier with function" This reverts commit 859f762. * Revert "perf(pool): replace modifier with function" This reverts commit b1b1ecd. * perf(pool): use functions to deduplicate requires inside modifiers * fix: update tests to not use revert messages * chore: update snapshots * ci: check snapshot on EVM tests instead of updating it It'd be nice if Jest had a way to have 2 different types of snapshots, so that we could have snapshots for both EVM and OVM * chore: lint Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: Matt Solomon <matt@mattsolomon.dev>
- Loading branch information