yuichiroaoki / poly-flashloan-bot

Flashloan Bot on Polygon
https://yuichiroaoki.medium.com/flashloan-bot-on-polygon-part-2-3eae0ac33986?sk=80821da4ca1d0462c7c9ae617df56bdd
MIT License
302 stars 192 forks source link

> [8/8] RUN yarn build: #12 40.25 src/index.ts(8,3): error TS2305: Module '"./config"' has no exported member 'tradingRoutes'. #105

Closed gopinath87607 closed 1 year ago

gopinath87607 commented 1 year ago

[8/8] RUN yarn build:

12 40.25 src/index.ts(8,3): error TS2305: Module '"./config"' has no exported member 'tradingRoutes'.

12 40.26 src/index.ts(9,3): error TS2305: Module '"./config"' has no exported member 'diffPercentage'.

12 40.26 src/index.ts(18,25): error TS2307: Cannot find module './findOpp' or its corresponding type declarations.

12 40.26 src/index.ts(36,32): error TS7006: Parameter 'trade' implicitly has an 'any' type.

12 40.26 src/index.ts(52,28): error TS2554: Expected 3 arguments, but got 1.

12 40.26 src/index.ts(69,40): error TS7006: Parameter 'token' implicitly has an 'any' type.

12 40.26 src/price/uniswap/v3/getPrice.ts(2,34): error TS2307: Cannot find module '@uniswap/v3-periphery/contracts/lens/Quoter.sol/Quoter.json' or its corresponding type declarations.


executor failed running [/bin/sh -c yarn build]: exit code: 2 Unable to find image 'flashbot:latest' locally docker: Error response from daemon: pull access denied for flashbot, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

gopinath87607 commented 1 year ago

[8/8] RUN yarn build:

12 40.25 src/index.ts(8,3): error TS2305: Module '"./config"' has no exported member 'tradingRoutes'.

12 40.26 src/index.ts(9,3): error TS2305: Module '"./config"' has no exported member 'diffPercentage'.

12 40.26 src/index.ts(18,25): error TS2307: Cannot find module './findOpp' or its corresponding type declarations.

12 40.26 src/index.ts(36,32): error TS7006: Parameter 'trade' implicitly has an 'any' type.

12 40.26 src/index.ts(52,28): error TS2554: Expected 3 arguments, but got 1.

12 40.26 src/index.ts(69,40): error TS7006: Parameter 'token' implicitly has an 'any' type.

12 40.26 src/price/uniswap/v3/getPrice.ts(2,34): error TS2307: Cannot find module '@uniswap/v3-periphery/contracts/lens/Quoter.sol/Quoter.json' or its corresponding type declarations.

executor failed running [/bin/sh -c yarn build]: exit code: 2 Unable to find image 'flashbot:latest' locally docker: Error response from daemon: pull access denied for flashbot, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

i am bit new to this any suggesstion

gopinath87607 commented 1 year ago

update Type '{ flashLoanPool: string; loanAmount: ethers.BigNumber; routes: IFlashloanRoute[]; }' is not assignable to type 'IParams'. Object literal may only specify known properties, and 'routes' does not exist in type 'IParams'.

gopinath87607 commented 1 year ago

Cannot find module '@uniswap/v3-periphery/artifacts/contracts/lens/Quoter.sol/Quoter.json' or its corresponding type declarations.

gopinath87607 commented 1 year ago

[8/8] RUN yarn build:

12 20.10 src/price/uniswap/v3/getPrice.ts(2,34): error TS2307: Cannot find module '@uniswap/v3-periphery/artifacts/contracts/lens/Quoter.sol/Quoter.json' or its corresponding type declarations.


executor failed running [/bin/sh -c yarn build]: exit code: 2 Unable to find image 'flashbot:latest' locally docker: Error response from daemon: pull access denied for flashbot, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

gopinath87607 commented 1 year ago

[8/8] RUN yarn build:

12 17.79 src/price/uniswap/v3/getPrice.ts(2,34): error TS2307: Cannot find module '@uniswap/v3-periphery/artifacts/contracts/lens/Quoter.sol/Quoter.json' or its corresponding type declarations.


executor failed running [/bin/sh -c yarn build]: exit code: 2 Unable to find image 'poly-flashloan-bot:latest' locally docker: Error response from daemon: pull access denied for poly-flashloan-bot, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'

gopinath87607 commented 1 year ago

yarn npm node js installed and comment node_modules also available locally any guidance?

gopinath87607 commented 1 year ago

its seems like my bot 3.0 is now running can see request in alchemy but its only giving request in two exchange like quickswap and uniswap