Factory
A factory is a smart contract that stores a global contract id, and automatizes deploying contracts onto new sub-accounts.
We have a A Generic Factory that deploys new contracts based on global contract id. The global contract id can be global account id or hash. You can change the global contract id by calling update_global_contract_id
method. The factory creates sub-accounts of itself and deploys corresponding contract on them.
info
You can learn more about global contracts on NEAR here.
Overview
The factory is a smart contract that:
- Creates sub-accounts of itself and deploys its contract on them (
deploy
). - Can manage its settings using the
update_global_contract_id
andupdate_min_deposit
methods.