Skip to content

Commit

Permalink
Remove unused Alphanet chains and assets (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgamundi authored Dec 7, 2022
1 parent c80f41c commit 80c199c
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 189 deletions.
37 changes: 0 additions & 37 deletions packages/config/src/config/moonbase/assets/clv.ts

This file was deleted.

37 changes: 0 additions & 37 deletions packages/config/src/config/moonbase/assets/cru.ts

This file was deleted.

20 changes: 0 additions & 20 deletions packages/config/src/config/moonbase/assets/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,14 @@ import {
import { MoonbaseXcmConfig } from '../moonbase.interfaces';

const asset = assets[AssetSymbol.DEV];
const clover = chains[ChainKey.CloverAlphanet];
const pioneer = chains[ChainKey.BitCountryPioneer];

const cloverDevId = getMoonAssetId(clover);
const pioneerDevId = getMoonAssetId(pioneer);

export const DEV: MoonbaseXcmConfig = {
asset,
origin: moonbase,
deposit: {
[clover.key]: {
source: clover,
balance: balance.assets(cloverDevId),
sourceFeeBalance: balance.system(),
extrinsic: extrinsic
.xTokens()
.transfer()
.successEvent(XTokensExtrinsicSuccessEvent.TransferredMultiAssets)
.origin(clover)
.asset({
[XTokensExtrinsicCurrencyTypes.OtherReserve]: cloverDevId,
}),
},
[pioneer.key]: {
source: pioneer,
balance: balance.tokens().fungibleToken(pioneerDevId),
Expand All @@ -51,11 +36,6 @@ export const DEV: MoonbaseXcmConfig = {
},
},
withdraw: {
[clover.key]: withdraw.xTokens({
balance: balance.assets(cloverDevId),
destination: clover,
feePerWeight: 50_000,
}),
[pioneer.key]: withdraw.xTokens({
balance: balance.tokens().fungibleToken(pioneerDevId),
destination: pioneer,
Expand Down
38 changes: 0 additions & 38 deletions packages/config/src/config/moonbase/assets/xrt.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/config/src/config/moonbase/moonbase.assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ import { MoonbaseAssets } from './moonbase.interfaces';

export const MOONBASE_ASSETS = <const>[
AssetSymbol.BIT,
AssetSymbol.CLV,
AssetSymbol.CRU,
AssetSymbol.DEV,
AssetSymbol.LIT,
AssetSymbol.NEER,
AssetSymbol.TT1,
AssetSymbol.UNIT,
AssetSymbol.XRT,
];

export const MOONBASE_ASSETS_MAP: AssetsMap<MoonbaseAssets> = {
Expand All @@ -20,16 +17,6 @@ export const MOONBASE_ASSETS_MAP: AssetsMap<MoonbaseAssets> = {
erc20Id: '0xffffffffe6b08aa1fbbaa02f004d3e5aa27f3bad',
originSymbol: AssetSymbol.BIT,
},
[AssetSymbol.CLV]: {
id: '281434042901349570144900941495462927562',
erc20Id: '0xffffffffd3ba399d7d9d684d94b22767a5fa1cca',
originSymbol: AssetSymbol.CLV,
},
[AssetSymbol.CRU]: {
id: '108457044225666871745333730479173774551',
erc20Id: '0xffffffff519811215e05efa24830eebe9c43acd7',
originSymbol: AssetSymbol.CRU,
},
[AssetSymbol.DEV]: {
id: '',
erc20Id: '0x0000000000000000000000000000000000000802',
Expand Down Expand Up @@ -59,9 +46,4 @@ export const MOONBASE_ASSETS_MAP: AssetsMap<MoonbaseAssets> = {
[ChainKey.StatemineAlphanet]: 2,
},
},
[AssetSymbol.XRT]: {
id: '108036400430056508975016746969135344601',
erc20Id: '0xffffffff51470dca3dbe535bd2880a9ccdbc6bd9',
originSymbol: AssetSymbol.XRT,
},
};
26 changes: 0 additions & 26 deletions packages/config/src/config/moonbase/moonbase.chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ import { MoonbaseChains } from './moonbase.interfaces';

export const MOONBASE_CHAINS = <const>[
ChainKey.AlphanetRelay,
ChainKey.CloverAlphanet,
ChainKey.CrustShadowAlphanet,
ChainKey.LitentryAlphanet,
ChainKey.BitCountryPioneer,
ChainKey.MoonbaseBeta,
ChainKey.RobonomicsAlphanet,
ChainKey.StatemineAlphanet,
];

Expand All @@ -29,22 +26,6 @@ export const MOONBASE_CHAINS_MAP: ChainsMap<MoonbaseChains> = {
parachainId: 2096,
moonAssetId: 0,
},
[ChainKey.CloverAlphanet]: {
key: ChainKey.CloverAlphanet,
name: 'Clover Alphanet',
ws: 'wss://test-para-api.clv.org/',
weight: 1_000_000_000,
parachainId: 2002,
moonAssetId: 4,
palletInstance: 3,
},
[ChainKey.CrustShadowAlphanet]: {
key: ChainKey.CrustShadowAlphanet,
name: 'Crust Shadow Alphanet',
ws: 'wss://shadow-rpc-alpha.crustapps.net/',
weight: 1_000_000_000,
parachainId: 2012,
},
[ChainKey.LitentryAlphanet]: {
key: ChainKey.LitentryAlphanet,
name: 'Litentry Alphanet',
Expand All @@ -67,13 +48,6 @@ export const MOONBASE_CHAINS_MAP: ChainsMap<MoonbaseChains> = {
transactWeight: 31_693_000n + 25_000_000n,
},
},
[ChainKey.RobonomicsAlphanet]: {
key: ChainKey.RobonomicsAlphanet,
name: 'Robonomics Alphanet',
ws: 'wss://moonriver.rpc.robonomics.network',
weight: 1_000_000_000,
parachainId: 2048,
},
[ChainKey.StatemineAlphanet]: {
key: ChainKey.StatemineAlphanet,
name: 'Statemine Alphanet',
Expand Down
6 changes: 0 additions & 6 deletions packages/config/src/config/moonbase/moonbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@ import { AssetSymbol } from '../../constants';
import { MoonbaseXcmConfigs } from './moonbase.interfaces';

import { BIT } from './assets/bit';
import { CLV } from './assets/clv';
import { CRU } from './assets/cru';
import { DEV } from './assets/dev';
import { LIT } from './assets/lit';
import { NEER } from './assets/neer';
import { TT1 } from './assets/tt1';
import { UNIT } from './assets/unit';
import { XRT } from './assets/xrt';

export const MOONBASE_CONFIGS: MoonbaseXcmConfigs = {
[AssetSymbol.BIT]: BIT,
[AssetSymbol.CLV]: CLV,
[AssetSymbol.CRU]: CRU,
[AssetSymbol.DEV]: DEV,
[AssetSymbol.LIT]: LIT,
[AssetSymbol.NEER]: NEER,
[AssetSymbol.TT1]: TT1,
[AssetSymbol.UNIT]: UNIT,
[AssetSymbol.XRT]: XRT,
};
4 changes: 0 additions & 4 deletions packages/config/src/constants/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@ export enum AssetSymbol {
AUSD = 'AUSD',
BIT = 'BIT',
BNC = 'BNC',
CFG = 'CFG',
CLV = 'CLV',
CRAB = 'CRAB',
CRU = 'CRU',
CSM = 'CSM',
DEV = 'DEV',
DEVEL = 'DEVEL',
DOT = 'DOT',
GLMR = 'GLMR',
HKO = 'HKO',
Expand Down
3 changes: 0 additions & 3 deletions packages/config/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ export enum ChainKey {
BitCountryPioneer = 'BitCountryPioneer',
BifrostPolkadot = 'BifrostPolkadot',
Calamari = 'Calamari',
CloverAlphanet = 'CloverAlphanet',
Crab = 'Crab',
CrustShadow = 'CrustShadow',
CrustShadowAlphanet = 'CrustShadowAlphanet',
Darwinia = 'Darwinia',
Integritee = 'Integritee',
Interlay = 'Interlay',
Expand All @@ -68,7 +66,6 @@ export enum ChainKey {
Phala = 'Phala',
Polkadot = 'Polkadot',
Robonomics = 'Robonomics',
RobonomicsAlphanet = 'RobonomicsAlphanet',
Shiden = 'Shiden',
Statemine = 'Statemine',
StatemineAlphanet = 'StatemineAlphanet',
Expand Down

0 comments on commit 80c199c

Please sign in to comment.