This project is a simple DAPP that allows users to stream payments to each other. It is built using Soroban, Next.js and TypeScript.
Use yarn to install dependecies.
yarnFollow the steps below to set up the backend.
cd backendMake sure to start from a clean setup:
yarn stream:clean-
Make sure you have soroban-cli installed, as explained above
-
Deploy the contracts and initialize them
yarn stream:setupThis runs
./initialize.sh futurenetbehind the scenes, which will create atoken-adminidentity 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. -
Select the Futurenet network in your Freighter browser extension
Follow the steps beloww to setup and run the frontend for the Stream Payment DAPP
cd frontendYou need to have deployed the smart contracts first. See above for more details
yarn devOpen http://localhost:3000 with your browser to see the result.
The project contains backend and frontend workspaces, together with packages, that can be used to extract some logic there.
backend/
frontend/
packages/
.../
.../