PayStreams is a payment streaming service supercharged with hooks
Report Bug
·
Request Feature
Table of Contents
PayStreams is a payment streaming service which allows anyone to open token streams directed to any recipient. The recipient can collect the streamed funds over time, or when the stream ends. The stream creator can update, pause, unpause, or cancel the stream as well. Streams can be one-time, or recurring.
Additionally, we introduce hooks, which are functions with custom logic that can be invoked at various points during the stream's lifespan. To opt into hooks, both the streamer and the recipient can set custom vaults with correct functions and hook configuration, and these functions will be invoked by the PayStreams
contract when certain events occur. Hooks open up a wide array of use cases and customizations, enabling developers to extend the functionality of streams. You can find some hook examples in the ./src/exampleHooks/
folder.
P.S. This project was built for the BuildOn hackathon on Devfolio.
- Solidity
- Foundry
Make sure you have git, rust, and foundry installed and configured on your system.
Clone the repo,
git clone https://github.com/mgnfy-view/pay-streams.git
cd into the repo, and install the necessary dependencies
cd pay-streams
forge build
Run tests by executing
forge test
That's it, you are good to go now!
- Smart contract development
- Unit tests
- Write a good README.md
See the open issues for a full list of proposed features (and known issues).
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Here's a gateway to all my socials, don't forget to hit me up!