@avalabs/hw-app-avalanche
Advanced tools
Comparing version 0.9.2 to 0.10.0
@@ -211,2 +211,6 @@ import { CHUNK_SIZE, CLA, LedgerError, errorCodeToString, processErrorResponse, INS, HASH_LEN, FIRST_MESSAGE, LAST_MESSAGE, NEXT_MESSAGE, getVersion, CHAIN_ID_SIZE, COLLECTION_NAME_MAX_LEN, CONTRACT_ADDRESS_LEN, TYPE_1, VERSION_1, CLA_ETH, PAYLOAD_TYPE, P1_VALUES } from './common.js'; | ||
} | ||
// Sign an arbitrary message. | ||
// This function takes in an avax path prefix like: m/44'/9000'/0'/0' | ||
// signing_paths: ["0/1", "5/8"] | ||
// message: The message to be signed | ||
async signMsg(path_prefix, signing_paths, message) { | ||
@@ -272,2 +276,3 @@ const coinType = pathCoinType(path_prefix); | ||
errorMessage: errorCodeToString(returnCode), | ||
// | ||
appName, | ||
@@ -278,4 +283,7 @@ appVersion, | ||
flagRecovery: (flagsValue & 1) !== 0, | ||
// eslint-disable-next-line no-bitwise | ||
flagSignedMcuCode: (flagsValue & 2) !== 0, | ||
// eslint-disable-next-line no-bitwise | ||
flagOnboarded: (flagsValue & 4) !== 0, | ||
// eslint-disable-next-line no-bitwise | ||
flagPINValidated: (flagsValue & 128) !== 0 | ||
@@ -334,2 +342,6 @@ }; | ||
} | ||
// Function that provides the necessary token information to parse ERC721 transactions | ||
// The implementation aligns with the reference app-ethereum does, but it is provided as | ||
// an alternative to avoid writing a full NFT service provider to be use in pair with the | ||
// hw-app-eth package. | ||
async provideNftInfo(contract_address, token_name, chainId) { | ||
@@ -336,0 +348,0 @@ const p2 = 0; |
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "0.9.2", | ||
"version": "0.10.0", | ||
"description": "Node API for Avalanche App (Ledger Nano S/X/S+)", | ||
@@ -45,3 +45,3 @@ "main": "./dist/index.js", | ||
"crypto-js": "4.1.1", | ||
"esbuild": "0.16.3", | ||
"esbuild": "0.17.19", | ||
"eslint": "^8.24.0", | ||
@@ -57,4 +57,4 @@ "eslint-config-prettier": "^8.3.0", | ||
"rollup-plugin-esbuild": "^5.0.0", | ||
"semantic-release": "^20.1.1", | ||
"typescript": "^4.2.4" | ||
"semantic-release": "^21.0.2", | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -61,0 +61,0 @@ "moduleDirectories": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110698
2483