Skip to content
Snippets Groups Projects
Commit 7126f8b5 authored by inso's avatar inso
Browse files

Rename to Duniter

parent 26173b11
No related branches found
No related tags found
No related merge requests found
Showing
with 5046 additions and 2085 deletions
<!-- Landscape | [![Code Health](https://landscape.io/github/ucoin-io/sakia/dev/landscape.svg?style=flat)](https://landscape.io/github/ucoin-io/sakia/dev) -->
<!-- Landscape | [![Code Health](https://landscape.io/github/duniter/sakia/dev/landscape.svg?style=flat)](https://landscape.io/github/duniter/sakia/dev) -->
![sakia logo](https://raw.github.com/ucoin-io/sakia/master/sakia.png)
![sakia logo](https://raw.github.com/duniter/sakia/master/sakia.png)
Sakia [![Coverage Status](https://coveralls.io/repos/ucoin-io/sakia/badge.svg?branch=dev)](https://coveralls.io/r/ucoin-io/sakia) [![Build Status](https://travis-ci.org/ucoin-io/sakia.svg?branch=travis)](https://travis-ci.org/ucoin-io/sakia) [![Build status](https://ci.appveyor.com/api/projects/status/nd7idaoi6s2fpsqy/branch/dev)](https://ci.appveyor.com/project/Insoleet/sakia/branch/dev) [![Translation status](http://weblate.ucoin.io/widgets/sakia/-/svg-badge.svg)](http://weblate.ucoin.io/engage/sakia/?utm_source=widget)
Sakia [![Coverage Status](https://coveralls.io/repos/duniter/sakia/badge.svg?branch=dev)](https://coveralls.io/r/duniter/sakia) [![Build Status](https://travis-ci.org/duniter/sakia.svg?branch=travis)](https://travis-ci.org/duniter/sakia) [![Build status](https://ci.appveyor.com/api/projects/status/nd7idaoi6s2fpsqy/branch/dev)](https://ci.appveyor.com/project/Insoleet/sakia/branch/dev) [![Translation status](http://weblate.duniter.io/widgets/sakia/-/svg-badge.svg)](http://weblate.duniter.io/engage/sakia/?utm_source=widget)
========
Python3 and PyQt5 Client for [uCoin](http://www.ucoin.io) project.
Python3 and PyQt5 Client for [duniter](http://www.duniter.org) project.
## Goal features
* Ucoin account management via wallets and communities
* duniter account management via wallets and communities
* Multi-currency
* Multi-community
* Multi-wallets
......@@ -35,9 +35,9 @@ Python3 and PyQt5 Client for [uCoin](http://www.ucoin.io) project.
* [pyqt5](http://www.riverbankcomputing.co.uk/software/pyqt/download5)
* [libsodium](http://doc.libsodium.org/installation/README.html)
* Python libraries dependencies :
* __ucoinpy__
* __duniterpy__
* General tips : use pyenv to build sakia, as described in the [wiki](https://github.com/ucoin-io/sakia/wiki/Cutecoin-install-for-developpers)
* General tips : use pyenv to build sakia, as described in the [wiki](https://github.com/duniter/sakia/wiki/Cutecoin-install-for-developpers)
### Build scripts
* Run __python3 gen_resources.py__ in sakia folder
......@@ -46,10 +46,10 @@ Python3 and PyQt5 Client for [uCoin](http://www.ucoin.io) project.
* The executable is generated in "build" folder, named "sakia"
### Download latest release
* Go to [current release](https://github.com/ucoin-io/sakia/releases)
* Go to [current release](https://github.com/duniter/sakia/releases)
* Download corresponding package to your operating system
* Unzip and start "sakia" :)
* Join our beta community by contacting us on [uCoin forum](http://forum.ucoin.io/)
* Join our beta community by contacting us on [duniter forum](http://forum.duniter.org/)
## License
This software is distributed under [GNU GPLv3](https://raw.github.com/ucoin-io/sakia/dev/LICENSE).
This software is distributed under [GNU GPLv3](https://raw.github.com/duniter/sakia/dev/LICENSE).
......@@ -3,7 +3,7 @@
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
cd $HOME/build/ucoin-io/sakia
cd $HOME/build/duniter-io/sakia
pyenv activate sakia-env
coverage -rm
......
......@@ -29,7 +29,7 @@ then
wget https://download.qt.io/official_releases/qt/5.5/5.5.1/qt-opensource-linux-x64-5.5.1.run
chmod +x qt-opensource-linux-x64-5.5.1.run
./qt-opensource-linux-x64-5.5.1.run --script $HOME/build/ucoin-io/sakia/ci/travis/qt-installer-noninteractive.qs
./qt-opensource-linux-x64-5.5.1.run --script $HOME/build/duniter-io/sakia/ci/travis/qt-installer-noninteractive.qs
wget http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsodium/libsodium13_1.0.1-1_amd64.deb
sudo dpkg -i libsodium13_1.0.1-1_amd64.deb
......
......@@ -3,7 +3,7 @@
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
cd $HOME/build/ucoin-io/sakia
cd $HOME/build/duniter-io/sakia
pyenv activate sakia-env
......
......@@ -11,7 +11,7 @@ then
sleep 3
fi
cd $HOME/build/ucoin-io/sakia
cd $HOME/build/duniter-io/sakia
pyenv activate sakia-env
coverage run --source=sakia.core,sakia.gui,sakia.models setup.py test
......@@ -3,11 +3,11 @@
Network -->o Node : Connect to node_received()
Network -> Node : Starts network discovery
activate Node
Node -> ucoinpy : HTTP GET peering/peers?leaves=true
Node -> duniterpy : HTTP GET peering/peers?leaves=true
alt "root" hash changed
loop "for all leaves changed"
activate Node
Node -> ucoinpy : HTTP GET peering/peers/leaf=leaf_hash
Node -> duniterpy : HTTP GET peering/peers/leaf=leaf_hash
end
end
Network <-- Node : node_received()
......
......@@ -8,7 +8,7 @@ ref over BmaAccess
(new block mined
since last caching)
end ref
BmaAccess -> ucoinpy : HTTP GET
BmaAccess -> duniterpy : HTTP GET
alt Rollback
BmaAccess -> BmaAccess : Find last block number rollbacked
ref over BmaAccess
......
ucoinpy>=0.20.dev0
duniterpy>=0.20.dev0
git+https://github.com/harvimt/quamash.git@gh45
asynctest
networkx
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -13,7 +13,7 @@
<file alias="home_icon">iconmonstr-home-icon.svg</file>
<file alias="add_account_icon">noun_7440_cc.svg</file>
<file alias="sakia_logo">logo.svg</file>
<file alias="ucoin_info_icon">noun_76373_cc.svg</file>
<file alias="duniter_info_icon">noun_76373_cc.svg</file>
<file alias="import_icon">noun_62479_cc.svg</file>
<file alias="network_icon">noun_21549_cc.svg</file>
<file alias="member_icon">iconmonstr-user-icon.svg</file>
......
......@@ -16,7 +16,7 @@
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="logo.svg"
inkscape:export-filename="/home/inso/code/ucoin/sakia/logo.png"
inkscape:export-filename="/home/inso/code/duniter/sakia/logo.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<metadata
......
......@@ -4,11 +4,11 @@ Created on 1 févr. 2014
@author: inso
"""
from ucoinpy.documents import Membership, SelfCertification, Certification, Revokation, BlockUID, Block
from ucoinpy.key import SigningKey
from ucoinpy.api import bma
from ucoinpy.api.bma import PROTOCOL_VERSION
from ucoinpy.api import errors
from duniterpy.documents import Membership, SelfCertification, Certification, Revokation, BlockUID, Block
from duniterpy.key import SigningKey
from duniterpy.api import bma
from duniterpy.api.bma import PROTOCOL_VERSION
from duniterpy.api import errors
import logging
import asyncio
......@@ -392,7 +392,7 @@ class Account(QObject):
if data:
registered = parsers[request](data)
tries += 1
except errors.UcoinError as e:
except errors.duniterError as e:
if e.ucode in (errors.NO_MEMBER_MATCHING_PUB_OR_UID,
e.ucode == errors.NO_MATCHING_IDENTITY):
if request == bma.wot.CertifiersOf:
......@@ -438,7 +438,7 @@ class Account(QObject):
block_data = await community.bma_access.simple_request(bma.blockchain.Current)
signed_raw = "{0}{1}\n".format(block_data['raw'], block_data['signature'])
block_uid = Block.from_signed_raw(signed_raw).blockUID
except errors.UcoinError as e:
except errors.duniterError as e:
if e.ucode == errors.NO_CURRENT_BLOCK:
block_uid = BlockUID.empty()
else:
......
......@@ -15,7 +15,7 @@ import asyncio
from pkg_resources import parse_version
from PyQt5.QtCore import QObject, pyqtSignal, QTranslator, QCoreApplication, QLocale
from ucoinpy.api.bma import API
from duniterpy.api.bma import API
from aiohttp.connector import ProxyConnector
from . import config
from .account import Account
......@@ -524,7 +524,7 @@ class Application(QObject):
connector = None
try:
with aiohttp.Timeout(15):
response = await aiohttp.get("https://api.github.com/repos/ucoin-io/sakia/releases", connector=connector)
response = await aiohttp.get("https://api.github.com/repos/duniter-io/sakia/releases", connector=connector)
if response.status == 200:
releases = await response.json()
latest = None
......
......@@ -12,7 +12,7 @@ from PyQt5.QtCore import QObject
from ..tools.exceptions import NoPeerAvailable
from .net.network import Network
from ucoinpy.api import bma, errors
from duniterpy.api import bma, errors
from .net.api.bma.access import BmaAccess
......@@ -21,7 +21,7 @@ class Community(QObject):
A community is a group of nodes using the same currency.
.. warning:: The currency name is supposed to be unique in sakia
but nothing exists in ucoin to assert that a currency name is unique.
but nothing exists in duniter to assert that a currency name is unique.
"""
def __init__(self, currency, network, bma_access):
"""
......@@ -168,7 +168,7 @@ class Community(QObject):
return block
else:
return None
except errors.UcoinError as e:
except errors.duniterError as e:
if e.ucode == errors.BLOCK_NOT_FOUND:
logging.debug(str(e))
return None
......@@ -203,7 +203,7 @@ class Community(QObject):
block = await self.bma_access.future_request(bma.blockchain.Block,
req_args={'number': block_number})
return block['membersCount']
except errors.UcoinError as e:
except errors.duniterError as e:
if e.ucode == errors.BLOCK_NOT_FOUND:
return 0
except NoPeerAvailable as e:
......@@ -224,7 +224,7 @@ class Community(QObject):
block = await self.bma_access.future_request(bma.blockchain.Block,
req_args={'number': block_number})
return block['medianTime']
except errors.UcoinError as e:
except errors.duniterError as e:
if e.ucode == errors.BLOCK_NOT_FOUND:
return 0
except NoPeerAvailable as e:
......@@ -281,7 +281,7 @@ class Community(QObject):
"""
Add a peer to the community.
:param peer: The new peer as a ucoinpy Peer object.
:param peer: The new peer as a duniterpy Peer object.
"""
self._network.add_root_node(node)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment