Skip to content

An ethers script to deploy a safe with 2 owners, and a script to initiate a sablier protocol stream.

License

Notifications You must be signed in to change notification settings

highskore/gnosis-sablier-scripts

Repository files navigation

Gnosis Safe Sablier - Scripts

Install

Set correct node version (see .nvmrc) with nvm

nvm use

Install requirements with yarn:

yarn

Quick Start

Setup

Create .env file to use the commands (see .env.sample for more info):

  • NETWORK - rinkeby
  • PK or MNEMONIC- Credentials for the account that should be used
  • INFURA- For network that use Infura based RPC
  • NODE- RPC node

Create Safe

Creates and setups a Safe proxy via the safe=core-sdk. (Make sure to fund your "first" named account from the hardhat.config)

Example

This will deploy a Safe that uses the "first" & "second" named accounts as an owners and sets the Safe threshold to 2

node --require hardhat/register scripts/deploy.ts

Stream DAI

Initiates a Sablier protocol stream via the safe=core-sdk. (Make sure to fund your safe with DAI)

Example

This will deploy a Safe that uses the first imported account as an owner and set the threshold to 1.

node --require hardhat/register scripts/stream.ts -s <safe-address> -t <stream-target-address>

About

An ethers script to deploy a safe with 2 owners, and a script to initiate a sablier protocol stream.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published