Skip to content
This repository has been archived by the owner on May 3, 2019. It is now read-only.
/ papi Public archive

[DEPRECATED] Dockerized PeerAssets API service.

License

Notifications You must be signed in to change notification settings

PeerAssets/papi

Repository files navigation


PeerAssets
papi

A minimal PeerAssets API Flask.

Key FeaturesHow To UseTODO listDownloadCreditsRelatedLicense

Imgur

Key Features

  • Supports Deck Autoloading
    • Instantly locate all PeerAssets decks on host chain .
  • Supports Deck Subscription
    • Gives you the option to subscribe to all decks and downloads all relevant cards from the blockchain.
  • Restless
    • Provides a restless API endpoint. /restless/v1/
  • Mempool Tracking
    • Via walletnotify the server knows when relevant transactions are in the mempool or receive a network confirmation.
  • Postgres DB
  • Docker with peercoind container
  • Nginx server using uwsgi to server the Flask application

How To Use

To clone and run this application, you'll need Git and Docker. From your command line:

# Clone this repository
$ git clone https://github.com/peerassets/papi

# Go into the repository
$ cd papi

# Create this directory
$ mkdir -p /opt/papi/peercoin/

# Install and run
$ docker-compose up

TODO list

  • Scan for blockchain reorgs
    • Will remove relevant decks/cards from db and re-calculate deckstates.
  • Asynchronous Tasks with Flask and Redis Queue
    • Start the server and run deck/card loading simultaneously
  • Suppress Connection refused
    • POST requests to papi:5555/alert from walletnotify during peercoind load and before application has started.
  • Card parsers for all the protocol-defined issue modes
    • PeerAssets protocol defines various issue modes, papi needs them implemented.

Download

You can download latest installable version of papi for Linux.

Credits

This software uses code from several open source packages.

Related

PeerAssets - PeerAssets Whitepapaer

Support

Peercoin: PT2bYcAZn6pUUiFnaD7ETn71zEvATAPHWi

You may also like...

License

MIT