npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@blossom-labs/apps-superfluid

v0.0.1

Published

Superfluid is an Aragon App that enables an organization to interact with the [Superfluid protocol](https://www.superfluid.finance/home). It allows a DAO to stream their funds by using Superfluid's [Constant Flow Agreement](https://docs.superfluid.finance

Downloads

3

Readme

Superfluid Aragon App

Superfluid is an Aragon App that enables an organization to interact with the Superfluid protocol. It allows a DAO to stream their funds by using Superfluid's Constant Flow Agreement via an agent app that holds all the DAO's Super Tokens.

The Superfluid app acts as an interface between the Agent and the Superfluid protocol contracts, using the Agent to perform all the calls to the CFA.

🐲 Project Stage: Completed

The Superfluid app has been published to the open.aragonpm.eth registry on Polygon, Rinkeby and xDAI network.

The app's repo ens name is the following: superfluid.open.aragonpm.eth.

Demos

Here you can find some demos to play with:

Initialization

To initialized the app you'll need to set up the following parameters:

  • _agent The address of the Agent contract that is going to hold the Super Tokens.
  • _host_ The address of the Superfluid host contract.
  • _cfa_ The address of the constant flow agreement contract.

Roles

The Superfluid app implements the following roles:

  • MANAGE_STREAMS_ROLE: Necessary to create, update, and delete constant flows.
  • SET_AGENT_ROLE: Necessary to change the agent if it's needed.

The app should have the following roles as well:

  • SAFE_EXECUTE_ROLE: It should be able to execute arbitrary code from the agent that holds the Super Tokens.
  • TRANSFER_ROLE: It should be able to transfer Super Tokens hold by the agent.

EVMcrispr installation script

Use the following script on the evmcrispr terminal to install the app on a DAO.

connect <dao-address> <path>
install superfluid.open:new agent <host-address> <cfa-address> 
grant superfluid.open:new agent SAFE_EXECUTE_ROLE voting
grant superfluid.open:new agent TRANSFER_ROLE voting
grant voting superfluid.open:new MANAGE_STREAMS_ROLE voting
grant voting superfluid.open:new SET_AGENT_ROLE voting

You can find the Superfluid contract addresses here.

How to run locally

  1. Clone this repo:
git clone https://github.com/BlossomLabs/superfluid-aragon-app.git
  1. Install dependencies:
yarn

cd app/

yarn
  1. Go to the root folder and run the following:
yarn start

This will do the following:

  • Start a local ganache blockchain and set up some accounts.
  • Deploy the AragonOS framework contracts.
  • Deploy the Superfluid framework contracts and a couple of Super Tokens.
  • Deploy an Aragon DAO and install on it an Agent app needed by the app.
  • Deploy the app, initialize it and set up its permissions as well as the agent ones.
  • Mint Super Tokens for the testing accounts.
  • Make an initial Super Token's deposit to the Agent.
  • Run a local Aragon Client
  • Build and deploy the app's front end.

Note: To run this project you'll need a Node.js version between v12 and v15.

How to run tests

The contract tests require running a fork network, so you'll need to set up the following env variables:

HARDHAT_FORK_ID=<chain-id>
HARDHAT_FORK=<archive-node-uri>
HARDHAT_FORK_BLOCK_NUMBER=<blocknumber>

Once you created the .env file you just need to run: yarn test.