GithubHelp home page GithubHelp logo

ethrun's Introduction

ETHRUN(1)              DappHub Development Tools               ETHRUN(1)


NAME
	ethrun - directly run EVM bytecode
SYNOPSIS
        { [echo <bytecode>;]... } | ethrun [<calldata>...]

DESCRIPTION
	Ethrun sets up a minimal Parity environment, deploys one or
	more contracts, sends zero or more transactions to the last
	one and then prints the results to stdout in JSON format.

OUTPUT
        Ethrun outputs a JSON array in which the outcome of each
        transaction is represented like in the following example:

	   [{
             "success": true,
             "output": "",
             "logs": [],
	   }, {
             "success": true,
             "output": "0000000000000000...0000000000000001",
             "logs": [{
               "address": "5185630e41e8b32...c87aa735a24f3f6",
               "data": "0000000000000000...0000000032a0ead3",
               "topics": [
                 "6ee2ab87ef1bfa44...e959a6b0a190be6c",
                 "0000000000000000...0000000000000000"
               ],
             }],
	   }]

	The first elements of the array represent the transactions by
	which the contracts were deployed, and the remaining elements
        represent the transactions sent to the last-deployed contract.

INSTALLATION
	Use `make link' to install from source:

	   git clone https://github.com/dapphub/ethrun
	   make link -C ethrun

SEE ALSO
	parity(1), ethabi(1), seth(1), dapp(1)



ETHRUN(1)                      April 2017                      ETHRUN(1)

ethrun's People

Contributors

dbrock avatar dev-kpyc avatar mbrock avatar mhhf avatar rainbreak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ethrun's Issues

libudev required

Running make link -C ethrun on Ubuntu results in a failure while building hidapi due to a missing libudev.h. The libudev-dev package needs to be installed on Ubuntu for installation using the current instructions to succeed.

Add --version flag

This would help with debugging user issues. Maybe commit hash as well.

installation fails with compiler error using rustc 1.17.0 (and higher)

~/.cargo/registry/src/github.com-1ecc6299db9ec823/syntex_syntax-0.33.0/src/ext/base.rs:487:33
    |
487 |                                 ext::quote::expand_quote_item));
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected concrete lifetime, found bound lifetime parameter 'cx
    |
    = note: expected type `fn(&'cx mut ext::base::ExtCtxt<'_>, codemap::Span, &[ast::TokenTree]) -> std::boxed::Box<ext::base::MacResult + 'cx>`
               found type `fn(&mut ext::base::ExtCtxt<'_>, codemap::Span, &[ast::TokenTree]) -> std::boxed::Box<ext::base::MacResult> {ext::quote::expand_quote_item::<'_>}`
    = note: lifetime parameter `'cx` declared on fn `ext::quote::expand_quote_item` appears only in the return type, but here is required to be higher-ranked, which means that `'cx` must appear in both argument and return types
    = note: this error is the result of a recent bug fix; for more information, see issue #33685 <https://github.com/rust-lang/rust/issues/33685>

error: aborting due to previous error

error: Could not compile `syntex_syntax`.
Build failed, waiting for other jobs to finish...
error: build failed
Makefile:5: recipe for target 'all' failed

some related links:

environment:

  • rustc 1.17.0 (56124baa9 2017-04-24)

summary:

  • a recent change in rust-lang makes previously valid syntax throw an error
  • syntex_syntax isn't currently being maintened

what's a good version of rust to install that won't throw this error?

has anybody patched syntex_syntax to work properly?

ethcore-util build fails on Ubuntu

   Compiling ethcore-util v1.7.0 (https://github.com/paritytech/parity#125aa0ae)
error: use of unstable library feature 'retain_hash_collection' (see issue #36648)
   --> /home/ryepdx/.cargo/git/checkouts/parity-dc9825eb65b3adf1/125aa0a/util/src/memorydb.rs:106:13
    |
106 | 		self.data.retain(|_, &mut (_, rc)| rc != 0);
    | 		          ^^^^^^

error: aborting due to previous error

error: Could not compile `ethcore-util`.
Build failed, waiting for other jobs to finish...
error: build failed
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 101
make: Leaving directory '/home/ryepdx/Code/ethrun'

build problem

ethrun nikolai$ make
cargo build --release
   Compiling syntex_syntax v0.33.0
   Compiling rayon v0.4.3
   Compiling rlp v0.1.0 (https://github.com/ethcore/parity#33dd4916)
   Compiling num v0.1.36
   Compiling syntex_syntax v0.50.0
   Compiling ethcore-io v1.5.0 (https://github.com/ethcore/parity#33dd4916)
   Compiling rotor v0.6.3 (https://github.com/ethcore/rotor#e63d4513)
   Compiling ethcore-util v1.5.0 (https://github.com/ethcore/parity#33dd4916)
/Users/nikolai/.multirust/toolchains/stable/cargo/git/checkouts/parity-dd7fc9e0b8e32399/master/util/io/src/worker.rs:31:2: 31:16 error: no rules expected the token `#`
/Users/nikolai/.multirust/toolchains/stable/cargo/git/checkouts/parity-dd7fc9e0b8e32399/master/util/io/src/worker.rs:31 /// Stack size
                                                                                                                        ^~~~~~~~~~~~~~
Build failed, waiting for other jobs to finish...
/Users/nikolai/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/rayon-0.4.3/src/par_iter/internal.rs:96:47: 96:48 error: no rules expected the token `;`
/Users/nikolai/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/rayon-0.4.3/src/par_iter/internal.rs:96         thread_local!{ static ID: bool = false; }
                                                                                                                                                                                 ^
/Users/nikolai/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/syntex_syntax-0.50.0/src/attr.rs:35:68: 35:69 error: no rules expected the token `;`
/Users/nikolai/.multirust/toolchains/stable/cargo/registry/src/github.com-88ac128001ac3a9a/syntex_syntax-0.50.0/src/attr.rs:35     static USED_ATTRS: RefCell<Vec<u64>> = RefCell::new(Vec::new());
                                                                                                                                                                                                  ^
^Cmake: *** [all] Interrupt: 2

Building and installing need to be run with different privileges

make link:

cargo build --release
    Finished release [optimized] target(s) in 0.0 secs
ln -s /home/jbrown/ethrun/target/release/ethrun /usr/local/bin/
ln: failed to create symbolic link '/usr/local/bin/ethrun': Permission denied
Makefile:6: recipe for target 'link' failed
make: *** [link] Error 1

sudo make link

make: Entering directory '/home/jbrown/ethrun'
cargo build --release
Unable to update https://github.com/paritytech/parity#33dd4916

To learn more, run the command again with --verbose.
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 101
make: Leaving directory '/home/jbrown/ethrun'

I had to run the following command manually:

sudo ln -s /home/jbrown/ethrun/target/release/ethrun /usr/local/bin/

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.