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

Update to v4-core latest #64

Merged
merged 4 commits into from
Oct 3, 2023
Merged

Update to v4-core latest #64

merged 4 commits into from
Oct 3, 2023

Conversation

saucepoint
Copy link
Collaborator

@saucepoint saucepoint commented Sep 26, 2023

Related Issue

From Uniswap/v4-core#361, the test routers now support the arbitrary bytes hookData. This pull requests updates v4-core and updates usage of the test router(s)

Description of changes

  • Updated the submodule to the latest version of v4-core

  • Fixed .getSlot0 breaking changes

  • Updated test router usage to use the new function signature (optional arbitrary bytes hookData)

@saucepoint saucepoint changed the title Router bytes Router arbitrary bytes Sep 26, 2023
@ewilz
Copy link
Member

ewilz commented Oct 3, 2023

can we rename PR title to something like "update to v4-core latest"? commit titles can fill in exact details on squash merge

@saucepoint saucepoint changed the title Router arbitrary bytes Update to v4-core latest Oct 3, 2023
Copy link
Member

@ewilz ewilz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@ewilz ewilz merged commit 581d96d into Uniswap:main Oct 3, 2023
2 checks passed
@saucepoint saucepoint deleted the router-bytes branch October 4, 2023 01:44
ChefSnoopy added a commit to ChefSnoopy/v4-periphery that referenced this pull request Mar 10, 2024
* Update to v4-core latest (Uniswap#64)

* first pass on using new router function singatures

* updated v4-core

* updated .getSlot0, as it returns less data now

* snapshots

* add base contracts and interfaces (Uniswap#75)

* Update v4 core (Uniswap#74)

* feat: update v4-core

This commit updates v4 core to latest and fixes integration issues

* fix: tests

* fix: update tests

* fix: test router was borked

* fix: alice comments

* update to latest core

* use prev values

* change twamm to use pool getters

* changes after merging main

* use --via-ir in cli

* fix formatting

* fix FullRange/TWAMM hook

---------

Co-authored-by: Sara Reynolds <[email protected]>

* feat: Revert style quoter (Uniswap#73)

* add PoolTicksCounter library

* quoter exact input single

* quoter test

* return deltas instead

* safe casting to correct types

* QuoteExactInput skeleton

* multiple entries

* break handleRevert by type

* quoteExactInput and unit tests

* more QuoteExactInput tests

* remove lgos

* remove commented out struct

* via-ir in ci

* remove unused imports/functions

* store iteration params locally instead of editing function input

* pull out sqrtPriceLimit to its own function

* PathKey to its own library

* rename initializedTicksCrossed to initializedTicksLoaded

* remove manual abi encoding in yul :p

* fix linter warnings for Quoter

* natspec for IQuoter

* feat: update v4-core

This commit updates v4 core to latest and fixes integration issues

* fix: tests

* style fixes

* inheritdoc

* ExactInSingleBatch

* fix: update tests

* fix: test router was borked

* exact out

* fix: alice comments

* fix ExactOutput

* add ExactOput unit tests

* add quoteExactOutputBatch

* remove solhint config

* remove newline

* add QuoteExactOutput in interface

* refactor lockAcquired

* move magic numbers to constants + doc

* add more natspec

* natspec

* named imports

* self-call branching

* remove old code

* remove console2 import

* refactor PathKeyLib

* amountOutCached

* inherit ILockCallback

* add base contracts and interfaces (Uniswap#75)

* remove unused errors

* test lockAcquired reverts

* remove ...Batch interface

* REASON -> RESPONSE when valid

* complete natspec

* remove SwapInfo imports

* rename to SwapParameters

* move quoter structs into IQuoter interface

* update to latest core

* use prev values

* change twamm to use pool getters

* changes after merging main

* use --via-ir in cli

* fix formatting

* fix FullRange/TWAMM hook

* update ticks counter

* update Quoter test

* typo

* typo

* simplify handleRevertSingle

* merge QuoteInput/OutputSingle structs

* combine IQuoter structs

* using ... ordering

* update snapshots

* move amountOutCached into inner call

* using PathKeyLib for PathKey

* fix amountOutCached

* remove console2 import

* resurface revert reason

* clean up validateRevert

* update natsppec

* remove unused

---------

Co-authored-by: Mark Toda <[email protected]>
Co-authored-by: Tina <[email protected]>
Co-authored-by: Sara Reynolds <[email protected]>

* (Quoter) Avoid IR (Uniswap#93)

* avoid stack too deep

* pack local variables into structs; remove need for IR

* reorg struct

* snapshots

* forge fmt

* restore settings

* remove IR

* ensure tokens are ordered properly by using salts

* gas snapshot

* remove console logs

* chore: update v4-core:latest (Uniswap#89)

* update v4-core

* update to new liquidity hooks

* forge fmt; reuse v4-core justfile

* snapshots

* rename getHooksCalls --> getHookPermissions

* enforce permanent liquidity with beforeRemoveLiquidity

* snapshot

* update v4-core (again)

* snapshots with new v4-core

* v4-core:latest

* pin 0.8.24

* merge in remote; regenerate snapshots

* remove justfile

* repin cancun

* pin token addresses using vm.etch

* snapshots

* forge fmt

* remove via-ir and custom solc from CI

* test nit

* Update v4-core submodule to use https (Uniswap#97)

Co-authored-by: saucepoint <[email protected]>

* chore: add semgrep (Uniswap#94)

---------

Co-authored-by: saucepoint <[email protected]>
Co-authored-by: Tina <[email protected]>
Co-authored-by: marktoda <[email protected]>
Co-authored-by: Sara Reynolds <[email protected]>
Co-authored-by: Zach Yang <[email protected]>
Co-authored-by: 0x57 <[email protected]>
Co-authored-by: mr-uniswap <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants