Skip to content

Commit

Permalink
[coin-config] Under maintenance status (#6212)
Browse files Browse the repository at this point in the history
* add status in cosmos default config

* bitcoin + evm configs

* algorand config

* cardano config

* casper config

* celoConfig

* crypto org config

* elrond + filecoin

* all families config support
  • Loading branch information
lvndry authored Feb 23, 2024
1 parent b4f6b33 commit e7bff4e
Show file tree
Hide file tree
Showing 24 changed files with 968 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-otters-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

bitcoin and evm default live config
47 changes: 45 additions & 2 deletions libs/ledger-live-common/src/config/sharedConfig.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,49 @@
import { ConfigSchema } from "@ledgerhq/live-config/LiveConfig";
import cosmosConfig from "../families/cosmos/config";
import { algorandConfig } from "../families/algorand/config";
import { bitcoinConfig } from "../families/bitcoin/config";
import { cardanoConfig } from "../families/cardano/config";
import { casperConfig } from "../families/casper/config";
import { celoConfig } from "../families/celo/config";
import { cosmosConfig } from "../families/cosmos/config";
import { cryptoOrgConfig } from "../families/crypto_org/config";
import { elrondConfig } from "../families/elrond/config";
import { evmConfig } from "../families/evm/config";
import { fileCoinConfig } from "../families/filecoin/config";
import { hederaConfig } from "../families/hedera/config";
import { internetComputerConfig } from "../families/internet_computer/config";
import { nearConfig } from "../families/near/config";
import { polkadotConfig } from "../families/polkadot/config";
import { rippleConfig } from "../families/ripple/config";
import { solanaConfig } from "../families/solana/config";
import { stacksConfig } from "../families/stacks/config";
import { stellarConfig } from "../families/stellar/config";
import { tezosConfig } from "../families/tezos/config";
import { tronConfig } from "../families/tron/config";
import { vechainConfig } from "../families/vechain/config";

const liveCommonConfig: ConfigSchema = {};

export default { ...liveCommonConfig, ...cosmosConfig } as ConfigSchema;
export default {
...liveCommonConfig,
...algorandConfig,
...bitcoinConfig,
...cardanoConfig,
...casperConfig,
...celoConfig,
...cosmosConfig,
...cryptoOrgConfig,
...elrondConfig,
...evmConfig,
...fileCoinConfig,
...hederaConfig,
...internetComputerConfig,
...nearConfig,
...polkadotConfig,
...rippleConfig,
...solanaConfig,
...stacksConfig,
...stellarConfig,
...tezosConfig,
...tronConfig,
...vechainConfig,
} as ConfigSchema;
12 changes: 12 additions & 0 deletions libs/ledger-live-common/src/families/algorand/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ConfigInfo } from "@ledgerhq/live-config/LiveConfig";

export const algorandConfig: Record<string, ConfigInfo> = {
config_currency_algorand: {
type: "object",
default: {
status: {
type: "active",
},
},
},
};
254 changes: 254 additions & 0 deletions libs/ledger-live-common/src/families/bitcoin/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
import { ConfigInfo } from "@ledgerhq/live-config/LiveConfig";

const bitcoinConfig: Record<string, ConfigInfo> = {
config_currency_bitcoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_bitcoin_cash: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_bitcoin_gold: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_bitcoin_private: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_clubcoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_dash: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_decred: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_digibyte: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_dogecoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_game_credits: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_gochain: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_hcash: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_komodo: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_lbry: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_litecoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_nix: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_peercoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_pivx: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_poswallet: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_qtum: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_ravencoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_resistance: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_stakenet: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_stratis: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_stealthcoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_vertcoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_viacoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_zcash: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_zclassic: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_zcoin: {
type: "object",
default: {
status: {
type: "active",
},
},
},
config_currency_zencash: {
type: "object",
default: {
status: {
type: "active",
},
},
},
};

export { bitcoinConfig };
12 changes: 12 additions & 0 deletions libs/ledger-live-common/src/families/cardano/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ConfigInfo } from "@ledgerhq/live-config/LiveConfig";

export const cardanoConfig: Record<string, ConfigInfo> = {
config_currency_cardano: {
type: "object",
default: {
status: {
type: "active",
},
},
},
};
12 changes: 12 additions & 0 deletions libs/ledger-live-common/src/families/casper/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ConfigInfo } from "@ledgerhq/live-config/LiveConfig";

export const casperConfig: Record<string, ConfigInfo> = {
config_currency_casper: {
type: "object",
default: {
status: {
type: "active",
},
},
},
};
12 changes: 12 additions & 0 deletions libs/ledger-live-common/src/families/celo/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { ConfigInfo } from "@ledgerhq/live-config/LiveConfig";

export const celoConfig: Record<string, ConfigInfo> = {
config_currency_celo: {
type: "object",
default: {
status: {
type: "active",
},
},
},
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cryptoFactory from "./chain";
import cosmosConfig from "../config";
import { cosmosConfig } from "../config";
import { LiveConfig, ConfigSchema } from "@ledgerhq/live-config/LiveConfig";

describe("cryptoFactory test", () => {
Expand Down
Loading

0 comments on commit e7bff4e

Please sign in to comment.