Skip to content

Commit

Permalink
Review docs; new package
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabemonnot committed Aug 27, 2020
1 parent b76d486 commit d24f35b
Show file tree
Hide file tree
Showing 49 changed files with 16,981 additions and 2 deletions.
Binary file removed dist/beaconrunner-0.1.2-py3-none-any.whl
Binary file not shown.
Binary file removed dist/beaconrunner-0.1.2.tar.gz
Binary file not shown.
Binary file added dist/beaconrunner-0.1.3-py3-none-any.whl
Binary file not shown.
Binary file added dist/beaconrunner-0.1.3.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Welcome to beaconrunner's documentation!
.. toctree::
:caption: Contents:

brlib
simulator
BRValidator
validators

Expand Down
5 changes: 5 additions & 0 deletions docs/source/simulator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
simulator
=========

.. automodule:: beaconrunner.simulator
:members:
4 changes: 4 additions & 0 deletions docs/source/sph/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8ef939fa1076f4197d3cde99c9c5847b
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added docs/source/sph/.doctrees/BRValidator.doctree
Binary file not shown.
Binary file added docs/source/sph/.doctrees/brlib.doctree
Binary file not shown.
Binary file added docs/source/sph/.doctrees/environment.pickle
Binary file not shown.
Binary file added docs/source/sph/.doctrees/index.doctree
Binary file not shown.
Binary file added docs/source/sph/.doctrees/simulator.doctree
Binary file not shown.
Binary file added docs/source/sph/.doctrees/validatorlib.doctree
Binary file not shown.
Binary file added docs/source/sph/.doctrees/validators.doctree
Binary file not shown.
412 changes: 412 additions & 0 deletions docs/source/sph/BRValidator.html

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions docs/source/sph/_modules/beaconrunner/simulator.html

Large diffs are not rendered by default.

867 changes: 867 additions & 0 deletions docs/source/sph/_modules/beaconrunner/validatorlib.html

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions docs/source/sph/_modules/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@

<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Overview: module code &#8212; beaconrunner 0.1.2 documentation</title>
<link rel="stylesheet" href="../_static/nature.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/language_data.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">beaconrunner 0.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Overview: module code</a></li>
</ul>
</div>

<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">

<h1>All modules for which code is available</h1>
<ul><li><a href="beaconrunner/simulator.html">beaconrunner.simulator</a></li>
<li><a href="beaconrunner/validatorlib.html">beaconrunner.validatorlib</a></li>
</ul>

<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script>$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">beaconrunner 0.1.2 documentation</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Overview: module code</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2020, Barnabé Monnot.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.1.2.
</div>
</body>
</html>
5 changes: 5 additions & 0 deletions docs/source/sph/_sources/BRValidator.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BRValidator
===========

.. autoclass:: beaconrunner.validatorlib.BRValidator
:members:
File renamed without changes.
21 changes: 21 additions & 0 deletions docs/source/sph/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. beaconrunner documentation master file, created by
sphinx-quickstart on Thu Jul 9 14:44:18 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to beaconrunner's documentation!
========================================

.. toctree::
:caption: Contents:

simulator
BRValidator
validators

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
5 changes: 5 additions & 0 deletions docs/source/sph/_sources/simulator.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
simulator
=========

.. automodule:: beaconrunner.simulator
:members:
2 changes: 2 additions & 0 deletions docs/source/sph/_sources/validatorlib.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
validatorlib
============
11 changes: 11 additions & 0 deletions docs/source/sph/_sources/validators.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
validators
==========

Validator behaviours subclass :py:class:`beaconrunner.validatorlib.BRValidator` and use attributes exposed in `self.data` (of type :py:class:`beaconrunner.validatorlib.ValidatorData`) to make decisions.
Subclasses of `BRValidator` must define at least two methods:

- `attest(self, known_items) -> Optional[Attestation]`
- `propose(self, known_items) -> Optional[Attestation]`

.. automodule:: beaconrunner.validators
:members:
Loading

0 comments on commit d24f35b

Please sign in to comment.