ZapProject
  • INTRODUCTION TO ZAP ORACLES
  • ZAP CONTRACTS
  • TOKEN DOTS FACTORY
  • TOOLS
    • ZapJS Packages
    • Zap-term
    • Zap Admin
  • FOR USERS
    • Bond/Unbond to Oracles
    • Getting data from Oracles
    • Subscriptions
    • Bond/Unbond to Token Dots
    • Templates
      • Onchain Subscriber Example
      • Offchain Subscriber Example
  • FOR DEVELOPERS
    • Creating Oracle
      • Oracle Template
      • Subscription-Oracle Template
      • Onchain Oracle Template
    • Bonding Curve
      • Curve Encoding
    • Token Providers
      • Token Dot Providers
      • Example Contest
Powered by GitBook
On this page
  • Installing ZapJs packages
  • GITHUB ZAPJS REPO

Was this helpful?

  1. TOOLS

ZapJS Packages

ZapJS packages are npm modules to help developers integrating Zap contracts

PreviousTOOLSNextZap-term

Last updated 6 years ago

Was this helpful?

Installing ZapJs packages

Yarn or node is required

$ yarn add @zapjs/provider 

Packages list :

  • zapjs

Once you installed the packages, you can use them to call ZAP Contracts :

// Example with @zapjs/provider package to create Oracle

import {ZapProvider} from "@zapjs/provider"
import * as Web3 from "web3"
const myWeb3 = new Web3("nodeURL")
const newOracle = new ZapProvider(yourAddress,{networkId:1,networkProvider:myWeb3})

For more docs on ZapJS packages, check out our github :

@zapjs/provider
@zapjs/subscriber
@zapjs/registry
@zapjs/bondage
@zapjs/dispatch
@zapjs/arbiter
@zapjs/zaptoken
GITHUB ZAPJS REPO