Skip to content

Commit

Permalink
Changes to work with newest hardware wallet app version
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasFlamel1 committed Dec 20, 2022
1 parent 1be5ff7 commit 147748a
Show file tree
Hide file tree
Showing 18 changed files with 86 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const cmd = ({
id: string,
offset: string,
proof: string | undefined,
encryptedSecretNonce: string
privateNonceIndex: number
}> => withDevice(deviceId)(transport => from(prepareTransaction(account, transport, transaction)));

export default cmd;
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class StepConnectDevice extends PureComponent<Props, State> {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined
}));
}
Expand Down Expand Up @@ -145,14 +145,14 @@ class StepConnectDevice extends PureComponent<Props, State> {
id,
offset,
proof,
encryptedSecretNonce
privateNonceIndex
}: {
transactionData: string;
height: string;
id: string;
offset: string;
proof: string | undefined;
encryptedSecretNonce: string;
privateNonceIndex: number;
}
) => {
qrcode.toString(transactionData, {
Expand All @@ -172,7 +172,7 @@ class StepConnectDevice extends PureComponent<Props, State> {
id,
offset: Buffer.from(offset, "hex"),
proof: (proof !== undefined) ? Buffer.from(proof, "hex") : undefined,
encryptedSecretNonce: Buffer.from(encryptedSecretNonce, "hex")
privateNonceIndex
}));
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,14 @@ export default function ConnectDevice(
id,
offset,
proof,
encryptedSecretNonce
privateNonceIndex
}: {
transactionData: string;
height: string;
id: string;
offset: string;
proof: string | undefined;
encryptedSecretNonce: string;
privateNonceIndex: number;
}
) => {
qrcode.toString(transactionData, {
Expand All @@ -238,7 +238,7 @@ export default function ConnectDevice(
id,
offset: Buffer.from(offset, "hex"),
proof: (proof !== undefined) ? Buffer.from(proof, "hex") : undefined,
encryptedSecretNonce: Buffer.from(encryptedSecretNonce, "hex"),
privateNonceIndex,
transactionResponse: undefined
}));
}
Expand Down
8 changes: 4 additions & 4 deletions libs/ledger-live-common/src/appSupportsQuitApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export const minAppVersion = {
Flow: "0.9.1",
GameCredits: "1.5.0",
GoChain: "1.4.0",
Grin: "4.0.0",
"Grin Testnet": "4.0.0",
Grin: "5.0.0",
"Grin Testnet": "5.0.0",
Groestlcoin: "1.3.4",
"Groestlcoin Test": "1.3.4",
HODL: "0.0.3",
Expand Down Expand Up @@ -90,8 +90,8 @@ export const minAppVersion = {
"Liquid Test Hless": "1.4.8",
Lisk: "1.4.0",
Litecoin: "1.5.0",
"MimbleWimble Coin": "4.0.0",
"MimbleWimble Coin Floonet": "4.0.0",
"MimbleWimble Coin": "5.0.0",
"MimbleWimble Coin Floonet": "5.0.0",
Mix: "1.4.0",
Monero: "1.7.4",
Musicoin: "1.4.0",
Expand Down
8 changes: 4 additions & 4 deletions libs/ledger-live-common/src/apps/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const appVersionsRequired = {
Celo: ">= 1.1.8",
"Cardano ADA": ">= 4.1.0",
Zcash: "> 2.0.6",
"MimbleWimble Coin": ">= 4.0.0",
"MimbleWimble Coin Floonet": ">= 4.0.0",
Grin: ">= 4.0.0",
"Grin Testnet": ">= 4.0.0",
"MimbleWimble Coin": ">= 5.0.0",
"MimbleWimble Coin Floonet": ">= 5.0.0",
Grin: ">= 5.0.0",
"Grin Testnet": ">= 5.0.0",
};
export function mustUpgrade(
deviceModel: DeviceModelId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Secp256k1Zkp from "@nicolasflamel/secp256k1-zkp";
import ProofBuilder from "./proofBuilder";
import Common from "./common";
import { Subscriber } from "rxjs";
import Crypto from "./crypto"

export default class Sync {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const inferTransactions = (
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: Consensus.getDefaultBaseFee(mainAccount.currency),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -74,7 +74,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -99,7 +99,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -124,7 +124,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -149,7 +149,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -174,7 +174,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -199,7 +199,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -224,7 +224,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: false,
baseFee: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -74,7 +74,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -99,7 +99,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -124,7 +124,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "500000",
Expand All @@ -149,7 +149,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -174,7 +174,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -199,7 +199,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -224,7 +224,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: false,
baseFee: "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -74,7 +74,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -99,7 +99,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -124,7 +124,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -149,7 +149,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -174,7 +174,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -199,7 +199,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: true,
baseFee: "1000000",
Expand All @@ -224,7 +224,7 @@ export default {
id: undefined,
offset: undefined,
proof: undefined,
encryptedSecretNonce: undefined,
privateNonceIndex: undefined,
transactionResponse: undefined,
useDefaultBaseFee: false,
baseFee: "0",
Expand Down
Loading

0 comments on commit 147748a

Please sign in to comment.