Links

Smart Vault Dashboard

Introduction

The Smart Vault Dashboard is an example of a DApp that using Leth SDK and Lightstreams-js-sdk
Using this DApp you will be able to upload your files uploaded into a Lightstreams Smart Vault node to manage the its distribution and acceptability. In addition you will be able to also request access to other users files and manage the pending request to your own content made by other users.

Source code

Features

Create an account

Login

Your user wallet

Upload file

My files

You can see the list of files you uploaded and which users have access to them. By clicking on one of the little icon you can revoke the access to the users at anytime.
Also you can download the content of the files you uploaded.

Grant access to file

Grant access to other users to your content without waiting for a access request.

Request access to other user's file

Insert the username of other user and load the list of available items of this user. By clicking on the locker icon you will send a access request to the file owner. In case you already got access to the file it will display the download action.

Manage pending access requests

On this section it will listed the pending access requests from other users to your files.

Freemium Model

This project implements a simple freemium model where the `STAKEHOLDER_ADDRESS` account transfer `5 PHT` tokens to every new user to fund the initial usage of it. Instead of Lightstreams team has integrated a Gas Station Network(GSN), a standardized pattern within Ethereum community where users transaction are funded using an advance implementation of the contract design. If you want to read more about this topic read this medium article.