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

[feature] deployed contract address management #67

Open
kaihiroi opened this issue Nov 6, 2024 · 0 comments
Open

[feature] deployed contract address management #67

kaihiroi opened this issue Nov 6, 2024 · 0 comments
Labels
type: feature Issues or pull requests related to new feature proposals or enhancements

Comments

@kaihiroi
Copy link
Contributor

kaihiroi commented Nov 6, 2024

Problem

Currently, deployed contract addresses are stored in environment (.env) files. This approach lacks flexibility and scalability, making it difficult to manage and retrieve contract addresses across different chain IDs efficiently.

Solution

Implement a feature that saves deployed contract addresses in a JSON file, categorized by their respective chainId. This structure enhances flexibility and scalability, allowing for easier management and access of contract addresses for each blockchain network without relying heavily on external files.

Alternatives

  • Centralized Database: Use a database to store contract addresses, providing more flexibility and scalability.
  • Environment Variables: Continue using environment variables, which can become unmanageable as the number of chain IDs increases.
  • Hardcoded Addresses: Embed addresses directly in the Solidity code, leading to maintenance difficulties and reduced flexibility. Additionally, Solidity itself cannot modify .sol files.

Additional context

Storing contract addresses in a JSON format categorized by chainId improves maintainability and scalability, especially when dealing with multiple blockchain networks. This approach minimizes dependency on external files and simplifies the deployment and interaction processes with deployed contracts.

@kaihiroi kaihiroi added the type: feature Issues or pull requests related to new feature proposals or enhancements label Nov 6, 2024
@kaihiroi kaihiroi changed the title [feature] [feature] deployed contract address management Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Issues or pull requests related to new feature proposals or enhancements
Projects
None yet
Development

No branches or pull requests

1 participant