You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2025. It is now read-only.
- An [example](examples/ConstantinopleGasUsage) that can automatically reproduce [the Constantinople gas usage discrepancy](https://github.com/paritytech/parity-ethereum/pull/9746) that caused a hard-fork on Ropsten in October of 2018
14
+
- More client integrations and support
15
+
- Support for JSON RPC clients that have no local accounts and only accept signed raw transactions
16
+
- Support for saving and loading genesis files
17
+
- Support for Geth with either an autogenerated or user-provided genesis
18
+
- Support for Parity with either an autogenerated or user-provided genesis
19
+
- Automated transaction synchronization between chains (_e.g._, if clients are running with different genesis blocks)
20
+
- Improved automated testing
21
+
- Automated differential testing that reports differences between clients
22
+
- Integration with the [Echidna](https://github.com/trailofbits/echidna) EVM fuzzer
23
+
- Improved extensibility and user friendliness
24
+
- Client and Plugin API
25
+
- Logging framework with ANSI color on the terminal
26
+
- Optional log directory with client- and plugin-specific log files, including auto-generated scripts to re-run the clients
27
+
28
+
### Changed
29
+
30
+
- The [`BrokenMetaCoin` example](examples/BrokenMetaCoin) was improved by adding various utilities for interacting with Manticore
Copy file name to clipboardExpand all lines: README.md
+61-14Lines changed: 61 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,11 @@
5
5
<br />
6
6
7
7
8
-
Etheno is a JSON RPC multiplexer, analysis tool wrapper, and test integration tool. It eliminates the complexity of setting up analysis tools on large, multi-contract projects, like [Manticore](https://github.com/trailofbits/manticore/). In particular, custom Manticore analysis scripts require less code, are simpler to write, and integrate with Truffle.
8
+
Etheno is the Ethereum testing Swiss Army knife. It’s a JSON RPC multiplexer, analysis tool wrapper, and test integration tool. It eliminates the complexity of setting up analysis tools like [Manticore](https://github.com/trailofbits/manticore/) and [Echidna](https://github.com/trailofbits/echidna) on large, multi-contract projects. In particular, custom Manticore analysis scripts require less code, are simpler to write, and integrate with Truffle.
9
9
10
-
It is named after the Greek goddess [Stheno](https://en.wikipedia.org/wiki/Stheno), sister of Medusa, and mother of Echidna—which also happens to be the name of [our EVM property-based fuzz tester](https://github.com/trailofbits/echidna).
10
+
If you are a smart contract developer, you should use Etheno to test your contracts. If you are an Ethereum client developer, you should use Etheno to perform differential testing on your implementation. For example, Etheno is [capable of automatically reproducing](examples/ConstantinopleGasUsage) the Constantinople gas usage consensus bug that caused a fork on Ropsten.
11
+
12
+
Etheno is named after the Greek goddess [Stheno](https://en.wikipedia.org/wiki/Stheno), sister of Medusa, and mother of Echidna—which also happens to be the name of [our EVM property-based fuzz tester](https://github.com/trailofbits/echidna).
11
13
12
14
## Features
13
15
@@ -43,10 +45,8 @@ Alternatively, natively install Etheno in a few shell commands:
*`--port` or `-p` allows you to specify a port on which to run Etheno's JSON RPC server (default is 8545)
68
+
*`--port` or `-p` allows you to specify a port on which to run Etheno’s JSON RPC server (default is 8545)
69
69
*`--run-publicly` allows incoming JSON RPC connections from external computers on the network
70
70
*`--debug` will run a web-based interactive debugger in the event that an internal Etheno client throws an exception while processing a JSON RPC call; this should _never_ be used in conjunction with `--run-publicly`
71
71
*`--master` or `-s` will set the “master” client, which will be used for synchronizing with Etheno clients like Manticore. If a master is not explicitly provided, it defaults to the first client listed.
72
+
*`--raw`, when prefixed before a client URL, will cause Etheno to auto-sign all transactions and submit then to the client as raw transactions
73
+
74
+
### Geth and Parity Integration
75
+
76
+
A Geth and/or Parity instance can be run as a private chain with
77
+
*`--geth` or `-go` for Geth
78
+
*`--parity` or `-pa` for Parity
79
+
80
+
Each will be instantiated with an autogenerated genesis block. You may provide a custom `genesis.json` file in Geth format using the `--genesis` or `-j` argument. The genesis used for each run will automatically be saved to the log directory (if one is provided using the `--log-dir` option), or it can be manually saved to a location provided with the `--save-genesis` option.
81
+
82
+
The network ID of each client will default to 0x657468656E6F (equal to the string `etheno` in ASCII). This can be overridden with the `--network-id` or `-i` option.
83
+
84
+
EIP and hard fork block numbers can be set within a custom genesis.json as usual, or they may be specified as commandline options such as `--constantinople`.
72
85
73
86
### Ganache Integration
74
87
@@ -77,21 +90,41 @@ A Ganache instance can automatically be run within Etheno:
77
90
etheno --ganache
78
91
```
79
92
80
-
*`--ganache-port` will set the port on which Ganache is run; if omitted, Etheno will choose the lowest port higher than the port on which Etheno's JSON RPC server is running
93
+
*`--ganache-port` will set the port on which Ganache is run; if omitted, Etheno will choose the lowest port higher than the port on which Etheno’s JSON RPC server is running
81
94
*`--ganache-args` lets you pass additional arguments to Ganache
82
95
*`--accounts` or `-a` sets the number of accounts to create in Ganache (default is 10)
83
96
*`--balance` or `-b` sets the default balance (in Ether) to seed to each Ganache account (default is 100.0)
84
97
*`--gas-price` or `-c` sets the default gas price for Ganache (default is 20000000000)
85
98
99
+
### Differential Testing
100
+
101
+
Whenever two or more clients are run within Etheno, the differential
102
+
testing plugin will automatically be loaded. This plugin checks for a
103
+
variety of different discrepancies between the clients, such as gas
104
+
usage differences. A report is printed when Etheno exits.
105
+
106
+
This plugin can be disabled with the `--no-differential-testing` option.
107
+
108
+
### Property-Based Fuzz Testing
109
+
110
+
Echidna can be run to fuzz test the clients, which is useful for differential testing:
111
+
```
112
+
etheno --echidna
113
+
```
114
+
By default, Echidna deploys a generic fuzz testing contract to all clients, enumerates a minimal set of transactions that maximize the coverage of the contract, sends those transactions to the clients, and then exits.
115
+
116
+
*`--fuzz-limit` limits the number of transactions that Echidna will emit
117
+
*`--fuzz-contract` lets the user specify a custom contract for Echidna to deploy and fuzz
118
+
86
119
### Manticore Client
87
120
88
-
Manticore—which, by itself, does not implemnent a JSON RPC interface—can be run as an Etheno client, synchronizing its accounts with Etheno's master client and symbolically executing all transactions sent to Etheno.
121
+
Manticore—which, by itself, does not implemnent a JSON RPC interface—can be run as an Etheno client, synchronizing its accounts with Etheno’s master client and symbolically executing all transactions sent to Etheno.
89
122
```
90
123
etheno --manticore
91
124
```
92
125
This alone will not run any Manticore analyses; they must either be run manually, or automated through [the `--truffle` command](#truffle-integration);
93
126
94
-
*`--manticore-verbosity` sets Manticore's logging verbosity (default is 3)
127
+
*`--manticore-verbosity` sets Manticore’s logging verbosity (default is 3)
95
128
*`--manticore-max-depth` sets the maximum state depth for Manticore to explore; if omitted, Manticore will have no depth limit
96
129
97
130
### Truffle Integration
@@ -101,7 +134,7 @@ Truffle migrations can automatically be run within a Truffle project:
101
134
etheno --truffle
102
135
```
103
136
104
-
When combined with the `--manticore` option, this will automatically run Manticore's default analyses on all contracts created once the Truffle migration completes:
137
+
When combined with the `--manticore` option, this will automatically run Manticore’s default analyses on all contracts created once the Truffle migration completes:
105
138
```
106
139
etheno --truffle --manticore
107
140
```
@@ -117,6 +150,20 @@ This script does not need to import Manticore or create a `ManticoreEVM` object;
117
150
118
151
Additional arguments can be passed to Truffle using `--truffle-args`.
119
152
153
+
### Logging
154
+
155
+
By default, Etheno only prints log messages to the console with a log
156
+
level defaulting to `INFO`. An alternative log level can be specified
157
+
with `--log-level` or `-l`. You can specify a log file with the
158
+
`--log-file` option. In addition, you can provide the path to a
159
+
logging directory with `--log-dir` in which the following will be
160
+
saved:
161
+
* a complete log file including log messages at all log levels;
162
+
* separate log files for each Etheno client and plugin;
163
+
* the genesis file used to instantiate clients;
164
+
* a subdirectory in which each client and plugin can store additional files such as test results;
165
+
* a script to re-run Geth and/or Parity using the same genesis and chain data that Etheno used.
166
+
120
167
## Requirements
121
168
122
169
* Python 3.6 or newer
@@ -127,8 +174,8 @@ Additional arguments can be passed to Truffle using `--truffle-args`.
127
174
*[Truffle and Ganache](https://truffleframework.com/) for their associated integrations
128
175
*[Geth](https://github.com/ethereum/go-ethereum) and/or [Parity](https://github.com/paritytech/parity-ethereum), if you would like to have Etheno run them
129
176
*[Echidna](https://github.com/trailofbits/echidna), for smart contract fuzzing and differential testing
130
-
** Note that Etheno currently requires the features in the [`dev-no-hedgehog` branch](https://github.com/trailofbits/echidna/tree/dev-no-hedgehog); Etheno will prompt you to automatically install this when you try and run it the first time
131
-
** Running Echidna also requires the [`solc`](https://github.com/ethereum/solidity) compiler
177
+
* Note that Etheno currently requires the features in the [`dev-no-hedgehog` branch](https://github.com/trailofbits/echidna/tree/dev-no-hedgehog); Etheno will prompt you to automatically install this when you try and run it the first time
178
+
* Running Echidna also requires the [`solc`](https://github.com/ethereum/solidity) compiler
132
179
133
180
## Getting Help
134
181
@@ -142,4 +189,4 @@ Documentation is available in several places:
142
189
143
190
## License
144
191
145
-
Etheno is licensed and distributed under the [AGPLv3](LICENSE) license. [Contact us](mailto:[email protected]) if you're looking for an exception to the terms.
192
+
Etheno is licensed and distributed under the [AGPLv3](LICENSE) license. [Contact us](mailto:[email protected]) if you’re looking for an exception to the terms.
0 commit comments