AmorStyle Distributed Sales Network NFTs

The next thing that I would like to introduce is a collection smart contracts that work together to handle settlement for a distributed sales network on the Theta blockchain. I’ve been calling it The AmorStyle Distributed Sales Network.

The idea is to incentivize more people to want to get involved in NFT projects. The incentive comes from NFT project creators providing a cut of the NFT mint. The NFT project creator offers that cut based on what they determine is reasonable for their project. The smart contract publishes that cut so that agents of the network can determine if talking about that project is worth the effort.

When a customer mints an NFT in the creator’s project, the smart contract carves up the mint funds as stated by the creator. Effectively, the NFT manages the cuts for the different agents and allows only that agent to claim the commissions.

As more creators learn that cool functionality can be enabled, or leveraged, using smart contracts, more of them will want to offer their services in an online fashion like this.

How does it all work?

First and foremost, this is a network of people that are all agreeing to work together in a semi-trustless way and the quality of what is offered is directly related to the amount of effort that different players offer to the network.

This network assumes there are Content Creators, Influencers, Technical people and Customers.

The Content Creators are the NFT projects. They offer up commissions to the agents and technical people to support their projects. They publish the minting cuts in order to incentivize the influencers to talk about their projects.

The Influencers are the Agents of the network. When you are a registered agent, any time someone mints using your Agent Id, you get the cut stated by the Content Creator. It’s handled by the smart contract.

The Technical people are those that provide websites and smart contract services for Content Creators. In order to talk to Smart Contracts, it needs to be handled by a website. And, because this is a network, would be better if multiple websites offer access to the content.

Can I see the code?

All the code for this project is currently published on this website. And, I’ve created the Gallery TestUI V1 project as a live demo.

Here are links to more info:

The Participant NFT

The Website NFT

The Agent NFT

The Gallery Project

Note that The Gallery is where I’m demonstrating this project. Please visit that link.

More Info

Even though this project is published and available for anyone to read or implement. I will be fielding questions in the TraderPunk discord. If you want to know the gritty details or get help as a Content Creator, please look me up.

Membership Demo newFunctionaliTee

Have you heard about Kalamazoo? If not, have I got a story for you!

For this demo project, I wrote a little JavaScript to go along with the two new NFTs that are now on the Theta blockchain.

And, even though the mint is unlimited, there will only be 42 winners awarded! It’s a first come, first served winning spree, so once you understand the concept, make sure you read how to win! (below at claim prize).

Kalamazoo

The main NFT is the Kalamazoo membership demo. This NFT simulates buying a club membership that costs a penny an hour. When a member signs up, there is a joining fee of $0.25 and the requirement that the purchaser funds at least 100 hours’ worth of membership time.

To do this, I wrote some ‘treasury’ code in the smart contract that allows the NFT owner to manage his Tfuel balance. Anyone can add Tfuel to an NFT, but only the owner of that NFT can withdraw the balance. At any time, anyone can query in order to determine how much tfuel balance is left. If there is a balance, the membership is considered active. If funds backing the token run dry, the owner of the NFT (or anyone else) can reactivate the NFT by placing funds on that account.

The fee associated with minting, reactivation and membership is credited to “The Titled” person (or account). The contract has the idea that there is a project owner and an IT owner. The project owner is considered the property owner, thus is credited the funds associated with the project. The IT owner is allowed to operate admin functionality in the smart contract on behalf of the property owner but can’t claim any funds.

Said differently, funds are managed by token Id. If you put 50 Tfuel on your token that will be used to pay your membership balance over time. But, if you transfer your token to someone else, they will now have ownership of that Tfuel balance which effectively gives them the hours that you just bought. In a way, the Token now has intrinsic value based on the number of hours of membership time it can buy.

Penny Oracle V1

I also created a contract that can be used to provide the current cost of a penny’s worth of Tfuel. The Kalamazoo contract uses the Penny Oracle V1 in order to determine the dollar price for membership.

This means that the value in the treasury buys more or less time as the price of Tfuel fluctuates. If tfuel goes to a dollar, the Kalamazoo membership will only charge a penny’s worth of tfuel per hour.

(* There is also a concept of claiming which cements the running calculations. If you want to learn the details, find me in the TraderPunks discord.)

Summary

If I were to spin this contract up again, there are some things that I would do differently. The most obvious thing is to write fewer functions in the smart contract.

Why? Well, Solidity and JavaScript allow for returning multiple values on a call. When loading a page for a website, each call adds to the load time. Thus, rather then call a bunch of small routines to get the ‘status’ of the NFT, it makes more sense to call a getStatus() type routine that returns everything at once.

So, how to you take a closer look?

Kalamazoo Membership

The best way to get involved is to visit the minting page:

Mint Page Here

Oh, and read the whitepaper.

Also, this is a demo, so cut it some slack. The best thing you can do is copy the project and put out something better. If not, help me make it better. 

Claim Prize

