
    ":h              	       R    d dl mZmZ deeef   defdZ	 	 ddeded   dedefd	Zy
)    )LiteralUnionnumberreturnc                 >    t        | t              r| S t        | d      S )N   )
isinstanceint)r   s    b/var/www/html/turnos/venv/lib/python3.12/site-packages/ccxt/static_dependencies/starknet/common.pyint_from_hexr      s    ,6A#fb/A    value
byte_order)biglittlesignedc                 2    t         j                  | ||      S )zc
    Converts the given bytes object (parsed according to the given byte order) to an integer.
    )	byteorderr   )r
   
from_bytes)r   r   r   s      r   int_from_bytesr      s     >>%:f>EEr   N)r   F)	typingr   r   strr
   r   bytesboolr    r   r   <module>r      sa    !BsCx BS B ,1FF(F F 		Fr   