Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Provide a way to auto-generate @external contract functions #40

@ericglau

Description

@ericglau

According to the extensibility pattern, libraries must implement external functions under a namespace, and the external function name must not start with an underscore.

The pattern also states that contracts should implement @external functions if needed.

For some external library functions, it is reasonable that contracts always implement them. For example, Ownable.owner() is one such function.

User stories:

  1. As a contract developer, I want to be notified if I forgot to expose some external library functions, so that my users will not have missing functionality.
  2. As a contract developer, I want to be able to automatically generate @external functions from external library functions, so that I don't need to manually create them.

Proposed solution:
Provide a way to automate the generation of these functions. This could be in the form of code completions or quick fixes (perhaps with info-level diagnostic highlighting if some external library functions were not exposed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions