New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/hw-app-solana

Package Overview
Dependencies
Maintainers
20
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/hw-app-solana - npm Package Compare versions

Comparing version 7.0.9 to 7.0.10-next.0

8

CHANGELOG.md
# @ledgerhq/hw-app-solana
## 7.0.10-next.0
### Patch Changes
- Updated dependencies [[`9adc1862dd`](https://github.com/LedgerHQ/ledger-live/commit/9adc1862dda605a722d19f3b6895bd324834c914)]:
- @ledgerhq/errors@6.12.7-next.0
- @ledgerhq/hw-transport@6.28.5-next.0
## 7.0.9

@@ -4,0 +12,0 @@

7

lib-es/Solana.js

@@ -140,3 +140,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

.split("/")
.map((value) => value.endsWith("'") || value.endsWith("h") ? value : value + "'")
.map(value => (value.endsWith("'") || value.endsWith("h") ? value : value + "'"))
.join("/");

@@ -163,6 +163,3 @@ const pathNums = BIPPath.fromString(path).toPathArray();

*/
const acceptStatusList = [
StatusCodes.OK,
EXTRA_STATUS_CODES.BLIND_SIGNATURE_REQUIRED,
];
const acceptStatusList = [StatusCodes.OK, EXTRA_STATUS_CODES.BLIND_SIGNATURE_REQUIRED];
let p2 = 0;

@@ -169,0 +166,0 @@ let payload_offset = 0;

@@ -145,3 +145,3 @@ "use strict";

.split("/")
.map((value) => value.endsWith("'") || value.endsWith("h") ? value : value + "'")
.map(value => (value.endsWith("'") || value.endsWith("h") ? value : value + "'"))
.join("/");

@@ -168,6 +168,3 @@ const pathNums = bip32_path_1.default.fromString(path).toPathArray();

*/
const acceptStatusList = [
errors_1.StatusCodes.OK,
EXTRA_STATUS_CODES.BLIND_SIGNATURE_REQUIRED,
];
const acceptStatusList = [errors_1.StatusCodes.OK, EXTRA_STATUS_CODES.BLIND_SIGNATURE_REQUIRED];
let p2 = 0;

@@ -174,0 +171,0 @@ let payload_offset = 0;

{
"name": "@ledgerhq/hw-app-solana",
"version": "7.0.9",
"version": "7.0.10-next.0",
"description": "Ledger Hardware Wallet Solana Application API",

@@ -31,4 +31,4 @@ "keywords": [

"bip32-path": "^0.4.2",
"@ledgerhq/errors": "^6.12.6",
"@ledgerhq/hw-transport": "^6.28.4",
"@ledgerhq/errors": "^6.12.7-next.0",
"@ledgerhq/hw-transport": "^6.28.5-next.0",
"@ledgerhq/logs": "^6.10.1"

@@ -46,4 +46,4 @@ },

"ts-node": "^10.4.0",
"@ledgerhq/hw-transport-mocker": "^6.27.15",
"@ledgerhq/hw-transport-node-speculos": "^6.27.15"
"@ledgerhq/hw-transport-mocker": "^6.27.16-next.0",
"@ledgerhq/hw-transport-node-speculos": "^6.27.16-next.0"
},

@@ -56,3 +56,3 @@ "scripts": {

"doc": "documentation readme src/** --section=API --pe ts --re ts --re d.ts",
"lint": "eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx",
"lint": "eslint ./src --no-error-on-unmatched-pattern --ext .ts,.tsx --cache",
"lint:fix": "pnpm lint --fix",

@@ -59,0 +59,0 @@ "test": "jest"

@@ -45,3 +45,3 @@ import Transport from "@ledgerhq/hw-transport";

// eslint-disable-next-line @typescript-eslint/no-inferrable-types
scrambleKey: string = "solana_default_scramble_key"
scrambleKey: string = "solana_default_scramble_key",
) {

@@ -52,3 +52,3 @@ this.transport = transport;

["getAddress", "signTransaction", "getAppConfiguration"],
scrambleKey
scrambleKey,
);

@@ -74,3 +74,3 @@ }

// eslint-disable-next-line @typescript-eslint/no-inferrable-types
display: boolean = false
display: boolean = false,
): Promise<{

@@ -84,3 +84,3 @@ address: Buffer;

display ? P1_CONFIRM : P1_NON_CONFIRM,
pathBuffer
pathBuffer,
);

@@ -106,3 +106,3 @@

path: string,
txBuffer: Buffer
txBuffer: Buffer,
): Promise<{

@@ -118,7 +118,3 @@ signature: Buffer;

const signatureBuffer = await this.sendToDevice(
INS.SIGN,
P1_CONFIRM,
payload
);
const signatureBuffer = await this.sendToDevice(INS.SIGN, P1_CONFIRM, payload);

@@ -143,3 +139,3 @@ return {

path: string,
msgBuffer: Buffer
msgBuffer: Buffer,
): Promise<{

@@ -155,7 +151,3 @@ signature: Buffer;

const signatureBuffer = await this.sendToDevice(
INS.SIGN_OFFCHAIN,
P1_CONFIRM,
payload
);
const signatureBuffer = await this.sendToDevice(INS.SIGN_OFFCHAIN, P1_CONFIRM, payload);

@@ -176,4 +168,7 @@ return {

async getAppConfiguration(): Promise<AppConfig> {
const [blindSigningEnabled, pubKeyDisplayMode, major, minor, patch] =
await this.sendToDevice(INS.GET_VERSION, P1_NON_CONFIRM, Buffer.alloc(0));
const [blindSigningEnabled, pubKeyDisplayMode, major, minor, patch] = await this.sendToDevice(
INS.GET_VERSION,
P1_NON_CONFIRM,
Buffer.alloc(0),
);
return {

@@ -189,5 +184,3 @@ blindSigningEnabled: Boolean(blindSigningEnabled),

.split("/")
.map((value) =>
value.endsWith("'") || value.endsWith("h") ? value : value + "'"
)
.map(value => (value.endsWith("'") || value.endsWith("h") ? value : value + "'"))
.join("/");

@@ -215,6 +208,3 @@ const pathNums: number[] = BIPPath.fromString(path).toPathArray();

*/
const acceptStatusList = [
StatusCodes.OK,
EXTRA_STATUS_CODES.BLIND_SIGNATURE_REQUIRED,
];
const acceptStatusList = [StatusCodes.OK, EXTRA_STATUS_CODES.BLIND_SIGNATURE_REQUIRED];

@@ -235,3 +225,3 @@ let p2 = 0;

buf,
acceptStatusList
acceptStatusList,
);

@@ -245,10 +235,3 @@ this.throwOnFailure(reply);

// console.log("send", p2.toString(16), buf.length.toString(16), buf);
const reply = await this.transport.send(
LEDGER_CLA,
instruction,
p1,
p2,
buf,
acceptStatusList
);
const reply = await this.transport.send(LEDGER_CLA, instruction, p1, p2, buf, acceptStatusList);

@@ -266,5 +249,3 @@ this.throwOnFailure(reply);

case EXTRA_STATUS_CODES.BLIND_SIGNATURE_REQUIRED:
throw new Error(
"Missing a parameter. Try enabling blind signature in the app"
);
throw new Error("Missing a parameter. Try enabling blind signature in the app");
default:

@@ -271,0 +252,0 @@ return;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc