Skip to content

Allow libraries to be listed in config #140

Description

@antazoey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions