https://github.com/gotcha/testcounter
https://github.com/gotcha/testcounter
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gotcha/testcounter
- Owner: gotcha
- License: mit
- Created: 2015-01-20T16:08:34.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2015-01-21T09:46:46.000Z (over 10 years ago)
- Last Synced: 2025-01-19T17:14:03.897Z (5 months ago)
- Language: Python
- Size: 11.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/CounterpartyXCP/counterpartyd)
[](https://circleci.com/gh/CounterpartyXCP/counterpartyd)
[](https://coveralls.io/r/CounterpartyXCP/counterpartyd?branch=develop)# Description
`counterpartyd` is the reference implementation of the [Counterparty
Protocol](https://github.com/CounterpartyXCP/Counterparty).# Dependencies
* [Python 3](http://python.org)
* Python 3 [packages](https://github.com/CounterpartyXCP/counterpartyd/blob/master/pip-requirements.txt)
* [Patched Bitcoin Core](https://github.com/btcdrak/bitcoin/releases) with the following options set:```
rpcuser=bitcoinrpc
rpcpassword=$PASSWORD
txindex=1
server=1
addrindex=1
rpcthreads=1000
rpctimeout=300
```# Versioning
* Major version changes require a full (automatic) rebuild of the database.
* Minor version changes require a(n automatic) database reparse.
* All protocol changes are retroactive on testnet.# Installation
`pip install counterparty-lib`
or
```
git clone https://github.com/CounterpartyXCP/counterpartyd.git
cd counterpartyd
python setup.py install`
```# Example
```
from counterpartylib import server# initialise the server
db = server.initialise(...)# start synchronisation with the blockchain and RPC server
server.start_all(db)
```# Test suite
The test suite is invoked with `$ py.test` in the `counterpartylib` directory of the
repository.### Input and Output
* Quantities of divisible assets are written to eight decimal places.
* Quantities of indivisible assets are written as integers.
* All other quantities, i.e. prices, odds, leverages, feed values and target
values, fee multipliers, are represented internally as fractions, but printed
to four decimal places. Call prices are stored as integers with six decimal
places of precision.# Further Reading
* [Official Documentation](http://counterparty.io/docs/)
* [Wiki](https://github.com/CounterpartyXCP/Wiki/wiki)