Commit Graph

19 Commits

Author SHA1 Message Date
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
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
Jean-Baptiste Bédrune
ea7d3754c6 Fix compilation waring in eth sdk 2021-06-08 10:24:52 +02:00
TamtamHero
82bf81cca6 Remove dead code + expand allzeroes usage to bigger integers 2021-06-08 10:24:51 +02:00
TamtamHero
17bd07a346 Apply clang-format 2020-12-01 16:20:13 +01:00
TamtamHero
eac45259da Remove trailing whitespaces 2020-10-07 16:56:40 +02: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
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
6af656c5ce Add Include macro guards 2019-01-16 11:10:34 +01:00
BTChip github
c276531c83 Update to U2F managed SDK - add forks 2018-07-27 21:02:24 +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