diff --git a/CHANGELOG.md b/CHANGELOG.md index fba9db8..03c3d7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.9.9](https://github.com/ledgerhq/app-ethereum/compare/1.9.8...1.9.9) - 2021-10-08 + +### Changed + +- Rollback the revert in wording change of "Contract data" in "Blind signing" that was introduced in v1.9.8 + +## [1.9.8](https://github.com/ledgerhq/app-ethereum/compare/1.9.7...1.9.8) - 2021-10-06 + +### Changed + +- Revert wording change of "Contract data" in "Blind signing" from v1.9.5 + +### Added + +- Goerli now has its own standalone app, with hardcoded deversifi tokens + ## [1.9.7](https://github.com/ledgerhq/app-ethereum/compare/1.9.6...1.9.7) - 2021-9-30 ### Fixed diff --git a/Makefile b/Makefile index 5c857be..c0f2e3d 100755 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ APP_LOAD_PARAMS += --path "1517992542'/1101353413'" APPVERSION_M=1 APPVERSION_N=9 -APPVERSION_P=7 +APPVERSION_P=9 APPVERSION=$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P) APP_LOAD_FLAGS= --appFlags 0x240 --dep Ethereum:$(APPVERSION) @@ -67,6 +67,21 @@ DEFINES += HAVE_ETH2 APPNAME = "Eth Ropsten" DEFINES_LIB= APP_LOAD_FLAGS=--appFlags 0xa40 +else ifeq ($(CHAIN),goerli) +APP_LOAD_PARAMS += --path "44'/60'" +DEFINES += CHAINID_UPCASE=\"ETHEREUM\" CHAINID_COINNAME=\"ETH\" CHAIN_KIND=CHAIN_KIND_ETHEREUM CHAIN_ID=5 +# Starkware integration +APP_LOAD_PARAMS += --path "2645'/579218131'" +DEFINES += HAVE_STARKWARE +# Keep for Starkware Goerli tests +DEFINES += HAVE_TOKENS_EXTRA_LIST +DEFINES += STARK_BIP32_PATH_0=0x80000A55 STARK_BIP32_PATH_1=0xA2862AD3 +# Allow to derive ETH 2 public keys +APP_LOAD_PARAMS += --path "12381/3600" --curve bls12381g1 +DEFINES += HAVE_ETH2 +APPNAME = "Eth Goerli" +DEFINES_LIB= +APP_LOAD_FLAGS=--appFlags 0xa40 else ifeq ($(CHAIN),ellaism) APP_LOAD_PARAMS += --path "44'/163'" DEFINES += CHAINID_UPCASE=\"ELLA\" CHAINID_COINNAME=\"ELLA\" CHAIN_KIND=CHAIN_KIND_ELLAISM CHAIN_ID=64 @@ -217,7 +232,7 @@ DEFINES += CHAINID_UPCASE=\"SONGBIRD\" CHAINID_COINNAME=\"SGB\" CHAIN_KIND=CHAIN APPNAME = "Songbird" else ifeq ($(filter clean,$(MAKECMDGOALS)),) -$(error Unsupported CHAIN - use ethereum, ropsten, moonriver, ethereum_classic, expanse, poa, artis_sigma1, artis_tau1, rsk, rsk_testnet, ubiq, wanchain, kusd, musicoin, pirl, akroma, atheios, callisto, ethersocial, ellaism, ether1, ethergem, gochain, mix, reosc, hpb, tomochain, tobalaba, dexon, volta, ewc, webchain, thundercore, bsc, songbird) +$(error Unsupported CHAIN - use ethereum, ropsten, goerli, moonriver, ethereum_classic, expanse, poa, artis_sigma1, artis_tau1, rsk, rsk_testnet, ubiq, wanchain, kusd, musicoin, pirl, akroma, atheios, callisto, ethersocial, ellaism, ether1, ethergem, gochain, mix, reosc, hpb, tomochain, tobalaba, dexon, volta, ewc, webchain, thundercore, bsc, songbird) endif endif @@ -388,4 +403,4 @@ include $(BOLOS_SDK)/Makefile.rules dep/%.d: %.c Makefile listvariants: - @echo VARIANTS CHAIN ethereum ropsten moonriver ethereum_classic expanse poa rsk rsk_testnet ubiq wanchain pirl akroma atheios callisto ethersocial ether1 gochain musicoin ethergem mix ellaism reosc hpb tomochain dexon volta ewc thundercore bsc songbird + @echo VARIANTS CHAIN ethereum ropsten goerli moonriver ethereum_classic expanse poa rsk rsk_testnet ubiq wanchain pirl akroma atheios callisto ethersocial ether1 gochain musicoin ethergem mix ellaism reosc hpb tomochain dexon volta ewc thundercore bsc songbird diff --git a/icons/blue_app_goerli.gif b/icons/blue_app_goerli.gif new file mode 100644 index 0000000..c3d5c4e Binary files /dev/null and b/icons/blue_app_goerli.gif differ diff --git a/icons/goerli.png b/icons/goerli.png new file mode 100755 index 0000000..60e111c Binary files /dev/null and b/icons/goerli.png differ diff --git a/icons/nanos_app_goerli.gif b/icons/nanos_app_goerli.gif new file mode 100644 index 0000000..8f8fa31 Binary files /dev/null and b/icons/nanos_app_goerli.gif differ diff --git a/icons/nanox_app_goerli.gif b/icons/nanox_app_goerli.gif new file mode 100644 index 0000000..d70e8a7 Binary files /dev/null and b/icons/nanox_app_goerli.gif differ diff --git a/src/tokens.c b/src/tokens.c index 1df92b8..4819ff2 100644 --- a/src/tokens.c +++ b/src/tokens.c @@ -21,6 +21,7 @@ const tokenDefinition_t const TOKENS_EXTRA[NUM_TOKENS_EXTRA] = { + // Ropsten DeversiFi tokens {{0x4c, 0x5f, 0x66, 0x59, 0x61, 0x97, 0xa8, 0x6f, 0xb3, 0x0a, 0x24, 0x35, 0xe2, 0xef, 0x4d, 0xdc, 0xb3, 0x93, 0x42, 0xc9}, "tUSDT ", @@ -37,6 +38,23 @@ const tokenDefinition_t const TOKENS_EXTRA[NUM_TOKENS_EXTRA] = { 0x53, 0x3c, 0xd6, 0xa2, 0x1e, 0x3e, 0x59, 0xbe, 0x32, 0x4a}, "tBTC ", 18}, + // Goerli DeversiFi tokens + {{0xd9, 0x97, 0xa8, 0x63, 0x46, 0xe7, 0x65, 0x18, 0xe6, 0x92, + 0x25, 0x56, 0xf3, 0x4d, 0x76, 0x61, 0x30, 0xc0, 0xbb, 0xfd}, + "tUSDT ", + 6}, + {{0xc1, 0xd5, 0x79, 0xeb, 0xff, 0x7c, 0x0f, 0x6c, 0xfd, 0x9a, + 0xd5, 0xfb, 0x26, 0x7f, 0xec, 0x73, 0xbe, 0x70, 0xc8, 0xf7}, + "tBTC ", + 18}, + {{0xa8, 0xf3, 0x14, 0x4f, 0xea, 0x2c, 0x37, 0x5a, 0xd0, 0x58, + 0xec, 0x12, 0x09, 0x9a, 0x5a, 0x21, 0xa2, 0x6f, 0xe9, 0x96}, + "tDVF ", + 18}, + {{0x4c, 0xda, 0xbe, 0xc1, 0x2a, 0x39, 0x7f, 0xb6, 0xef, 0xaf, + 0x46, 0x13, 0xd5, 0xdf, 0xd7, 0x9b, 0x30, 0x9a, 0xe9, 0xfa}, + "tXDVF ", + 18}, }; diff --git a/src/tokens.h b/src/tokens.h index 1a5ef6b..5592d99 100644 --- a/src/tokens.h +++ b/src/tokens.h @@ -34,7 +34,7 @@ typedef struct tokenDefinition_t { #ifdef HAVE_TOKENS_EXTRA_LIST -#define NUM_TOKENS_EXTRA 4 +#define NUM_TOKENS_EXTRA 8 extern tokenDefinition_t const TOKENS_EXTRA[NUM_TOKENS_EXTRA];