Skip to content

Commit

Permalink
Binary Release. v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
freQniK committed Nov 2, 2022
1 parent db7cdd6 commit e0acd9f
Show file tree
Hide file tree
Showing 16 changed files with 25,654 additions and 3 deletions.
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ Update Sentinel DVPN Node Prices with Market Changes

This is for dVPN node versions 0.3.2

# Install
# Install (binary)

Download the latest version of **dvpn_price** from our the releases page.



# Install (source)
```shell
sudo apt install python3-pip
sudo pip install toml pycoingecko
Expand All @@ -15,6 +21,9 @@ sudo pip install toml pycoingecko
It is no longer necessary to edit the file as we have provided command line arguments for the configuration. Please see below.

# Run

## Source

```shell
$ sudo python3 dvpn_price.py --help
usage: dvpn_price.py [-h] [-t twap] [-p price] [-u user]
Expand All @@ -34,9 +43,29 @@ optional arguments:

Where **days** in `--twap` is the number of days to average a price over based on market price of the coin for each previous day.

## Binary

```shell
$ sudo dvpn_price --help
usage: dvpn_price [-h] [-t twap] [-p price] [-u user]

dVPN Price Oracle for dVPN Node operators v0.3.2

optional arguments:
-h, --help show this help message and exit
-t twap, --twap twap Time Weighted Average Price. --twap days
-p price, --price price
Set the price per GB you would like to charge in USD.
i.e., --price 0.005
-u user, --user user Set the base directory where .sentinelnode/ exists
i.e., --user dvpn - implies (/home/dvpn/.sentinelnode)

```


## Example
```shell
sudo python3 dvpn_price.py --twap 10 --price 0.001 --user sentinel
sudo dvpn_price --twap 10 --price 0.001 --user sentinel
```

This will average the price of *OSMO, SCRT, ATOM, DEC, DVPN* over the last 10 days. It will set a price of *$0.001/GB* and change the **config.toml** in the directory `/home/sentinel/.sentinelnode/config.toml`
Expand All @@ -51,7 +80,7 @@ sudo crontab -e

Place the following line at the bottom of the file:
```
59 12 * * * python3 /home/sentinel/Scripts/dvpn_price.py --twap 14 --price 0.003 --user sentinel
59 12 * * * /home/sentinel/Scripts/dvpn_price --twap 14 --price 0.003 --user sentinel
```

This will update your sentinel node **config.toml** every day at 12:59 p.m.
Expand Down
1,413 changes: 1,413 additions & 0 deletions build/dvpn_price/Analysis-00.toc

Large diffs are not rendered by default.

