Skip to content
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
2 changes: 1 addition & 1 deletion src/polymarket/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Environment:
neg_risk_collateral_adapter="0xadA2005600Dec949baf300f4C6120000bDB6eAab",
standard_exchange="0xE111180000d2663C0091e4f400237545B87B996B",
neg_risk_exchange="0xe2222d279d744050d28e00520010520000310F59",
auto_redeem_operator="0xF3cFb6a6eBFeB51876289Eb235719EB1C65252B0",
auto_redeem_operator="0xa1200000d0002264C9a1698e001292D00E1b00af",
safe_multisend="0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",
relay_hub="0xD216153c06E857cD7f72665E0aF1d7D82172F494",
clob_url="https://clob.polymarket.com",
Expand Down
15 changes: 12 additions & 3 deletions tests/integration/test_relayer_approve_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,19 @@ async def run() -> None:

@pytest.mark.integration
@pytest.mark.metered
@pytest.mark.skip(reason=_SKIP_REASON)
def test_setup_trading_approvals_live(require_env: Callable[[str], str]) -> None:
def test_setup_trading_approvals_live(
builder_api_key: BuilderApiKey,
deposit_wallet_private_key: str,
deposit_wallet_address: str,
) -> None:
async def run() -> None:
async with _secure_client(require_env) as client:
client = await AsyncSecureClient.create(
private_key=deposit_wallet_private_key,
wallet=deposit_wallet_address,
api_key=builder_api_key,
)
async with client:
# Live side effect: submits any missing trading approvals for the configured wallet.
handle = await client.setup_trading_approvals()
await handle.wait()

Expand Down
Loading