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

Allow libraries to be listed in config #140

Open
antazoey opened this issue Apr 30, 2024 · 1 comment
Open

Allow libraries to be listed in config #140

antazoey opened this issue Apr 30, 2024 · 1 comment

Comments

@antazoey
Copy link
Member

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.

Copy link

linear bot commented Apr 30, 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

No branches or pull requests

1 participant