Skip to content

TosinShada/sorobounty-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorobounty DAPP

This project is a simple DAPP that allows users to stream payments to each other. It is built using Soroban, Next.js and TypeScript.

Installation

Use yarn to install dependecies.

yarn

Backend

Follow the steps below to set up the backend.

cd backend

Run the Stream Payment backend


Make sure to start from a clean setup:

yarn stream:clean
Deploy on Futurenet
  1. Make sure you have soroban-cli installed, as explained above

  2. Deploy the contracts and initialize them

    yarn stream:setup
    

    This runs ./initialize.sh futurenet behind the scenes, which will create a token-admin identity for you (soroban config identity create token-admin) and deploy a Fungible Token contract as well as the payment stream contract, with this account as admin.

  3. Select the Futurenet network in your Freighter browser extension

Run the Name Service backend


Make sure to start from a clean setup:

yarn sns:clean
Deploy on Futurenet
  1. Make sure you have soroban-cli installed, as explained above

  2. Deploy the contracts and initialize them

    yarn sns:setup
    

    This runs ./initialize_sns.sh futurenet behind the scenes, which will create a token-admin identity for you (soroban config identity create token-admin) and deploy the registry, registrar and resolver contrancts.

  3. Select the Futurenet network in your Freighter browser extension

Stream Payment Frontend

Follow the steps beloww to setup and run the frontend for the Stream Payment DAPP

cd frontend

Run the Stream Payment frontend

You need to have deployed the smart contracts first. See above for more details

yarn dev

Open http://localhost:3000 with your browser to see the result.

Soroban Name Service Frontend

Follow the steps beloww to setup and run the frontend for the Stream Payment DAPP

cd nameservice

Run the Soroban Name Service frontend

You need to have deployed the smart contracts first. See above for more details

yarn dev

Open http://localhost:3000 with your browser to see the result.

Base structure

The project contains backend and frontend workspaces, together with packages, that can be used to extract some logic there.

backend/
frontend/
packages/
     .../
     .../

License

MIT