-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/backup-style
- Loading branch information
Showing
9 changed files
with
169 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/contracts.js b/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/contracts.js | ||
index 806a539..b488b25 100644 | ||
--- a/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/contracts.js | ||
+++ b/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/contracts.js | ||
@@ -19,7 +19,7 @@ export const loadInfosForContractMethod = (contractAddress, selector, chainId, u | ||
if (pluginBaseURL) { | ||
const url = `${pluginBaseURL}/plugins/ethereum.json`; | ||
data = yield axios | ||
- .get(`${pluginBaseURL}/plugins/ethereum.json`) | ||
+ .get(`${pluginBaseURL}/plugins/ethereum.json`, { timeout: 5000 }) | ||
.then(r => r.data) | ||
.catch(e => { | ||
log("error", "could not fetch from " + url + ": " + String(e)); | ||
diff --git a/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/erc20.js b/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/erc20.js | ||
index 16a933e..a2a0f1a 100644 | ||
--- a/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/erc20.js | ||
+++ b/node_modules/@ledgerhq/hw-app-eth/lib-es/services/ledger/erc20.js | ||
@@ -21,7 +21,7 @@ export const findERC20SignaturesInfo = (userLoadConfig, chainId) => __awaiter(vo | ||
return null; | ||
const url = `${cryptoassetsBaseURL}/evm/${chainId}/erc20-signatures.json`; | ||
const blob = yield axios | ||
- .get(url) | ||
+ .get(url, { timeout: 5000 }) | ||
.then(({ data }) => { | ||
if (!data || typeof data !== "string") { | ||
throw new Error(`ERC20 signatures for chainId ${chainId} file is malformed ${url}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { | ||
LedgerAction, | ||
OffscreenCommunicationTarget, | ||
} from '@/constant/offscreen-communication'; | ||
import { ledgerUSBVendorId } from '@ledgerhq/devices'; | ||
import Browser from 'webextension-polyfill'; | ||
|
||
export function initLedger() { | ||
navigator.hid.addEventListener('disconnect', ({ device }) => { | ||
if (device.vendorId === ledgerUSBVendorId) { | ||
Browser.runtime.sendMessage({ | ||
target: OffscreenCommunicationTarget.extension, | ||
event: LedgerAction.ledgerDeviceDisconnect, | ||
}); | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1610,16 +1610,11 @@ | |
resolved "https://registry.yarnpkg.com/@ctrl/tinycolor/-/tinycolor-3.4.0.tgz#c3c5ae543c897caa9c2a68630bed355be5f9990f" | ||
integrity sha512-JZButFdZ1+/xAfpguQHoabIXkcqRRKpMrWKBkpEZZyxfY9C1DpADFB8PEqGSTeFr135SaTRfKqGKx5xSCLI7ZQ== | ||
|
||
"@debank/[email protected]": | ||
"@debank/[email protected]", "@debank/common@^0.3.0": | ||
version "0.3.60" | ||
resolved "https://registry.yarnpkg.com/@debank/common/-/common-0.3.60.tgz#17ca72e4cde1fb6487ca1ed0691d89cd6b6692f9" | ||
integrity sha512-SaFTXvnn2aYQTPB3B8YD/AhHYwdMRiqu7jCkYV6c/Sd3MmxzJR3v+Kd4jlQniKfEdB21+1vMb0NlzHw/gyemlw== | ||
|
||
"@debank/common@^0.3.0": | ||
version "0.3.0" | ||
resolved "https://registry.yarnpkg.com/@debank/common/-/common-0.3.0.tgz#9c67288816d62e3548e0c2193ec4cd73758f5b26" | ||
integrity sha512-PWdFuKuqDtGdYALFToDQQCyas3Tgz1tXXlir6UVTVHz2MPi4uK6ZK8UUNrWdU6lncHNvcRsNf3Xamk0Ga9jxeg== | ||
|
||
"@debank/[email protected]": | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/@debank/festats/-/festats-1.0.1.tgz#8f76b0919a6c8a7d938a42946272abaff2b971be" | ||
|
@@ -4776,10 +4771,10 @@ | |
sinon-chrome "^3.0.1" | ||
webextension-polyfill "0.7.0" | ||
|
||
"@rabby-wallet/[email protected].4": | ||
version "0.1.4" | ||
resolved "https://registry.yarnpkg.com/@rabby-wallet/rabby-action/-/rabby-action-0.1.4.tgz#c82e7c8b538b7dfd94506c4f89f78aca7ca880ef" | ||
integrity sha512-6ttnlpGHcO2v/qyYo8epBbSutfS9OZXfXr9mfapuveoBvzqUwvE6ej3bsmdtc+qFhFeH7HeiwASpY6xaTM4E1w== | ||
"@rabby-wallet/[email protected].8": | ||
version "0.1.8" | ||
resolved "https://registry.yarnpkg.com/@rabby-wallet/rabby-action/-/rabby-action-0.1.8.tgz#05b258b628a224d51dc471e93117d4106024a916" | ||
integrity sha512-K0euVX55tW2mbnudm3bHPAbbLYlnDQD5PgAvM1mwPPFHhF/Ve/U5MYdg1XERJPxkoXKqiVti46idFFB+s8sv7A== | ||
|
||
"@rabby-wallet/[email protected]": | ||
version "0.8.5" | ||
|