微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何使用纱线运行 uniswap 接口

如何解决如何使用纱线运行 uniswap 接口

我已经从 git 克隆了 uniswap-interface。我运行了 yarn start 命令并收到以下输出

yarn run v1.22.10
$ yarn compile-contract-types && react-scripts start
$ yarn compile-external-abi-types && yarn compile-v3-contract-types
$ typechain --target ethers-v5 --out-dir src/abis/types './src/abis/**/*.json'
Successfully generated 2 typings!
$ typechain --target ethers-v5 --out-dir src/types/v3 './node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json'
'v3-periphery)' is not recognized as an internal or external command,operable program or batch file.
error Command Failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command Failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command Failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我错过了什么?

解决方法

变化

./node_modules/@uniswap/?(v3-core|v3-periphery)/artifacts/contracts/**/*.json

./node_modules/@uniswap/v3-core/artifacts/contracts/**/*.json

在 package.json 文件中为我修复了它。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。