# Storey X Harmony: Sustainable clothing rewear and resell on Harmony

**URL:** <https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724>\
**Category:** Grants\
**Created:** [December 14, 2021, 6:05am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724 "2021-12-14T06:05:01Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![jbeltran](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/jbeltran/32/1714_2.png) [@jbeltran](https://talk.harmony.one/u/jbeltran)\
**Post date:** [May 6, 2022, 6:13pm UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/43 "2022-05-06T18:13:52Z")

</div>

Hi again @TakStorey  
Would you be so kind to make a video following the NFT given and then show it in the user account the NFT, please? No audio is needed, just the steps. I’m an Android user and would love to see it running to jump to the next step.  
Thank you

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 8, 2022, 4:37am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/44 "2022-05-08T04:37:25Z")

</div>

Hey @jbeltran ! Of course - I’ve noted down the steps below to show the creation of an NFT (I made a Harmony x Storey Test NFT), and then following it all the way through to the final app.

Step 1: Admin Dashboard creates an NFT with the TokenURI (metadata) set to [https://storey-the-app.s3.us-west-1.amazonaws.com/StoreyxDB/harmony\_test\_metadata.json](https://storey-the-app.s3.us-west-1.amazonaws.com/StoreyxDB/harmony_test_metadata.json) (in the real NFTs they are set to somewhere in ipfs).

 ![Screenshot 2022-05-08 at 11.53.16](https://canada1.discourse-cdn.com/flex035/uploads/harmony1/original/2X/3/34569edbdb187e6bc2b304986dd889ae7502e71c.png)

Step 2: Once the NFT is created we get a Token ID back:

 ![Screenshot 2022-05-08 at 11.53.30](https://canada1.discourse-cdn.com/flex035/uploads/harmony1/original/2X/6/6a2fc7eed31bf38ee0d6529e00db08d2015e622b.jpeg)

Step 3: We then transfer this Token to the User’s Wallet by using the Admin Dashboard and inputting the Token ID and the in-app User ID. I am using my account, and my User ID in Storey is apple|000642.a143d49233f84daa8cac984a64a7dddf.0958.

 ![Screenshot 2022-05-08 at 11.54.39](https://canada1.discourse-cdn.com/flex035/uploads/harmony1/original/2X/4/4522427ff9ad7ddc179b9d7bafea933c9c63bf7b.jpeg)

Step 4. We have now created and transferred an NFT to the User Wallet using Harmony via the Admin dashboard! We can also query the database to see that the Custodian Wallet for the user is 0xDF06288161E186D90b05E7d3f5C4Bc2a0ed30ac8. This is stored in the Storey backend. If you directly interact with the Harmony Chain via web3.js or similar you can view the owner of this NFT via the Token ID is in fact this wallet address (since it is ERC721). You can query the Storey backend here to see the contents of the NFT:

[https://interim-storey-app.herokuapp.com/web3/debugNFT?address=0xDF06288161E186D90b05E7d3f5C4Bc2a0ed30ac8](https://interim-storey-app.herokuapp.com/web3/debugNFT?address=0xDF06288161E186D90b05E7d3f5C4Bc2a0ed30ac8)

You can see the metadata via the TokenURI returned is:

_[{“tokenId”:15,“tokenURI”:“[https://storey-the-app.s3.us-west-1.amazonaws.com/StoreyxDB/harmony\_test\_metadata.json](https://storey-the-app.s3.us-west-1.amazonaws.com/StoreyxDB/harmony_test_metadata.json)”}]_

Step 5. The User can now view this NFT on their homepage in the app - please see here. You can see that the NFT is also shown in the User’s public profile page, in the NFT tab. Users with NFTs also have a hexagon shaped profile image:

[![](https://canada1.discourse-cdn.com/flex035/uploads/harmony1/original/2X/6/6bb0ead7f2332ba111e69daaa8359240ac8f680d.jpeg "Harmony NFT") ](https://www.youtube.com/watch?v=oqoTSGcvdIg)

In fact there are multiple videos showing the NFTs at work here:

[![](https://canada1.discourse-cdn.com/flex035/uploads/harmony1/original/2X/1/16dfb9e8aab7e3bdedbebdbb237d2c9b482be3f9.jpeg "Viewing NFTs in Storey wardrobe") ](https://www.youtube.com/watch?v=OA_C3YOQiHM)

[![](https://canada1.discourse-cdn.com/flex035/uploads/harmony1/original/2X/0/0b140082f3ac6dbb1eda3d709b861160e5d170b2.jpeg "NFT feature in Storey") ](https://www.youtube.com/watch?v=LAAA1T8jG8Q)

Step 6. We also have a Storey Discord here: [Discord](https://discord.gg/p5kEg39P). Aside from this they have other channels to ask about their NFT - and if they wish to transfer their NFT to their own Harmony Wallet we help them and they can take it out and do whatever they like with it. We also help them Bridge this to Ethereum if they want to too using the Harmony Bridge.

Let me know what other information you need!

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 12, 2022, 7:34am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/45 "2022-05-12T07:34:39Z")

</div>

@jbeltran Just let me know how to proceed! @giv too

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 16, 2022, 7:12am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/46 "2022-05-16T07:12:11Z")

</div>

@jbeltran Hey there! Can I ask kindly if you saw the videos / information above? Thanks a lot - we’re still looking for guidance on what I need to do to move past this milestone. Thanks!

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 23, 2022, 6:02am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/47 "2022-05-23T06:02:38Z")

</div>

@jbeltran @giv @lij Hey there - can I get an idea of where the hold up and what the next steps are? We have an agreed Grant milestone schedule which I believe has been passed. I’m not sure how much of this is to do with the recent downturn in crypto - and whether you are fighting fires or doing other things but I would expect some kind of response to this instead of dragging it out for quite a while now. Any information will be appreciated thanks.

---

<div class="post-metadata">

**Author:** ![jbeltran](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/jbeltran/32/1714_2.png) [@jbeltran](https://talk.harmony.one/u/jbeltran)\
**Post date:** [May 23, 2022, 5:48pm UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/48 "2022-05-23T17:48:32Z")

</div>

Hello, sorry for the late reply.  
Being busy by sure.  
I saw the videos and thank you for putting it together.  
Sorry, I’m missing a video in which you show the audit of the move from the app to harmony explorer.  
I don’t have an iPhone, so I’d like to see how is the process and URL’s behind with the NFT added it to the blockchain. I’ve entered in the URL’s but I can see just JSON records.  
Would you please walk through the steps as a user and the back explorer blockchain record?

Thank you  
Will be closer to your reply so I can reply to you faster.  
Best,

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 24, 2022, 6:25am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/49 "2022-05-24T06:25:40Z")

</div>

Hey there!

I think maybe I need to make it clearer - **users of the app on iPhone** (“Users”) cannot mint NFTs. The company (“Admin”) mints NFTs on the backend using the dashboards shown into custodian wallets that are connected to Users, which they can then view on the app (as shown by the videos). I can share the contracts here (they are not that interesting - just bare bones ERC721 contracts _without the IERC721Enumerable interface_ because it is optional and wasteful of gas.

The Admin mint function code is:

```auto
export const createNFT = async (tokenURI: string) => {
  const web3 = web3AsOwner();
  const accounts: any = await web3.eth.getAccounts(); // The Company account

  const storeyxDB = contract(StoreyxDBArtifact); // the ERC721 contract address = 0x425b4567571bbf61ab24cbbf6cf71a924904833c
  storeyxDB.setProvider(web3.currentProvider);
  const instance = await storeyxDB.deployed();
  const tx = await instance.create(tokenURI, {from: accounts[0]}); // the mint function in the contract
  return tx;
};

```

After which Admin transfers the NFT to the User’s wallet.

You can see the transactions in the explorer for the NFT contract [Harmony Blockchain Explorer](https://explorer.harmony.one/address/0x425b4567571bbf61ab24cbbf6cf71a924904833c)

Here is the tx for safeTransfer of an NFT from Admin to User: [Harmony Blockchain Explorer](https://explorer.harmony.one/tx/0xc064043dac07ee7852885e309291b10aebfc5816d00fd8e171c560c061769e53)

The NFTs dont show properly in the Harmony Explorer because the explorer relies on the contract implementing the IERC721Enumerable interface! I don’t know why it requires that since the EIP says that is an OPTIONAL interface on the contract.

Instead if you just interacted with the Harmony blockchain directly you can easily verify it exists on the User wallet. This is the code to do this on the backend:

```auto
const web3 = web3AsOwner();
    const storeyxDB = contract(StoreyxDBArtifact); // the ERC721 contract address = 0x425b4567571bbf61ab24cbbf6cf71a924904833c
    storeyxDB.setProvider(web3.currentProvider);
    const instance = await storeyxDB.deployed();

    const nfts: any = [];
    const curNFTCountBN = await instance.curNFTCount.call();
    const curNFTCount = curNFTCountBN.toNumber();
// just iterate through all token IDs and get the owner
    for (let tokenId = 1; tokenId <= curNFTCount; ++tokenId) {
      const ownerOfAddress = await instance.ownerOf.call(tokenId.toString());
      if (ownerOfAddress.toLowerCase() === address.toLowerCase()) {
        const tokenURI = await instance.tokenURI.call(tokenId);
        console.log(`tokenId: ${tokenId} tokenURI: ${tokenURI}`);
        nfts.push({tokenId, tokenURI});
      }
    }
return nfts;

```

The URLs I have given you are the backend calls that do all the above code and give you the metadata JSONs for display.

If you want to see if completely on Explorer then I need to redo the whole NFT contract to include the IERC721Enumerable interface. Just let me know if you want that thanks!

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 27, 2022, 2:31am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/50 "2022-05-27T02:31:27Z")

</div>

@jbeltran @giv Hi! Does my explanation make sense?

---

<div class="post-metadata">

**Author:** ![GeorgeofEmmaInterest](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/georgeofemmainterest/32/2652_2.png) [@GeorgeofEmmaInterest](https://talk.harmony.one/u/GeorgeofEmmaInterest)\
**Post date:** [May 27, 2022, 2:58am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/51 "2022-05-27T02:58:57Z")

</div>

From the looks of it @TakStorey you have gone way, above and beyond what any other grant applicant has done in order to prove your prototype… from the video… testnet… heroku proof that the tokens actually work… I am not entirely sure what the hold up is.

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 31, 2022, 10:43am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/52 "2022-05-31T10:43:13Z")

</div>

Hey everyone! Is there anything else I need to do to prove this? I am happy to reveal more but I think i’ve described every stage of the journey - if you feel there is any questions just let me know thanks!

---

<div class="post-metadata">

**Author:** ![GeorgeofEmmaInterest](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/georgeofemmainterest/32/2652_2.png) [@GeorgeofEmmaInterest](https://talk.harmony.one/u/GeorgeofEmmaInterest)\
**Post date:** [May 31, 2022, 11:12am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/53 "2022-05-31T11:12:15Z")

</div>

Hey man. You deserve you approval. @frwrdslosh I’ll tag him again

---

<div class="post-metadata">

**Author:** ![jbeltran](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/jbeltran/32/1714_2.png) [@jbeltran](https://talk.harmony.one/u/jbeltran)\
**Post date:** [May 31, 2022, 12:26pm UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/54 "2022-05-31T12:26:31Z")

</div>

Hi there again.  
Sorry, but it takes me more time to look at the code, explorer, etc.  
Ok, from my point of view it’s working, although the only thing that concerns me and it did since some messages before is that the NFT isn’t really a property of the user, isn’t it?  
I mean, can a user walk away with his own NFT?  
Maybe this doesn’t make sense as if the game disappears the NFT won’t have too much value, but at least is an NFT user property.  
Does it make sense?  
By the ay, I’ll push it with the team and let you know to be validated as Milestone concluded. sounds good?  
Thank you and sorry for the late reply.

Best,  
💙

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [May 31, 2022, 12:43pm UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/55 "2022-05-31T12:43:49Z")

</div>

No problem - and you’re absolutely right to ask about this point. In fact this is very transparent and I am not hiding the fact that when the user gets their NFT it is not “completely owned by their own wallet”. They can at any time set up their own wallet and ask for a transfer (which we can then do) so they “properly” own it. We chose this design on purpose (basically using custodian wallets attached to their user account) because we are really trying to experiment with the easiest way to onboard mainstream users who may not know what an NFT is, and would not care about setting up Metamask / managing their own wallet etc. It’s a product decision and we now have some use cases which can inform us of new features in future on how to tackle this 🙂 Hope that makes sense!

---

<div class="post-metadata">

**Author:** ![jbeltran](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/jbeltran/32/1714_2.png) [@jbeltran](https://talk.harmony.one/u/jbeltran)\
**Post date:** [May 31, 2022, 2:04pm UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/56 "2022-05-31T14:04:14Z")

</div>

Yes, honestly, it’s fare and a really good explanation as most people don’t know about many things that we consider “simple”. Thanks for the explanation.

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [June 1, 2022, 10:51am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/57 "2022-06-01T10:51:56Z")

</div>

Thanks! @giv for visibility - looks like its a go!

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [June 6, 2022, 6:35am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/58 "2022-06-06T06:35:33Z")

</div>

Hey folks @jbeltran @giv just a gentle nudge - I believe I have completed the milestone, shall I open up a request for tokens as before? Thanks!

---

<div class="post-metadata">

**Author:** ![jbeltran](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/jbeltran/32/1714_2.png) [@jbeltran](https://talk.harmony.one/u/jbeltran)\
**Post date:** [June 6, 2022, 1:28pm UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/59 "2022-06-06T13:28:26Z")

</div>

Good afternoon.  
Pushing it inside the team for Milestones completed.  
Stay tune this week please.  
And ping me anytime.  
Thank you

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [June 8, 2022, 5:49am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/60 "2022-06-08T05:49:52Z")

</div>

Thanks for that! Where can I keep track as its been more than a few months and I would like to know what is happening. Thanks! @giv

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [June 13, 2022, 6:39am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/61 "2022-06-13T06:39:34Z")

</div>

Hey folks~ hope you’re having a good day! I believe I have passed my milestone and would like to receive the agreed payments please 🙂 Pinging @giv - ok’ed by @jbeltran , cc’ing @lij . Can I go through the previous process? Thanks!

---

<div class="post-metadata">

**Author:** ![TakStorey](https://yyz1.discourse-cdn.com/flex035/user_avatar/talk.harmony.one/takstorey/32/3772_2.png) [@TakStorey](https://talk.harmony.one/u/TakStorey)\
**Post date:** [June 20, 2022, 4:22am UTC](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724/62 "2022-06-20T04:22:46Z")

</div>

Hey is anyone still around? I’m not asking for much - I have completed the work for a milestone grant - and it would be good to know when I can get it? Im not going to stop until this is resolved I think Harmony folks are professional people so I am patient. @giv @lij (Irrespective of whatever is happening on the macro crypto price action I need these grants to pay previously contracted work in fiat so this stuff is real business and not a game)

[Previous page](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724.md?page=2)

[Next page](https://talk.harmony.one/t/storey-x-harmony-sustainable-clothing-rewear-and-resell-on-harmony/7724.md?page=4)
