Introduction
fanWatch helps connect onchain wallet data with offchain IDs that enable conferencing via Matrix.org .
Smart Contract
THIS IS DEPLOYED ON THE CHILIZ TESTNET
WHILE THIS IS INITIALLY PAY-TO-WATCH, FUTURE VERSIONS WOULD BE STAKE-TO-WATCH, WHERE REAL FANS GET PAID TO WATCH MATCHES
Smart Contract address 0x61A9906b572b77Eb88F1ccB7273A41F30360d380
The smart contract enables users to map their addresses with offchain matrix.org IDs for a predefined cost.
The owner of the contract shares the joining room link during the initialisation of the contract.
Upon successful deposit of the CHZ and addition of the mappings, offchain processes allow user access to rooms only for the mapped addresses.
https://testnet.chiliscan.com/tx/0xb91f030eee5f790c843e922fc11a412654476f11bf98c9a56f61560c5b932f24
https://gist.github.com/XxSNiPxX/36b394eb256e06d77cb2ecf2bfc5b289#file-smartcontract-sol
Offchain
Matrix.org synapse server is setup with registration. The dApp utilizes wallet address as the offchain id, and signs a message for the password.
Upon login, the user can utilize their offchain IDs in the contract and can also join private conferences with other fans, assuming they paid their fee to the contract.
The backend server also queries all the mappings in the contract and filters them allowing only paid users.
THIS IS CURRENTLY MADE ONLY FOR COMPUTERS/LAPTOPS AS METAMASK BROWSER EXTENSION REQURIES EXTRA CODE