To win the prize, you have to follow a specific set of steps in order to be allowed to claim a winning position. These steps are designed to show you how to mint, withdraw your balance, reactivate and monitor your remaining hours.

Basically, when there are 15 hours left on your membership balance, the Claim Prize button will activate on the minting page. If there is still a position open, you will be assigned that position and the token will enter the winner’s circle.

The easiest way to get there is to mint, withdraw your balance and then reactivate with enough Tfuel to cover the $0.10 reactivation fee and another $0.15 to enable 15 hours’ worth of membership time. If you get that correct, the minting page will enable the Claim Prize button and you can ‘win’ if you want.

I Intend to Play newFunctionaliTee

Mint Intend and then Mint ToPlay

This is the third in a series of NFT demos that I have put together on the Theta Blockchain. This one builds upon the functionality of the previous two (Metadata hash and SendLock) to demonstrate two contracts working together to provide the solution.

The solution is to provide an on-chain technique by which a project creator can test the water to see if there is enough interest to launch a bigger project. For instance, if the project only really makes sense if there are at least 500 people that support it, this IntendToPlay NFT combination technique can gauge interest via the Intend NFT and then allow for the transfer to the ToPlay NFT once the minimum threshold is reached.

Note that this is to gauge the support of people, not coin and that a single contract could be used, but then, but then I wouldn’t have a multi-contract demo to provide.

So, minting the Intend NFT shows that you’re interested in the project. Once enough people have shown interest, minting of the ToPlay NFT will be automatically enabled for those that hold the Intend NFT.

And now, more details.

Intend NFT

The Intend NFT has limitations which become features. It is soulbound, meaning that it cannot be transferred to another account but, it can be burnt. It is intended to be burnt and replaced by the ToPlay NFT. The ToPlay NFT will only mint to addresses that hold an Intend NFT. And, during that mint, the ToPlay contract burns the Intend NFT held by the account minting.

There is no limit to the number of these NFTs that can be minted, just one per wallet.

Contract address: 0x4fc38d4ec30fe79c37990309ad6d2f488c4c12a1

Link to DappIntend file for minting.

ToPlay

The ToPlay contract is a fully functional 721 with SendLock functionality. It will only mint to addresses that hold a Intend NFT. And, during the mint, the Intend NFT is burnt and replaced by the ToPlay NFT. The minting process will not be enabled in the ToPlay contract until there have been 7 Intend NFTs minted.

There is a limit of 84 ToPlay NFTs.

Contract Address: 0x1d8898b814cf8f33e78c2a5eecd363e3e52df361

Link to DappToPlay file for minting.

Process

The cost of minting an Intend NFT is 5 Tfuel, cost of the ToPlay NFT is 4 Tfuel and the cost of SendLock protection is 1 Tfuel.

Step 1. Follow the link to the Intend NFT and mint.

Step 2. Tell a friend so at least 7 are minted

Step 3. Follow the link to the ToPlay NFT and mint.

Summary

I’d like to thank you for following along with these projects. The code used for the Metadata hash project has been used on all three demo projects. All code and data used to build each project is downloadable and verifiable. If you get the first demo, I’ll provide you the code that performs the verification.

I’d like to shout out to ThetaScan.io for providing the ‘dapp builder’ code which is used as the page that provide minting ability here.

SendLock newFunctionaliTee

Mint Link Below

Mint

As NFTs evolve to provide more services, the loss of that resource (or what that NFT grants access too) could cause significant emotional or even financial hardship.

This next Theta blockchain based NFT introduces a modification to the standard transfer design in 721 contracts that can be employed by NFT creators that will help protect the NFT resource in the case of the account being hacked.

When websites offer functionality that requires a ‘hot’ wallet (one that is always connected, or wallets where the user remains logged in for extended periods of time (like Metamask)) it opens up situations where family members or co-workers could find ways to access your resources.

Or, regardless of the wallet state, if someone else gets a copy of your private keys, they have complete access to your resources. If multiple people hold the same private keys, both people have full access to the resources of that wallet. If one is a hacker, chances are high you will lose everything you store in that wallet.

To help mitigate the damage done by less secure crypto wallets (and environments), the SendLock newFunctionaliTee contract allows the resource owner to register (or cash) the next transfer operation for the NFT before any damage can be done by a hacker.

The idea is like this:

  • Mint the NFT
  • Put the NFT in the wallet where you’ll use it
  • Perform a sendLockRegister() call giving it your backup wallet

Now, the next time a send operation is executed on this NFT, the contract will move it to the cashed location – NOT the requested location. And, once it’s been set, it can’t be unset. Thus, the hacker will not be able to override this functionality.

I encourage you to give it a try with this sample NFT. It cost 5 tfuel to mint, 3 tfuel to ‘flip’ the coin and 1 tfuel to register the SendLock wallet.

Here are some links to the SendLock NFT.

Contract Address: 0x738acc1ecf2339079c54a8bf8fc47aa3535bb65f

Minting Page

Whitepaper