mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
nem: mosaics are generated from nem_mosaics.json in trezor-common
closes #344
This commit is contained in:
parent
78ece6631f
commit
c4beba839b
@ -120,5 +120,5 @@ clean::
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call GENERATE_CODE,coin_info,coins.json,coin_info.c))
|
$(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))
|
$(eval $(call GENERATE_CODE,bl_data,../bootloader/bootloader.bin))
|
||||||
|
@ -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 ]
|
|
||||||
}
|
|
||||||
]
|
|
@ -109,7 +109,7 @@ if __name__ == "__main__":
|
|||||||
sys.path.insert(0, "protob")
|
sys.path.insert(0, "protob")
|
||||||
import types_pb2 as types
|
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:
|
with open("nem_mosaics.h", "w+") as f:
|
||||||
f.write(HEADER_TEMPLATE.format(
|
f.write(HEADER_TEMPLATE.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user