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

Module-level dependencies #675

Open
SebastienGllmt opened this issue Jan 15, 2024 · 1 comment
Open

Module-level dependencies #675

SebastienGllmt opened this issue Jan 15, 2024 · 1 comment
Labels
status:needs-decision We need to make a decision about this type:feature Fetaure request

Comments

@SebastienGllmt
Copy link

hardhat-ignition tries to automatically deploy things in dependency order, but there are times where you need to specify dependencies explicitly

Current state

There is notation to make explicit dependencies on contracts (see here), but currently no way to make dependencies between modules

Possible implementation

Add a new options parameter to useModule with the same interface as the same feature for contracts

@kanej kanej added status:needs-decision We need to make a decision about this type:feature Fetaure request and removed status:triaging labels Jan 15, 2024
@kanej
Copy link
Member

kanej commented Jan 15, 2024

This is a current limitation we are aware of. Modules do exist as a concept separate from futures in Ignition, so in theory we could enhance the api to support:

  1. Modules depending on Modules
  2. Futures depending on Modules
  3. Modules depending on Futures

But more design work will be needed before we commit to supporting any of the above in the API.

If people do run into use cases where module level dependencies are needed, we would love to hear them in this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-decision We need to make a decision about this type:feature Fetaure request
Projects
Status: No status
Development

No branches or pull requests

2 participants