Replace ethabi#2282
Conversation
✅ Deploy Preview for oasisprotocol-oasis-sdk canceled.
|
5d84037 to
c3a0267
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2282 +/- ##
==========================================
+ Coverage 52.39% 53.66% +1.26%
==========================================
Files 175 176 +1
Lines 13094 13127 +33
==========================================
+ Hits 6861 7045 +184
+ Misses 6233 6082 -151 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9360abf to
ec09fd7
Compare
|
Need to check benchmarks for memory, binary size and speed between ethabi, solabi, alloy. |
|
Reported on the benchmarks - solabi is about 2x faster and has a smaller binary than alloy, both on static and dynamic encoding tests. Proceeding to add support for packed encoding to solabi. |
|
Generally looks OK, but please change the following:
Also, it currently doesn't compile because of mbedtls errors (the version was probably bumped by accident, please undo that -- updating that should be done in a separate PR). I'll do another review pass after these are done :) |
267c389 to
1de7998
Compare
1de7998 to
1fa1c5b
Compare
8a2b24a to
ff379d5
Compare
|
@abukosek Could you please take a look at the build issue to do with defguard_wireguard_rs package? Everything else is resolved. |
|
The breakage is related to the issue I mentioned a few days ago, upstream is working on a fix due to incorrect semver bump. See: |
|
Upstream seems to have merged 10 minutes ago (DefGuard/wireguard-rs#95) |
19de2c5 to
3148263
Compare
3148263 to
02678ea
Compare
|
@abukosek Please reviw so I can merge - CI now passes. |
abukosek
left a comment
There was a problem hiding this comment.
The solabi packed encoding PR has been merged, so you can bump the solabi versions to the latest 0.3.0 :)
02678ea to
836688c
Compare
|
Updated |
d35311d to
49d7592
Compare
|
@abukosek Linted, formatted, and reviewed for any remaining comments (leaving the comments inside functions describing functionality as normal ones), and removed unneeded prints. |
49d7592 to
0c5ce70
Compare
abukosek
left a comment
There was a problem hiding this comment.
As I've said previously, comments must end with periods to be consistent with the rest of our coding style :)
0c5ce70 to
09d757e
Compare
abukosek
left a comment
There was a problem hiding this comment.
Looks good now! 👍
GitHub says that "Pull request authors can’t approve their own pull request.", so someone else will have to approve it before it can be merged :D
…ndrej/feature/replace-ethabi Replace ethabi 5a4c9f6
…/andrej/feature/replace-ethabi Replace ethabi 5a4c9f6
…sisprotocol/andrej/feature/replace-ethabi Replace ethabi 5a4c9f6
…oasisprotocol/andrej/feature/replace-ethabi Replace ethabi 5a4c9f6
Closes #2274.
Since the
ethabicrate is no longer maintained and the new version ofevmhas a dependency incompatibility with it, we should switch to something else.The ethabi crate recommends
solabias the replacement, so let's try that...This PR changes the majority of ethabi uses into solabi, but a few have been left for @njelich to do while I'm on vacation :)
(Those are the evm_derive macros and erc20 precompiles [and tests related to them], as well as a few bits here and there that I probably missed.)