Skip to content

Commit

Permalink
tests(e2e): use gnosis mainnet for e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Sep 10, 2024
1 parent dec2723 commit fff85a8
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 326 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PRIVATE_KEY=
E2E_SEPOLIA_TESTING_EOA_PRIVATE_KEY=
E2E_GNOSIS_MAINNET_TESTING_EOA_PRIVATE_KEY=
8 changes: 2 additions & 6 deletions examples/order_posting_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import asyncio
import json
import os
from dataclasses import asdict

from dotenv import load_dotenv
from web3 import Account
Expand Down Expand Up @@ -56,12 +55,9 @@ async def get_order_quote(


def sign_order(order: Order) -> EcdsaSignature:
order_domain = asdict(
domain(
chain=CHAIN, verifying_contract=CowContractAddress.SETTLEMENT_CONTRACT.value
)
order_domain = domain(
chain=CHAIN, verifying_contract=CowContractAddress.SETTLEMENT_CONTRACT.value
)
del order_domain["salt"] # TODO: improve interfaces

return _sign_order(order_domain, order, ACCOUNT, SigningScheme.EIP712)

Expand Down
139 changes: 11 additions & 128 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ pytest-asyncio = "^0.23.6"
web3 = { extras = ["tester"], version = "^6.17.0" }
pycln = "^2.4.0"
pytest-cov = "^5.0.0"
pytest-recording = "^0.13.2"
python-dotenv = "^1.0.1"

[tool.poetry.scripts]
Expand Down
Loading

0 comments on commit fff85a8

Please sign in to comment.