Skip to content

Commit 91f93c9

Browse files
committed
refactor!: released version 2.0
- Dropped bundled distribution with `webpack` in favor of transpilation using `babel`. - Made `web3.js` a peer-dependency to avoid bloating the bundle size.
1 parent 934defb commit 91f93c9

File tree

98 files changed

+134982
-45168
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+134982
-45168
lines changed

.esdoc.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"source": "./src",
3+
"destination": "./docs",
4+
"plugins": [
5+
{
6+
"name": "esdoc-standard-plugin"
7+
},
8+
{
9+
"name": "esdoc-ecmascript-proposal-plugin",
10+
"option": {
11+
"all": true
12+
}
13+
}
14+
]
15+
}

.gitignore

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
# See https://help.github.com/ignore-files/ for more about ignoring files.
2-
31
# Dependencies
4-
/node_modules/
2+
node_modules/
53

64
# Testing
7-
/coverage/
5+
coverage/
86

97
# Production
10-
/umd/
11-
/es/
12-
/lib/
13-
/dist/
8+
umd/
9+
es/
10+
lib/
11+
dist/
1412

1513
# Logs
16-
/yarn-debug.log*
17-
/yarn-error.log*
14+
yarn-debug.log*
15+
yarn-error.log*
1816

1917
# Editors
20-
/.vscode/
21-
/.idea/*
18+
.vscode/
19+
.idea/*
2220

2321
# Misc
24-
/.DS_Store
22+
.DS_Store

.node-version

-1
This file was deleted.
628 Bytes
Binary file not shown.
408 Bytes
Binary file not shown.
Binary file not shown.
535 Bytes
Binary file not shown.

docs/_build/doctrees/archon.doctree

252 Bytes
Binary file not shown.
591 Bytes
Binary file not shown.

docs/_build/doctrees/evidence.doctree

18 Bytes
Binary file not shown.
758 Bytes
Binary file not shown.

docs/_build/doctrees/hashing.doctree

305 Bytes
Binary file not shown.
-35 Bytes
Binary file not shown.
Binary file not shown.

docs/_build/doctrees/index.doctree

-7 Bytes
Binary file not shown.

docs/_build/doctrees/ipfs.doctree

300 Bytes
Binary file not shown.
138 Bytes
Binary file not shown.

docs/_build/doctrees/tutorial.doctree

0 Bytes
Binary file not shown.

docs/_build/html/.buildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 75f5eab7a3edd5571381df83423030bb
3+
config: 8e36be88150c86b81e1e4b3a710876f2
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_build/html/_sources/getting-started.rst.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ Getting Started
77

88
1. Install Archon from NPM
99

10+
.. note:: As of v2.0.0 ``web3.js`` is a peer-dependency and should be installed alongside ``@kleros/archon``.
11+
1012
.. code-block:: javascript
1113
12-
yarn add @kleros/archon
14+
yarn add '@kleros/archon@^2.0.0' 'web3@^1.4.0'
1315
1416
2. Import Archon into your project
1517

docs/_build/html/_static/basic.css

+80-31
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -130,7 +130,7 @@ ul.search li a {
130130
font-weight: bold;
131131
}
132132

133-
ul.search li div.context {
133+
ul.search li p.context {
134134
color: #888;
135135
margin: 2px 0 0 30px;
136136
text-align: left;
@@ -277,25 +277,25 @@ p.rubric {
277277
font-weight: bold;
278278
}
279279

280-
img.align-left, .figure.align-left, object.align-left {
280+
img.align-left, figure.align-left, .figure.align-left, object.align-left {
281281
clear: left;
282282
float: left;
283283
margin-right: 1em;
284284
}
285285

286-
img.align-right, .figure.align-right, object.align-right {
286+
img.align-right, figure.align-right, .figure.align-right, object.align-right {
287287
clear: right;
288288
float: right;
289289
margin-left: 1em;
290290
}
291291

292-
img.align-center, .figure.align-center, object.align-center {
292+
img.align-center, figure.align-center, .figure.align-center, object.align-center {
293293
display: block;
294294
margin-left: auto;
295295
margin-right: auto;
296296
}
297297

298-
img.align-default, .figure.align-default {
298+
img.align-default, figure.align-default, .figure.align-default {
299299
display: block;
300300
margin-left: auto;
301301
margin-right: auto;
@@ -319,7 +319,8 @@ img.align-default, .figure.align-default {
319319

320320
/* -- sidebars -------------------------------------------------------------- */
321321

