Commit Graph

30 Commits

Author SHA1 Message Date
Alexandre Paillier
fb28efc012 Removed the helper getNftContractAddress helper function and some NULL checks
Useless since we don't allow NFT signing without the NFT metadata anymore
2022-03-09 16:40:45 +01:00
Jean-Baptiste Bédrune
ed4e10628a Change type of output length in amountToString
Defining out_buffer_size as uint8_t triggers warnings with static
analysers when sizeof() is used on the output buffer.

There is no reason to use uint8_t here.
2022-02-21 23:56:08 +01:00
Alexandre Paillier
ce2df92741 New common function to get the NFT contract address 2022-02-15 14:33:55 +01:00
TamtamHero
0d45d2e2d0 Update some prototypes to use chainId value instead of chainConfig structure 2021-08-30 11:02:55 +02:00
TamtamHero
3e25f04d05 Refactoring helper to get printable eth address from hex 2021-08-30 11:00:51 +02:00
pscott
1fbbc33cc0 Fix offest calc in 1191 2021-08-27 11:51:27 +02:00
pscott
94363738fe Move u64_to_string 2021-08-26 13:59:42 +02:00
Jean-Baptiste Bédrune
c27d59d792 Fix last compilation warnings
Signed-off-by: pscott <scott.piriou@ledger.fr>
2021-07-27 12:09:22 +02:00
pscott
d541f1f524 Add pointer to msg_sender in Eth_plugin_finalize (#170)
* Add some PRINTF debug statements and fir additional screens init

* Memzero struture and use two pointers less

* Clang-format

* Use ADDRESS_LENGTH where possible; Add printf statements when failing to compare contracts

* clang-format

* Remove 'token1' and 'token2' locals

* Fix typo

* apply clang-format

* Add bip32path to sharedRO for plugins

* Change getEthAddressStringFromKey to accept char instead of uint8_t

* Update ethereum plugin sdk

* Add BYPASS_SIGNATURES compilation option

* Remove bip32path and pathLength from sharedRO; add msg_sender pointer to pluginFinalize.address

* clang format eth_plugin_interface

* Update submodule

* Set address BEFORE making the finalize call

* Update SDK

Co-authored-by: TamtamHero <10632523+TamtamHero@users.noreply.github.com>
2021-07-09 11:46:36 +02:00
pscott
b646cf1b28 Fix compilation warnings (#159)
* Fix easy warnings for sdk 2.0

* Add attribute unused to bagl_elemt_t in callback functions

* Add attribute unused to io_event function

* Clang-format

* Use elfs from CI in tests (#167)

* Add Nano X build

* Use CI's build artifacts for CI's tests

* Add network display (#152)

* Add network name display instead of chainID

* Add display of correct ticker along with network

* Add FTM

* Clang-format

* Add comment in python script

* Rename SIZE_MAX to MAX_SIZE

* Change %u to %d in printf

* Remove needless PIC

* Update comment about get_chain_id()

* Update example script to follow EIP155

* Remove unused PIC calls

* Add whitespace between ticker and amount when using EIP155

* Remove decimal config per network, set back 18 everywhere

* Adapt u32_from_BE to swith cases

* Remove chainid from signTx.py

* Switch to switch in stead of if in get_chain_id

* Revert "Remove chainid from signTx.py"

This reverts commit 454e09f280ec3e3ec1c7d7cc0027247ef4390088.

* Change Ethereum chainid to 1

* Rename chainid_step to network_step

* Adapt finalizeParsing to new chainid for Ethereum

* Update snapshots

* clang-format

* Fix network display logic for clones

* Fix tests

* Add clone tests

Co-authored-by: TamtamHero <10632523+TamtamHero@users.noreply.github.com>

Co-authored-by: Jean P <10632523+TamtamHero@users.noreply.github.com>
2021-07-05 11:01:51 +02:00
TamtamHero
82bf81cca6 Remove dead code + expand allzeroes usage to bigger integers 2021-06-08 10:24:51 +02:00
pscott
5fd27ff5ca Use INT256_LENGTH and ADDRESS_LENGTH define 2021-06-08 10:24:51 +02:00
TamtamHero
17bd07a346 Apply clang-format 2020-12-01 16:20:13 +01:00
BTChip github
d43f7f6698 Cleanup os_mem* functions 2020-11-30 18:22:17 +01:00
TamtamHero
9d4dfbe1bf Add Swap feature 2020-09-14 14:43:36 +02:00
BTChip github
8d0544bf68 Merge Starkware branch 2020-06-27 13:24:04 +02:00
BTChip github
658164ae18 Remove CX_COMPLIANCE_141 2020-01-18 12:46:37 +01:00
Clément Péron
f75adced1d Use correct include headers
Some headers are overkilled, and the order should be

/* LibC */
include <stdxxx.h>

/* Framework */
include <os.h>

/* Local */
include "EthUstream.h"
2019-01-16 11:10:35 +01:00
Clément Péron
649d5ebe26 update header license 2019-01-16 11:10:35 +01:00
Clément Péron
056dc0099e Remove trailing spaces
find -name '*.c' -o -name '*.h' -o -name 'Makefile' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
2018-12-19 17:05:59 +01:00
BTChip github
051742a289 Fix checksum altogether 2018-08-06 23:46:37 +02:00
BTChip github
6308202cbb Fix EIP 1191 2018-08-06 23:05:22 +02:00
BTChip github
b9e1e4e42d Add EIP 1191 checksum support (RSK) 2018-08-02 11:16:25 +02:00
BTChip github
c276531c83 Update to U2F managed SDK - add forks 2018-07-27 21:02:24 +02:00
BTChip github
a954625362 Fix non decimal display glitch 2017-05-31 21:48:49 +02:00
BTChip
0c094f4fe6 ERC-20 tokens support for a simple set of tokens - display additional transaction details 2017-02-04 13:14:24 +01:00
BTChip
34310ef17c Fix display for < 1 ETH values 2016-08-28 23:38:27 +02:00
BTChip
0eb82c6f98 Cleanup, adjust derivation API to API level 5, adjust linker script and NVRAM location, move to internal SHA3 API, fix address checksum 2016-08-12 15:53:40 +02:00
BTChip
04deca3dad Nano S release
Build for Blue SDK 1.2 / Nano S 1.0 release
Nano S UI
2016-07-31 09:36:00 +02:00
BTChip
3e3b9dcc6a Initial import 2016-06-01 21:41:29 +02:00