Add support for Pirl
This commit is contained in:
@@ -8,6 +8,7 @@ typedef enum chain_kind_e {
|
||||
CHAIN_KIND_ETHEREUM,
|
||||
CHAIN_KIND_ETHEREUM_CLASSIC,
|
||||
CHAIN_KIND_EXPANSE,
|
||||
CHAIN_KIND_PIRL,
|
||||
CHAIN_KIND_POA,
|
||||
CHAIN_KIND_RSK,
|
||||
CHAIN_KIND_UBIQ,
|
||||
|
||||
@@ -1265,6 +1265,9 @@ void handleSign(uint8_t p1, uint8_t p2, uint8_t *workBuffer, uint16_t dataLength
|
||||
case CHAIN_KIND_ETHEREUM_CLASSIC:
|
||||
numTokens = NUM_TOKENS_ETHEREUM_CLASSIC;
|
||||
break;
|
||||
case CHAIN_KIND_PIRL:
|
||||
numTokens = NUM_TOKENS_PIRL;
|
||||
break;
|
||||
case CHAIN_KIND_POA:
|
||||
numTokens = NUM_TOKENS_POA;
|
||||
break;
|
||||
@@ -1293,6 +1296,9 @@ void handleSign(uint8_t p1, uint8_t p2, uint8_t *workBuffer, uint16_t dataLength
|
||||
case CHAIN_KIND_ETHEREUM_CLASSIC:
|
||||
currentToken = PIC(&TOKENS_ETHEREUM_CLASSIC[i]);
|
||||
break;
|
||||
case CHAIN_KIND_PIRL:
|
||||
currentToken = PIC(&TOKENS_PIRL[i]);
|
||||
break;
|
||||
case CHAIN_KIND_POA:
|
||||
currentToken = PIC(&TOKENS_POA[i]);
|
||||
break;
|
||||
|
||||
@@ -699,6 +699,8 @@ const tokenDefinition_t const TOKENS_ETHEREUM[NUM_TOKENS_ETHEREUM] = {
|
||||
|
||||
const tokenDefinition_t const TOKENS_ETHEREUM_CLASSIC[NUM_TOKENS_ETHEREUM_CLASSIC] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_PIRL[NUM_TOKENS_PIRL] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_POA[NUM_TOKENS_POA] = {};
|
||||
|
||||
const tokenDefinition_t const TOKENS_RSK[NUM_TOKENS_RSK] = {};
|
||||
|
||||
@@ -25,6 +25,7 @@ typedef struct tokenDefinition_t {
|
||||
|
||||
#define NUM_TOKENS_ETHEREUM 677
|
||||
#define NUM_TOKENS_ETHEREUM_CLASSIC 0
|
||||
#define NUM_TOKENS_PIRL 0
|
||||
#define NUM_TOKENS_POA 0
|
||||
#define NUM_TOKENS_RSK 0
|
||||
#define NUM_TOKENS_UBIQ 6
|
||||
@@ -34,6 +35,7 @@ typedef struct tokenDefinition_t {
|
||||
|
||||
extern tokenDefinition_t const TOKENS_ETHEREUM[NUM_TOKENS_ETHEREUM];
|
||||
extern tokenDefinition_t const TOKENS_ETHEREUM_CLASSIC[NUM_TOKENS_ETHEREUM_CLASSIC];
|
||||
extern tokenDefinition_t const TOKENS_PIRL[NUM_TOKENS_PIRL];
|
||||
extern tokenDefinition_t const TOKENS_POA[NUM_TOKENS_POA];
|
||||
extern tokenDefinition_t const TOKENS_RSK[NUM_TOKENS_RSK];
|
||||
extern tokenDefinition_t const TOKENS_UBIQ[NUM_TOKENS_UBIQ];
|
||||
|
||||
Reference in New Issue
Block a user