ApeWorX / ape-solidity

Solidity compiler plugin for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
17 stars 24 forks source link

Allow libraries to be listed in config #140

Open antazoey opened 4 months ago

antazoey commented 4 months ago

Overview

.add_library is great for pre-compile scripts but it'd be nice to have a way to list the libraries in the ape-config.yaml file as well.

Specification

solidity:
  libraries:
    ethereum:
      mainnet:
        MyLibrary: 0x003123012312412541241241242   # pretend is address

And then (not sure about this next part): Have compile() detect if we are connected to a provider and if the network matches anything we have listed in libraries: and if it does, grab those addresses and add the libraries.

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

linear[bot] commented 4 months ago

APE-1736 Allow libraries to be listed in config