dapphub / ethrun Goto Github PK
View Code? Open in Web Editor NEWDirectly run EVM bytecode (using Parity technology)
Directly run EVM bytecode (using Parity technology)
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)
needed this to compile:
cargo update -p hyper:0.9.4 --precise 6baea9d444dd1652220ee9b4aeadaebb3de6a955
cargo update -p rotor --precise c1a2dd0046c5ea2517a5b637fca8ee2e77021e82
perhaps we can specify these in Cargo.toml
or Cargo.lock
?
โ ethrun git:(master) cargo build --release --verbose
Updating git repository `https://github.com/ethcore/parity`
error: failed to load source for a dependency on `ethcore-io`
Caused by:
Unable to update https://github.com/ethcore/parity#33dd4916
Caused by:
[4/-3] Revspec '33dd49160f364e348dbb6eb5e57d5839af832472' not found.
Repo moved to https://github.com/paritytech/parity
@dbrock @mbrock
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.
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/
This would help with debugging user issues. Maybe commit hash as well.
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'
~/.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:
summary:
syntex_syntax
isn't currently being maintenedwhat's a good version of rust to install that won't throw this error?
has anybody patched syntex_syntax
to work properly?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.