Skip to content

Commit

Permalink
Merge pull request #112 from cosmos/tokens-textual
Browse files Browse the repository at this point in the history
Increase Tokens & remove textual for nanoS
  • Loading branch information
chcmedeiros authored Mar 12, 2024
2 parents 25096fa + eb96c35 commit e0addc1
Show file tree
Hide file tree
Showing 181 changed files with 66 additions and 49 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ target_link_libraries(unittests PRIVATE

add_compile_definitions(TESTVECTORS_DIR="${CMAKE_CURRENT_SOURCE_DIR}/tests/")
add_compile_definitions(APP_TESTING=1)
add_compile_definitions(COMPILE_TEXTUAL=1)
add_test(unittests ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittests)
set_tests_properties(unittests PROPERTIES WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests)

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,5 +205,8 @@ The Makefile will build the firmware in a docker container and leave the binary

## APDU Specifications

### DISCLAIMER
Ledger NanoS does not support Cosmos Textual Mode due to memory restriction

- [APDU Protocol](docs/APDUSPEC.md)
- [Transaction format](docs/TXSPEC.md)
10 changes: 9 additions & 1 deletion app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,16 @@ ifndef ICONNAME
$(error ICONNAME is not set)
endif

# Compile textual mode for all devices excetpt Nano S,
# and define a Min stack size for Nano S with some margin
# to get an error if app grows too much
ifneq ($(TARGET_NAME),TARGET_NANOS)
DEFINES += COMPILE_TEXTUAL
endif

APP_STACK_MIN_SIZE := 1600

include $(CURDIR)/../deps/ledger-zxlib/makefiles/Makefile.platform
DEFINES += HAVE_HASH HAVE_BLAKE2 HAVE_SHA256 HAVE_SHA512
CFLAGS += -I$(MY_DIR)/../deps/tinycbor/src
APP_SOURCE_PATH += $(MY_DIR)/../deps/tinycbor-ledger
APP_SOURCE_PATH += $(MY_DIR)/../deps/jsmn/src
Expand Down
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=2
# This is the `spec_version` field of `Runtime`
APPVERSION_N=35
# This is the patch version of this release
APPVERSION_P=18
APPVERSION_P=19
7 changes: 6 additions & 1 deletion app/src/chain_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ typedef struct {
static const chain_config_t chainConfig[] = {
// {118, cosmos, BECH32_COSMOS},
{60, "inj", BECH32_ETH},
{60, "evmos", BECH32_ETH}
{60, "evmos", BECH32_ETH},
{60, "xpla", BECH32_ETH},
{60, "dym", BECH32_ETH},
{60, "zeta", BECH32_ETH},
{60, "bera", BECH32_ETH},
{60, "human", BECH32_ETH}
};

static const uint32_t chainConfigLen = sizeof(chainConfig) / sizeof(chainConfig[0]);
Expand Down
1 change: 0 additions & 1 deletion app/src/coin.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* limitations under the License.
********************************************************************************/
#pragma once

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
6 changes: 0 additions & 6 deletions app/src/common/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,13 @@ extern "C" {
#include "coin.h"

#define OUTPUT_HANDLER_SIZE 600
#if defined(TARGET_NANOS)
#undef OUTPUT_HANDLER_SIZE
#define OUTPUT_HANDLER_SIZE 450
#endif

#define MAX_CONTENT_SIZE 550
#define MAX_TITLE_SIZE 40
#define PRINTABLE_TITLE_SIZE 17
#define PRINTABLE_PAGINATED_TITLE_SIZE 10
#define SCREEN_BREAK ":"
#define SCREEN_INDENT ">"
#define TITLE_TRUNCATE_REPLACE "---"
#define END_OF_STRING_SIZE

const char *parser_getErrorDescription(parser_error_t err);

Expand Down
8 changes: 7 additions & 1 deletion app/src/common/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define RAM_BUFFER_SIZE 8192
#define FLASH_BUFFER_SIZE 16384
#elif defined(TARGET_NANOS)
#define RAM_BUFFER_SIZE 256
#define RAM_BUFFER_SIZE 0
#define FLASH_BUFFER_SIZE 8192
#endif

Expand Down Expand Up @@ -78,9 +78,15 @@ static parser_tx_t tx_obj;

const char *tx_parse(tx_type_e type)
{
#if defined(COMPILE_TEXTUAL)
if (type != tx_json && type != tx_textual) {
return parser_getErrorDescription(parser_value_out_of_range);
}
#else
if (type != tx_json) {
return parser_getErrorDescription(parser_value_out_of_range);
}
#endif

MEMZERO(&tx_obj, sizeof(tx_obj));
tx_obj.tx_type = type;
Expand Down
25 changes: 3 additions & 22 deletions app/src/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,7 @@ static zxerr_t crypto_hashBuffer(const uint8_t *input, const uint16_t inputLen,
}

case BECH32_ETH: {
cx_sha3_t sha3 = {0};
cx_err_t status = cx_keccak_init_no_throw(&sha3, 256);
if (status != CX_OK) {
return zxerr_ledger_api_error;
}
status = cx_hash_no_throw((cx_hash_t*) &sha3, CX_LAST, input, inputLen, output, outputLen);
if (status != CX_OK) {
return zxerr_ledger_api_error;
}
CHECK_CX_OK(cx_keccak_256_hash(input, inputLen, output));
break;
}

Expand Down Expand Up @@ -163,13 +155,6 @@ zxerr_t crypto_sign(uint8_t *output,
return error;
}

static zxerr_t ripemd160_32(uint8_t *out, uint8_t *in) {
cx_ripemd160_t rip160;
CHECK_CX_OK(cx_ripemd160_init_no_throw(&rip160));
CHECK_CX_OK(cx_hash_no_throw(&rip160.header, CX_LAST, in, CX_SHA256_SIZE, out, CX_RIPEMD160_SIZE));
return zxerr_ok;
}

zxerr_t crypto_fillAddress(uint8_t *buffer, uint16_t buffer_len, uint16_t *addrResponseLen) {
if (buffer_len < PK_LEN_SECP256K1 + 50) {
return zxerr_buffer_too_small;
Expand All @@ -188,17 +173,13 @@ zxerr_t crypto_fillAddress(uint8_t *buffer, uint16_t buffer_len, uint16_t *addrR
// Hash it
cx_hash_sha256(buffer, PK_LEN_SECP256K1, hashed1_pk, CX_SHA256_SIZE);
uint8_t hashed2_pk[CX_RIPEMD160_SIZE] = {0};
CHECK_ZXERR(ripemd160_32(hashed2_pk, hashed1_pk));
CHECK_CX_OK(cx_ripemd160_hash(hashed1_pk, CX_SHA256_SIZE, hashed2_pk));
CHECK_ZXERR(bech32EncodeFromBytes(addr, buffer_len - PK_LEN_SECP256K1, bech32_hrp, hashed2_pk, CX_RIPEMD160_SIZE, 1, BECH32_ENCODING_BECH32));
break;
}

case BECH32_ETH: {
cx_sha3_t ctx;
if (cx_keccak_init_no_throw(&ctx, 256) != CX_OK) {
return zxerr_unknown;
}
CHECK_CX_OK(cx_hash_no_throw((cx_hash_t *)&ctx, CX_LAST, uncompressedPubkey+1, sizeof(uncompressedPubkey)-1, hashed1_pk, sizeof(hashed1_pk)));
CHECK_CX_OK(cx_keccak_256_hash(uncompressedPubkey+1, sizeof(uncompressedPubkey)-1, hashed1_pk));
CHECK_ZXERR(bech32EncodeFromBytes(addr, buffer_len - PK_LEN_SECP256K1, bech32_hrp, hashed1_pk + 12, sizeof(hashed1_pk) - 12, 1, BECH32_ENCODING_BECH32));
break;
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/json/json_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extern "C" {
// we must limit the number
#if defined(TARGET_NANOS)
#undef MAX_NUMBER_OF_TOKENS
#define MAX_NUMBER_OF_TOKENS 70
#define MAX_NUMBER_OF_TOKENS 96
#endif

#if defined(TARGET_STAX)
Expand Down
14 changes: 14 additions & 0 deletions app/src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ __Z_INLINE parser_error_t parser_formatAmount(uint16_t amountToken,
return parser_formatAmountItem(showItemTokenIdx, outVal, outValLen, showPageIdx, &dummy);
}

#if defined(COMPILE_TEXTUAL)
__Z_INLINE parser_error_t parser_screenPrint(const parser_context_t *ctx,
Cbor_container *container,
char *outKey, uint16_t outKeyLen,
Expand Down Expand Up @@ -433,12 +434,24 @@ __Z_INLINE parser_error_t parser_getNextNonExpert(const parser_context_t *ctx,
}
return parser_ok;
}
#endif

__Z_INLINE parser_error_t parser_getTextualItem(const parser_context_t *ctx,
uint8_t displayIdx,
char *outKey, uint16_t outKeyLen,
char *outVal, uint16_t outValLen,
uint8_t pageIdx, uint8_t *pageCount) {
#if !defined(COMPILE_TEXTUAL)
UNUSED(ctx);
UNUSED(displayIdx);
UNUSED(outKey);
UNUSED(outKeyLen);
UNUSED(outVal);
UNUSED(outValLen);
UNUSED(pageIdx);
UNUSED(pageCount);
return parser_value_out_of_range;
#else
*pageCount = 0;

MEMZERO(outKey, outKeyLen);
Expand Down Expand Up @@ -477,6 +490,7 @@ __Z_INLINE parser_error_t parser_getTextualItem(const parser_context_t *ctx,
CHECK_PARSER_ERR(parser_screenPrint(ctx, &container, outKey, outKeyLen, outVal, outValLen, pageIdx, pageCount))

return parser_ok;
#endif
}

__Z_INLINE parser_error_t parser_getJsonItem(const parser_context_t *ctx,
Expand Down
6 changes: 6 additions & 0 deletions app/src/parser_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ parser_error_t _read_json_tx(parser_context_t *c, __Z_UNUSED parser_tx_t *v) {
}

parser_error_t _read_text_tx(parser_context_t *c, parser_tx_t *v) {
#if !defined(COMPILE_TEXTUAL)
UNUSED(c);
UNUSED(v);
return parser_value_out_of_range;
#else
CborValue it;
CborValue mapStruct_ptr;
CHECK_APP_CANARY()
Expand Down Expand Up @@ -166,4 +171,5 @@ parser_error_t _read_text_tx(parser_context_t *c, parser_tx_t *v) {
PARSER_ASSERT_OR_ERROR(it.source.ptr == c->buffer + c->bufferLen, parser_cbor_unexpected_EOF)

return parser_ok;
#endif
}
2 changes: 1 addition & 1 deletion deps/nanos-secure-sdk
Submodule nanos-secure-sdk updated 63 files
+1 −1 Makefile.defines
+54 −6 Makefile.rules
+34 −2 Makefile.rules_generic
+11 −0 include/cx_errors.h
+92 −153 include/ledger_assert.h
+226 −0 include/ledger_assert_internals.h
+0 −7 include/os.h
+7 −0 include/os_print.h
+37 −28 lib_cxng/include/lcx_aes.h
+94 −13 lib_cxng/include/lcx_blake2.h
+12 −3 lib_cxng/include/lcx_common.h
+7 −7 lib_cxng/include/lcx_crc.h
+19 −9 lib_cxng/include/lcx_des.h
+16 −14 lib_cxng/include/lcx_ecdh.h
+32 −31 lib_cxng/include/lcx_ecdsa.h
+68 −60 lib_cxng/include/lcx_ecfp.h
+19 −19 lib_cxng/include/lcx_ecschnorr.h
+32 −32 lib_cxng/include/lcx_eddsa.h
+4 −4 lib_cxng/include/lcx_groestl.h
+22 −22 lib_cxng/include/lcx_hash.h
+51 −38 lib_cxng/include/lcx_hmac.h
+91 −67 lib_cxng/include/lcx_math.h
+10 −9 lib_cxng/include/lcx_pbkdf2.h
+47 −7 lib_cxng/include/lcx_ripemd160.h
+23 −21 lib_cxng/include/lcx_rng.h
+62 −62 lib_cxng/include/lcx_rsa.h
+93 −9 lib_cxng/include/lcx_sha256.h
+424 −17 lib_cxng/include/lcx_sha3.h
+86 −10 lib_cxng/include/lcx_sha512.h
+1 −1 lib_cxng/include/libcxng.h
+4 −3 lib_cxng/src/cx_blake2.h
+6 −5 lib_cxng/src/cx_blake2b.h
+4 −4 lib_cxng/src/cx_crc.h
+4 −4 lib_cxng/src/cx_ecfp.h
+12 −12 lib_cxng/src/cx_eddsa.h
+16 −16 lib_cxng/src/cx_hash.h
+12 −11 lib_cxng/src/cx_pbkdf2.h
+9 −0 lib_cxng/src/cx_pkcs1.c
+4 −0 lib_cxng/src/cx_ram.h
+23 −3 lib_cxng/src/cx_ripemd160.h
+4 −3 lib_cxng/src/cx_rng.h
+14 −13 lib_cxng/src/cx_rng_rfc6979.h
+2 −2 lib_cxng/src/cx_rsa.c
+35 −36 lib_cxng/src/cx_rsa.h
+23 −3 lib_cxng/src/cx_sha256.h
+23 −4 lib_cxng/src/cx_sha3.h
+23 −4 lib_cxng/src/cx_sha512.h
+1 −1 lib_cxng/src/cx_utils.h
+2 −3 lib_stusb/STM32_USB_Device_Library/Class/CCID/inc/sc_itf.h
+10 −0 lib_stusb/STM32_USB_Device_Library/Class/CCID/inc/usbd_ccid_if.h
+16 −23 lib_stusb/STM32_USB_Device_Library/Class/CCID/src/usbd_ccid_cmd.c
+38 −32 lib_stusb/STM32_USB_Device_Library/Class/CCID/src/usbd_ccid_if.c
+1 −0 lib_stusb/usbd_conf.h
+96 −24 lib_stusb_impl/u2f_impl.c
+7 −0 lib_stusb_impl/u2f_impl.h
+51 −5 lib_stusb_impl/usbd_impl.c
+7 −0 lib_ux/include/ux.h
+2 −0 lib_ux/src/ux_layout_common.h
+0 −2 lib_ux/src/ux_layout_paging.c
+245 −0 src/cx_hash_iovec.c
+3 −1 src/cx_stubs.S
+53 −0 src/cx_wrappers.c
+33 −34 src/ledger_assert.c
2 changes: 1 addition & 1 deletion deps/nanosplus-secure-sdk
2 changes: 1 addition & 1 deletion deps/nanox-secure-sdk
Submodule nanox-secure-sdk updated 876 files
10 changes: 5 additions & 5 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@
},
"dependencies": {
"@zondax/ledger-cosmos-js": "^3.0.3",
"@zondax/zemu": "^0.46.0"
"@zondax/zemu": "^0.47.0"
},
"devDependencies": {
"@types/jest": "^29.5.11",
"@types/jest": "^29.5.12",
"@types/ledgerhq__hw-transport": "^4.21.8",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"bech32": "^2.0.0",
"blakejs": "^1.1.1",
"crypto-js": "4.2.0",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-jest": "^27.9.0",
"eslint-plugin-prettier": "^5.1.2",
"jest": "29.7.0",
"jest-serial-runner": "^1.1.0",
"js-sha3": "0.9.3",
"jssha": "^3.2.0",
"keccak256": "^1.0.6",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"secp256k1": "^5.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
Expand Down
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00000.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00001.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00002.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00003.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00004.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00005.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00006.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00007.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00008.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00009.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00010.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00011.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00012.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00013.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00014.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00015.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic/00016.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00000.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00001.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00002.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00003.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00004.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00005.png
Binary file not shown.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00006.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00007.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00008.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00009.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00010.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00011.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00012.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00013.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00014.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00015.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00016.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00017.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00018.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00019.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00020.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00021.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00022.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00023.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00024.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00025.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00026.png
Diff not rendered.
Binary file removed tests_zemu/snapshots/s-textual-sign_basic_eth/00027.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified tests_zemu/snapshots/sp-govDeposit/00003.png
Binary file modified tests_zemu/snapshots/sp-govDeposit/00006.png
Binary file modified tests_zemu/snapshots/sp-govDeposit/00008.png
Binary file modified tests_zemu/snapshots/sp-ibc_denoms/00001.png
Binary file modified tests_zemu/snapshots/sp-ibc_denoms/00002.png
Binary file modified tests_zemu/snapshots/sp-ibc_denoms/00003.png
Binary file modified tests_zemu/snapshots/sp-ibc_denoms/00004.png
Binary file modified tests_zemu/snapshots/sp-ibc_denoms/00005.png
Binary file modified tests_zemu/snapshots/sp-ibc_denoms/00006.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00001.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00002.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00003.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Binary file modified tests_zemu/snapshots/sp-mainmenu/00011.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00003.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00005.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00006.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00007.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00008.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00009.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00010.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00011.png
Binary file modified tests_zemu/snapshots/sp-msgMultiSend/00012.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress-eth/00003.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress-eth/00004.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress-eth/00005.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress-eth/00006.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress-eth/00008.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress-eth/00009.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress/00003.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress/00004.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress/00005.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress/00006.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress/00008.png
Binary file modified tests_zemu/snapshots/sp-setWithdrawAddress/00009.png
Binary file modified tests_zemu/snapshots/sp-show_address/00001.png
Binary file modified tests_zemu/snapshots/sp-show_eth_address/00001.png
Binary file modified tests_zemu/snapshots/sp-sign_basic/00002.png
Binary file modified tests_zemu/snapshots/sp-sign_basic/00003.png
Binary file modified tests_zemu/snapshots/sp-sign_basic/00004.png
Binary file modified tests_zemu/snapshots/sp-sign_basic2/00003.png
Binary file modified tests_zemu/snapshots/sp-sign_basic2/00004.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_eth/00003.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_eth/00005.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_eth/00006.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_eth/00007.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_eth/00008.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_eth_warning/00000.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_extra_fields/00002.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_extra_fields/00003.png
Binary file modified tests_zemu/snapshots/sp-sign_basic_extra_fields/00004.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic/00002.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic/00003.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic/00004.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic/00006.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic/00008.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00002.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00003.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00005.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00006.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00007.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00008.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00009.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00011.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00013.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00018.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00019.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth/00020.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_eth_warning/00000.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00002.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00003.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00005.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00006.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00007.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00008.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00009.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00011.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00013.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00018.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00019.png
Binary file modified tests_zemu/snapshots/sp-textual-sign_basic_expert/00020.png
Binary file modified tests_zemu/snapshots/st-mainmenu/00001.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
12 changes: 6 additions & 6 deletions tests_zemu/tests/textual.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jest.setTimeout(90000)

describe('Textual', function () {
// eslint-disable-next-line jest/expect-expect
test.concurrent.each(DEVICE_MODELS)('can start and stop container', async function (m) {
test.concurrent.each(DEVICE_MODELS.slice(1))('can start and stop container', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start({ ...defaultOptions, model: m.name })
Expand All @@ -37,7 +37,7 @@ describe('Textual', function () {
}
})

test.concurrent.each(DEVICE_MODELS)('sign basic textual', async function (m) {
test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start({ ...defaultOptions, model: m.name })
Expand Down Expand Up @@ -83,7 +83,7 @@ describe('Textual', function () {
}
})

test.concurrent.each(DEVICE_MODELS)('sign basic textual expert', async function (m) {
test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual expert', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start({ ...defaultOptions, model: m.name })
Expand Down Expand Up @@ -132,7 +132,7 @@ describe('Textual', function () {
}
})

test.concurrent.each(DEVICE_MODELS)('sign basic textual eth ', async function (m) {
test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual eth ', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start({ ...defaultOptions, model: m.name })
Expand Down Expand Up @@ -181,7 +181,7 @@ describe('Textual', function () {
}
})

test.concurrent.each(DEVICE_MODELS)('sign basic textual eth warning ', async function (m) {
test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual eth warning ', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start({ ...defaultOptions, model: m.name })
Expand Down Expand Up @@ -227,7 +227,7 @@ describe('Textual', function () {
}
})

test.concurrent.each(DEVICE_MODELS)('sign basic textual evmos ', async function (m) {
test.concurrent.each(DEVICE_MODELS.slice(1))('sign basic textual evmos ', async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start({ ...defaultOptions, model: m.name })
Expand Down

0 comments on commit e0addc1

Please sign in to comment.