Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove VIA, VTC and PPC support #7138

Merged
merged 26 commits into from
Jun 26, 2024
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
17 changes: 17 additions & 0 deletions .changeset/beige-cooks-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"@ledgerhq/types-cryptoassets": minor
"@ledgerhq/cryptoassets": minor
"@ledgerhq/hw-app-btc": minor
"@ledgerhq/types-live": minor
"@ledgerhq/coin-bitcoin": minor
"@ledgerhq/crypto-icons-ui": minor
"ledger-live-desktop": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
"@ledgerhq/coin-framework": minor
"@ledgerhq/live-wallet": minor
"@ledgerhq/web-tools": minor
"@ledgerhq/live-cli": minor
---

removes via, vtc and ppc support
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ const command = async (transport, currencyId, hash) => {
if (!hex) return `Backend returned no hex for this hash`;
const hasExtraData =
currency.id === "zcash" || currency.id === "komodo" || currency.id === "zencash";
const tx = btc.splitTransaction(
hex,
currency.supportsSegwit,
(currency.id === "stealthcoin" && hex.slice(0, 2) === "01") || bitcoinLikeInfo?.hasTimestamp,
hasExtraData,
[currency.id],
);
const tx = btc.splitTransaction(hex, currency.supportsSegwit, hasExtraData, [currency.id]);
const outHash = await btc.getTrustedInput(0, tx, [currency.id]);
const ouHash = outHash.substring(8, 72);
const finalOut = Buffer.from(ouHash, "hex").reverse().toString("hex");
Expand Down
3 changes: 0 additions & 3 deletions apps/cli/src/live-common-setup-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ setSupportedCurrencies([
"komodo",
"pivx",
"zencash",
"vertcoin",
"peercoin",
"viacoin",
"bitcoin_testnet",
"ethereum_sepolia",
"ethereum_holesky",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ setSupportedCurrencies([
"komodo",
"pivx",
"zencash",
"vertcoin",
"peercoin",
"viacoin",
"bitcoin_testnet",
"ethereum_sepolia",
"ethereum_holesky",
Expand Down
60 changes: 0 additions & 60 deletions apps/ledger-live-desktop/tests/mocks/serviceStatusHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,21 +357,6 @@ const statuses = {
group: false,
only_show_if_degraded: false,
},
{
id: "98cy3t39mwy6",
name: "Peercoin (PPC)",
status: "operational",
created_at: "2020-06-22T17:54:37.880+02:00",
updated_at: "2021-01-06T06:04:31.097+01:00",
position: 15,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "t40n3pwhqqbq",
name: "Qtum (QTUM)",
Expand Down Expand Up @@ -417,36 +402,6 @@ const statuses = {
group: false,
only_show_if_degraded: false,
},
{
id: "btrnvtsvt91m",
name: "Viacoin (VIA)",
status: "operational",
created_at: "2020-06-22T17:57:43.307+02:00",
updated_at: "2021-01-29T16:44:54.451+01:00",
position: 19,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "s2ynmlxsxqn6",
name: "Vertcoin (VTC)",
status: "operational",
created_at: "2020-06-22T17:57:26.960+02:00",
updated_at: "2021-01-06T06:02:00.112+01:00",
position: 20,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "b4rlmrcplprt",
name: "Stellar (XLM)",
Expand Down Expand Up @@ -477,21 +432,6 @@ const statuses = {
group: false,
only_show_if_degraded: false,
},
{
id: "mqsw7dfk04p6",
name: "Stealthcoin (XST)",
status: "operational",
created_at: "2020-06-22T17:56:27.758+02:00",
updated_at: "2021-02-12T08:40:20.583+01:00",
position: 24,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "yts03zttvys2",
name: "Tezos (XTZ)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,33 +359,6 @@
"color": "#152f5c",
"decimals": 8
},
{
"type": "CryptoCurrency",
"id": "vertcoin",
"ticker": "VTC",
"name": "Vertcoin",
"family": "bitcoin",
"color": "#1b5c2e",
"decimals": 8
},
{
"type": "CryptoCurrency",
"id": "peercoin",
"ticker": "PPC",
"name": "Peercoin",
"family": "bitcoin",
"color": "#3cb054",
"decimals": 6
},
{
"type": "CryptoCurrency",
"id": "viacoin",
"ticker": "VIA",
"name": "Viacoin",
"family": "bitcoin",
"color": "#414141",
"decimals": 8
},
{
"type": "CryptoCurrency",
"id": "bitcoin_testnet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,33 +359,6 @@
"color": "#152f5c",
"decimals": 8
},
{
"type": "CryptoCurrency",
"id": "vertcoin",
"ticker": "VTC",
"name": "Vertcoin",
"family": "bitcoin",
"color": "#1b5c2e",
"decimals": 8
},
{
"type": "CryptoCurrency",
"id": "peercoin",
"ticker": "PPC",
"name": "Peercoin",
"family": "bitcoin",
"color": "#3cb054",
"decimals": 6
},
{
"type": "CryptoCurrency",
"id": "viacoin",
"ticker": "VIA",
"name": "Viacoin",
"family": "bitcoin",
"color": "#414141",
"decimals": 8
},
{
"type": "CryptoCurrency",
"id": "bitcoin_testnet",
Expand Down
4 changes: 0 additions & 4 deletions apps/ledger-live-mobile/__mocks__/api/market/coinsList.json
Original file line number Diff line number Diff line change
Expand Up @@ -8357,7 +8357,6 @@
{ "id": "pear-swap", "symbol": "pear", "name": "Pear Swap" },
{ "id": "peepo", "symbol": "peepo", "name": "Peepo" },
{ "id": "peepo-sol", "symbol": "$peep", "name": "Peepo (SOL)" },
{ "id": "peercoin", "symbol": "ppc", "name": "Peercoin" },
{ "id": "peer-to-peer", "symbol": "p2p", "name": "Peer-to-Peer" },
{ "id": "pegasusbot", "symbol": "pgs", "name": "PegasusBot" },
{ "id": "pegasus-dex", "symbol": "peg", "name": "Pegasus DEX" },
Expand Down Expand Up @@ -10298,7 +10297,6 @@
{ "id": "stay", "symbol": "stay", "name": "STAY" },
{ "id": "staysafu", "symbol": "safu", "name": "StaySAFU" },
{ "id": "steakhut-finance", "symbol": "steak", "name": "SteakHut Finance" },
{ "id": "stealthcoin", "symbol": "xst", "name": "Stealth" },
{ "id": "stealth-deals", "symbol": "deal", "name": "Stealth Deals" },
{ "id": "stealthpad", "symbol": "stealth", "name": "StealthPad" },
{ "id": "steam-exchange", "symbol": "steamx", "name": "Steam Exchange" },
Expand Down Expand Up @@ -11482,7 +11480,6 @@
{ "id": "verso", "symbol": "vso", "name": "Verso" },
{ "id": "versoview", "symbol": "vvt", "name": "VersoView" },
{ "id": "versus-2", "symbol": "vs", "name": "Versus" },
{ "id": "vertcoin", "symbol": "vtc", "name": "Vertcoin" },
{ "id": "vertek", "symbol": "vrtk", "name": "Vertek" },
{ "id": "vertex-protocol", "symbol": "vrtx", "name": "Vertex Protocol" },
{ "id": "verus-coin", "symbol": "vrsc", "name": "Verus Coin" },
Expand All @@ -11498,7 +11495,6 @@
{ "id": "vetter-token", "symbol": "vetter", "name": "Vetter" },
{ "id": "vexanium", "symbol": "vex", "name": "Vexanium" },
{ "id": "vfox", "symbol": "vfox", "name": "VFOX" },
{ "id": "viacoin", "symbol": "via", "name": "Viacoin" },
{ "id": "vibe", "symbol": "vibe", "name": "VIBE" },
{ "id": "viberate", "symbol": "vib", "name": "Viberate" },
{ "id": "vibing", "symbol": "vbg", "name": "Vibing" },
Expand Down
3 changes: 1 addition & 2 deletions apps/ledger-live-mobile/android/dapp-store/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ release:
Tron (TRX), Polygon (MATIC), Ethereum Classic (ETC), Dash (DASH), Cosmos
(ATOM), Elrond (EGLD), Zcash (ZEC), Dogecoin (DOGE), Digibyte (DGB),
Bitcoin Gold (BTG), Decred (DCR), Qtum (QTUM), Algorand (ALGO), Komodo
(KMD), Horizen (ZEN), PivX (PIVX), Peercoin (PPC), Vertcoin (VTC),
Viacoin (VIA), Stakenet (XSN), ERC-20 and BEP-20 tokens.
(KMD), Horizen (ZEN), PivX (PIVX), Stakenet (XSN), ERC-20 and BEP-20 tokens.



Expand Down
3 changes: 0 additions & 3 deletions apps/ledger-live-mobile/src/live-common-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ setSupportedCurrencies([
"komodo",
"pivx",
"zencash",
"vertcoin",
"peercoin",
"viacoin",
"bitcoin_testnet",
"ethereum_sepolia",
"ethereum_holesky",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,21 +358,6 @@ const statuses = {
group: false,
only_show_if_degraded: false,
},
{
id: "98cy3t39mwy6",
name: "Peercoin (PPC)",
status: "operational",
created_at: "2020-06-22T17:54:37.880+02:00",
updated_at: "2021-01-06T06:04:31.097+01:00",
position: 15,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "t40n3pwhqqbq",
name: "Qtum (QTUM)",
Expand Down Expand Up @@ -418,36 +403,6 @@ const statuses = {
group: false,
only_show_if_degraded: false,
},
{
id: "btrnvtsvt91m",
name: "Viacoin (VIA)",
status: "operational",
created_at: "2020-06-22T17:57:43.307+02:00",
updated_at: "2021-01-29T16:44:54.451+01:00",
position: 19,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "s2ynmlxsxqn6",
name: "Vertcoin (VTC)",
status: "operational",
created_at: "2020-06-22T17:57:26.960+02:00",
updated_at: "2021-01-06T06:02:00.112+01:00",
position: 20,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "b4rlmrcplprt",
name: "Stellar (XLM)",
Expand Down Expand Up @@ -478,21 +433,6 @@ const statuses = {
group: false,
only_show_if_degraded: false,
},
{
id: "mqsw7dfk04p6",
name: "Stealthcoin (XST)",
status: "operational",
created_at: "2020-06-22T17:56:27.758+02:00",
updated_at: "2021-02-12T08:40:20.583+01:00",
position: 24,
description: null,
showcase: true,
start_date: null,
group_id: "rn7ny8423ghs",
page_id: "767c5rcj7z12",
group: false,
only_show_if_degraded: false,
},
{
id: "yts03zttvys2",
name: "Tezos (XTZ)",
Expand Down
3 changes: 0 additions & 3 deletions apps/web-tools/live-common-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ setSupportedCurrencies([
"komodo",
"pivx",
"zencash",
"vertcoin",
"peercoin",
"viacoin",
"bitcoin_testnet",
"ethereum_sepolia",
"ethereum_holesky",
Expand Down
Loading
Loading