Skip to content

Commit

Permalink
Clean up docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dourvaris committed Jan 24, 2018
1 parent 87ff1f2 commit 31dd078
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -110,7 +110,7 @@ Known Accounts / Constants
Development
==========
===========

Setup
-----
Expand Down
3 changes: 3 additions & 0 deletions raiblocks/accounts.py
Expand Up @@ -67,6 +67,7 @@ def bytes_to_xrb(value):
def hex_to_xrb(value):
"""
Encodes a hex string to xrb format
>>> xrb_encode(b'deadbeef')
b'utpuxur'
"""
Expand All @@ -77,6 +78,7 @@ def hex_to_xrb(value):
def xrb_to_bytes(value):
"""
Encodes an xrb string to bytes
>>> xrb_encode(b'ejkp4s54eokpe')
b'deadbeef'
"""
Expand All @@ -85,6 +87,7 @@ def xrb_to_bytes(value):
def xrb_to_hex(value):
"""
Encodes an xrb string to hex
>>> xrb_encode(b'utpuxur')
b'deadbeef'
"""
Expand Down
5 changes: 5 additions & 0 deletions raiblocks/conversion.py
Expand Up @@ -3,10 +3,15 @@
Gxrb = 1000000000000000000000000000000000raw, 10^33
Mxrb = 1000000000000000000000000000000raw, 10^30
kxrb = 1000000000000000000000000000raw, 10^27
xrb = 1000000000000000000000000raw, 10^24
mxrb = 1000000000000000000000raw, 10^21
uxrb = 1000000000000000000raw, 10^18
1 Mxrb used to be also called 1 Mrai
Expand Down

0 comments on commit 31dd078

Please sign in to comment.