Skip to content
No description, website, or topics provided.
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.
doc_styles Finished documentations Jul 19, 2018
packages hotfix Apr 29, 2019
.gitignore
@zapjs Documentation.zip Web3 36 (#51) Sep 25, 2018
README.md - Update documentation Sep 12, 2018
contractsPorting.js - Pass all tests with RC2 Aug 10, 2018
docstsconfig.json - Update docs with newest code Aug 10, 2018
lerna.json - Added Arbiter tests Jul 14, 2018
package.json Token dot factory (#74) Apr 15, 2019
readmeTemp.md
tsconfig.json Use ES2018 for the compiled packages Aug 15, 2018

README.md

ZAP

ZAP Oracles (introduction here)

ZAP-Monorepo

This repository provides Interface to Zap contracts and tools to use Zap platform with Javascript projects Each package is a public npm module that serve developer's needs to intergrate Zap platform

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes

Prerequisites

- Nodejs and npm>=6.1.11
- Lerna
- Typescript

Installing

  • Installs lerna (used for package bundling) and typescript, as well as all build dependencies.
npm install lerna typescript
npm install

Running build and tests

  • Packages and installs all dependencies (including @zapjs packages) in the root node_modules folder, and compiles all Typescript files.
npm run build

  • Runs mocha unit tests for all packages.
npm run test

Running build and tests for a singular package

  • Developing in single package
cd packages/{package_name}
npm run build
npm run test
  • Running build and test
npm run run_test

Packages

Usage

Creating a Zap Provider oracle
npm install `@zapjs/provider`
import {ZapProvider, ProviderHandler} from '@zapjs/provider';
let myZapProvider = new ZapProvider({owner:address});

With Custom configuration

let myZapProvider = new ZapProvider({owner:address});

Some example for provider usage

await myZapProvider.initiateProvider({
    public_key:111,
    title: "testTitle",
    endpoint: "testEndpoint",
    endpoint_params : ["p1","p2"]
})

const thisConstants = []
const thisParts = []
const thisDividers = []
await myZapProvider.initiateProviderCurve({
    endpoint :"testEndpoint",
    constants : thisConstants,
    parts : thisParts,
    dividers : thisDividers
})



See more Usages of each packages :

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

See also the list of contributors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

You can’t perform that action at this time.