From 07dbccbe34cc34b895b8485130c4e54d62b88cae Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Tue, 15 Oct 2024 12:13:59 +0200 Subject: [PATCH] remove parallel --- packages/config/src/chains.ts | 32 ----------------- packages/config/src/configs/index.ts | 2 -- packages/config/src/configs/moonbeam.ts | 28 --------------- packages/config/src/configs/parallel.ts | 48 ------------------------- 4 files changed, 110 deletions(-) delete mode 100644 packages/config/src/configs/parallel.ts diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 6b11b8f4..6aead352 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -46,7 +46,6 @@ import { neuro, nodl, otp, - para, paring, peaq, pen, @@ -992,11 +991,6 @@ export const moonbeam = new EvmParachain({ asset: neuro, id: '238111524681612888331172110363070489924', }, - { - address: '0xFfFffFFF18898CB5Fe1E88E668152B4f4052A947', - asset: para, - id: '32615670524745285411807346420584982855', - }, { address: '0xFffFFFFFEC4908b74688a01374f789B48E9a3eab', asset: peaq, @@ -1333,31 +1327,6 @@ export const originTrailAlphanet = new Parachain({ ws: ['wss://otp-lunaris-alpha-node-02.origin-trail.network'], }); -export const parallel = new Parachain({ - assetsData: [ - { - asset: glmr, - id: 114, - }, - // NOTE: no meta for native token - { - asset: para, - metadataId: 0, - }, - ], - ecosystem: Ecosystem.Polkadot, - genesisHash: - '0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97', - key: 'parallel', - name: 'Parallel', - parachainId: 2012, - ss58Format: 172, - ws: [ - 'wss://parallel-rpc.dwellir.com', - 'wss://polkadot-parallel-rpc.parallel.fi', - ], -}); - export const peaqAlphanet = new Parachain({ assetsData: [ { @@ -1955,7 +1924,6 @@ export const chainsList: AnyChain[] = [ neuroweb, nodle, originTrailAlphanet, - parallel, peaqChain, peaqEvm, peaqAlphanet, diff --git a/packages/config/src/configs/index.ts b/packages/config/src/configs/index.ts index 72474bdf..05d7d59b 100644 --- a/packages/config/src/configs/index.ts +++ b/packages/config/src/configs/index.ts @@ -29,7 +29,6 @@ import { moonriverConfig } from './moonriver'; import { neurowebConfig } from './neuroweb'; import { nodleConfig } from './nodle'; import { originTrailAlphanetConfig } from './originTrailAlphanet'; -import { parallelConfig } from './parallel'; import { peaqConfig } from './peaq'; import { peaqAlphanetConfig } from './peaqAlphanet'; import { peaqEvmConfig } from './peaqEvm'; @@ -77,7 +76,6 @@ export const chainsConfigList: ChainConfig[] = [ neurowebConfig, nodleConfig, originTrailAlphanetConfig, - parallelConfig, peaqConfig, peaqEvmConfig, peaqAlphanetConfig, diff --git a/packages/config/src/configs/moonbeam.ts b/packages/config/src/configs/moonbeam.ts index 9b50f8cb..f049fba3 100644 --- a/packages/config/src/configs/moonbeam.ts +++ b/packages/config/src/configs/moonbeam.ts @@ -20,7 +20,6 @@ import { manta, neuro, nodl, - para, peaq, pen, pha, @@ -54,7 +53,6 @@ import { moonbeam, neuroweb, nodle, - parallel, peaqChain, peaqEvm, pendulum, @@ -135,17 +133,6 @@ export const moonbeamConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), - new AssetConfig({ - asset: glmr, - balance: BalanceBuilder().substrate().system().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: parallel, - destinationFee: { - amount: 0.000000032, - asset: glmr, - balance: BalanceBuilder().substrate().system().account(), - }, - }), new AssetConfig({ asset: glmr, balance: BalanceBuilder().substrate().system().account(), @@ -359,21 +346,6 @@ export const moonbeamConfig = new ChainConfig({ balance: BalanceBuilder().substrate().system().account(), }, }), - new AssetConfig({ - asset: para, - balance: BalanceBuilder().substrate().assets().account(), - contract: ContractBuilder().Xtokens().transfer(), - destination: parallel, - destinationFee: { - amount: 0.064, - asset: para, - balance: BalanceBuilder().substrate().assets().account(), - }, - fee: { - asset: glmr, - balance: BalanceBuilder().substrate().system().account(), - }, - }), new AssetConfig({ asset: pen, balance: BalanceBuilder().substrate().assets().account(), diff --git a/packages/config/src/configs/parallel.ts b/packages/config/src/configs/parallel.ts deleted file mode 100644 index e0182854..00000000 --- a/packages/config/src/configs/parallel.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { - BalanceBuilder, - ExtrinsicBuilder, - FeeBuilder, -} from '@moonbeam-network/xcm-builder'; -import { glmr, para } from '../assets'; -import { moonbeam, parallel } from '../chains'; -import { AssetConfig } from '../types/AssetConfig'; -import { ChainConfig } from '../types/ChainConfig'; - -export const parallelConfig = new ChainConfig({ - assets: [ - new AssetConfig({ - asset: para, - balance: BalanceBuilder().substrate().system().account(), - destination: moonbeam, - destinationFee: { - amount: FeeBuilder() - .xcmPaymentApi() - .xcmPaymentFee({ isAssetReserveChain: false }), - asset: para, - balance: BalanceBuilder().substrate().system().account(), - }, - extrinsic: ExtrinsicBuilder() - .xTokens() - .transferMultiAsset(parallel.parachainId) - .X2(), - }), - new AssetConfig({ - asset: glmr, - balance: BalanceBuilder().substrate().assets().account(), - destination: moonbeam, - destinationFee: { - amount: FeeBuilder() - .xcmPaymentApi() - .xcmPaymentFee({ isAssetReserveChain: true }), - asset: glmr, - balance: BalanceBuilder().substrate().assets().account(), - }, - extrinsic: ExtrinsicBuilder().xTokens().transfer(), - fee: { - asset: para, - balance: BalanceBuilder().substrate().system().account(), - }, - }), - ], - chain: parallel, -});