New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@erasure/graph

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@erasure/graph

erasure graph wrapper

latest
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

@ERASURE/GRAPH V3

Rinkeby Explorer

  • Wrapper for erasure's the graph events
    yarn add @erasure/graph

USAGE

Initiate client

const ErasureGraph = require("@erasure/graph")
const client = new ErasureGraph(opts)
  • Optional OPTS argument:
  {ipfsOpts:{host:"",post:"",protocol:""}, network:client.NETWORKS.rinkeby}
  • If none is provided, infura ipfs will be provided

RETRIEVE DATA OF EVENTS

const feed = await client.feeds({id})
const allFeeds = await client.feeds()
const first100Feeds = await client.feeds({count:100})
const feedsOfCreator = await client.feeds({creator:"0x1234..."})

IPFS ACCESS

  • Check if a hash is revealed
const isRevealed:boolean = await client.isRevealed(hash)
  • Get data of a hash from ipfs
const data = await client.parseProofHash(hash)

EVENTS AVAILABLE

  • countdownGriefingEscrows
  • instanceCreatedCountdownGriefingEscrowFactories
  • cancelledCountdownGriefingEscrows
  • dataSubmittedCountdownGriefingEscrows
  • deadlineSetCountdownGriefingEscrows
  • finalizedCountdownGriefingEscrows
  • initializedCountdownGriefingEscrows
  • lengthSetCountdownGriefingEscrows
  • metadataSetCountdownGriefingEscrows
  • operatorUpdatedCountdownGriefingEscrows
  • paymentDepositedCountdownGriefingEscrows
  • stakeDepositedCountdownGriefingEscrows
  • stakeBurnedCountdownGriefingEscrows
  • depositDecreasedCountdownGriefingEscrows
  • depositIncreasedCountdownGriefingEscrows
  • countdownGriefings
  • instanceCreatedCountdownGriefingFactories
  • initializedCountdownGriefings
  • deadlineSetCountdownGriefings
  • lengthSetCountdownGriefings
  • ratioSetCountdownGriefings
  • depositDecreasedCountdownGriefings
  • depositIncreasedCountdownGriefings
  • griefedCountdownGriefings
  • operatorUpdatedCountdownGriefings
  • metadataSetCountdownGriefings
  • stakeAddedCountdownGriefings
  • stakeTakenCountdownGriefings
  • stakeBurnedCountdownGriefings
  • simpleGriefings
  • instanceCreatedSimpleGriefingFactories
  • depositDecreasedSimpleGriefings
  • depositIncreasedSimpleGriefings
  • griefedSimpleGriefings
  • initializedSimpleGriefings
  • metadataSetSimpleGriefings
  • operatorUpdatedSimpleGriefings
  • ratioSetSimpleGriefings
  • stakeAddedSimpleGriefings
  • stakeBurnedSimpleGriefings
  • feeds
  • instanceCreatedFeedFactories
  • hashSubmittedFeeds
  • initializedFeeds
  • operatorUpdatedFeeds
  • metadataSetFeeds
  • depositDecreasedFeeds
  • depositIncreasedFeeds

FAQs

Package last updated on 27 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts