Upfire is the first-ever decentralized P2P file-sharing platform. Our project is open source and anyone can contribute to development.
The main goal of this decentralized application is to enable users to directly exchange their files for cryptocurrency. This empowers users to set their own prices for their content and removes the middleman.
- Fork the repository.
- Do your changes and create a pull request.
- When the pull request is merged into the main branch, the dapp will be built on Github.
- Find the builds here.
- Clone the repository.
- Install dependencies via
yarn
. - Start the renderer thread in another terminal session via
yarn start-renderer-dev
. - Start the main thread in one terminal session via
yarn start-main-dev
.
- To deploy the staking contract switch to the
blockchain
directory withcd blockchain
. - Now install dependencies with
npm install
. - If you want to deploy staking to BSC testnet you need a private key for a wallet with BNB balance. Store the private key in a
BSC_PRIVATE_KEY
env variable. - Run
npx hardhat deployStaking --network bsctest
and the staking contract will be deployed to testnet.
How does the contract work? The test case blockchain/test/UpfireStaking.js
shows how to interact.