position-uni-v3

3.1.3 • Public • Published

position-uni-v3

Made with create-react-library

NPM JavaScript Style Guide

Install (for single position)

npm install --save position-uni-v3@2.2.5

Install (mutil position for mutil address and having chain default not add chain new support)

npm install --save position-uni-v3@3.0.5

Install (mutil position for mutil address)

npm install --save position-uni-v3

Usage

//for version 3.0.5
import React,{useState,useEffect} from 'react'

import {  useFullListPosition} from 'position-uni-v3'
const ExamplePosition=()=>{
  //code ...
   const {isFinish,listData,resetHook} = useFullListPosition(address, chainId, listTokenPool)
  //code....
  ///.....
}
//use for version laster
import React,{useState,useEffect} from 'react'

import {  useFullPosition} from 'position-uni-v3'
const ExamplePosition=()=>{
  //code ...
  const listChainSupport = [1,2,4,6]
  const {isFinish,listData,resetHook} = useFullPosition(
    address,
    chainId,
    createWeb3NewBasic('your rpc'),
    listTokenPool,
    listChainSupport
  )
  //code....
  ///.....
}

export default ExamplePosition

License

MIT © HoDienCong12c5

Readme

Keywords

none

Package Sidebar

Install

npm i position-uni-v3

Weekly Downloads

0

Version

3.1.3

License

MIT

Unpacked Size

2.19 MB

Total Files

6

Last publish

Collaborators

  • hodiencong