322-
div.sidebar {
322+
div.sidebar,
323+
aside.sidebar {
323324
margin: 0 0 0.5em 1em;
324325
border: 1px solid #ddb;
325326
padding: 7px;
@@ -377,12 +378,14 @@ div.body p.centered {
377378
/* -- content of sidebars/topics/admonitions -------------------------------- */
378379

379380
div.sidebar > :last-child,
381+
aside.sidebar > :last-child,
380382
div.topic > :last-child,
381383
div.admonition > :last-child {
382384
margin-bottom: 0;
383385
}
384386

385387
div.sidebar::after,
388+
aside.sidebar::after,
386389
div.topic::after,
387390
div.admonition::after,
388391
blockquote::after {
@@ -455,20 +458,22 @@ td > :last-child {
455458

456459
/* -- figures --------------------------------------------------------------- */
457460

458-
div.figure {
461+
div.figure, figure {
459462
margin: 0.5em;
460463
padding: 0.5em;
461464
}
462465

463-
div.figure p.caption {
466+
div.figure p.caption, figcaption {
464467
padding: 0.3em;
465468
}
466469

467-
div.figure p.caption span.caption-number {
470+
div.figure p.caption span.caption-number,
471+
figcaption span.caption-number {
468472
font-style: italic;
469473
}
470474

471-
div.figure p.caption span.caption-text {
475+
div.figure p.caption span.caption-text,
476+
figcaption span.caption-text {
472477
}
473478

474479
/* -- field list styles ----------------------------------------------------- */
@@ -503,6 +508,63 @@ table.hlist td {
503508
vertical-align: top;
504509
}
505510

511+
/* -- object description styles --------------------------------------------- */
512+
513+
.sig {
514+
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
515+
}
516+
517+
.sig-name, code.descname {
518+
background-color: transparent;
519+
font-weight: bold;
520+
}
521+
522+
.sig-name {
523+
font-size: 1.1em;
524+
}
525+
526+
code.descname {
527+
font-size: 1.2em;
528+
}
529+
530+
.sig-prename, code.descclassname {
531+
background-color: transparent;
532+
}
533+
534+
.optional {
535+
font-size: 1.3em;
536+
}
537+
538+
.sig-paren {
539+
font-size: larger;
540+
}
541+
542+
.sig-param.n {
543+
font-style: italic;
544+
}
545+
546+
/* C++ specific styling */
547+
548+
.sig-inline.c-texpr,
549+
.sig-inline.cpp-texpr {
550+
font-family: unset;
551+
}
552+
553+
.sig.c .k, .sig.c .kt,
554+
.sig.cpp .k, .sig.cpp .kt {
555+
color: #0033B3;
556+
}
557+
558+
.sig.c .m,
559+
.sig.cpp .m {
560+
color: #1750EB;
561+
}
562+
563+
.sig.c .s, .sig.c .sc,
564+
.sig.cpp .s, .sig.cpp .sc {
565+
color: #067D17;
566+
}
567+
506568

507569
/* -- other body styles ----------------------------------------------------- */
508570

@@ -629,14 +691,6 @@ dl.glossary dt {
629691
font-size: 1.1em;
630692
}
631693

632-
.optional {
633-
font-size: 1.3em;
634-
}
635-
636-
.sig-paren {
637-
font-size: larger;
638-
}
639-
640694
.versionmodified {
641695
font-style: italic;
642696
}
@@ -764,8 +818,13 @@ div.code-block-caption code {
764818
}
765819

766820
table.highlighttable td.linenos,
767-
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
768-
user-select: none;
821+
span.linenos,
822+
div.highlight span.gp { /* gp: Generic.Prompt */
823+
user-select: none;
824+
-webkit-user-select: text; /* Safari fallback only */
825+
-webkit-user-select: none; /* Chrome/Safari */
826+
-moz-user-select: none; /* Firefox */
827+
-ms-user-select: none; /* IE10+ */
769828
}
770829

771830
div.code-block-caption span.caption-number {
@@ -780,16 +839,6 @@ div.literal-block-wrapper {
780839
margin: 1em 0;
781840
}
782841

783-
code.descname {
784-
background-color: transparent;
785-
font-weight: bold;
786-
font-size: 1.2em;
787-
}
788-
789-
code.descclassname {
790-
background-color: transparent;
791-
}
792-
793842
code.xref, a code {
794843
background-color: transparent;
795844
font-weight: bold;

docs/_build/html/_static/classic.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- classic theme.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/

docs/_build/html/_static/doctools.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx JavaScript utilities for all documentation.
66
*
7-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -29,9 +29,14 @@ if (!window.console || !console.firebug) {
2929

3030
/**
3131
* small helper function to urldecode strings
32+
*
33+
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
3234
*/
3335
jQuery.urldecode = function(x) {
34-
return decodeURIComponent(x).replace(/\+/g, ' ');
36+
if (!x) {
37+
return x
38+
}
39+
return decodeURIComponent(x.replace(/\+/g, ' '));
3540
};
3641

3742
/**
@@ -285,22 +290,25 @@ var Documentation = {
285290
initOnKeyListeners: function() {
286291
$(document).keydown(function(event) {
287292
var activeElementType = document.activeElement.tagName;
288-
// don't navigate when in search box or textarea
293+
// don't navigate when in search box, textarea, dropdown or button
289294
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
290-
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
295+
&& activeElementType !== 'BUTTON' && !event.altKey && !event.ctrlKey && !event.metaKey
296+
&& !event.shiftKey) {
291297
switch (event.keyCode) {
292298
case 37: // left
293299
var prevHref = $('link[rel="prev"]').prop('href');
294300
if (prevHref) {
295301
window.location.href = prevHref;
296302
return false;
297303
}
304+
break;
298305
case 39: // right
299306
var nextHref = $('link[rel="next"]').prop('href');
300307
if (nextHref) {
301308
window.location.href = nextHref;
302309
return false;
303310
}
311+
break;
304312
}
305313
}
306314
});

docs/_build/html/_static/documentation_options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '0.1.0',
3+
VERSION: '2.0.0',
44
LANGUAGE: 'None',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

docs/_build/html/_static/language_data.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
* This script contains the language-specific data used by searchtools.js,
66
* namely the list of stopwords, stemmer, scorer and splitter.
77
*
8-
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
8+
* :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
99
* :license: BSD, see LICENSE for details.
1010
*
1111
*/
1212

1313
var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
1414

1515

16-
/* Non-minified version JS is _stemmer.js if file is provided */
16+
/* Non-minified version is copied as a separate JS file, is available */
17+
1718
/**
1819
* Porter Stemmer
1920
*/
@@ -199,7 +200,6 @@ var Stemmer = function() {
199200

200201

201202

202-
203203
var splitChars = (function() {
204204
var result = {};
205205
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,

docs/_build/html/_static/pygments.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pre { line-height: 125%; margin: 0; }
1+
pre { line-height: 125%; }
22
td.linenos pre { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
33
span.linenos { color: #000000; background-color: #f0f0f0; padding-left: 5px; padding-right: 5px; }
44
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }

0 commit comments

Comments
 (0)