Skip to content

Instantly share code, notes, and snippets.

Simple Gatewayd User's Guide

Gatewayd connects transactions outside the ripple network to transactions on the ripple ledger. When you record a payment that occured external to the ripple ledger that payment sent as a corresponding ripple payment. To match an external payment from one of your users to a ripple payment, first register that user's ripple address in the system, and record the external payment in the external account for that user:

Command Line
bin/gateway register_user <username> <password> <ripple_address>
@diegovdev
diegovdev / centos-bitcoind-guide.md
Last active August 29, 2015 14:25 — forked from janx/centos-bitcoind-guide.markdown
Install bitcoind 0.10 on CentOS 6.6

##RPM Packages##

sudo yum install qt-devel protobuf-devel qrencode-devel

##Switch to user bitcoind##

sudo useradd bitcoind
sudo su - bitcoind
mkdir bitcoind

mkdir bitcoind/deps

@diegovdev
diegovdev / outbound.md
Last active August 29, 2015 14:26 — forked from owenkellogg/outbound.md
Gatewayd Protocol Outbound External

Gatewayd Protocol Outbound External

Purpose: To discover the interface for Gateway Services Protocol to be extended per a given use case

In gatewaydfile.js:

module.exports = function(gatewayd) {

  gatewayd.protocol.external.outbound.extend({
@diegovdev
diegovdev / connecting_crypto_currencies.md
Last active August 29, 2015 14:26 — forked from owenkellogg/connecting_crypto_currencies.md
connecting crypto currencies outline.

Part 1: Bitcoin

@diegovdev
diegovdev / gatewayd_heroku.md
Last active August 29, 2015 14:26 — forked from owenkellogg/gatewayd_heroku.md
gatewayd on heroku

Gatewayd is designed to work with Heroku:

git clone https://github.com/ripple/gatewayd.git
cd gatewayd
heroku create my-great-gateway-app
git push heroku master
heroku addons:add heroku-postgresql
heroku config:set KEY=mysup3rs3cr3t@ap!k3y
heroku ps:scale web=1

Gatewayd Improvement Proposal

Gatewayd is a transaction processing engine designed by engineers at Ripple Labs in order to build bridges in and out of the Ripple network.

The following is intended to be a complete proposal for version 4.0 of gatewayd, which is currently in use in several places as version 3.x. This proposal includes breaking changes but the spirit and many design features of gatewayd 3.x remain.

**** Please leave thoughts and suggestions in the comments below as we design the spec ****

@diegovdev
diegovdev / gateway_errors_story.md
Last active August 29, 2015 14:26 — forked from owenkellogg/gateway_errors_story.md
Gatewayd Errors Story

Gatewayd is an HTTP / JSON API server that provides functionality enabling any user of the software to operate a Ripple Gateway. The REST interface is composed of nearly forty endpoints, for which the required parameters and successful responses are documented. However there are very few if any appropriate error messages returned to the API caller when an invalid request is made, or when gatewayd experiences a software exception.

  1. Enumerate all the various errors that can be returned from the Gatewayd API.

  2. Write mocha specs for the HTTP API that test error cases and assert properly formatted errors.

  3. Implement proper error generation in the API Core layer, and propagate the errors to the HTTP API layer.

Error reporting of Gatewayd with as much robustness as provided by the tasks listed will dramatically improve the experience for engineers creating integrations with Gatewayd and plugin modules for additional Gatewayd functionality.

@diegovdev
diegovdev / install_rippled.sh
Last active August 29, 2015 14:26 — forked from owenkellogg/install_rippled.sh
rippled installation script
sudo apt-get update
sudo -y apt-get upgrade
## Install Boost
sudo apt-get -y install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev
wget -O boost_1_55_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz/download
tar xzvf boost_1_55_0.tar.gz
cd boost_1_55_0/
./bootstrap.sh --prefix=/usr/local
@diegovdev
diegovdev / install_rippled_2.sh
Last active August 29, 2015 14:26 — forked from owenkellogg/install_rippled_2.sh
rippled install ubuntu 14.04 aws
## Ubuntu 14.04 on AWS
sudo apt-get update
sudo -y apt-get upgrade
## Git
sudo apt-get -y install git
## Scons
sudo apt-get -y install scons

GENERAL REQUIREMENTS

  • sends payments to Ripple REST upon writing to a SQL table
  • verifies outbound payments using Ripple REST notifications
  • standard error messages for HTTP calls
  • ability to map one deposit to n outgoing ripple transactions
  • ability to map one incoming ripple transaction to n withdrawals
  • record external_transaction_id of deposit in n ripple transactions
  • record ripple_transaction_id of ripple_transaction in n withdrawals
  • query to return n outgoing ripple transactions given a deposit
  • query to return n withdrawals given incoming ripple transaction