Stand Up 4/26

Date
Apr 26, 2022
Note Taker
Property 1
Crucial Items:
  1. UI: ‘select your token’ removed from modal in times where it is not pertinent
  1. Token being added to db before checkout is complete?
  1. hardcoded golden glove NFT contract addresses
  1. issue related to token id being hardcoded / customer id
  1. manually updating customer id in published version, currently it is hard-coded : it is ok for now
  1. polish pr approval process - ASYNC
 
Agenda + notes
 
  1. Updates:
    1. Prad: -1 week
      1. last week
        1. complete redeem functions
        2. debugging the errors
        3. cors issue no longer and issue
        4. debugging and getting the redeem function working
        5. working on cors issue, cors is still an issue
        6. database persistence
        7. figuring out metafields >> can fetch metafields from product if it is redeemable, then what contract
      2. Next week:
        1. investigate token id being added to redeemed db before checkout process is complete,
        2. cors in chrome is still an issue
        3. work old version without affecting beta, we’re on dev merge, and work on hardcoded contract address and customer-id, merge in pieces
        4. catch up on notion
        5. make sure that all the endpoints work, and testing them
        6. get everything else working locally (can’t write serverside code)
        7. restoring a working version of redeem db, replicating rose’s success on the server side
        8. Touch base on Thursday>> UI/UX, friday>> default gas fees
        9. try to figure out cors issue, it is only not working on chrome
        10. redeem function >> cors
        11. redeem db (server integration)
        12. data verification between product and nft by end of the day
        13. token check against db <challenging>
        14. default gas > after april 8th demo day
        15. add help instructions >> before demo
        16. connect to discord on the modal >> “Need Help? Join our discord and go to customer service channel.” >> after april 8
      3. Challenge:
      4. Questions:
        1. can we host db in the cloud or somewhere public <not the safest>
    2. roseja: -1 week
      1. Last week:
         
      2. webhooks not working properly>> so spent time into looking into this that wasn’t the issue - manually deleting the shop, some webhooks work, some don’t
      3. tested endpoints with some changes prad implemented after added to same branch and was able to redeem and added to the db, and the db was working, after refreshing db, (two manual, manually delete the shop (webhook not working as bug), whenever a db change proceeding with) (liquibase will automatically keep track and update databases, might be complicated for now and not sure how to set up on heroku)
      4. whenever updating then app, when it is refreshing with updates, the token is no longer valid, and getting an error to provide the url, but when remove the url for the shop manually. (keep in mind and think about solution moving forward) - still issue
      5. discount generation is back to working again (root issues: removing the extra shops on the authentication side, and the endpoint errors, the schema changed some fields to text fields.
      6. current site<configure host not provided>, new branch config error is no longer there, there is something off with graphql, needs debugging, once this is working it should solve a few other issues
      7. database persistence + changes: (not a priority for Friday, this will be a long term issue), added new redeem db token, but have to manually update the code, need long term solution
      8. api endpoints some issues, information not loading properly
        1. discount generation > some questions have cleared up, admin page cannot be changed, we could create a new (orders and settings) another admin there to add to show it was added by NFT) — forget about admin dashboard, for now, add redeemed with NFT with orders
        2. screen record
      9. Next week:
        1. everything in QA is working
        2. modify discount generation>> update the endpoint to make sure the metafield on the order level is updated - manually adding to metafield— manual tagging bankless,
        3. updating shop db correctly
        4. review merge pieces with prad
        5. hide payment: need potential solutions (no shopify plus), maybe there is a way to modify the cart before it gets to checkout > research that, or maybe webhook (webhook for only redeemable for nft, force redirect)
        6. if graphql works >> might help with some of the errors resulting from outdated js libraries
          1. data persistence > challenge
          2. NFT Discount generation
          3. add serverside endpoint to add token id
          4. add serverside endpoint to check if token id exists
      10. Challenge:
        1. getting the correct db URL with docker, locally it works <solved> with add to orders rather than admin
         
 
 
 
 
 
 
 
 
Results of meeting with PBear + Prad
  1. setting up a new customer on heroku: successfully deployed and installed on USM and bankless test store
  1. we would like a demo on the published site (after order tagging is done - 25th demo on published site ) we can also install on preview theme (any order will show up on the real store)
 
Cost of shipping:
  1. variable shipping costs, not covered with NFT Sale —> v high average, NFT sale covers shipping costs
  1. Use cases other than the FC Red gloves: custom code to estimate shipping based on country and zip code that can calculate price of shipping (ask user information before discount code is applied) shopify theme handles object, shopify API uses a checkout object to send users, we would have to create a custom code to do this - priority lower than nft redemption and nft receipt
  1. setting - payments tab >> add free shipping options / custom functionality
 
NFT Redemption:
  1. UI Button - connected wallet > connect with wallet and grab address
  1. check again with moralis (tried with moralis, documentation shows it is an API, tested with DAO Punks contract)
  1. get data from the backend what is redeemable and what address
  1. if all the verification have passed, add the token to the db
  1. if not error
 
 
 
Last meeting notes
NFT Receipt
will run on only remix, code doesn’t compile on its own, it would be better if they deployed and send the address on which it is living. This code, is an NFT contract, it is not ready for USM or bankless checkout right now. 1 hr. allow only USM address to create the receipts, not any other nft receipt, so only USM can mint
 
spec sheet >> wallet to fund the minting, absorbing minting costs
 
NFT Redemption - 2/3 weeks
check to see if token used to redeem
use cases:
  1. list of tokens/NFTs
  1. complexity on shopify admin settings >> embed meta data on the product level (this token they can redeem shirt), use that to check if wallet has the token and store token they have redeemed
  1. same product >> check if you have token >> check if you claimed >> in their order/custom attributes the token that the customer holds (on the shopify side, adding the token number to order custom attributes)
  1. Admin interface UI to allow the store to add custom attributes about the contract, search box>> select product to enable token redemption and then once that feature flack is turned on, then you go to the product setting and in the rules for how someone redeem (contract address, # how many they can redeem)
  1. prad would have to do some frontend logic to check
 
Map out the receipt and the redemption next stand up!
 
Info if they hold the NFT:
1- Moralis: all the NFTs that user holds
2- get that array and check if user holds token
3- if so, return 200 status
 
Product info:
1- contract address for tshirt
2- deployment address, retrieve token addresses in a dynamic fashion
 
contract factory address >> but each token will be different, so we want to look into this with moralis not with ether scan
 
PBear>> admin dashboard >> add contract address (1- settings input contract address per product , 2- db table, 3- API)
 
Client

Stand Up 4/26

Date
Apr 26, 2022
Note Taker
Property 1
Crucial Items:
  1. UI: ‘select your token’ removed from modal in times where it is not pertinent
  1. Token being added to db before checkout is complete?
  1. hardcoded golden glove NFT contract addresses
  1. issue related to token id being hardcoded / customer id
  1. manually updating customer id in published version, currently it is hard-coded : it is ok for now
  1. polish pr approval process - ASYNC
 
Agenda + notes
 
  1. Updates:
    1. Prad: -1 week
      1. last week
        1. complete redeem functions
        2. debugging the errors
        3. cors issue no longer and issue
        4. debugging and getting the redeem function working
        5. working on cors issue, cors is still an issue
        6. database persistence
        7. figuring out metafields >> can fetch metafields from product if it is redeemable, then what contract
      2. Next week:
        1. investigate token id being added to redeemed db before checkout process is complete,
        2. cors in chrome is still an issue
        3. work old version without affecting beta, we’re on dev merge, and work on hardcoded contract address and customer-id, merge in pieces
        4. catch up on notion
        5. make sure that all the endpoints work, and testing them
        6. get everything else working locally (can’t write serverside code)
        7. restoring a working version of redeem db, replicating rose’s success on the server side
        8. Touch base on Thursday>> UI/UX, friday>> default gas fees
        9. try to figure out cors issue, it is only not working on chrome
        10. redeem function >> cors
        11. redeem db (server integration)
        12. data verification between product and nft by end of the day
        13. token check against db <challenging>
        14. default gas > after april 8th demo day
        15. add help instructions >> before demo
        16. connect to discord on the modal >> “Need Help? Join our discord and go to customer service channel.” >> after april 8
      3. Challenge:
      4. Questions:
        1. can we host db in the cloud or somewhere public <not the safest>
    2. roseja: -1 week
      1. Last week:
         
      2. webhooks not working properly>> so spent time into looking into this that wasn’t the issue - manually deleting the shop, some webhooks work, some don’t
      3. tested endpoints with some changes prad implemented after added to same branch and was able to redeem and added to the db, and the db was working, after refreshing db, (two manual, manually delete the shop (webhook not working as bug), whenever a db change proceeding with) (liquibase will automatically keep track and update databases, might be complicated for now and not sure how to set up on heroku)
      4. whenever updating then app, when it is refreshing with updates, the token is no longer valid, and getting an error to provide the url, but when remove the url for the shop manually. (keep in mind and think about solution moving forward) - still issue
      5. discount generation is back to working again (root issues: removing the extra shops on the authentication side, and the endpoint errors, the schema changed some fields to text fields.
      6. current site<configure host not provided>, new branch config error is no longer there, there is something off with graphql, needs debugging, once this is working it should solve a few other issues
      7. database persistence + changes: (not a priority for Friday, this will be a long term issue), added new redeem db token, but have to manually update the code, need long term solution
      8. api endpoints some issues, information not loading properly
        1. discount generation > some questions have cleared up, admin page cannot be changed, we could create a new (orders and settings) another admin there to add to show it was added by NFT) — forget about admin dashboard, for now, add redeemed with NFT with orders
        2. screen record
      9. Next week:
        1. everything in QA is working
        2. modify discount generation>> update the endpoint to make sure the metafield on the order level is updated - manually adding to metafield— manual tagging bankless,
        3. updating shop db correctly
        4. review merge pieces with prad
        5. hide payment: need potential solutions (no shopify plus), maybe there is a way to modify the cart before it gets to checkout > research that, or maybe webhook (webhook for only redeemable for nft, force redirect)
        6. if graphql works >> might help with some of the errors resulting from outdated js libraries
          1. data persistence > challenge
          2. NFT Discount generation
          3. add serverside endpoint to add token id
          4. add serverside endpoint to check if token id exists
      10. Challenge:
        1. getting the correct db URL with docker, locally it works <solved> with add to orders rather than admin
         
 
 
 
 
 
 
 
 
Results of meeting with PBear + Prad
  1. setting up a new customer on heroku: successfully deployed and installed on USM and bankless test store
  1. we would like a demo on the published site (after order tagging is done - 25th demo on published site ) we can also install on preview theme (any order will show up on the real store)
 
Cost of shipping:
  1. variable shipping costs, not covered with NFT Sale —> v high average, NFT sale covers shipping costs
  1. Use cases other than the FC Red gloves: custom code to estimate shipping based on country and zip code that can calculate price of shipping (ask user information before discount code is applied) shopify theme handles object, shopify API uses a checkout object to send users, we would have to create a custom code to do this - priority lower than nft redemption and nft receipt
  1. setting - payments tab >> add free shipping options / custom functionality
 
NFT Redemption:
  1. UI Button - connected wallet > connect with wallet and grab address
  1. check again with moralis (tried with moralis, documentation shows it is an API, tested with DAO Punks contract)
  1. get data from the backend what is redeemable and what address
  1. if all the verification have passed, add the token to the db
  1. if not error
 
 
 
Last meeting notes
NFT Receipt
will run on only remix, code doesn’t compile on its own, it would be better if they deployed and send the address on which it is living. This code, is an NFT contract, it is not ready for USM or bankless checkout right now. 1 hr. allow only USM address to create the receipts, not any other nft receipt, so only USM can mint
 
spec sheet >> wallet to fund the minting, absorbing minting costs
 
NFT Redemption - 2/3 weeks
check to see if token used to redeem
use cases:
  1. list of tokens/NFTs
  1. complexity on shopify admin settings >> embed meta data on the product level (this token they can redeem shirt), use that to check if wallet has the token and store token they have redeemed
  1. same product >> check if you have token >> check if you claimed >> in their order/custom attributes the token that the customer holds (on the shopify side, adding the token number to order custom attributes)
  1. Admin interface UI to allow the store to add custom attributes about the contract, search box>> select product to enable token redemption and then once that feature flack is turned on, then you go to the product setting and in the rules for how someone redeem (contract address, # how many they can redeem)
  1. prad would have to do some frontend logic to check
 
Map out the receipt and the redemption next stand up!
 
Info if they hold the NFT:
1- Moralis: all the NFTs that user holds
2- get that array and check if user holds token
3- if so, return 200 status
 
Product info:
1- contract address for tshirt
2- deployment address, retrieve token addresses in a dynamic fashion
 
contract factory address >> but each token will be different, so we want to look into this with moralis not with ether scan
 
PBear>> admin dashboard >> add contract address (1- settings input contract address per product , 2- db table, 3- API)
 
Client