alloy-rs / core

High-performance, well-tested & documented core libraries for Ethereum, in Rust
https://alloy.rs
Apache License 2.0
744 stars 124 forks source link

`sol!` tracking issue #74

Open DaniPopes opened 1 year ago

DaniPopes commented 1 year ago

This is a tracking issue for missing sol! proc macro (and corresponding sol-types, syn-solidity) features.

Blockers

Nice-to-haves

mahmudsudo commented 10 months ago

can i take on this ?

benluelo commented 5 months ago

Is it planned to support resolving imports from within the sol macro? Currently sol! is largely unusable for any non-trivial contracts, since all imports have to be re-specified manually.

DaniPopes commented 5 months ago

Is it planned to support resolving imports from within the sol macro? Currently sol! is largely unusable for any non-trivial contracts, since all imports have to be re-specified manually.

@benluelo

No, that would be basically embedding a compiler frontend into the macro at that point which is just not worth it.

You should use JSON ABI input to pass in ABI generated from other tools, or write a simple interface inline.