Skip to content

Commit

Permalink
fix: move crypto org into cosmos coin module
Browse files Browse the repository at this point in the history
  • Loading branch information
qperrot committed Nov 15, 2024
1 parent aa29680 commit ef50a74
Show file tree
Hide file tree
Showing 71 changed files with 109 additions and 4,243 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ export const MEMO_TAG_COINS: string[] = [
"cosmos",
"hedera",
"injective",
"crypto_org",
"crypto_org_croeseid",
"stacks",
"ton",
"eos",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions apps/ledger-live-desktop/src/renderer/families/crypto_org/index.ts

This file was deleted.

14 changes: 0 additions & 14 deletions apps/ledger-live-desktop/src/renderer/families/crypto_org/types.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => {
const zksync = useFeature("currencyZkSync");
const zksyncSepolia = useFeature("currencyZkSyncSepolia");
const mantra = useFeature("currencyMantra");
const cryptoOrg = useFeature("currencyCryptoOrg");

const featureFlaggedCurrencies = useMemo(
(): Partial<Record<CryptoCurrencyId, Feature<unknown> | null>> => ({
Expand Down Expand Up @@ -138,6 +139,7 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => {
zksync,
zksync_sepolia: zksyncSepolia,
mantra,
crypto_org: cryptoOrg,
}),
[
axelar,
Expand Down Expand Up @@ -190,6 +192,7 @@ const StepChooseCurrency = ({ currency, setCurrency }: StepProps) => {
zksync,
zksyncSepolia,
mantra,
cryptoOrg,
],
);

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 @@ -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 @@ -317,9 +317,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.

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

This file was deleted.

Loading

0 comments on commit ef50a74

Please sign in to comment.