Git Product home page Git Product logo

emerald-rs's Introduction

Emerald-rs Build Status Build Status License

Ethereum classic web3 like connector written in Rust.

Distributed as a command line tool (CLI), as a Rust crate or you can use it in the form of plain C library.

As a reference dApp implementation take a look at our Ethereum Classic Emerald Wallet.

Developed by ETCDEV Team.

Features

General

  • ❏ Accounts (In Progress)

  • ❏ Address books

  • ❏ Transactions signing (In Progress)

  • ❏ C interface (ABI)

Transport

  • ❏ IPC

  • ✓ HTTP

  • ❏ WebSockets

Roadmap

MVP (Mar'17, In Progress)

Basic version with minimal features for developers just to build and run on local machine.

Internal Beta (Apr'17)

Internal version with general features for testing and for early DApp adopters.

Public Beta (May'17)

First public release.

Prerequisites

Ensure you have these dependencies installed:

openssl gcc pkgconfig libudev

We recommend to use parity as ethereum classic node:

$ cargo install --git https://github.com/ethcore/parity.git --branch stable --force parity

How to run parity locally in development mode (v1.5+) on port '8545' (by default):

$ parity --chain dev --no-discovery --no-ui --no-ipc --no-dapps --rpccorsdomain "*" --jsonrpc-apis "web3,eth,net,personal,parity,parity_set,traces,rpc,parity_accounts"

Installation

Ensure you have these dependencies installed:

openssl gcc pkgconfig
$ git clone https://github.com/ethereumproject/emerald-rs

Usage

How to run emerald connector (on port '1920' by default) on top of ethereum classic node:

$ RUST_LOG=emerald,rpc cargo run

For more details look at usage.

Examples

TBD, just a first design prototype:

extern crate emerald;

use emerald::Client
use emerald::transport::Http;

fn main() {
  let etc = Client::new(Http::new("http://localhost:8545").unwrap());

  println!("Accounts: {:?}", etc.eth().accounts().unwrap());
}

For more see examples folder.

License

Apache 2.0

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.