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 tokens for a certain address
  • heartbeat: Transition Court terms
  • pay: Send Aragon Court payment
  • config: Change Court config
  • stake: Stake tokens for a guardian
  • unstake: Unstake tokens
  • activate: Activate tokens into the Court
  • deactivate: Deactivate tokens from the Court
  • arbitrable: Create new Arbitrable instance for 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-guardian: Settle guardian 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/aragon/protocol-backend/
  cd protocol-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.