Skip to content

Commit

Permalink
chore: remove sunsetted chain
Browse files Browse the repository at this point in the history
  • Loading branch information
icfor committed Mar 26, 2024
1 parent aab7e8d commit 01c9cec
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/screens/staking/lib/staking_sdk/core/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export enum CoinDenom {
ATOM = "ATOM",
DYDX = "DYDX",
DYM = "DYM",
EVMOS = "EVMOS",
INJ = "INJ",
ISLM = "ISLM",
KAVA = "KAVA",
Expand All @@ -38,7 +37,6 @@ export enum StakingNetworkId {
CosmosHubTestnet = "theta-testnet-001",
DyDx = "dydx-mainnet-1",
Dymension = "dymension_1100-1",
Evmos = "evmos_9001-2",
Injective = "injective-1",
IslamicCoin = "haqq_11235-1",
Kava = "kava_2222-10",
Expand All @@ -57,7 +55,6 @@ export const mainNetworkDenom: Record<StakingNetworkId, CoinDenom | null> = {
[StakingNetworkId.CosmosHubTestnet]: CoinDenom.ATOM,
[StakingNetworkId.DyDx]: CoinDenom.DYDX,
[StakingNetworkId.Dymension]: CoinDenom.DYM,
[StakingNetworkId.Evmos]: CoinDenom.EVMOS,
[StakingNetworkId.Injective]: CoinDenom.INJ,
[StakingNetworkId.IslamicCoin]: CoinDenom.ISLM,
[StakingNetworkId.Kava]: CoinDenom.KAVA,
Expand Down
2 changes: 0 additions & 2 deletions src/screens/staking/lib/staking_sdk/core/cosmos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import {

export const ethermintNetworks = new Set([
StakingNetworkId.Dymension,
StakingNetworkId.Evmos,
StakingNetworkId.Injective,
StakingNetworkId.IslamicCoin,
]);

export const keplrNetworks = new Set<StakingNetworkId>(
[
StakingNetworkId.Akash,
StakingNetworkId.Evmos,
StakingNetworkId.Celestia,
StakingNetworkId.CelestiaTestnet,
StakingNetworkId.ComposableFinance,
Expand Down
1 change: 0 additions & 1 deletion src/screens/staking/lib/staking_sdk/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const networkIdToNetworkKey: Record<StakingNetworkId, NetworkKey> = {
[StakingNetworkId.CosmosHubTestnet]: "cosmos-testnet",
[StakingNetworkId.DyDx]: "dydx",
[StakingNetworkId.Dymension]: "dymension",
[StakingNetworkId.Evmos]: "evmos",
[StakingNetworkId.Injective]: "injective",
[StakingNetworkId.IslamicCoin]: "islamic_coin",
[StakingNetworkId.Kava]: "kava",
Expand Down
1 change: 0 additions & 1 deletion src/screens/staking/lib/staking_sdk/gecko_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const geckoClient = {
[CoinDenom.ATOM]: "cosmos",
[CoinDenom.DYDX]: "dydx",
[CoinDenom.DYM]: "dymension",
[CoinDenom.EVMOS]: "evmos",
[CoinDenom.INJ]: "injective",
[CoinDenom.ISLM]: "islamic-coin",
[CoinDenom.KAVA]: "kava",
Expand Down
2 changes: 0 additions & 2 deletions src/screens/staking/lib/staking_sdk/utils/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const networkToUnnormalisedDenom = {
[StakingNetworkId.CosmosHubTestnet]: "UATOM",
[StakingNetworkId.DyDx]: "ADYDX",
[StakingNetworkId.Dymension]: "ADYM",
[StakingNetworkId.Evmos]: "AEVMOS",
[StakingNetworkId.Injective]: "inj", // This is important to be lowercase, since inj != INJ
[StakingNetworkId.IslamicCoin]: "AISLM",
[StakingNetworkId.Kava]: "UKAVA",
Expand All @@ -32,7 +31,6 @@ const exp0 = 0;
const denomMap: Record<DenomToNormalise, [CoinDenom, number]> = {
ADYDX: [CoinDenom.DYDX, aExp],
ADYM: [CoinDenom.DYM, aExp],
AEVMOS: [CoinDenom.EVMOS, aExp],
AISLM: [CoinDenom.ISLM, aExp],
// Because inj != INJ, this needs to keep the lower case, it is handled when
// normalising the coin
Expand Down

0 comments on commit 01c9cec

Please sign in to comment.