Skip to content

Allow specifying deterministic deployments via single address #2590

@fubuloubu

Description

@fubuloubu

Describe

Some contracts can be deployed to the same address on every chain, so it is much nicer to only have to specify them once in the config

Specification

Specify in config via:

[[tool.ape.deployments.deterministic]]
contract_type = "PullSplitFactory"
address = "0x5cbA88D55Cec83caD5A105Ad40C8c9aF20bE21d1"

Use it the same as with normal deployments:

$ ape console --network :mainnet

 In[0]: factory = project.PullSplitFactory.deployments[0]

$ ape console --network :sepolia

 In[0]: factory = project.PullSplitFactory.deployments[0]

Dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions