Codebase
Repository
The Sablier Protocol is hosted on GitHub and the source code for each contract is verified on Etherscan.
Github - sablierhq/sablier: Token streaming protocolGitHub
ABIs
Depending on the web3 library you're working with, you may need to get hold of the Sablier ABIs (application binary interfaces). The ABI acts as an interface between two program modules, one of which is the smart contract and the other the Ethereum virtual machine code.
There are two ways to obtain it:
- Copy
Sablier.json
from sablierhq/sablier-abis. - Clone sablierhq/sablier and compile the contract yourself.
Here's an example for how to do step 2 with yarn and truffle:
$ git clone git@github.com/sablierhq/sablier.git
$ cd ./sablier
$ yarn bootstrap
$ cd ./packages/protocol
$ truffle compile
The Sablier.json
artifact should be generated in the relative build/contracts
folder.