Commit Graph

103 Commits

Author SHA1 Message Date
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
pscott
a2d9a8068a 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>
2021-07-02 18:46:23 +02:00
pscott
9a11d36105 Clang-format main 2021-06-18 12:27:20 +02:00
pscott
0dbb693c59 clang-format 2021-06-08 10:25:15 +02:00
pscott
a61a155d0b Add additionalScreens field 2021-06-08 10:25:15 +02:00
pscott
268ce5d9dd Fix uint256_to_decimal 2021-06-08 10:25:15 +02:00
pscott
5e70ea1736 Update uint256_to_decimal to right-align value 2021-06-08 10:24:52 +02:00
Jean-Baptiste Bédrune
787f158485 Change amountToString prototype 2021-06-08 10:24:52 +02:00
Jean-Baptiste Bédrune
25c7582749 Better types in plugin interface 2021-06-08 10:24:52 +02:00
Jean-Baptiste Bédrune
ca8dd3ab3c Add version field in ethPluginInitContract_t 2021-06-08 10:24:52 +02:00
pscott
24370241f3 Include ethUstream in tokens.h 2021-06-08 10:24:51 +02:00
pscott
b651f530be Put externalPluginIsSet as its own global; initialize it at launch 2021-06-08 10:24:51 +02:00
pscott
5fe6eb1d94 Add defines for SHARED_CTX_FIELD 1 and 2 2021-06-08 10:24:51 +02:00
pscott
8592a22542 Clang-format 2021-06-08 10:24:51 +02:00
pscott
3b6fd0d169 Undo testing commit 2021-06-08 10:24:51 +02:00
pscott
47f00cc910 Use ADDRESS_LENGTH 2021-06-08 10:24:51 +02:00
pscott
9cf5be8724 Increase alias size for plugin 2021-06-08 10:24:51 +02:00
TamtamHero
a54b4bda1d Fix alignment access issue on nano S 2021-06-08 10:24:51 +02:00
TamtamHero
ec1a0d1128 test key + disable bls sigs 2021-06-08 10:24:51 +02:00
TamtamHero
e2fa7ccaf9 Increase size allocate to plugin context from 96 to 160 bytes 2021-06-08 10:24:51 +02:00
TamtamHero
82bf81cca6 Remove dead code + expand allzeroes usage to bigger integers 2021-06-08 10:24:51 +02:00
TamtamHero
e80207cf6f Add uint256_to_decimal to replace tostring256
TODO: replace tostring256 everywhere
2021-06-08 10:24:51 +02:00
TamtamHero
40664a65f1 Fix issues due to base64(contractAddr) removal 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
0bd5fa717e Add Ledger signature checking for external plugins 2021-06-08 10:24:51 +02:00
TamtamHero
4539f9d933 Accept to be launched as Ethereum from remote app 2021-06-08 10:24:50 +02:00
TamtamHero
f096e91690 Add contract address and selector to setExternalPlugin 2021-06-08 10:24:50 +02:00
TamtamHero
93083ecb4b Reset tmpCtx entirely 2021-06-08 10:24:50 +02:00
TamtamHero
50b876ff6a Remove automatic plugin search for base64(contract_addr) 2021-06-08 10:24:50 +02:00
TamtamHero
b821c0d8a7 Add setExternalPlugin command 2021-06-08 10:24:50 +02:00
jingxu85
e5d202d895 signed commit with icons 2021-06-01 10:31:54 -07:00
Markus Alvila
073f586c98 Add support for Flare Network (FLR) (#148)
Signed-off-by: RareData <44319370+RareData@users.noreply.github.com>
2021-06-01 11:49:39 +02:00
BTChip github
cf0a133e68 Interim fix for different cx_ecfp_scalar_mult behaviour in firmware v2 2021-05-09 21:42:51 +02:00
pscott
6d3d4349a6 Initialize plugin result to unavailable (#139)
* Initialize plugin result to unavailable

* Clang format
2021-05-06 12:39:27 +02:00
Jean P
3cad04fe74 Merge pull request #138 from LedgerHQ/add-missing-includes
Add missing includes
2021-05-05 12:09:23 +02:00
Edouard Merle
62485a0876 adding missing ux includes 2021-05-05 12:06:55 +02:00
pscott
f250865bcb Merge branch 'master' of github.com:LedgerHQ/app-ethereum into fix_security_and_display_issues 2021-05-04 12:14:44 +02:00
Jean P
6cc785e34b Merge pull request #131 from LedgerHQ/eip_2718
Support EIP2718 (transaction types) and EIP2930 (access list transactions) and display ChainID
2021-05-04 11:54:30 +02:00
TamtamHero
baae0d7569 Add wallet ID feature for Nano X 2021-04-30 19:40:58 +02:00
pscott
ebffb48cd3 Use snprintf instead of u32_to_str 2021-04-28 10:48:18 +02:00
pscott
f893637d71 Clang-format 2021-04-27 10:37:22 +02:00
pscott
a6945c42b2 Fix return values from enums 2021-04-27 10:36:22 +02:00
pscott
e4d66535ed Use equal for comparison with unsuccesful variant 2021-04-24 12:15:32 +02:00
pscott
6cd4b6e2aa Revamp return results of plugins 2021-04-24 12:14:36 +02:00
pscott
c006233a78 Fix enum value for UNAVAILABLE 2021-04-24 12:02:25 +02:00
pscott
0af10691eb Verify return value of plugin 2021-04-23 19:15:30 +02:00
pscott
d701f75197 Add comments to u32_from_BE in header file 2021-04-21 17:09:45 +02:00
pscott
dafdc404ac Add strict parameter to u32_from_BE 2021-04-21 17:07:16 +02:00
pscott
81ec019242 Re-enable plugins 2021-04-21 17:04:09 +02:00
pscott
970f0355dd Add support for EIP2718 (enveloppe) and EIP2930 (acess list tx); Display chain ID when different from 1 (ethereum mainnet) 2021-04-21 16:56:17 +02:00