272 changes: 272 additions & 0 deletions build/dvpn_price/EXE-00.toc
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
('/home/bubonic/git/freQniK/dvpn_price/dist/dvpn_price',
True,
False,
False,
None,
None,
False,
False,
None,
True,
True,
False,
None,
None,
None,
'/home/bubonic/git/freQniK/dvpn_price/build/dvpn_price/dvpn_price.pkg',
[('PYZ-00.pyz',
'/home/bubonic/git/freQniK/dvpn_price/build/dvpn_price/PYZ-00.pyz',
'PYZ'),
('struct',
'/home/bubonic/git/freQniK/dvpn_price/build/dvpn_price/localpycos/struct.pyo',
'PYMODULE'),
('pyimod01_os_path',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/loader/pyimod01_os_path.pyc',
'PYMODULE'),
('pyimod02_archive',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/loader/pyimod02_archive.pyc',
'PYMODULE'),
('pyimod03_importers',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/loader/pyimod03_importers.pyc',
'PYMODULE'),
('pyimod04_ctypes',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/loader/pyimod04_ctypes.pyc',
'PYMODULE'),
('pyiboot01_bootstrap',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/loader/pyiboot01_bootstrap.py',
'PYSOURCE'),
('pyi_rth_subprocess',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_subprocess.py',
'PYSOURCE'),
('pyi_rth_pkgutil',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_pkgutil.py',
'PYSOURCE'),
('pyi_rth_multiprocessing',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py',
'PYSOURCE'),
('pyi_rth_inspect',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/hooks/rthooks/pyi_rth_inspect.py',
'PYSOURCE'),
('dvpn_price',
'/home/bubonic/git/freQniK/dvpn_price/dvpn_price.py',
'PYSOURCE'),
('libexpat.so.1', '/lib/x86_64-linux-gnu/libexpat.so.1', 'BINARY'),
('libz.so.1', '/lib/x86_64-linux-gnu/libz.so.1', 'BINARY'),
('lib-dynload/_lzma',
'/usr/lib/python3.8/lib-dynload/_lzma.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_bz2',
'/usr/lib/python3.8/lib-dynload/_bz2.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_hashlib',
'/usr/lib/python3.8/lib-dynload/_hashlib.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/resource',
'/usr/lib/python3.8/lib-dynload/resource.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_opcode',
'/usr/lib/python3.8/lib-dynload/_opcode.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_posixshmem',
'/usr/lib/python3.8/lib-dynload/_posixshmem.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_multiprocessing',
'/usr/lib/python3.8/lib-dynload/_multiprocessing.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/termios',
'/usr/lib/python3.8/lib-dynload/termios.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_ssl',
'/usr/lib/python3.8/lib-dynload/_ssl.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_contextvars',
'/usr/lib/python3.8/lib-dynload/_contextvars.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_decimal',
'/usr/lib/python3.8/lib-dynload/_decimal.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/mmap',
'/usr/lib/python3.8/lib-dynload/mmap.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_ctypes',
'/usr/lib/python3.8/lib-dynload/_ctypes.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_queue',
'/usr/lib/python3.8/lib-dynload/_queue.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_multibytecodec',
'/usr/lib/python3.8/lib-dynload/_multibytecodec.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_codecs_jp',
'/usr/lib/python3.8/lib-dynload/_codecs_jp.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_codecs_cn',
'/usr/lib/python3.8/lib-dynload/_codecs_cn.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_codecs_kr',
'/usr/lib/python3.8/lib-dynload/_codecs_kr.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_codecs_hk',
'/usr/lib/python3.8/lib-dynload/_codecs_hk.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_codecs_iso2022',
'/usr/lib/python3.8/lib-dynload/_codecs_iso2022.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_codecs_tw',
'/usr/lib/python3.8/lib-dynload/_codecs_tw.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_asyncio',
'/usr/lib/python3.8/lib-dynload/_asyncio.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/readline',
'/usr/lib/python3.8/lib-dynload/readline.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('cryptography.hazmat.bindings._constant_time',
'/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/_constant_time.abi3.so',
'EXTENSION'),
('cryptography.hazmat.bindings._openssl',
'/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/_openssl.abi3.so',
'EXTENSION'),
('_cffi_backend',
'/usr/lib/python3/dist-packages/_cffi_backend.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('simplejson._speedups',
'/usr/lib/python3/dist-packages/simplejson/_speedups.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('lib-dynload/_json',
'/usr/lib/python3.8/lib-dynload/_json.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.core._multiarray_tests',
'/usr/lib/python3/dist-packages/numpy/core/_multiarray_tests.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.core._multiarray_umath',
'/usr/lib/python3/dist-packages/numpy/core/_multiarray_umath.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.sfc64',
'/usr/lib/python3/dist-packages/numpy/random/sfc64.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.philox',
'/usr/lib/python3/dist-packages/numpy/random/philox.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.pcg64',
'/usr/lib/python3/dist-packages/numpy/random/pcg64.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.mt19937',
'/usr/lib/python3/dist-packages/numpy/random/mt19937.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.bit_generator',
'/usr/lib/python3/dist-packages/numpy/random/bit_generator.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.generator',
'/usr/lib/python3/dist-packages/numpy/random/generator.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.mtrand',
'/usr/lib/python3/dist-packages/numpy/random/mtrand.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.bounded_integers',
'/usr/lib/python3/dist-packages/numpy/random/bounded_integers.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.random.common',
'/usr/lib/python3/dist-packages/numpy/random/common.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.fft._pocketfft_internal',
'/usr/lib/python3/dist-packages/numpy/fft/_pocketfft_internal.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.linalg._umath_linalg',
'/usr/lib/python3/dist-packages/numpy/linalg/_umath_linalg.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('numpy.linalg.lapack_lite',
'/usr/lib/python3/dist-packages/numpy/linalg/lapack_lite.cpython-38-x86_64-linux-gnu.so',
'EXTENSION'),
('liblzma.so.5', '/lib/x86_64-linux-gnu/liblzma.so.5', 'BINARY'),
('libbz2.so.1.0', '/lib/x86_64-linux-gnu/libbz2.so.1.0', 'BINARY'),
('libcrypto.so.1.1', '/lib/x86_64-linux-gnu/libcrypto.so.1.1', 'BINARY'),
('libssl.so.1.1', '/lib/x86_64-linux-gnu/libssl.so.1.1', 'BINARY'),
('libmpdec.so.2', '/lib/x86_64-linux-gnu/libmpdec.so.2', 'BINARY'),
('libffi.so.7', '/lib/x86_64-linux-gnu/libffi.so.7', 'BINARY'),
('libreadline.so.8', '/lib/x86_64-linux-gnu/libreadline.so.8', 'BINARY'),
('libtinfo.so.6', '/lib/x86_64-linux-gnu/libtinfo.so.6', 'BINARY'),
('libblas.so.3', '/lib/x86_64-linux-gnu/libblas.so.3', 'BINARY'),
('liblapack.so.3', '/lib/x86_64-linux-gnu/liblapack.so.3', 'BINARY'),
('libgfortran.so.5', '/lib/x86_64-linux-gnu/libgfortran.so.5', 'BINARY'),
('libquadmath.so.0', '/lib/x86_64-linux-gnu/libquadmath.so.0', 'BINARY'),
('libgcc_s.so.1', '/lib/x86_64-linux-gnu/libgcc_s.so.1', 'BINARY'),
('libpython3.8.so.1.0',
'/lib/x86_64-linux-gnu/libpython3.8.so.1.0',
'BINARY'),
('base_library.zip',
'/home/bubonic/git/freQniK/dvpn_price/build/dvpn_price/base_library.zip',
'DATA'),
('cryptography-2.8.egg-info/top_level.txt',
'/usr/lib/python3/dist-packages/cryptography-2.8.egg-info/top_level.txt',
'DATA'),
('cryptography-2.8.egg-info/not-zip-safe',
'/usr/lib/python3/dist-packages/cryptography-2.8.egg-info/not-zip-safe',
'DATA'),
('cryptography-2.8.egg-info/PKG-INFO',
'/usr/lib/python3/dist-packages/cryptography-2.8.egg-info/PKG-INFO',
'DATA'),
('cryptography-2.8.egg-info/requires.txt',
'/usr/lib/python3/dist-packages/cryptography-2.8.egg-info/requires.txt',
'DATA'),
('cryptography-2.8.egg-info/dependency_links.txt',
'/usr/lib/python3/dist-packages/cryptography-2.8.egg-info/dependency_links.txt',
'DATA'),
('certifi/cacert.pem',
'/usr/lib/python3/dist-packages/certifi/cacert.pem',
'DATA'),
('setuptools-45.2.0.egg-info/zip-safe',
'/usr/lib/python3/dist-packages/setuptools-45.2.0.egg-info/zip-safe',
'DATA'),
('setuptools-45.2.0.egg-info/top_level.txt',
'/usr/lib/python3/dist-packages/setuptools-45.2.0.egg-info/top_level.txt',
'DATA'),
('pip-20.0.2.egg-info/not-zip-safe',
'/usr/lib/python3/dist-packages/pip-20.0.2.egg-info/not-zip-safe',
'DATA'),
('wheel-0.34.2.egg-info/top_level.txt',
'/usr/lib/python3/dist-packages/wheel-0.34.2.egg-info/top_level.txt',
'DATA'),
('setuptools-45.2.0.egg-info/dependency_links.txt',
'/usr/lib/python3/dist-packages/setuptools-45.2.0.egg-info/dependency_links.txt',
'DATA'),
('wheel-0.34.2.egg-info/not-zip-safe',
'/usr/lib/python3/dist-packages/wheel-0.34.2.egg-info/not-zip-safe',
'DATA'),
('pip-20.0.2.egg-info/dependency_links.txt',
'/usr/lib/python3/dist-packages/pip-20.0.2.egg-info/dependency_links.txt',
'DATA'),
('wheel-0.34.2.egg-info/PKG-INFO',
'/usr/lib/python3/dist-packages/wheel-0.34.2.egg-info/PKG-INFO',
'DATA'),
('pip-20.0.2.egg-info/entry_points.txt',
'/usr/lib/python3/dist-packages/pip-20.0.2.egg-info/entry_points.txt',
'DATA'),
('wheel-0.34.2.egg-info/requires.txt',
'/usr/lib/python3/dist-packages/wheel-0.34.2.egg-info/requires.txt',
'DATA'),
('pip-20.0.2.egg-info/PKG-INFO',
'/usr/lib/python3/dist-packages/pip-20.0.2.egg-info/PKG-INFO',
'DATA'),
('pip-20.0.2.egg-info/top_level.txt',
'/usr/lib/python3/dist-packages/pip-20.0.2.egg-info/top_level.txt',
'DATA'),
('wheel-0.34.2.egg-info/dependency_links.txt',
'/usr/lib/python3/dist-packages/wheel-0.34.2.egg-info/dependency_links.txt',
'DATA'),
('wheel-0.34.2.egg-info/entry_points.txt',
'/usr/lib/python3/dist-packages/wheel-0.34.2.egg-info/entry_points.txt',
'DATA'),
('setuptools-45.2.0.egg-info/entry_points.txt',
'/usr/lib/python3/dist-packages/setuptools-45.2.0.egg-info/entry_points.txt',
'DATA'),
('setuptools-45.2.0.egg-info/PKG-INFO',
'/usr/lib/python3/dist-packages/setuptools-45.2.0.egg-info/PKG-INFO',
'DATA')],
[],
False,
False,
1667421046,
[('run',
'/home/bubonic/.local/lib/python3.8/site-packages/PyInstaller/bootloader/Linux-64bit-intel/run',
'EXECUTABLE')])
Loading

0 comments on commit e0acd9f

Please sign in to comment.