HardlyDifficult / hardlydifficult-eth

A collection of reusable contracts and Javascript helpers for Ethereum.
MIT License
8 stars 5 forks source link

Support solidity ^0.8.0? #540

Open clemsos opened 2 years ago

clemsos commented 2 years ago

Hello, I am trying to import some libs from a newer version of solidity. Do you have any plans to upgrade to sol v8? Thanks !

HardlyDifficult commented 2 years ago

Hey, I have not started looking into that - but would be interested in upgrading at some point. If anyone else had time to make the changes I'd be happy to look them over. I'm not sure when I will find time to do it myself.

clemsos commented 2 years ago

I have started a PR but @uniswap/lib contains some expressions that breaks after the solc version bump.

In particular, replace usages of uint(-1) with type(uint).max.

from New restrictions in 0.8.0

Looking at it, it seems like @uniswap/lib is deprec. It could be replaced by contracts from Uniswap/v2-core but I see the pragmas there are also in the ^0.5.x range so it may not make things easier either.