position-uni-v3
v3.1.3
Published
Made with create-react-library
Downloads
8
Readme
position-uni-v3
Made with create-react-library
Install (for single position)
npm install --save [email protected]
Install (mutil position for mutil address and having chain default not add chain new support)
npm install --save [email protected]
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