-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enzyme and Arbitrum integration (#228)
- Add: Enzyme vault deployments on Arbitrum - `WMATIC.symbol()` is now `WPOL` as Polygon token migration is going
- Loading branch information
Showing
10 changed files
with
457 additions
and
10 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
Submodule terms-of-service
updated
5 files
+38 −8 | README.md | |
+12 −0 | scripts/deploy-ethereum.sh | |
+84 −0 | scripts/update-arbitrum.py | |
+84 −0 | scripts/update-ethereum.py | |
+2 −4 | terms_of_service/acceptance_message.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""Get Enzyme deployment on Arbitrum. | ||
- Use Arbitrum live RPC for testing. | ||
""" | ||
import os | ||
|
||
import pytest | ||
from web3 import Web3 | ||
|
||
from eth_defi.enzyme.deployment import EnzymeDeployment, ARBITRUM_DEPLOYMENT | ||
from eth_defi.provider.multi_provider import create_multi_provider_web3 | ||
|
||
JSON_RPC_ARBITRUM = os.environ.get("JSON_RPC_ARBITRUM") | ||
pytestmark = pytest.mark.skipif(not JSON_RPC_ARBITRUM, reason="Set JSON_RPC_ARBITRUM to run this test") | ||
|
||
|
||
@pytest.fixture() | ||
def web3(): | ||
web3 = create_multi_provider_web3(JSON_RPC_ARBITRUM) | ||
return web3 | ||
|
||
|
||
def test_fetch_enzyme_on_arbitrum( | ||
web3: Web3, | ||
): | ||
"""Fetch Enzyme deployment.""" | ||
deployment = EnzymeDeployment.fetch_deployment(web3, ARBITRUM_DEPLOYMENT) | ||
assert deployment.mln.functions.symbol().call() == "MLN" | ||
assert deployment.weth.functions.symbol().call() == "WETH" |
Oops, something went wrong.