1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00

nem_mosaics: Add PacNEM

This commit is contained in:
Saleem Rashid 2017-09-19 18:20:44 +01:00
parent d0e89db9fa
commit 5b0c0b1bfd
3 changed files with 57 additions and 1 deletions

View File

@ -63,6 +63,42 @@ const NEMMosaicDefinition NEM_MOSAIC_DEFINITIONS[NEM_MOSAIC_DEFINITIONS_COUNT] =
.divisibility = 0, .divisibility = 0,
.networks_count = 1, .networks_count = 1,
.networks = { 104 }, .networks = { 104 },
},
{
.has_name = true,
.name = "PacNEM Game Credits",
.has_ticker = true,
.ticker = " PAC:HRT",
.has_namespace = true,
.namespace = "pacnem",
.has_mosaic = true,
.mosaic = "heart",
.has_divisibility = true,
.divisibility = 0,
.networks_count = 1,
.networks = { 104 },
},
{
.has_name = true,
.name = "PacNEM Score Tokens",
.has_ticker = true,
.ticker = " PAC:CHS",
.has_namespace = true,
.namespace = "pacnem",
.has_mosaic = true,
.mosaic = "cheese",
.has_divisibility = true,
.divisibility = 6,
.has_levy = true,
.levy = NEMMosaicLevy_MosaicLevy_Percentile,
.has_fee = true,
.fee = 100,
.has_levy_namespace = true,
.levy_namespace = "nem",
.has_levy_mosaic = true,
.levy_mosaic = "xem",
.networks_count = 1,
.networks = { 104 },
}}; }};
const NEMMosaicDefinition *NEM_MOSAIC_DEFINITION_XEM = NEM_MOSAIC_DEFINITIONS; const NEMMosaicDefinition *NEM_MOSAIC_DEFINITION_XEM = NEM_MOSAIC_DEFINITIONS;

View File

@ -5,7 +5,7 @@
#include "types.pb.h" #include "types.pb.h"
#define NEM_MOSAIC_DEFINITIONS_COUNT (4) #define NEM_MOSAIC_DEFINITIONS_COUNT (6)
extern const NEMMosaicDefinition NEM_MOSAIC_DEFINITIONS[NEM_MOSAIC_DEFINITIONS_COUNT]; extern const NEMMosaicDefinition NEM_MOSAIC_DEFINITIONS[NEM_MOSAIC_DEFINITIONS_COUNT];
extern const NEMMosaicDefinition *NEM_MOSAIC_DEFINITION_XEM; extern const NEMMosaicDefinition *NEM_MOSAIC_DEFINITION_XEM;

View File

@ -33,5 +33,25 @@
"mosaic": "breeze-token", "mosaic": "breeze-token",
"divisibility": 0, "divisibility": 0,
"networks": [ 104 ] "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 ]
} }
] ]