Skip to content

Commit

Permalink
added shimmer variant
Browse files Browse the repository at this point in the history
  • Loading branch information
shufps committed Oct 25, 2022
1 parent a6b2bff commit 34064a5
Show file tree
Hide file tree
Showing 31 changed files with 58,283 additions and 16 deletions.
23 changes: 8 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,15 @@ endif

include $(BOLOS_SDK)/Makefile.defines

APPNAME = "IOTA"
APPVERSION_M = 0
APPVERSION_N = 8
APPVERSION_P = 0
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"

APP_LOAD_PARAMS = --path "44'/1'" --curve ed25519 --appFlags 0x240 $(COMMON_LOAD_PARAMS)

DEFINES += APP_IOTA
# IOTA BIP-path
APP_LOAD_PARAMS += --path "44'/4218'"
ifeq ($(CHAIN),)
CHAIN=iota
endif

ifeq ($(TARGET_NAME),TARGET_NANOS)
ICONNAME=icons/nanos_app_iota.gif
# Check if chain is available
ifeq ($(shell test -s ./makefile_conf/chain/$(CHAIN).mk && echo -n yes), yes)
include ./makefile_conf/chain/$(CHAIN).mk
else
ICONNAME=icons/nanox_app_iota.gif
$(error Unsupported CHAIN - use $(SUPPORTED_CHAINS))
endif

all: default
Expand Down Expand Up @@ -145,4 +138,4 @@ include $(BOLOS_SDK)/Makefile.rules
dep/%.d: %.c Makefile

listvariants:
@echo VARIANTS COIN iota
@echo VARIANTS COIN iota shimmer
Binary file added docs/images/address.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 added docs/images/blindsigning_1.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 added docs/images/blindsigning_ne.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 added docs/images/claim_smr_1.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 added docs/images/claim_smr_2.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 added docs/images/internal_transfer_1.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 added docs/images/internal_transfer_2.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 added icons/nanos_app_shimmer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/nanox_app_shimmer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions makefile_conf/chain/iota.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
APPNAME = "IOTA"
APPVERSION_M = 0
APPVERSION_N = 8
APPVERSION_P = 0
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"

APP_LOAD_PARAMS = --path "44'/1'" --curve ed25519 --appFlags 0x240 $(COMMON_LOAD_PARAMS)

DEFINES += APP_IOTA
# IOTA BIP-path
APP_LOAD_PARAMS += --path "44'/4218'"

ifeq ($(TARGET_NAME),TARGET_NANOS)
ICONNAME=icons/nanos_app_iota.gif
else
ICONNAME=icons/nanox_app_iota.gif
endif

20 changes: 20 additions & 0 deletions makefile_conf/chain/shimmer.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
APPNAME = "Shimmer"
APPVERSION_M = 0
APPVERSION_N = 8
APPVERSION_P = 2
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"

APP_LOAD_PARAMS = --path "44'/1'" --curve ed25519 --appFlags 0x240 $(COMMON_LOAD_PARAMS)

DEFINES += APP_SHIMMER
# IOTA BIP-path for claiming Shimmer from IOTA addresses
APP_LOAD_PARAMS += --path "44'/4218'"
# Shimmer BIP-path
APP_LOAD_PARAMS += --path "44'/4219'"

ifeq ($(TARGET_NAME),TARGET_NANOS)
ICONNAME=icons/nanos_app_shimmer.gif
else
ICONNAME=icons/nanox_app_shimmer.gif
endif

2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static void IOTA_main()
break;
default:
// reset states and UI
api_initialize(APP_MODE_IOTA_CHRYSALIS, 0);
api_initialize(APP_MODE_INIT, 0);
ui_reset();
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added tests/chain/shimmer/reference_nanos.bin
Binary file not shown.
9,706 changes: 9,706 additions & 0 deletions tests/chain/shimmer/reference_nanos.hex

Large diffs are not rendered by default.

9,706 changes: 9,706 additions & 0 deletions tests/chain/shimmer/reference_nanos.json

Large diffs are not rendered by default.

Binary file added tests/chain/shimmer/reference_nanosplus.bin
Binary file not shown.
9,706 changes: 9,706 additions & 0 deletions tests/chain/shimmer/reference_nanosplus.hex

Large diffs are not rendered by default.

9,706 changes: 9,706 additions & 0 deletions tests/chain/shimmer/reference_nanosplus.json

Large diffs are not rendered by default.

Binary file added tests/chain/shimmer/reference_nanox.bin
Binary file not shown.
9,706 changes: 9,706 additions & 0 deletions tests/chain/shimmer/reference_nanox.hex

Large diffs are not rendered by default.

9,706 changes: 9,706 additions & 0 deletions tests/chain/shimmer/reference_nanox.json

Large diffs are not rendered by default.

0 comments on commit 34064a5

Please sign in to comment.