FreeFlix-Media-Hub & CoCo-POST-Chain Clients == Owing to the fact that most people that are aware of IBC are developers, we have released 2 clients ```ffcli``` for freeflix-media-hub and ```cococli``` along with an interactive script that takes inputs from you and runs you through everything while you sit back and enjoy! The clients are for 2 operating systems: 1) GNU/Linux (Ubuntu & Debian) 2) Mac OS GNU/Linux (Ubuntu & Debian) --- ### Dependencies 1) **jq** ``` sudo apt-get install jq ``` 2) **curl** ``` sudo apt-get install curl ``` ### Run the script Download the binaries: `wget binary_URL` `wget FF_COCO_IBC_demo.sh_URL` `sudo chmod 744 FF_COCO_IBC_demo.sh` `bash ./FF_COCO_IBC_demo.sh` Important points to note: --- 1. The demo is the creation & exchange of assets between a **creator** (on FreeFlix Media Hub) and a **licensee** (on CoCo POST Chain). 2. The demo will ask you for your *Twitter handle* & *tweet IDs*. You do not need to enter your actual Tweet handle for this script to run. You can enter any set of characters/random string. Make sure it is unique enough & doesn't match with an existing asset_ID on the chain. 3. Once the above is entered and you'll be asked for a key to create accounts and that's it! You can sit back and drink coffee/even have pop-corn while the demo runs you through each of the activities on FreeFlix Media Hub and COCO POST Chain What does the script demonstrate? --- The script aims to demonstrate: 1. Asset creation WITHOUT licensing (pNFT #1) on **freeflix-media-hub** 2. Asset creation WITH licensing (pNFT #2) on **freeflix-media-hub** for licensing it to **coco-post-chain**. The NFT exists on both chains. 3. Asset creation WITH licensing with an automatic attribution to the owner A quick walk-through --- The freeflix-media-hub is powered by the fungible token FFMT while the coco-post-chain is powered by the COCO token. This is a 25 step journey that the script will take you through and we have condensed it into 8 steps. Below are the events triggered during the demo: 1) An account is created on the freeflix-media-hub & queried for FFMT tokens. This account supports both FFMT tokens and COCO tokens - FF account Token Balance : 1000 FFMT || 0 COCO - 0 pNFTs 2) Asset #1 is created on the freeflix-media-hub - A pre-defined fee of 50 FFMT is utilized for the tx - FF account Token Balance : 950 FFMT || 0 COCO - 1 pNFT 3) Asset #2 is created on the freeflix-media-hub for licensing by a user on the coco-post-chain - Token Balance : 900 FFMT || 0 COCO - 2 pNFTs 4) An account is created on the coco-post-chain & queried for COCO tokens. This account supports both FFMT tokens and COCO tokens - COCO account Token Balance : 0 FFMT || 1000 COCO - 0 sNFTs 5) A user on the coco-post-chain pays **100 COCO token** and takes Asset #2 for licensing with a revenue share. - A pre-defined fee of 50 COCO is utilized for the tx - COCO account Token Balance : 0 FFMT || 850 COCO - 1 sNFT 6) A user on the coco-post-chain now creates an sNFT Asset #3 & pays 100 COCO for it. The notable point here is, this asset is yet to be created on the freeflix-media-hub. This is a demo of asset attribution, without the creator having to list all their assets. - A pre-defined fee of 50 COCO is utilized for the tx - COCO account Token Balance : 0 FFMT || 700 COCO - 2 sNFTs 7) Final balance for the account on freeflix-media-hub - FF account Token Balance : 900 FFMT || 200 COCO - NFT token balance : 3 pNFTs - 1 with licensing as FALSE - 2 with licensing as TRUE 8) Final Balance for the account on coco-post-chain - Token Balance : 0 FFMT || 700 COCO - NFT token balance : 2 sNFTs - both that have been licensed from the account on freeflix-media-hub | File|OS | MD5 checksum | Download URL | | --------|----- | -------- | -------- | | ffcli | Linux | Text | URL | | cococli | Linux | Text | URL| | ffcli | Mac OS | Text |URL| | cococli | Mac OS | Text |URL| | script | bash | Text |URL|