You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A factory contract that deploys MACI and funding round factories, which are the two factory contracts that constitute an instance of clr.fund. While such a factory factory is not strictly necessary, it would
- facilitate a subgraph to support performant data fetching in clr.fund app instances
- make it easy to provide a web-based instance-deployment UI
- give admins confidence that they are deploying the correct version of the requisite factory contracts.
Considerations
Block size limits. With all code deployed in one contract, a factory factory may be too big to fit into a single block. However, we could get around this constraint with a few approaches:
By using a clone factory pattern such as EIP 1167 (or similar). That would have a secondary benefit of reducing the deployment costs for admins.
Another mitigation would be to create two factory factories, one for MACI Factory and one for the Funding Round Factory. That would require two subgraphs, but that might be ok, and we might really only need a subgraph for the Funding Round Factory anyways.
Deploy MACI and Funding Round factories for each instance, and then add a registration contract that ties them all together into a single subgraph.
The text was updated successfully, but these errors were encountered:
Overview
A factory contract that deploys MACI and funding round factories, which are the two factory contracts that constitute an instance of clr.fund. While such a factory factory is not strictly necessary, it would
- facilitate a subgraph to support performant data fetching in clr.fund app instances
- make it easy to provide a web-based instance-deployment UI
- give admins confidence that they are deploying the correct version of the requisite factory contracts.
Considerations
Block size limits. With all code deployed in one contract, a factory factory may be too big to fit into a single block. However, we could get around this constraint with a few approaches:
The text was updated successfully, but these errors were encountered: