Follow these steps to update the weekly assets, metadata, and smart contract for The Lost Wallet project:
For week n, upload files in assets corresponding to MP4 files n*2-1 and n*2 on Pinata.
In the /metadata directory, update the (n*2-1).json and (n*2).json files with the two new CIDs.
Run the following command to generate the new weekly metadata files:
/bin/bash ./split-in-weeks.shfrom /weeks/tlw-week-n
Run the activateWeek function with n as the new week:
https://etherscan.io/address/0x0E84aBd06A5Ce90313457F3225D6EAa2d6E999F9?method=Activate__Week~0xc87d4a28#writeContract#F1
Run the setURI function with the folder CID: https://etherscan.io/address/0x0E84aBd06A5Ce90313457F`3225D6EAa2d6E999F9?method=Activate__Week~0xc87d4a28#writeContract#F10
ipfs://ipfs_hash_of_metadata_folder/{id}.json
- Go to the Webflow code editor: https://webflow.com/dashboard/sites/the-lost-wallet-website/code
- With
nas the week number, increase the LAST_ACTIVATED_WEEK_ID:
const LAST_ACTIVATED_WEEK_ID = n;https://webflow.com/design/the-lost-wallet-website
In CMS go to quests, then select "Quest n" and fill following data
- Description = given description
- NFT Num = NFT
n- should be preceded by 0 if
n< 10
- should be preceded by 0 if
- Video = given youtube link
- Display = true
Now you should go to Quests page to add NFT asset
Duplicate a "popup-image" in this folder

and replace video with "/assets/2*n.mp4"
In element settings, change the condition for "QUEST#n"

in site settings, custom code and look for
const LAST_ACTIVATED_WEEK_ID = n-1;
and change value to n