Tally Factory
This package provides a factory contract for creating clones of a given implementation.
Factory Contract
The factory contract is responsible for creating clones of a given implementation contract.
The factory contract allows for the storage and update of the implementation address, cloning of the implementation
contract using a deterministic address, initialization of the cloned contract with provided data, and prediction of the
address of a clone created with a specific implementation and salt.
Usage
To use the Tally Factory, follow these steps:
-
Install the package by running npm install tally-factory
.
-
Import the factory module into your code:
import "@tallyxyz/tally-factory/contracts/factory/Factory.sol";
Deploy
To deploy it you have to run the following:
npx hardhat deploy
npx hardhat deploy --tags ImplementationManager
npx hardhat deploy --tags MockToken
npx hardhat deploy --tags MockFactory
License
This package is licensed under the MIT License.