Ë
    ±|Sis  ã                   óŠ   — U d Z ddlmZmZ ddlmZ ddlmZ dZdZ	 ede«        ede	«       d	d	d	d
œZ
daedz  ed<   defd„Zy)z5Wallet service utility for credit balance operations.é    )ÚWalletServiceÚWalletRepository)Ú register_custom_transaction_type)ÚUseri'  i'  zmake-investmentÚ
withdrawalé   )Úcredit_balanceÚbonusÚbonus_balanceNÚ_wallet_serviceÚreturnc                  ób   — t         €$t        t        t        dddœ¬«      } t	        | «      a t         S )z‰
    Get or create the singleton WalletService instance.
    
    Returns:
        WalletService: Configured wallet service instance
    r   )r
   r   )Ú
user_modelÚpoint_typesÚpoint_type_field_map)r   r   r   ÚPOINT_TYPESr   )Úrepos    ú=/home/cursorai/projects/telegram-earn/backend/utils/wallet.pyÚget_wallet_servicer      s7   € ô ÐÜÜÜ#à(Ø!0ñ"ô
ˆô (¨Ó-ˆäÐó    )Ú__doc__Údjango_wallet_utilsr   r   Ú%django_wallet_utils.transaction_typesr   Úapps.users.modelsr   ÚMAKE_INVESTMENTÚ
WITHDRAWALr   r   Ú__annotations__r   © r   r   Ú<module>r      sa   ðÚ ;ç ?Ý Rå "ð €Ø€
á  Ð!2°OÔ DÙ   ¨zÔ :ð ØØñ€ð )-€� Ñ%Ó ,ð˜Mô r   