VibeFactory.sol
VibeFactory Documentation
VibeFactory is a utility contract that deploys minimal proxies of other contracts, such as VibeERC721. The primary purpose of this contract is to reduce the deployment costs associated with creating multiple instances of the same contract. It uses the BoringFactory contract to deploy these minimal proxies.
Advantages of Minimal Proxies
Minimal proxies have a lower deployment cost compared to a full contract deployment. This is because they only store a minimal amount of code to delegate calls to a master contract. By using minimal proxies, you can significantly reduce the gas cost of deploying multiple instances of the same contract.
Used Contracts
Simple Factory
VibeFactory uses SimpleFactory, which is responsible for deploying minimal proxies. The SimpleFactory provides the deploy function to create clones of a given master contract using either the CREATE or CREATE2 opcodes.
Updated 4 months ago