Skip to content

sCrypt-Inc/oracle-demo

Repository files navigation

oracle-demo

Vercel deployment of this Oracle service: https://oracle-demo.vercel.app/docs

A code example of how smart contract PriceBet uses this Oracle.

Installation

$ npm install

Running the app

Step 1. Create a .env file under the project root directory from template .env.example.

Generate RABIN_PRIV_P and RABIN_PRIV_Q with command npm run genRabinPrivKey.

Generate PRIVATE_KEY with command npm run genBsvPrivKey.

Step 2. Run this app with the following commands.

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Step 3. View Swagger docs at http://localhost:3000/docs

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published