Coder Social home page Coder Social logo

afdudley / eris-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomtruitt/eris-cli

0.0 2.0 0.0 9.62 MB

Eris is a platform for building, testing, maintaining, and operating applications with a blockchain backend.

Home Page: https://erisindustries.com

License: GNU General Public License v3.0

Go 90.69% Groff 0.91% Shell 8.40%

eris-cli's Introduction

GoDoc Linux OSX Windows
Master Linux OSX Windows
Develop Linux OSX Windows

Introduction

Eris is a platform for building, testing, maintaining, and operating distributed
applications with a blockchain backend. Eris makes it easy and simple to wrangle
the dragons of smart contract blockchains.

eris:cli is a tool which makes it easy for developers to build, test, manage, and operate smart contract applications. No matter the blockchain.

For the motivation behind this tool see this post.

Install (For Developers)

  • Install Docker.
  • Install Go.
go get github.com/eris-ltd/eris-cli/cmd/eris
eris init

Install (For Non-Developers)

Please see our getting started page for those who are not familiar with go and/or docker.

Overview

The eris tool is centered around a very few concepts:

  • services -- things that you turn on or off
  • chains -- develop permissioned chains
  • pkgs -- our smart contract tool chain
  • keys -- wrapping of our key management tooling
  • actions -- step by step processes
  • files -- working the the IPFS "permanent web"
  • data -- take the pain out of data persistence on docker

These concepts provide the core functionality of what we think a true smart contract application platform requires.

To get started using the eris platform to see what the tooling can do and how it can help your development patterns for smart contract applications, please see our getting started tutorial series.

Architecture of the Tool

eris:cli is mostly an opinionated wrapper around Docker's API. We have found that running applications locally which require sophisticated installation paths and/or complex configuration work best when used from Docker's Container based system.

Each of the concepts listed above is described in a bit more detail below.

Services

Services are "things that you turn on or off". Examples of services include:

  • a pgp daemon
  • an ipfs node
  • a bitcoin node
  • a bitcoin node with its rpc on
  • a bitcoin-testnet node with its rpc on
  • an ethereum node
  • a tendermint-testchain node
  • a tinydns daemon

Services work from a base of service definition files. These files are held on the host in the following location: ~/.eris/services. Service definition files tell eris how a docker container should be started. The specification for service definition files is located here.

To see the various ways in which eris can interact with services, please type:

eris services

Chains

Chains are an opinionated toolchain around permissioned chains. They can be most easily thought of as your "develop" branch for chains. In other words, if you need to work on a permissioned chain, then it is best to use eris chains. Chains hardcode most of the service starting criteria, but still allow for some flexibility as to how chains are worked with.

Chains are operated from a base of chain definition files. These files are held on the host in the following location: ~/.eris/chains. The specification for chain definition files is located here.

To see the various ways in which eris can help you develop chains, please type:

eris chains

Pkgs

Pkgs are an opinionated toolkit to help you deploy and test your smart contract packages on both permissioned and unpermissioned blockchain networks.

eris pkgs utilizes the eris:package_manager to deal with contracts. eris:package_manager is a yaml based automation framework which makes it trivial to deploy and test your smart contract systems. The specification for eris:package_manager definition files is located here.

Pkgs give you access to test your smart contracts both against "throwaway chains" which are one time use chains that are needed for the sole purpose of testing smart contract packages, as well as existing blockchain networks.

To see the various ways in which eris can help you develop smart contract applications, please type:

eris pkgs

Keys

Keys is an opinionated toolchain around eris:keys. Please note that this concept of the eris platform is for development only and should not be used in production because it has not been fully security audited and we do not plan for it to be. In production the keys service should be replaced with your audited security system of choice.

To see the various ways in which eris can help you manage your various key pairs, please type:

eris keys

Actions

Actions are step by step processes which need to take a few variables but otherwise should be scriptable. Actions are used for repetitive, or repeatable, tasks.

The environment in which actions run is similar in nature to a modern continuous development environment. Actions are run on the host and not from within a container. They have full access to containers either via the eris cli or via docker's cli.

Examples of things actions are made to support:

  • setting up an application
  • configuring a range of services
  • register a domain entry via mindy
  • drop a preformulated transaction into the btc network using a specific key

Actions work from a base of action definition files. These files are held on the host in the following location: ~/.eris/actions. Action definition files tell eris what steps to take, what services to make available, what chain to run, and what steps to take. The specification for action definition files is located here.

To see the various ways in which eris can interact with actions, please type:

eris actions

Files

Eris has a pretty handy wrapper around IPFS which is useful for quick file sharing from the host or for use by actions.

To see the various ways in which eris can help you with distributed file sharing, please type:

eris files

Data

Eris can automagically utilize data containers for you.

If you turn the data_container variable to true in the service or chain definition file, then eris deposit the data utilized by that service or chain into a data container which can be managed separately from the "program" container. The advantage of working with data containers has been dealt with elsewhere (see, Google).

To see the various ways in which eris can help you manage your data containers, please type:

eris data

Contributions

Are Welcome! Before submitting a pull request please:

  • go fmt your changes
  • have tests
  • pull request
  • be awesome

That's pretty much it (for now).

Please note that this repository is GPLv3.0 per the LICENSE file. Any code which is contributed via pull request shall be deemed to have consented to GPLv3.0 via submission of the code (were such code accepted into the repository).

Bug Reporting

Found a bug in our stack? Make an issue!

Issues should contain four things:

  • The operating system. Please be specific. Include the Docker version and, if applicable, which VM you are using (Toolbox/Kitematic/boot2docker) if you are not on Linux.
  • The reproduction steps. Starting from a fresh environment, what are all the steps that lead to the bug? Also include the branch you're working from.
  • What you expected to happen. Provide a sample output.
  • What actually happened. Error messages, logs, etc. Please rerun the offending command with --debug flag to provide the most information. This is essential for us to help you debug whether there is a problem with Eris or simply a nuance in usage. For lengthy outputs, link to a gist or pastebin please.

Finally, add a label to your bug (critical or minor). Critical bugs will likely be addressed quickly while minor ones may take awhile. Pull requests welcome for either, just let us know you're working on one in the issue (we use the in-progress label accordingly).

License

Proudly GPL-3. See license file.

eris-cli's People

Contributors

alexandrev avatar antonylewis avatar dennismckinnon avatar ebuchman avatar mxjxn avatar pietv avatar zramsay avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.