Skip to content
Interledger CRO settlement engine (Proof of Concept)
TypeScript Dockerfile JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
bin
docs
src
.dockerignore
.gitignore
.prettierrc
Dockerfile
LICENSE
NOTICE
README.md
docker-compose.yml
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

CRO On-Ledger Settlement Engine

Settle Interledger payments using on-ledger CRO transfers

Prettier Apache 2.0 License

Install

npm install
npm run build

Run

DEBUG=settlement* npm start

Configuration

Optionally configure the settlement engine using these environment variables:

  • CRO_WALLET_NAME: The CRO wallet name
  • CRO_WALLET_PASSPHRASE: The CRO wallet passphrase
  • CLIENT_RPC_HOST: Hostname of the ClientRPC server.
  • CLIENT_RPC_PORT: Port of the ClientRPC server.
  • CONNECTOR_URL: URL of the connector's server dedicated to this settlement engine.
    • Default: http://localhost:7771
  • ENGINE_PORT: Port of the settlement engine server exposed to the connector (e.g. for triggering automated settlements).
    • Default: 3000
  • REDIS_URI: URI to communicate with Redis, typically in the format redis://[:PASSWORD@]HOST[:PORT][/DATABASE].
    • Default: 127.0.0.1:6379/1 (database index of 1 instead of 0)
    • Note: this settlement engine must use a unique Redis database index (or dedicated Redis instance) for security to prevent conflicting with the connector.
  • DEBUG: Pattern for printing debug logs. To view logs, settlement* is recommended.
You can’t perform that action at this time.