oscillo-widgets
TypeScript icon, indicating that this package has built-in type declarations

0.1.15 • Public • Published

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}
      />
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i oscillo-widgets

Weekly Downloads

1

Version

0.1.15

License

GPL-3.0-or-later

Unpacked Size

748 kB

Total Files

9

Last publish

Collaborators

  • oscillo