
    %j                     *    d dl mZ d dlmZ d Zd ZdS )    )Account)build_legacy_probe_planc           	         t          j                    }t          j                    j        }| dz                      d| d|j                                         d|j         dd           |                    dd	
           |                    dd	
           t          | f          }|d         dk    sJ |d         du sJ d|d         v sJ |d         du sJ d S )NTestnet.envHL_WALLET_ADDRESS=
HL_API_PRIVATE_KEY=	
API Key=
utf-8encoding
CTB_HL_ENVF)raisingCTB_TESTNET_TRADING_ALLOWEDsearch_dirsstatus	validated.signed_actions_blocked_until_credentials_greenTCTB_HL_ENV_not_testnetwarningsmainnet_blocked)r   createaddress
write_textkeyhexdelenvr   tmp_pathmonkeypatchsignerwalletplans        0tests/test_hl_testnet_legacy_credential_probe.py5test_legacy_probe_plan_does_not_require_trading_flagsr&      s*   ^F^%F))	&V 	& 	&$jnn..	& 	&>	& 	& 	& 	 *    |U3334eDDD"{;;;D>[((((@ATIIII#tJ'77777!"d******    c           	         t          j                    }t          j                    j        }| dz                      d| d|j                                         dt          j                    j         dd           |                    dd	           |                    d
d           t          | f          }|d         dk    sJ |d                             |d d                   sJ |d                             |j        d d                   sJ |d         du sJ |d         du sJ |j                                        t          |          vsJ d S )Nr   r   r   r	   r
   r   r   r   testnetr   truer   r   blockedaccount_address_masked   #agent_wallet_address_derived_maskedr   Tr   )
r   r   r   r   r   r   setenvr   
startswithstrr   s        r%   @test_legacy_probe_plan_uses_wallet_as_account_and_derived_signerr2      s   ^F^%F))	0V 	0 	0$jnn..	0 	0>##+	0 	0 	0 	 *    |Y///4f==="{;;;D>Y&&&&()44VBQBZ@@@@@56AA&.QSRSQSBTUUUUU@ATIIII!"d****:>>3t99,,,,,,r'   N)eth_accountr   ,src.tools.hl_testnet_legacy_credential_prober   r&   r2    r'   r%   <module>r6      sQ          P P P P P P+ + +(- - - - -r'   