Skip to content

Commit

Permalink
merge with main removing parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Oct 17, 2024
2 parents 07e1499 + 641334d commit fccf158
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 163 deletions.
6 changes: 6 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
41 changes: 4 additions & 37 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import {
neuro,
nodl,
otp,
para,
paring,
peaq,
pen,
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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, {
Expand Down Expand Up @@ -2265,8 +2234,6 @@ export const chainsList: AnyChain[] = [
neuroweb,
nodle,
originTrailAlphanet,
parallel,
peaqAlphanet,
peaqChain,
peaqEvm,
peaqEvmAlphanet,
Expand Down
2 changes: 0 additions & 2 deletions packages/config/src/xcm-configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -77,7 +76,6 @@ export const xcmRoutesList: ChainRoutes[] = [
neurowebRoutes,
nodleRoutes,
originTrailAlphanetRoutes,
parallelRoutes,
peaqRoutes,
peaqEvmRoutes,
peaqAlphanetRoutes,
Expand Down
44 changes: 0 additions & 44 deletions packages/config/src/xcm-configs/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
manta,
neuro,
nodl,
para,
peaq,
pen,
pha,
Expand Down Expand Up @@ -54,7 +53,6 @@ import {
moonbeam,
neuroweb,
nodle,
parallel,
peaqChain,
peaqEvm,
pendulum,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
63 changes: 0 additions & 63 deletions packages/config/src/xcm-configs/parallel.ts

This file was deleted.

7 changes: 7 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
15 changes: 0 additions & 15 deletions packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fccf158

Please sign in to comment.