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

Commit

Permalink
Add ETH goerli (#1841)
Browse files Browse the repository at this point in the history
* add ETH goerli

* add goerli test
  • Loading branch information
hzheng-ledger authored and lambertkevin committed Apr 5, 2022
1 parent 459d928 commit ada45f5
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 3 deletions.
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 @@ -40,6 +40,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 @@ -52,7 +52,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",
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 @@ -280,6 +280,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/cryptoassets@6.27.0", "@ledgerhq/cryptoassets@^6.27.0":
"@ledgerhq/cryptoassets@6.28.0":
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

0 comments on commit ada45f5

Please sign in to comment.