Stores
ROJIStores Contract
Last updated
Was this helpful?
ROJIStores Contract
Last updated
Was this helpful?
The ROJIStores contract implements an ERC1155 compatible diamond contract. There is only one instance deployed on the blockchain, and each actual Store is an ERC1155 NFT, aka the "Store NFT". Each Store NFT can have one or more owners. Ownership is defined through the number of tokens each owner address holds
To create a new store, use
The StoreOwnershipRecord[]
passed on during the createStore
call defines the initial ownership structure and sets the maximum amount of tokens allocated. Tokens can not removed or added, only transfered to other wallets. A sensible default is to create a store with 10,000,000 or 100,000,000 tokens. Please keep in mind that fractional tokens are not possible as this is an NFT 1155 compatible implementation, so if you foresee 3 or 5 or 7 equal partners and exact splits are important to you then plan ahead accordingly.