From e926f9f34770eb2c10e864870b8ab76b9f1dde9d Mon Sep 17 00:00:00 2001 From: Coline Date: Mon, 25 Jul 2022 11:40:52 +0200 Subject: [PATCH] docs: Docs of client --- tests/speculos/docs/client.puml | 35 ------------------- .../ethereum_client/ethereum_cmd_builder.py | 1 - 2 files changed, 36 deletions(-) delete mode 100644 tests/speculos/docs/client.puml diff --git a/tests/speculos/docs/client.puml b/tests/speculos/docs/client.puml deleted file mode 100644 index ccadea4..0000000 --- a/tests/speculos/docs/client.puml +++ /dev/null @@ -1,35 +0,0 @@ -@startuml Network - -enum InsType { - INS_GET_PUBLIC_KEY = 0x02 - INS_SIGN_TX = 0x04 - INS_GET_CONFIGURATION = 0x06 - INS_SIGN_PERSONAL_TX = 0x08 - INS_PROVIDE_ERC20 = 0x0A - INS_SIGN_EIP712 = 0x0c - INS_ETH2_GET_PUBLIC_KEY = 0x0E - INS_SET_ETH2_WITHDRAWAL = 0x10 - INS_SET_EXTERNAL_PLUGIN = 0x12 - INS_PROVIDE_NFT_INFORMATION = 0x14 - INS_SET_PLUGIN = 0x16 -} - -class BoilerPlateCommandBuilder { - +bytes serialize(cla int, ins InsType, p1 int, p2 int, cdata bytes) - ____ - .. APDU Builder.. - +get_configuration() -> bytes - +get_public_key(bip32_path str, display bool) -> bytes -} - -class BoilerplateCommand { - +get_configuration() -> Tuple[int, int, int] - +get_public_key(bip32_path str, diplay bool) -> Tuple[bytes, bytes, bytes] -} - -class Transaction { - +serialize() -> bytes - +from_bytes(cls, hexa: Union[bytes, BytesIO]) -} - -@enduml \ No newline at end of file diff --git a/tests/speculos/ethereum_client/ethereum_cmd_builder.py b/tests/speculos/ethereum_client/ethereum_cmd_builder.py index 454e99e..f2f721e 100644 --- a/tests/speculos/ethereum_client/ethereum_cmd_builder.py +++ b/tests/speculos/ethereum_client/ethereum_cmd_builder.py @@ -1,6 +1,5 @@ import enum import logging -import re import struct from typing import List, Tuple, Union, Iterator, cast