Lumenswap
Search…
Decentralization
Now, let’s see how it’s possible to mint a fully decentralized collection on Stellar. If you’re bored by the technical details, you can skip this section.
As you most likely know, Stellar doesn’t support smart contracts. We’ve already mentioned multiple times on our social media that Stellar has the right mix of operations to emulate the smart contracts.
You can always find your solution on-chain.
We converted each Lusi image into an asset with the following conditions:
1. Total supply = 0.0000001:
This is the smallest non-divisible value you can set for an asset. Setting total supply to this value ensures there’s only one of each Lusi. So, if a user has 0.0000001 of a Lusi in their wallet, they effectively own that Lusi.
2. Lusi ID, IPFS hash
After creating the assets for the Lusis, we uploaded all of them to IPFS, a decentralized cloud network, and used the Manage Data operation to store the obtained image hashes on the creating account’s data section. We set each name-value pair to (Lusi ID, IPFS hash). Using this approach, we can assign each Lusi to its corresponding number and record it on Stellar.
3. Weight = 0
We can guarantee that each Lusi is an NFT only if the settings are immutable. In other words, no one must be able to control the account or use it to perform other operations. To achieve this, we set the weight of Lusi’s asset issuer to 0. As a result, we’ve essentially blocked all access to the account that created these 108 assets.
Last modified 1mo ago
Copy link