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

fix: move crypto org into cosmos coin module #8374

Merged
merged 25 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
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
10 changes: 10 additions & 0 deletions .changeset/forty-turtles-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@ledgerhq/cryptoassets": minor
"@ledgerhq/types-live": minor
"@ledgerhq/coin-cosmos": minor
"ledger-live-desktop": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
---

move crypto_org into cosmos coin module
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ type Props = {
};
function CosmosFamilyValidatorRow({ validator, active, onClick, unit, currency }: Props) {
const explorerView = getDefaultExplorerView(currency);
const currencyName = currency.name.toLowerCase();
const currencyID = currency.id;

const ledgerValidatorUrl = useLocalizedUrl(urls.ledgerValidator);
const onExternalLink = useCallback(
(address: string) => {
const ledgerValidator = cryptoFactory(currencyName).ledgerValidator;
const ledgerValidator = cryptoFactory(currencyID).ledgerValidator;
if (address === ledgerValidator) {
openURL(ledgerValidatorUrl);
} else {
const srURL = explorerView && getAddressExplorer(explorerView, address);
if (srURL) openURL(srURL);
}
},
[currencyName, explorerView, ledgerValidatorUrl],
[currencyID, explorerView, ledgerValidatorUrl],
);
return (
<StyledValidatorRow
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"id": "crypto_org",
"ticker": "CRO",
"name": "Cronos POS Chain",
"family": "crypto_org",
"family": "cosmos",
"color": "#0e1c37",
"decimals": 8
},
Expand All @@ -220,7 +220,7 @@
"id": "crypto_org_croeseid",
"ticker": "CRO",
"name": "Cronos POS Chain Croeseid",
"family": "crypto_org",
"family": "cosmos",
"color": "#0e1c37",
"decimals": 8
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
"id": "crypto_org",
"ticker": "CRO",
"name": "Cronos POS Chain",
"family": "crypto_org",
"family": "cosmos",
"color": "#0e1c37",
"decimals": 8
},
Expand All @@ -220,7 +220,7 @@
"id": "crypto_org_croeseid",
"ticker": "CRO",
"name": "Cronos POS Chain Croeseid",
"family": "crypto_org",
"family": "cosmos",
"color": "#0e1c37",
"decimals": 8
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ import {
CosmosAccount,
Transaction as CosmosTransaction,
} from "@ledgerhq/live-common/families/cosmos/types";
import {
CryptoOrgAccount,
Transaction as CryptoOrgTransaction,
} from "@ledgerhq/live-common/families/crypto_org/types";
import { Transaction as HederaTransaction } from "@ledgerhq/live-common/families/hedera/types";
import {
SolanaAccount,
Expand Down Expand Up @@ -248,20 +244,6 @@ export type SendFundsNavigatorStackParamList = {
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.CryptoOrgEditMemo]: {
accountId: string;
parentId?: string;
account: CryptoOrgAccount;
transaction: CryptoOrgTransaction;
currentNavigation:
| ScreenName.SignTransactionSummary
| ScreenName.SendSummary
| ScreenName.SwapForm;
nextNavigation:
| ScreenName.SignTransactionSelectDevice
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.HederaEditMemo]: {
accountId: string;
parentId?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ import {
CosmosAccount,
Transaction as CosmosTransaction,
} from "@ledgerhq/live-common/families/cosmos/types";
import {
CryptoOrgAccount,
Transaction as CryptoOrgTransaction,
} from "@ledgerhq/live-common/families/crypto_org/types";
import {
SolanaAccount,
Transaction as SolanaTransaction,
Expand Down Expand Up @@ -210,20 +206,6 @@ export type SignTransactionNavigatorParamList = {
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.CryptoOrgEditMemo]: {
accountId: string;
parentId?: string;
account: CryptoOrgAccount;
transaction: CryptoOrgTransaction;
currentNavigation:
| ScreenName.SignTransactionSummary
| ScreenName.SendSummary
| ScreenName.SwapForm;
nextNavigation:
| ScreenName.SignTransactionSelectDevice
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.HederaEditMemo]: {
accountId: string;
parentId?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ import {
CosmosAccount,
Transaction as CosmosTransaction,
} from "@ledgerhq/live-common/families/cosmos/types";
import {
CryptoOrgAccount,
Transaction as CryptoOrgTransaction,
} from "@ledgerhq/live-common/families/crypto_org/types";
import {
SolanaAccount,
Transaction as SolanaTransaction,
Expand Down Expand Up @@ -208,20 +204,6 @@ export type SwapNavigatorParamList = {
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.CryptoOrgEditMemo]: {
accountId: string;
parentId?: string;
account: CryptoOrgAccount;
transaction: CryptoOrgTransaction;
currentNavigation:
| ScreenName.SignTransactionSummary
| ScreenName.SendSummary
| ScreenName.SwapForm;
nextNavigation:
| ScreenName.SignTransactionSelectDevice
| ScreenName.SendSelectDevice
| ScreenName.SwapForm;
};
[ScreenName.HederaEditMemo]: {
accountId: string;
parentId?: string;
Expand Down
3 changes: 0 additions & 3 deletions apps/ledger-live-mobile/src/const/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ export enum ScreenName {
// ton
TonEditComment = "TonEditComment",

// crypto_org
CryptoOrgEditMemo = "CryptoOrgEditMemo",

// Algorand
AlgorandEditMemo = "AlgorandEditMemo",
AlgorandClaimRewardsInfo = "AlgorandClaimRewardsInfo",
Expand Down

This file was deleted.

101 changes: 0 additions & 101 deletions apps/ledger-live-mobile/src/families/crypto_org/EditMemo.tsx

This file was deleted.

Loading
Loading