• Stars
    star
    263
  • Rank 154,710 (Top 4 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created about 6 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Core smart contracts of the Sablier V1 protocol

Sablier CircleCI Coverage Status Styled with Prettier Commitizen Friendly License: LGPL3.0

The source code of the Sablier token streaming protocol. Start with our FAQ to get a high-level understanding of how Sablier works, and see our docs if you want to integrate it in your project.

Package Description
@sablier/dev-utils Dev utils to be shared across Sablier projects and packages
@sablier/protocol The core token streaming protocol
@sablier/shared-contracts Smart contracts to be shared across Sablier projects and packages

Usage βš’οΈ

To compile the smart contracts, bootstrap the monorepo and open the package you'd like to work on. For example, here are the instructions for @sablier/protocol:

$ yarn run bootstrap
$ cd packages/protocol
$ truffle compile --all
$ truffle migrate --reset --network development

Alternatively, if you simply want to use our apps, head to pay.sablier.finance to create streams and app.sablier.finance to withdraw from streams. You'll need an Ethereum wallet and some ERC20 tokens.

Contributing πŸ™‹β€β™€οΈ

We highly encourage participation from the community to help shape the development of Sablier. If you are interested in contributing or have any questions, ping us on Discord.

We use Yarn as a dependency manager and Truffle as a development environment for compiling, testing, and deploying our contracts. The contracts were written in Solidity.

Requirements

  • yarn >=1.17.3
  • truffle >= 5.0.35
  • solidity 0.5.17

Pre Requisites

Make sure you are using Yarn >=1.17.3 To install using homebrew:

$ brew install yarn

Then install dependencies:

$ yarn install

Watch

To re-build all packages on change:

$ yarn watch

Clean

To clean all packages:

$ yarn clean

To clean a specific package:

$ PKG=@sablier/protocol yarn clean

Lint

To lint all packages:

$ yarn lint

To lint a specific package:

$ PKG=@sablier/protocol yarn lint

Prettier

To run prettier on all packages:

$ yarn prettier

Prettier cannot be run on individual packages.

Test

To run all tests:

$ yarn test

To run tests in a specific package:

$ PKG=@sablier/protocol yarn test

More Repositories

1

v2-core

⏳ Core smart contracts of the Sablier V2 token distribution protocol
Solidity
290
star
2

v1-subgraph

Subgraph for the Sablier cryptoasset streaming protocol
TypeScript
28
star
3

v2-periphery

πŸŽ› Peripheral smart contracts for interacting with Sablier V2
Solidity
19
star
4

v1-safe-app

Safe App for interacting with the Sablier protocol
TypeScript
19
star
5

v1-smooth-contracts

Bare-bones implementation of the Sablier protocol
Solidity
15
star
6

examples

Example integrations with Sablier
Solidity
14
star
7

docs

Documentation and guides for Sablier
TypeScript
11
star
8

audits

Smart contract audits performed on Sablier by third-party security researchers
10
star
9

v2-sandbox

Front-end sandbox development environments for Sablier V2
9
star
10

v1-abis

The ABIs (Application Binary Interfaces) for the Sablier money streaming protocol
9
star
11

sablier-v2-integration-template

Sablier V2 integration template
Solidity
7
star
12

community-token-list

JavaScript
7
star
13

erc1620

Mirror of the erc-1620 standard from ethereum/eips
5
star
14

branding

Sablier brand guidelines and assets
5
star
15

sablier-v2-steakhut

Custom script for batch creating the $STEAK streams
Solidity
4
star
16

legacy-uis

A mirror of the legacy Sablier front-ends
JavaScript
4
star
17

v2-subgraphs

Subgraphs for Sablier V2 token streaming protocol
TypeScript
4
star
18

v2-merkle-api

Rust
4
star
19

assets

Media assets used in Sablier
3
star
20

v1-docs

Documentation website for Sablier V1
JavaScript
3
star
21

sablier-labs.github.io

File hosting
HTML
3
star
22

reusable-workflows

Reusable workflows to use in GitHub Actions
2
star
23

v1-stats

TypeScripts utilities to calculate stats related to the Sablier protocol
TypeScript
2
star
24

v2-deployments

Keeping track of Sablier V2 deployments
2
star
25

sablier-v2-exactly-protocol

Custom script for creating polynomial $EXA streams
Solidity
2
star
26

v2-sandbox-react

React Sandbox for interacting with the Sablier V2 protocol
TypeScript
1
star