uniswap-v2-helper:Uniswap在单个函数调用中进行交易

时间:2021-05-02 09:09:35
【文件属性】:
文件名称:uniswap-v2-helper:Uniswap在单个函数调用中进行交易
文件大小:113KB
文件格式:ZIP
更新时间:2021-05-02 09:09:35
TypeScript Uniswap V2助手 Uniswap以单个函数调用进行交易。 当前仅支持带有小数位getter的直接erc20令牌对。 对ethers.js的单一外部依赖关系。 用法 import { getSwapParams , swapTokens } from 'uniswap-v2-helper' import { ethers } from 'ethers' const privateKey = '0x...' const provider = ethers . getDefaultProvider ( ) // use default provider or any other ethers provider const signer = new ethers . Wallet ( privateKey , provider ) // get swap params const {
【文件预览】:
uniswap-v2-helper-master
----package.json(1KB)
----.github()
--------workflows()
----test()
--------blah.test.ts(102B)
----LICENSE(1KB)
----src()
--------index.ts(7KB)
----tsconfig.json(477B)
----TSDX_User_Guide.md(3KB)
----.gitignore(34B)
----README.md(2KB)
----yarn.lock(282KB)

网友评论