Remove client installation, and use local module with symlink

This commit is contained in:
Charles-Edouard de la Vergne
2024-04-09 10:26:17 +02:00
parent da284a120a
commit 29630f9cf3
11 changed files with 33 additions and 31 deletions

View File

@@ -1 +1 @@
../../client ../../client/src/ledger_app_clients/ethereum

View File

@@ -2,7 +2,8 @@ import json
import pytest import pytest
from web3 import Web3 from web3 import Web3
from ledger_app_clients.ethereum.client import EthAppClient, StatusWord from client.client import EthAppClient, StatusWord
from ragger.backend import BackendInterface from ragger.backend import BackendInterface
from ragger.firmware import Firmware from ragger.firmware import Firmware
from ragger.navigator import Navigator, NavInsID from ragger.navigator import Navigator, NavInsID

View File

@@ -1,9 +1,10 @@
import pytest import pytest
from web3 import Web3 from web3 import Web3
import ledger_app_clients.ethereum.response_parser as ResponseParser import client.response_parser as ResponseParser
from ledger_app_clients.ethereum.client import EthAppClient, StatusWord from client.client import EthAppClient, StatusWord
from ledger_app_clients.ethereum.settings import SettingID, settings_toggle from client.settings import SettingID, settings_toggle
from ragger.backend import BackendInterface from ragger.backend import BackendInterface
from ragger.firmware import Firmware from ragger.firmware import Firmware
from ragger.error import ExceptionRAPDU from ragger.error import ExceptionRAPDU

View File

@@ -1,13 +1,13 @@
from ledger_app_clients.ethereum.client import EthAppClient from web3 import Web3
import ledger_app_clients.ethereum.response_parser as ResponseParser
from ledger_app_clients.ethereum.utils import recover_transaction from client.client import EthAppClient
import client.response_parser as ResponseParser
from client.utils import recover_transaction
from ragger.backend import BackendInterface from ragger.backend import BackendInterface
from ragger.firmware import Firmware from ragger.firmware import Firmware
from ragger.navigator import Navigator, NavInsID from ragger.navigator import Navigator, NavInsID
from web3 import Web3
from constants import ROOT_SNAPSHOT_PATH from constants import ROOT_SNAPSHOT_PATH

View File

@@ -1,8 +1,8 @@
import pytest import pytest
from ledger_app_clients.ethereum.client import EthAppClient, StatusWord from client.client import EthAppClient, StatusWord
import ledger_app_clients.ethereum.response_parser as ResponseParser import client.response_parser as ResponseParser
from ledger_app_clients.ethereum.utils import recover_message from client.utils import recover_message
from ragger.error import ExceptionRAPDU from ragger.error import ExceptionRAPDU
from ragger.backend import BackendInterface from ragger.backend import BackendInterface

View File

@@ -1,8 +1,8 @@
from web3 import Web3 from web3 import Web3
from ledger_app_clients.ethereum.client import EthAppClient from client.client import EthAppClient
import ledger_app_clients.ethereum.response_parser as ResponseParser import client.response_parser as ResponseParser
from ledger_app_clients.ethereum.utils import recover_transaction from client.utils import recover_transaction
from ragger.backend import BackendInterface from ragger.backend import BackendInterface
from ragger.firmware import Firmware from ragger.firmware import Firmware

View File

@@ -8,11 +8,11 @@ import json
from typing import Optional from typing import Optional
import pytest import pytest
import ledger_app_clients.ethereum.response_parser as ResponseParser import client.response_parser as ResponseParser
from ledger_app_clients.ethereum.utils import recover_message from client.utils import recover_message
from ledger_app_clients.ethereum.client import EthAppClient from client.client import EthAppClient
from ledger_app_clients.ethereum.eip712 import InputData from client.eip712 import InputData
from ledger_app_clients.ethereum.settings import SettingID, settings_toggle from client.settings import SettingID, settings_toggle
from ragger.backend import BackendInterface from ragger.backend import BackendInterface
from ragger.firmware import Firmware from ragger.firmware import Firmware

View File

@@ -1,5 +1,6 @@
import pytest import pytest
from ledger_app_clients.ethereum.client import EthAppClient, StatusWord
from client.client import EthAppClient, StatusWord
from ragger.error import ExceptionRAPDU from ragger.error import ExceptionRAPDU
from ragger.backend import BackendInterface from ragger.backend import BackendInterface

View File

@@ -1,8 +1,8 @@
from typing import Optional, Tuple from typing import Optional, Tuple
import pytest import pytest
from ledger_app_clients.ethereum.client import EthAppClient, StatusWord from client.client import EthAppClient, StatusWord
import ledger_app_clients.ethereum.response_parser as ResponseParser import client.response_parser as ResponseParser
from ragger.error import ExceptionRAPDU from ragger.error import ExceptionRAPDU
from ragger.firmware import Firmware from ragger.firmware import Firmware

View File

@@ -1,12 +1,11 @@
from typing import Callable, Optional, Any from typing import Callable, Optional, Any
import json import json
import pytest import pytest
from web3 import Web3 from web3 import Web3
from ledger_app_clients.ethereum.client import EthAppClient, StatusWord from client.client import EthAppClient, StatusWord
import ledger_app_clients.ethereum.response_parser as ResponseParser import client.response_parser as ResponseParser
from ledger_app_clients.ethereum.utils import get_selector_from_data, recover_transaction from client.utils import get_selector_from_data, recover_transaction
from ragger.error import ExceptionRAPDU from ragger.error import ExceptionRAPDU
from ragger.firmware import Firmware from ragger.firmware import Firmware

View File

@@ -1,8 +1,8 @@
from web3 import Web3 from web3 import Web3
from ledger_app_clients.ethereum.client import EthAppClient, StatusWord from client.client import EthAppClient, StatusWord
import ledger_app_clients.ethereum.response_parser as ResponseParser import client.response_parser as ResponseParser
from ledger_app_clients.ethereum.utils import recover_transaction from client.utils import recover_transaction
from ragger.error import ExceptionRAPDU from ragger.error import ExceptionRAPDU
from ragger.backend import BackendInterface from ragger.backend import BackendInterface