Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Add ETH goerli #1841

Merged
merged 2 commits into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/src/live-common-setup-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ setSupportedCurrencies([
"stakenet",
"bitcoin_testnet",
"ethereum_ropsten",
"ethereum_goerli",
"cosmos_testnet",
"crypto_org",
"crypto_org_croeseid",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@ethereumjs/common": "^2.6.2",
"@ethereumjs/tx": "^3.5.0",
"@ledgerhq/compressjs": "1.3.2",
"@ledgerhq/cryptoassets": "6.27.0",
"@ledgerhq/cryptoassets": "6.28.0",
"@ledgerhq/devices": "6.24.1",
"@ledgerhq/errors": "6.10.0",
"@ledgerhq/hw-app-algorand": "6.24.1",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/test-helpers/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ setSupportedCurrencies([
"polkadot",
"bitcoin_testnet",
"ethereum_ropsten",
"ethereum_goerli",
"cosmos_testnet",
"crypto_org_croeseid",
"crypto_org",
Expand Down
8 changes: 8 additions & 0 deletions src/api/explorerConfig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ const initialExplorerConfig: FullConfig = {
version: "v3",
},
},
ethereum_goerli: {
id: "eth_goerli",
stable: {
base: "EXPLORER_STAGING",
This conversation was marked as resolved.
Show resolved Hide resolved
version: "v3",
},
},

ethereum_classic: {
id: "etc",
stable: {
Expand Down
1 change: 1 addition & 0 deletions src/appSupportsQuitApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const minAppVersion = {
Eos: "1.3.1",
"Eth Recovery": "0.0.0",
"Eth Ropsten": "1.6.0",
"Eth Goerli": "1.9.11",
"Ether-1": "1.4.0",
EtherGem: "1.4.0",
Ethereum: "1.4.0",
Expand Down
5 changes: 5 additions & 0 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,11 @@ const envDefinitions = {
parser: stringParser,
desc: "Ledger generic explorer API",
},
EXPLORER_STAGING: {
def: "https://explorers.api-01.live.ledger-stg.com",
parser: stringParser,
desc: "Ledger staging explorer API",
},
EXPLORER_BETA: {
def: "https://explorers.api.live.ledger.com",
parser: stringParser,
Expand Down
8 changes: 7 additions & 1 deletion src/mock/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,13 @@ export function genAccount(
};

if (
["ethereum", "ethereum_ropsten", "tron", "algorand"].includes(currency.id)
[
"ethereum",
"ethereum_ropsten",
"ethereum_goerli",
"tron",
"algorand",
].includes(currency.id)
) {
const tokenCount =
typeof opts.subAccountsCount === "number"
Expand Down
1 change: 1 addition & 0 deletions tools/src/live-common-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ setSupportedCurrencies([
"decred",
"bitcoin_testnet",
"ethereum_ropsten",
"ethereum_goerli",
"tron",
"stellar",
"filecoin",
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,14 @@
dependencies:
commander "^2.20.0"

"@ledgerhq/[email protected]", "@ledgerhq/cryptoassets@^6.27.0":
"@ledgerhq/[email protected]":
version "6.28.0"
resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-6.28.0.tgz#218a41c5184a176ceb3ec16dc21b37589f673c08"
integrity sha512-j3fBnjsOi2qijWO7p/PNoiEHdzjxP849pO02Q4YWW4Ms4lByv7ysmNLMwrset91We2yyVrdHsjdWY8X5JE97qQ==
dependencies:
invariant "2"

"@ledgerhq/cryptoassets@^6.27.0":
version "6.27.0"
resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-6.27.0.tgz#1a4efdef07858e8cb1b2dd4c1b9e110f1ed60f3f"
integrity sha512-fM1tm+xJSkbgEB73RtWeTeogcWRkpAcgZX+hBGbvq7anhbRwF2jD4EL897SRNwDuvCKFfpSMxpSUaSvEmj9Lcw==
Expand Down