Skip to content

Latest commit

 

History

History
 
 

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Aragon Court CLI tool

This tool aims to provide a set of commands to interact with an Aragon Court instance. Currently, there is no published version of it. However, you can use it locally.

Commands

  • mint: Mint ANJ or Fee tokens for a certain address
  • heartbeat: Transition Court terms
  • config: Change Court config
  • stake: Stake ANJ tokens for a juror
  • unstake: Unstake ANJ tokens
  • activate: Activate ANJ to the Court
  • deactivate: Deactivate ANJ from the Court
  • donate: Donate funds to Court jurors
  • arbitrable: Create new Arbitrable instance for the Court
  • subscribe: Subscribe Arbitrable instance to the Court
  • dispute: Create dispute submitting evidence
  • draft: Draft dispute and close evidence submission period if necessary
  • commit: Commit vote for a dispute round
  • reveal: Reveal committed vote
  • appeal: Appeal dispute in favour of a certain outcome
  • confirm-appeal: Confirm an existing appeal for a dispute
  • settle-round: Settle penalties and appeals for a dispute
  • settle-juror: Settle juror for a dispute
  • execute: Execute ruling for a dispute

Setup

To use the CLI tool locally simply run the following commands to install it locally:

  git clone https://github.com/aragonone/court-backend/
  cd court-backend
  npm i
  npx lerna bootstrap
  cd packages/cli

The only thing you need to setup is to make sure you configure an Aragon Court address in the truffle-config.js file of the shared package. After that, you can start playing with all the provided commands:

Keys

This repo is using @aragon/truffle-config-v5, it is not using Truffle, but truffle config to load the network configuration following the standard way provided by Truffle. Thus, keys are fetched from ~/.aragon/${NETWORK}_key.json files.