"""Shared fixtures for Olas tests."""

from unittest.mock import MagicMock

import pytest

from iwa.plugins.olas.models import OlasConfig, Service


@pytest.fixture
def mock_wallet():
    """Mock wallet."""
    wallet = MagicMock()
    wallet.key_storage = MagicMock()
    wallet.address = "0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"
    return wallet


@pytest.fixture
def mock_olas_config():
    """Mock Olas config."""
    service = Service(
        service_name="Test Service",
        chain_name="gnosis",
        service_id=1,
        agent_ids=[],
        multisig_address="0x1111111111111111111111111111111111111111",
        staking_contract_address="0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB",
    )
    return OlasConfig(services={"gnosis:1": service})
