0.1.15 • Published 2 years ago

oscillo-widgets v0.1.15

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
2 years ago

oscillo-widgets

Trade widget for oscillo

NPM JavaScript Style Guide

Install

npm install --save oscillo-widgets

Usage

import React, { Component } from 'react'

import { TradeWidget } from 'oscillo-widgets'
import 'oscillo-widgets/dist/index.css'

// Web3 provider as described in the requirements above
import { provider } from './your/provider'

// Infura endpoint
const jsonRpcEndpoint = 'https://mainnet.infura.io/v3/<YOUR_INFURA_PROJECT_ID>'

class Example extends Component {
  render() {
      <TradeWidget
          account={account}
          provider={provider}
          jsonRpcEndpoint={jsonRpcEndpoint}
      />
  }
}