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

FTM integration #980

Merged
merged 3 commits into from
Apr 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions brownie/data/network-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ live:
id: bsc-main
host: https://bsc-dataseed.binance.org
explorer: https://api.bscscan.com/api
- name: Fantom Opera
networks:
- name: Testnet
chainid: 0xfa2
id: ftm-test
host: https://rpc.testnet.fantom.network
explorer: https://explorer.testnet.fantom.network
- name: Mainnet
chainid: 250
id: ftm-main
host: https://rpcapi.fantom.network
explorer: https://api.ftmscan.com/api

development:
- name: Ganache-CLI
Expand Down Expand Up @@ -92,3 +104,15 @@ development:
evm_version: istanbul
mnemonic: brownie
fork: bsc-main
- name: Ganache-CLI (FTM-Mainnet Fork)
id: ftm-main-fork
cmd: ganache-cli
host: http://127.0.0.1
timeout: 120
cmd_settings:
port: 8545
gas_limit: 12000000
accounts: 10
evm_version: istanbul
mnemonic: brownie
fork: ftm-main
8 changes: 7 additions & 1 deletion tests/cli/test_cli_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ def test_delete_live():


def test_delete_development():
for network_name in ("development", "mainnet-fork", "bsc-main-fork", "geth-dev"):
for network_name in (
"development",
"mainnet-fork",
"bsc-main-fork",
"ftm-main-fork",
"geth-dev",
):
cli_networks._delete(network_name)

with _get_data_folder().joinpath("network-config.yaml").open() as fp:
Expand Down