generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6a60a3
commit 2471583
Showing
9 changed files
with
64 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
from ape_tenderly.providers import TenderlyProvider | ||
|
||
|
||
@pytest.fixture | ||
def networks(): | ||
from ape import networks | ||
|
||
return networks | ||
|
||
|
||
@pytest.fixture | ||
def accounts(): | ||
from ape import accounts | ||
|
||
return accounts | ||
|
||
|
||
@pytest.fixture | ||
def Contract(): | ||
from ape import Contract | ||
|
||
return Contract | ||
|
||
|
||
@pytest.fixture | ||
def mainnet_fork_provider(networks): | ||
network_api = networks.ecosystems["ethereum"]["mainnet-fork"] | ||
provider = TenderlyProvider( | ||
name="tenderly", | ||
network=network_api, | ||
request_header={}, | ||
data_folder=Path("."), | ||
provider_settings={}, | ||
) | ||
provider.connect() | ||
yield provider | ||
provider.disconnect() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
def test_reset_fork(mainnet_fork_provider): | ||
assert mainnet_fork_provider.fork_id | ||
assert mainnet_fork_provider.uri |