diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index 4151ea66..c27d14c8 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,5 +1,11 @@ # @moonbeam-network/xcm-config +## 2.7.1 + +### Patch Changes + +- [#369](https://github.com/moonbeam-foundation/xcm-sdk/pull/369) [`6a119d9`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6a119d9e166ca3805696718cb9ff42455c65b65e) Thanks [@mmaurello](https://github.com/mmaurello)! - Remove Parallel + ## 2.7.0 ### Minor Changes diff --git a/packages/config/package.json b/packages/config/package.json index 91fb2e22..8d67c9e0 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@moonbeam-network/xcm-config", - "version": "2.7.0", + "version": "2.7.1", "description": "All necessary configuration to transfer assets from Moonbeam, Moonriver, Moonbase to other parachains and back", "scripts": { "build": "tsup", diff --git a/packages/config/src/chains.ts b/packages/config/src/chains.ts index 0472d551..f4db8ff4 100644 --- a/packages/config/src/chains.ts +++ b/packages/config/src/chains.ts @@ -50,7 +50,6 @@ import { neuro, nodl, otp, - para, paring, peaq, pen, @@ -1016,7 +1015,10 @@ export const moonbaseBeta = new EvmParachain({ parachainId: 888, rpc: 'https://frag-moonbase-beta-rpc.g.moonbase.moonbeam.network', ss58Format: 1287, - ws: ['wss://deo-moon-rpc-1-moonbase-beta-rpc-1.moonbase.ol-infra.network'], + ws: [ + 'wss://moonbase-beta.api.moonbase.moonbeam.network', + 'wss://deo-moon-rpc-1-moonbase-beta-rpc-1.moonbase.ol-infra.network', + ], }); export const moonbeam = new EvmParachain({ @@ -1163,13 +1165,6 @@ export const moonbeam = new EvmParachain({ id: '238111524681612888331172110363070489924', }, }), - ChainAsset.fromAsset(para, { - address: '0xFfFffFFF18898CB5Fe1E88E668152B4f4052A947', - decimals: 12, - ids: { - id: '32615670524745285411807346420584982855', - }, - }), ChainAsset.fromAsset(peaq, { address: '0xFffFFFFFEC4908b74688a01374f789B48E9a3eab', decimals: 18, @@ -1571,32 +1566,6 @@ export const originTrailAlphanet = new Parachain({ ws: ['wss://otp-lunaris-alpha-node-02.origin-trail.network'], }); -export const parallel = new Parachain({ - assets: [ - ChainAsset.fromAsset(glmr, { - decimals: 18, - ids: { - id: 114, - }, - }), - ChainAsset.fromAsset(para, { - decimals: 12, - }), - ], - ecosystem: Ecosystem.Polkadot, - genesisHash: - '0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97', - key: 'parallel', - name: 'Parallel', - nativeAsset: para, - parachainId: 2012, - ss58Format: 172, - ws: [ - 'wss://parallel-rpc.dwellir.com', - 'wss://polkadot-parallel-rpc.parallel.fi', - ], -}); - export const peaqAlphanet = new Parachain({ assets: [ ChainAsset.fromAsset(agng, { @@ -2265,8 +2234,6 @@ export const chainsList: AnyChain[] = [ neuroweb, nodle, originTrailAlphanet, - parallel, - peaqAlphanet, peaqChain, peaqEvm, peaqEvmAlphanet, diff --git a/packages/config/src/xcm-configs/index.ts b/packages/config/src/xcm-configs/index.ts index 328ebd71..cffed8c9 100644 --- a/packages/config/src/xcm-configs/index.ts +++ b/packages/config/src/xcm-configs/index.ts @@ -29,7 +29,6 @@ import { moonriverRoutes } from './moonriver'; import { neurowebRoutes } from './neuroweb'; import { nodleRoutes } from './nodle'; import { originTrailAlphanetRoutes } from './originTrailAlphanet'; -import { parallelRoutes } from './parallel'; import { peaqRoutes } from './peaq'; import { peaqAlphanetRoutes } from './peaqAlphanet'; import { peaqEvmRoutes } from './peaqEvm'; @@ -77,7 +76,6 @@ export const xcmRoutesList: ChainRoutes[] = [ neurowebRoutes, nodleRoutes, originTrailAlphanetRoutes, - parallelRoutes, peaqRoutes, peaqEvmRoutes, peaqAlphanetRoutes, diff --git a/packages/config/src/xcm-configs/moonbeam.ts b/packages/config/src/xcm-configs/moonbeam.ts index fb01d897..002af9df 100644 --- a/packages/config/src/xcm-configs/moonbeam.ts +++ b/packages/config/src/xcm-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, @@ -183,25 +181,6 @@ export const moonbeamRoutes = new ChainRoutes({ }, contract: ContractBuilder().Xtokens().transfer(), }, - { - source: { - asset: glmr, - balance: BalanceBuilder().substrate().system().account(), - destinationFee: { - balance: BalanceBuilder().substrate().system().account(), - }, - }, - destination: { - asset: glmr, - chain: parallel, - balance: BalanceBuilder().substrate().assets().account(), - fee: { - amount: 0.000000032, - asset: glmr, - }, - }, - contract: ContractBuilder().Xtokens().transfer(), - }, { source: { asset: glmr, @@ -535,29 +514,6 @@ export const moonbeamRoutes = new ChainRoutes({ }, contract: ContractBuilder().Xtokens().transfer(), }, - { - source: { - asset: para, - balance: BalanceBuilder().substrate().assets().account(), - fee: { - asset: glmr, - balance: BalanceBuilder().substrate().system().account(), - }, - destinationFee: { - balance: BalanceBuilder().substrate().assets().account(), - }, - }, - destination: { - asset: para, - chain: parallel, - balance: BalanceBuilder().substrate().system().account(), - fee: { - amount: 0.064, - asset: para, - }, - }, - contract: ContractBuilder().Xtokens().transfer(), - }, { source: { asset: pen, diff --git a/packages/config/src/xcm-configs/parallel.ts b/packages/config/src/xcm-configs/parallel.ts deleted file mode 100644 index b0d6e8a4..00000000 --- a/packages/config/src/xcm-configs/parallel.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { - BalanceBuilder, - ExtrinsicBuilder, - FeeBuilder, -} from '@moonbeam-network/xcm-builder'; -import { glmr, para } from '../assets'; -import { moonbeam, parallel } from '../chains'; -import { ChainRoutes } from '../types/ChainRoutes'; - -export const parallelRoutes = new ChainRoutes({ - chain: parallel, - routes: [ - { - source: { - asset: para, - balance: BalanceBuilder().substrate().system().account(), - destinationFee: { - balance: BalanceBuilder().substrate().system().account(), - }, - }, - destination: { - asset: para, - chain: moonbeam, - balance: BalanceBuilder().substrate().assets().account(), - fee: { - amount: FeeBuilder() - .xcmPaymentApi() - .xcmPaymentFee({ isAssetReserveChain: false }), - asset: para, - }, - }, - extrinsic: ExtrinsicBuilder() - .xTokens() - .transferMultiAsset(parallel.parachainId) - .X2(), - }, - { - source: { - asset: glmr, - balance: BalanceBuilder().substrate().assets().account(), - fee: { - asset: para, - balance: BalanceBuilder().substrate().system().account(), - }, - destinationFee: { - balance: BalanceBuilder().substrate().assets().account(), - }, - }, - destination: { - asset: glmr, - chain: moonbeam, - balance: BalanceBuilder().substrate().system().account(), - fee: { - amount: FeeBuilder() - .xcmPaymentApi() - .xcmPaymentFee({ isAssetReserveChain: true }), - asset: glmr, - }, - }, - extrinsic: ExtrinsicBuilder().xTokens().transfer(), - }, - ], -}); diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 8d0e3078..69b16abd 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,12 @@ # @moonbeam-network/xcm-sdk +## 2.7.1 + +### Patch Changes + +- Updated dependencies [[`6a119d9`](https://github.com/moonbeam-foundation/xcm-sdk/commit/6a119d9e166ca3805696718cb9ff42455c65b65e)]: + - @moonbeam-network/xcm-config@2.7.1 + ## 2.7.0 ### Minor Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index d227b780..cfc54326 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@moonbeam-network/xcm-sdk", - "version": "2.7.0", + "version": "2.7.1", "description": "The Moonbeam XCM SDK enables developers to easily deposit and withdraw assets to Moonbeam/Moonriver from the relay chain and other parachains in the Polkadot/Kusama ecosystem", "scripts": { "build": "tsup", diff --git a/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap b/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap index 3e25c978..63e0857b 100644 --- a/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap +++ b/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap @@ -791,21 +791,6 @@ exports[`sdk > getParachainBalances > on 'Moonbeam' for address: '0x4E82143Af671 "address": "0xFfFffFFF18898CB5Fe1E88E668152B4f4052A947", "amount": 0n, "decimals": 12, - "ids": { - "id": "32615670524745285411807346420584982855", - }, - "key": "para", - "min": undefined, - "originSymbol": "PARA", - "symbol": undefined, - }, - _AssetAmount { - "address": "0xFfffffFfB3229c8E7657eABEA704d5e75246e544", - "amount": 0n, - "decimals": 12, - "ids": { - "id": "238111524681612888331172110363070489924", - }, "key": "neuro", "min": undefined, "originSymbol": "NEURO",