Skip to content

Orchid Token Ledger and Probabilistic Micropayments

License

Notifications You must be signed in to change notification settings

jsbcannell/orchid-eth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orchid Ethereum Protocol

This repo contains the Orchid Ethereum smart contract source code, a simple JS wrapper for interfacing with those contracts as well as assorted scripts and documentation.

The Orchid Protocol uses Ethereum for:

  • Probablistic Micropayments (contracts/MicroPay.sol)
  • The Orchid Token ERC20 Ledger (contracts/OCT.sol)
  • Orchid Token Lockup (for Orchid Labs, founders and other stakeholders) (contracts/lockup.sol)

This is a truffle repository (see dependencies) and the Orchid smart contracts are written in solidity.

Integration

Orchid Token Ledger

Micropayments

  • See test/example.js
  • Note that creation and validation of micropayment tickets are done off-chain. On-chain operations include funding the sender's ticket and penalty escrow accounts, claiming of tickets (enforces validation) and sender withdrawing their locked up tokens.

Dependencies

Build & Test

Dependencies:

npm install -g ethereumjs-testrpc
npm install -g truffle

Launch testrpc:

testrpc -d --network-id 42

In another terminal:

cd orchid-eth
npm install
truffle compile && truffle test

(if solidity code is not changed 'truffle test' is enough)

API

TODO add when stable

About

Orchid Token Ledger and Probabilistic Micropayments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%