Backend for the TokenApp
Branch: master
Clone or download
Latest commit 42a5866 Oct 25, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Initial commit. Jul 15, 2017
gradle Update gradle wrapper to gradle 4.1 Aug 10, 2017
services Added IOTA USD from bitfinex Aug 18, 2017
.gitignore Removed and ignored reports/ Aug 10, 2017
LICENSE Create LICENSE Oct 25, 2017
README.md Update README.md Aug 9, 2017
build.gradle Fixed the maven repo for QR code lib. It's necessary to add the repo … Aug 9, 2017
database_schema.sql finished and tested IOTA bitfinex rates with 3 external machines Aug 20, 2017
deploy-rates.sh Updated deploy scripts Aug 10, 2017
deploy.sh
gradle.properties Initial commit. Jul 15, 2017
gradlew Initial commit. Jul 15, 2017
gradlew.bat Initial commit. Jul 15, 2017
settings.gradle Removed the commons module since it was not being used. Aug 9, 2017
solidity.sh separated minting into own standalone app Jul 31, 2017

README.md

modum.io Logo

modum.io TokenApp Backend

Description

This is the code for the modum token sale app backend, found under https://token.modum.io. For more information, visit https://modum.io/tokensale

API

Register/Send Email

POST /register

Payload: application/json

{
  "email": "investor@something.com"
}

Server sends email with link to /frontend/wallet/{generated confirmation token} and returns 201 CREATED.

Confirmation of Email

GET /register/{confirmation token}

Server sets confirmed to true and returns 200 OK

Address validation

Ethereum address:

GET /address/eth/{address}/validate

Bitcoin address:

GET /address/btc/{address}/validate

Server returns 200 OK if it's a valid address. Otherwise, it returns 5xx.

Save the address

The address refers to the user's Ethereum wallet.

POST /address

Headers: Authorization: Bearer <token>

Payload: application/json

{
  "address": "0xcd2a3d9f938e13cd947ec05abc7fe734df8dd82", // Ether address
  "refundBTC": "1BoatSLRHtKNngkdXEeobR76b53LETtpyT", // Refund bitcoin address
  "refundETH": "0xcd2a3d9f938e13cd947ec05abc7fe734df8dd82" // Refund ethereum address
}

Returns: application/json

{
  "eth": "0xcd6f39a8b....", // Pay-in address for ether
  "btc": "1BoatSLRHtKNngkdXEeobR76b53LETtpyT" // Pay-in address for btc
}