Git Product home page Git Product logo

sablier-v2-integration-template's Introduction

Sablier V2 Integration Template

This repository contains templates for building integrations with Sablier.

  • StreamCreator: A template for creating a Lockup Linear stream.
  • StreamStaking: A template for writing a staking contract for Sablier streams.

For more information, refer to this guide on our documentation website:

https://docs.sablier.com/contracts/v2/guides/local-environment

Disclaimer

The templates provided in this repo have NOT BEEN AUDITED and is provided "AS IS" with no warranties of any kind, either express or implied. It is intended solely for demonstration purposes. These templates should NOT be used in a production environment. It makes specific assumptions that may not apply to your particular needs.

License

This repo is licensed under GPL 3.0 or later.

sablier-v2-integration-template's People

Contributors

andreivladbrg avatar paulrberg avatar smol-ninja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sablier-v2-integration-template's Issues

Add explanatory comment about ERC-20 approvals

Task

The createStream function should be annotated with a NatSpec comment that explains that the user has to ERC-20 approve the dummy contract.

Side note - the ERC-20 approval mechanism is bad. Our MNA asset design will solve this.

Context

We've recently received a question about this on Discord:

SCR-20240102-kxki SCR-20240102-kxln

Add a staking template for Sablier NFTs

As discussed in "Open discussion about staking", write an example template showing how Sablier stream NFTs can be staked and earn staking rewards.

A typical user flow:

  • Sender creates streams of tokens for recipients
  • Recipients stake Sablier NFT
  • Staking enables them to earn and claim staking rewards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.