Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testnet name #2

Closed
RocketNinja15 opened this issue May 4, 2022 · 4 comments
Closed

testnet name #2

RocketNinja15 opened this issue May 4, 2022 · 4 comments

Comments

@RocketNinja15
Copy link

what should i put instead of mainnet-fork?

@kaymen99
Copy link
Owner

kaymen99 commented May 4, 2022

The use of mainnet-fork is only for testing, you can change it to the Koran testnet or to the real ethereal mainnet (but be careful you'll be using real money in this case)
If you want to use other networks you need to check the ones that both Sushiswap and uniswap are deployed to, and add their respective addresses into the brownie-config.yaml file

@RocketNinja15
Copy link
Author

Ah Okay!

Installing this I had some issues

New compatible solc version available: 0.6.12
Compiling contracts...
  Solc version: 0.6.12
  Optimizer: Enabled  Runs: 200
  EVM Version: Istanbul
WARNING: Unable to compile aave/protocol-v2@1.0.1 due to a CompilerError - you may still be able to import sources from the package, but will be unable to load the package directly.```

2.

```Rocket1@Carters-MacBook-Pro uniswap-sushiswap-arbitrage % brownie run scripts/arbitrage.py --network=mainnet-fork
Brownie v1.17.2 - Python development framework for Ethereum

UniswapSushiswapArbitrageProject is the active project.

Launching 'ganache-cli --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie --fork https://mainnet.infura.io/v3/57f794b83cf64c88a948f49ff6ba34ef --chainId 1'...
  File "brownie/_cli/__main__.py", line 64, in main
    importlib.import_module(f"brownie._cli.{cmd}").main()
  File "brownie/_cli/run.py", line 44, in main
    network.connect(CONFIG.argv["network"])
  File "brownie/network/main.py", line 50, in connect
    rpc.launch(active["cmd"], **active["cmd_settings"])
  File "brownie/network/rpc/__init__.py", line 93, in launch
    raise RPCProcessError(cmd, uri)
RPCProcessError: Unable to launch local RPC client.
Command: ganache-cli
URI: http://127.0.0.1:8545 


> The use of mainnet-fork is only for testing, you can change it to the Koran testnet or to the real ethereal mainnet (but be careful you'll be using real money in this case) If you want to use other networks you need to check the ones that both Sushiswap and uniswap are deployed to, and add their respective addresses into the brownie-config.yaml file

@kaymen99
Copy link
Owner

kaymen99 commented May 5, 2022

try to install ganache-cli : npm install -g ganache-cli

@RocketNinja15
Copy link
Author

npm install -g ganache-cli

npm ERR! path /usr/local/bin/ganache-cli
npm ERR! EEXIST: file already exists
npm ERR! File exists: /usr/local/bin/ganache-cli
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Rocket1/.npm/_logs/2022-05-05T23_00_10_578Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants