Skip to content

aracred/aracred-cli

 
 

Repository files navigation

Wallaby.js

Aracred CLI

Aracred CLI runs SourceCred on a Discorse server, creates files for scores and user labels, and then lets you mint tokens for contribors in an Aragon DAO.

  • First you need an Aragon DAO with the Transactions app installed.
  • Then download and install the AraCred CLI.
  • Then you'll need to download and install SourceCred.
  • Then you can run aracred in the SourceCred folder to get a scores.
  • Then upload the scores to the DAO.
  • Then vote to approve the new mint.

You can find a more detailed guide on this process here.


How To AraCred

Installation

Clone the SourceCred Repo and install deps.

git clone https://github.com/sourcecred/sourcecred.git && cd sourcecred && npm i

Install the aragonCLI globally. If you have trouble installing the cli, check out this guide.

npm i -g @aragon/cli

Clone this repo and install deps.

git clone https://github.com/pythonpete32/aracred-cli/ && cd aracred && npm i

Create a secret.json file in the root directory and add your github token.

{
  "key": "YOUR_KEY_HERE"
}

Build the project.

npm run build

Link the package so it can be refrenced globaly.

npm link

Generating Scores

Navigate back to the SourceCred folder and type aracred into the terminal. This will create toMint.csv and addresses.csv files.

Generating User Labels

Edit addresses.csv to add user's addresses and use aracred addresses to obtain a new addresses.json file that can be uploaded as local labels in Aragon Client.

API

Table of Contents

sayHello

This function says hello.

Parameters

  • name Some name to say hello for.

Returns any The hello.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%