o
    >hy                     @   sx   d dl Z G dd de jZG dd de jZG dd de jZG dd	 d	e jZG d
d de jZG dd deeZdS )    Nc                   @   sr   e Zd ZdZejdd Zejdd Zejdd Zejdd	 Z	ejd
d Z
ejdd Zejdd ZdS )IMarketMakerz%
    XBR Market Maker interface.
    c                 C      dS )z3

        :param details:
        :return:
        N )selfdetailsr   r   x/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/autobahn/xbr/_interfaces.pystatus#       zIMarketMaker.statusc                 C   r   )z`

        :param key_id:
        :param price:
        :param details:
        :return:
        Nr   )r   key_idpricer   r   r   r   offer+   r	   zIMarketMaker.offerc                 C   r   zJ

        :param key_id:
        :param details:
        :return:
        Nr   r   r
   r   r   r   r   revoke5   r	   zIMarketMaker.revokec                 C   r   r   r   r   r   r   r   quote>   r	   zIMarketMaker.quotec	           	      C   r   )z

        :param channel_id:
        :param channel_seq:
        :param buyer_pubkey:
        :param datakey_id:
        :param amount:
        :param balance:
        :param signature:
        :param details:
        :return:
        Nr   )	r   
channel_idchannel_seqbuyer_pubkey
datakey_idamountbalance	signaturer   r   r   r   buyG   r	   zIMarketMaker.buyc                 C   r   )zK

        :param address:
        :param details:
        :return:
        Nr   )r   addressr   r   r   r   get_payment_channelsV   r	   z!IMarketMaker.get_payment_channelsc                 C   r   )zN

        :param channel_id:
        :param details:
        :return:
        Nr   )r   r   r   r   r   r   get_payment_channel_   r	   z IMarketMaker.get_payment_channelN)__name__
__module____qualname____doc__abcabstractmethodr   r   r   r   r   r   r   r   r   r   r   r      s     

	



r   c                   @   s   e Zd ZdZejdd ZdS )	IProviderz!
    XBR Provider interface.
    c                 C   r   )z

        :param key_id:
        :param buyer_pubkey:
        :param amount_paid:
        :param post_balance:
        :param signature:
        :param details:
        :return:
        Nr   )r   r
   r   amount_paidpost_balancer   r   r   r   r   selln   r	   zIProvider.sellN)r   r   r   r   r    r!   r%   r   r   r   r   r"   i   s    r"   c                   @      e Zd ZdZdS )	IConsumerz!
    XBR Consumer interface.
    Nr   r   r   r   r   r   r   r   r'   |       r'   c                   @   ,   e Zd ZdZejdd Zejdd ZdS )ISellerz
    XBR Seller interface.
    c                       dS )z3

        :param session:
        :return:
        Nr   r   sessionr   r   r   start       zISeller.startc                    r,   )zG

        :param uri:
        :param payload:
        :return:
        Nr   )r   uripayloadr   r   r   wrap   r0   zISeller.wrapN)r   r   r   r   r    r!   r/   r3   r   r   r   r   r+          
r+   c                   @   r*   )IBuyerz
    XBR Buyer interface.
    c                    r,   )z
        Start buying keys over the provided session.

        :param session: WAMP session that allows to talk to the XBR Market Maker.
        Nr   r-   r   r   r   r/      r0   zIBuyer.startc                    r,   )a  
        Decrypt and deserialize received XBR payload.

        :param key_id: The ID of the datakey the payload is encrypted with.
        :type key_id: bytes

        :param enc_ser: The serializer that was used for serializing the payload. One of ``cbor``, ``json``, ``msgpack``, ``ubjson``.
        :type enc_ser: str

        :param ciphertext: The encrypted payload to unwrap.
        :type ciphertext: bytes

        :returns: The unwrapped application payload.
        :rtype: object
        Nr   )r   r
   enc_ser
ciphertextr   r   r   unwrap   r0   zIBuyer.unwrapN)r   r   r   r   r    r!   r/   r8   r   r   r   r   r5      r4   r5   c                   @   r&   )	IDelegatez!
    XBR Delegate interface.
    Nr(   r   r   r   r   r9      r)   r9   )r    ABCr   r"   r'   r+   r5   r9   r   r   r   r   <module>   s   K 