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

Showcase: Transient support in the compiler #541

Closed
wants to merge 5 commits into from

Conversation

Amxx
Copy link
Contributor

@Amxx Amxx commented Mar 29, 2024

I've been working on a branch of the compiler that supports the transient keyword

This is nowhere near production ready, but this commit is able to process the uniswap-v4-core codebase (with minor changes).

Description of changes

  • I had to remove the using xxx for mapping(...); which cause issues in my branch. IMO this is minor. Fixed.
  • I removed the Lock.sol and NonZeroDeltaCount.sol libraries in favor of transient variables declared in PoolManager.sol directly
  • I also marked currencyDelta as a transient mapping.

Unfortunatelly, I don't expect this version of the compiler to be available anytime soon. But I want to show that its possible, that tests pass, and that gas usage looks good!

@hensha256
Copy link
Contributor

This is amazing but closing! We can reopen if they decide to merge it into the compiler 🙏

@hensha256 hensha256 closed this May 7, 2024
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.

None yet

2 participants