From 1b0992493f5afac24e7cdbfd907303f7d450860c Mon Sep 17 00:00:00 2001 From: mmaurello <93129175+mmaurello@users.noreply.github.com> Date: Mon, 22 Jan 2024 23:05:35 +1300 Subject: [PATCH] Remove obsolete integration (#188) * remove litentry alphanet configuration * change parallel endpoint * add changeset --- .changeset/many-ladybugs-tickle.md | 5 ++++ packages/config/src/chains.ts | 21 +-------------- packages/config/src/configs/index.ts | 2 -- .../config/src/configs/litentryAlphanet.ts | 26 ------------------- packages/config/src/configs/moonbaseAlpha.ts | 17 ------------ 5 files changed, 6 insertions(+), 65 deletions(-) create mode 100644 .changeset/many-ladybugs-tickle.md delete mode 100644 packages/config/src/configs/litentryAlphanet.ts diff --git a/.changeset/many-ladybugs-tickle.md b/.changeset/many-ladybugs-tickle.md new file mode 100644 index 00000000..2c279dd1 --- /dev/null +++ b/.changeset/many-ladybugs-tickle.md @@ -0,0 +1,5 @@ +--- +'@moonbeam-network/xcm-config': patch +--- + +Remove Litentry alphanet and change Parallel endpoint diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 07c38477..82d9826e 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -600,24 +600,6 @@ export const kusamaAssetHub = new Parachain({ ws: 'wss://kusama-asset-hub-rpc.polkadot.io', }); -export const litentryAlphanet = new Parachain({ - assetsData: [ - { - asset: lit, - id: 'SelfReserve', - }, - ], - ecosystem: Ecosystem.AlphanetRelay, - genesisHash: - '0x4decfd421755d9008781d00ce40ea4cf47ec24a3717a34ca995126fc4a78c4f8', - isTestChain: true, - key: 'litentry-alphanet', - name: 'Litentry Alphanet', - parachainId: 2106, - ss58Format: 131, - ws: 'wss://moonbase-parachain-sg-0.litentry.io', -}); - export const litmus = new Parachain({ assetsData: [ { @@ -1095,7 +1077,7 @@ export const parallel = new Parachain({ name: 'Parallel', parachainId: 2012, ss58Format: 172, - ws: 'wss://polkadot-parallel-rpc.parallel.fi', + ws: 'wss://parallel-rpc.dwellir.com', }); export const parallelHeiko = new Parachain({ @@ -1422,7 +1404,6 @@ export const chainsList: AnyChain[] = [ khala, kintsugi, kusama, - litentryAlphanet, litmus, mangataKusama, moonbaseAlpha, diff --git a/packages/config/src/configs/index.ts b/packages/config/src/configs/index.ts index f42f0247..5d250cab 100644 --- a/packages/config/src/configs/index.ts +++ b/packages/config/src/configs/index.ts @@ -21,7 +21,6 @@ import { khalaConfig } from './khala'; import { kintsugiConfig } from './kintsugi'; import { kusamaConfig } from './kusama'; import { kusamaAssetHubConfig } from './kusamaAssetHub'; -import { litentryAlphanetConfig } from './litentryAlphanet'; import { litmusConfig } from './litmus'; import { mangataKusamaConfig } from './mangataKusama'; import { moonbaseAlphaConfig } from './moonbaseAlpha'; @@ -68,7 +67,6 @@ export const chainsConfigList: ChainConfig[] = [ khalaConfig, kintsugiConfig, kusamaConfig, - litentryAlphanetConfig, litmusConfig, mangataKusamaConfig, moonbaseAlphaConfig, diff --git a/packages/config/src/configs/litentryAlphanet.ts b/packages/config/src/configs/litentryAlphanet.ts deleted file mode 100644 index 9d76b5a0..00000000 --- a/packages/config/src/configs/litentryAlphanet.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - BalanceBuilder, - ExtrinsicBuilder, - FeeBuilder, -} from '@moonbeam-network/xcm-builder'; -import { lit } from '../assets'; -import { litentryAlphanet, moonbaseAlpha } from '../chains'; -import { AssetConfig } from '../types/AssetConfig'; -import { ChainConfig } from '../types/ChainConfig'; - -export const litentryAlphanetConfig = new ChainConfig({ - assets: [ - new AssetConfig({ - asset: lit, - balance: BalanceBuilder().substrate().system().account(), - destination: moonbaseAlpha, - destinationFee: { - amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(), - asset: lit, - balance: BalanceBuilder().substrate().system().account(), - }, - extrinsic: ExtrinsicBuilder().xTokens().transfer(), - }), - ], - chain: litentryAlphanet, -}); diff --git a/packages/config/src/configs/moonbaseAlpha.ts b/packages/config/src/configs/moonbaseAlpha.ts index ceb95b63..b362fd1c 100644 --- a/packages/config/src/configs/moonbaseAlpha.ts +++ b/packages/config/src/configs/moonbaseAlpha.ts @@ -4,7 +4,6 @@ import { ampe, atom, dev, - lit, otp, paring, pica, @@ -16,7 +15,6 @@ import { alphanetAssetHub, alphanetRelay, darwiniaPangoro, - litentryAlphanet, moonbaseAlpha, moonbaseBeta, originTrailAlphanet, @@ -118,21 +116,6 @@ export const moonbaseAlphaConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), - new AssetConfig({ - asset: lit, - balance: BalanceBuilder().substrate().assets().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: litentryAlphanet, - destinationFee: { - amount: 0.032, - asset: lit, - balance: BalanceBuilder().substrate().assets().account(), - }, - fee: { - asset: dev, - balance: BalanceBuilder().substrate().system().account(), - }, - }), new AssetConfig({ asset: otp, balance: BalanceBuilder().substrate().assets().account(),