Skip to content

Commit b04de48

Browse files
author
rocky
committed
Get ready for release v2.0.0
1 parent 3fe8dc2 commit b04de48

File tree

3 files changed

+96
-3
lines changed

3 files changed

+96
-3
lines changed

NEWS.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,86 @@
1+
Release 2.0.0
2+
=================
3+
4+
A lot has changed in the almost two weeks that have
5+
elapsed since the last release.
6+
7+
Changes for Mythx API 1.4
8+
-------------------------------
9+
10+
Perhaps the biggest change is that we now support version 1.4.0 of the MythX API.
11+
This means various authentication options involving an API key or an email address
12+
are no longer supported.
13+
14+
There were some smaller changes in the back end and the
15+
acceptable way to interact with the back-end protocol has been adjusted.
16+
17+
18+
Geometrically-increasing delays in polling
19+
-----------------------------------------------------
20+
21+
We noticed that there was a lot of overhead created on the back end caused by
22+
polling for analysis status. Taking a cue from how the Ethernet
23+
handles congestion, successive polls are now spaced more widely.
24+
25+
For applications which use MythX through armlet, when they can predict
26+
the likely time interval for the contract submitted, they will be
27+
rewarded with a reduced delay in noticing that results are ready on the back-end.
28+
29+
Parameter `initial-delay` was added. This is the minimum amount of
30+
time that this library waits before attempting its first status poll
31+
when the results are not already cached.
32+
33+
You can read about improving polling response [here](https://github.com/ConsenSys/armlet/#improving-polling-response).
34+
35+
36+
Introducing command-line utility "mythx-analysis"
37+
-------------------------------------------------------------
38+
39+
The "example" program `analysis` is now called `mythx-analysis` and it
40+
is installed as a standalone command-line utility.
41+
42+
It is more full featured:
43+
44+
* it supports more armlet library options,
45+
`--version`, `--timeout`, `--delay`, and `--debug`
46+
* it can accept Solidity source code and will run `solc` to compile the source before passing
47+
on to MythX
48+
49+
Sample Solidity contracts now appear in `example/solidity-files`
50+
51+
52+
Library changes not mentioned above
53+
--------------------------------------------
54+
55+
An additional analysis option `debug` is available. With this, you
56+
can get more information about what is going on in armlet. Setting
57+
`debug` to a numeric value of 2 or more gives more-verbose
58+
output.
59+
60+
61+
Getting a list of past analyses is not allowed as a trial user, as
62+
is now noted in the response. We suggest a suitable course of action
63+
(registering) and supply a link to do so.
64+
65+
Some small URL canonicalization is now done. In particular you can add a trailing slash
66+
to the HTTP host `https://api.mythix.io/` and that is the same things as `https://api.mythix.io`.
67+
68+
Similarly `http` will be turned into `https` when appropriate.
69+
70+
There is now proxy support via
71+
[`omni-fetch`](https://www.npmjs.com/package/omni-fetch) which is a
72+
wrapper to
73+
[`isomorphic-fetch`](https://www.npmjs.com/package/isomorphic-fetch). This
74+
work was kindly contributed by Teruhiro Tagomori at NRISecure.
75+
76+
Additional tests were added and test-code coverage has been
77+
increased. This is the work of Daniyar Chambylov at Maddevs.
78+
79+
Some time units are shown in a more human-friendly way. There are numerous other small documentation and code improvements.
80+
81+
Older Releases
82+
=================
83+
184
v1.2.1 - 2019-02-06
285
-----------------------
386

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,22 @@ It can be used to run MythX analyses on a single Solidity smart-contract text fi
1313

1414
# Installation
1515

16-
Just as with any nodejs package, install with:
16+
To install the latest stable version from NPM:
1717

1818
```
19-
$ npm install armlet
19+
$ npm -g install armlet
2020
```
2121

22+
If you're feeling adventurous, you can also install the from the master branch:
23+
24+
```
25+
$ npm install -g git+https://[email protected]/ConsenSys/armlet.git
26+
```
27+
28+
The `-g` or `--global` option above may not be needed depending on how
29+
you work. It my ensuring `mythx-analysis` is in your path where it might not
30+
otherwise be there.
31+
2232
# Example
2333

2434
Here is a small example of how you might use this client. For

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "armlet",
3-
"version": "2.0.0-git",
3+
"version": "2.0.0",
44
"description": [
55
"Armlet is a thin wrapper around the MythX API written in Javascript.",
66
"It simplifies interaction with MythX. For example, the library",

0 commit comments

Comments
 (0)