Github
Discord
Twitter
Dapp
Searchโฆ
๐
Index
๐ช
Protocol Info
๐
OS Economics
๐ฎ
EthereansOS Governance
๐ข
EthereansOS Addresses
๐ค
Factories
Factories Learn
Factories Documentation
Factory Approach
Create Your Own Factory
Basics
Factory-of-Factories (FoF)
Business Models
Code your Factory
Overview
Code the Factory model contract
LazyInitCapableElement
DynamicMetadataCapableElement
Code the Factory contract
Deploy your Factory
Addresses
๐พ
Items
Items Learn
Items Documentation
Addresses
๐ป
Guilds
Guilds Learn
Guilds Documentation
Addresses
โจ
Covenants
Covenants Learn
Covenants Documentation
Addresses
๐
Colonies
Colonies
Addresses
๐จ๐ณ
Chinese Version
็ดขๅผ
ๅ่ฎฎไฟกๆฏ
ๅทฅๅๅญฆไน
Itemๅญฆไน
ๅฅ็บฆๅญฆไน
Guildsๅญฆไน
Powered By
GitBook
Code the Factory model contract
A model contract is the smart contract that your Factory can clone and initialize.
A model contract must have an initialization method that allows the Factory to pass initialization data at cloning time.
In order to do so, your model contract must implement one of these utility abstract smart contracts provided by the
swissKnife
library:
โ
LazyInitCapableElement
โ
โ
DynamicMetadataCapableElement
โ
These two smart contracts provide the Factory-compliant initialization method.
Previous
Overview
Next
LazyInitCapableElement
Last modified
4mo ago
Copy link