Skip to content

silent-cipher/Eastore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


FVM Microgrants

Logo

Eastore

Easing your Filecoin storages
Explore the Project »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Usage
  3. Contributing
  4. Contact
  5. Acknowledgments

About The Project

Eastore, a decentralized storage marketplace and full-sector bounty rewarder. Bringing filecoin deals to your fingertips through Eastore. This is made using Filecoin Virtual machine and uses its miners to store and retrieve data, completely decentralized. You can view our project in depth at devfolio.

Team - lordshashank me-loser

(back to top)

Built With

(back to top)

Getting Started

So as to run our project locally, you need to follow the steps below.

Prerequisites

First of all you need to havee a lotus node running on your system. You can follow the steps given at [https://docs.filecoin.io/developers/infrastructure/how-tos/spin-up-a-lite-node/] to do so.

Then you have to get authentication token which you have to put in .env file in the backend directory of this repo.

Installation

  1. Get a free Moralis API Key at https://moralis.io
  2. Clone the repo
    git clone https://github.com/lordshashank/Eastore
  3. Install NPM packages on both backend and frontend folders
    npm install
  4. Enter your API in .env of frontend directory
    MORALIS_API_KEY= "your api key"
    APP_DOMAIN=authetication.sha
    NEXTAUTH_URL=http://localhost:3000
    NEXTAUTH_SECRET= "your secret"
  5. similarly get Lotus authentication token and put it in .env file in backend directory
  6. Run the project in frontend using
    npm run dev
  7. Run the project in backend using
    npx nodemon app.js
  8. You can now view the project at http://localhost:3000

Also we have made a directory for smart contracts deployed by us using FEVM hardhat kit at [https://docs.filecoin.io/developers/smart-contracts/hardhat/]. we just have added one contract in it which is [https://github.com/lordshashank/Eastore/blob/master/contracts/contracts/cashback.sol] which is used to give cashback to the users who have bought full sectors on FVM.

(back to top)

Usage

We didn't find any storage marketplace for newly made hyperspace network, and user had to interact with lotus CLI to get a nominal deal-id to work on. Thus, we tended to solve this problem.

This was just beginning, we then realised that file storage system is quite unorganised in FVM, thus started thinking of ideas to make it easy and profitable for both users and miners. First, we built a minimal storage interaction system that interacts with FVM storage providers to store and retrieve user data easily. We created an interactive frontend to give users a smooth experience of storing and retrieving there data.

It is difficult for the users to find just the right deal on filecoin ecosystem. There are issues related to storage size or lifetime or storage and many more. Eastore helps you get the deals as per your requirement through the extensive filters our site provides. It also helps you get great rewards for your deals.

Then, we thought that all users might not have FIL tokens to work with. Thus we integrated many chains into our dapp, now, user can pay in with eth, avax, etc in to get a deal on the filecoin network. This reduces customer's friction and increases market manifolds. Although, we provided additional benefits for users using the FIL token so as to incentivize people to join the network.

Afterwards, we came to know about sectors in FVM. We understood that completely filled sectors were quite beneficial for storage providers and the filecoin network. Sectors being sealed by filling trash data fills trash in filecoin network and is also space wastage for storage providers. Thus, we introduced discount features in deals. If users completely fill the sector with their data, they will be provided cashback of certain amount. This way network's utility can be pivoted.

Moreover, in future we aim to include feature where users can put there files along with other users until the total aggregate fills the complete sector, and then the deal is published on chain. We also aim to put off-chain miner interactions in our dapp.

For more examples, please refer to the Documentation

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Contact

Eastore - @lordshashank

Project Link: https://github.com/lordshashank/Eastore

(back to top)

Acknowledgments

Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!

  • The ETHForAll team was of great support to us and provided relevant information throughout this fornight long hackathon
  • Our doubts were aptly solved, but the discord server could have been a bit more active to our doubts.
  • Finally, kudos to the team for the great work surfer05 lordshashank 1010adigupta me-loser

(back to top)

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 59.4%
  • JavaScript 32.8%
  • CSS 5.3%
  • TypeScript 2.5%