Exchange paid services off-chain between the Streamer's contract owner (the Guru) and rube clients with funded channels. The Guru provides the service in exchange for signed vouchers which can later be redeemed on-chain.
- Node (v18 LTS)
- Yarn (v1 or v2+)
- Git
To get started, clone the repository to your local machine:
git clone https://github.com/dianakocsis/state-channels
-
Navigate to the cloned directory:
cd state-channels
-
Copy the .env.example files to create a new .env file and fill in the necessary details:
cp .env.example .env
cd frontend cp .env.example .env
-
Install Dependencies
To install project dependencies, run the following commands:
yarn install cd frontend && yarn install cd ..
-
Start Local Blockchain
In a new terminal, start the local blockchain:
yarn chain
-
Deploy Contracts (In another tab)
Open another terminal tab and deploy the contracts:
yarn deploy
-
Start the Aplication (In another tab)
Finally, in a new terminal tab, start the application:
yarn start
Contract | Address Etherscan Link |
---|---|
Streamer | https://sepolia.etherscan.io/address/0xE1a326458160BcDa2F54666131C5412b7530006b |