Skip to content

sebastien1234/pricepeg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Syscoin Price Peg

The Syscoin Price Peg is a node server application that uses data from various FIAT/BTC and AltCoin/BTC market APIs (Fixer, Coinbase, Poloniex, Bittrex, etc.) to maintain a Syscoin "Alias Peg" for the Syscoin network. An Alias peg provides information to the network on how many Syscoins are needed to equal 1 unit of any other currency supported by the peg.

Installing

To install the Syscoin price peg you must first have NPM and Node installed (v7+). Clone the project contents and from the project folder in CLI run npm install. Next you'll want to modify dist/config.js and change the values there to ones representative of the environment you're hosting as a peg. Then in CLI simply run node dist/server to get the peg server up and running.

Building

Developers looking to build from source after making modifications need only run npm run build to rebuild the source and all new resources to dist.

Further Development

If you want to help please issue pull requests and they will readily be reviewed and accepted. All development changes should happen in /src folder. The project currently uses ES6 and [loose] Typescript with Node for the build process.

Planned improvements:

  1. Improve data request/caching pattern
  2. Improve build process- both for development and for release
  3. Implement local mongodb for peg history so server restarts don't lose history, or use aliashistory to display this information in a paginated way.
  4. Make History page prettier.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.9%
  • CSS 0.1%