From c4beba839bda036ab068499f334da97f22c2d9db Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Wed, 2 May 2018 17:24:17 +0200 Subject: [PATCH] nem: mosaics are generated from nem_mosaics.json in trezor-common closes #344 --- firmware/Makefile | 2 +- firmware/nem_mosaics.json | 57 --------------------------------------- firmware/nem_mosaics.py | 2 +- 3 files changed, 2 insertions(+), 59 deletions(-) delete mode 100644 firmware/nem_mosaics.json diff --git a/firmware/Makefile b/firmware/Makefile index e760d57f38..a91a09c3f0 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -120,5 +120,5 @@ clean:: endef $(eval $(call GENERATE_CODE,coin_info,coins.json,coin_info.c)) -$(eval $(call GENERATE_CODE,nem_mosaics,nem_mosaics.json,nem_mosaics.c)) +$(eval $(call GENERATE_CODE,nem_mosaics,,nem_mosaics.c)) $(eval $(call GENERATE_CODE,bl_data,../bootloader/bootloader.bin)) diff --git a/firmware/nem_mosaics.json b/firmware/nem_mosaics.json deleted file mode 100644 index c547e93af1..0000000000 --- a/firmware/nem_mosaics.json +++ /dev/null @@ -1,57 +0,0 @@ -[ - { - "name": "XEM", - "ticker": " XEM", - "namespace": "nem", - "mosaic": "xem", - "divisibility": 6 - }, - { - "name": "DIMCOIN", - "ticker": " DIM", - "namespace": "dim", - "mosaic": "coin", - "divisibility": 6, - "levy": "MosaicLevy_Percentile", - "fee": 10, - "levy_namespace": "dim", - "levy_mosaic": "coin", - "networks": [ 104 ] - }, - { - "name": "DIM TOKEN", - "ticker": " DIMTOK", - "namespace": "dim", - "mosaic": "token", - "divisibility": 6, - "networks": [ 104 ] - }, - { - "name": "Breeze Token", - "ticker": " BREEZE", - "namespace": "breeze", - "mosaic": "breeze-token", - "divisibility": 0, - "networks": [ 104 ] - }, - { - "name": "PacNEM Game Credits", - "ticker": " PAC:HRT", - "namespace": "pacnem", - "mosaic": "heart", - "divisibility": 0, - "networks": [ 104 ] - }, - { - "name": "PacNEM Score Tokens", - "ticker": " PAC:CHS", - "namespace": "pacnem", - "mosaic": "cheese", - "divisibility": 6, - "levy": "MosaicLevy_Percentile", - "fee": 100, - "levy_namespace": "nem", - "levy_mosaic": "xem", - "networks": [ 104 ] - } -] diff --git a/firmware/nem_mosaics.py b/firmware/nem_mosaics.py index 7b9f259996..bd02fdbffb 100755 --- a/firmware/nem_mosaics.py +++ b/firmware/nem_mosaics.py @@ -109,7 +109,7 @@ if __name__ == "__main__": sys.path.insert(0, "protob") import types_pb2 as types - messages = json.load(open("nem_mosaics.json")) + messages = json.load(open("../vendor/trezor-common/defs/nem/nem_mosaics.json")) with open("nem_mosaics.h", "w+") as f: f.write(HEADER_TEMPLATE.format(