Skip to content

Commit

Permalink
add peaq alphanet
Browse files Browse the repository at this point in the history
  • Loading branch information
Rihyx committed Apr 30, 2024
1 parent fb14d16 commit 7dda4ee
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-cooks-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moonbeam-network/xcm-config': patch
---

Add Peaq Alphanet
29 changes: 29 additions & 0 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,35 @@ export const hydraDxAlphanet = new Parachain({
ws: 'wss://hydradx-moonbase-rpc.play.hydration.cloud',
});

export const peaqAlphanet = new Parachain({
assetsData: [
{
asset: usdcwh,
decimals: 6,
id: 2816,
},
{
asset: dev,
decimals: 18,
id: 2560,
},
{
asset: ftmwh,
decimals: 18,
id: 1001,
},
],
ecosystem: Ecosystem.AlphanetRelay,
genesisHash:
'0x2dfcd5c560f6db1667cbc2bc3791dfd337f88f400af6de39b1b8638ee7af6ed4',
isTestChain: true,
key: 'peaq-Alphanet',
name: 'Peaq Alphanet',
parachainId: 3013,
ss58Format: 42,
ws: 'wss://archive-moonbeam.peaq.network',
});

export const interlay = new Parachain({
assetsData: [
{
Expand Down
55 changes: 55 additions & 0 deletions packages/config/src/configs/peaqAlphanet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import {
BalanceBuilder,
ExtrinsicBuilder,
} from '@moonbeam-network/xcm-builder';
import { dev, ftmwh, usdcwh } from '../assets';
import { moonbaseAlpha, peaqAlphanet } from '../chains';
import { AssetConfig } from '../types/AssetConfig';
import { ChainConfig } from '../types/ChainConfig';

export const peaqAlphanetConfig = new ChainConfig({
assets: [
new AssetConfig({
asset: dev,
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: moonbaseAlpha,
destinationFee: {
amount: 0.01,
asset: dev,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
extrinsic: ExtrinsicBuilder().xTokens().transfer(),
}),
new AssetConfig({
asset: usdcwh,
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: moonbaseAlpha,
destinationFee: {
amount: 0.04,
asset: dev,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(),
fee: {
asset: dev,
balance: BalanceBuilder().substrate().system().account(),
},
}),
new AssetConfig({
asset: ftmwh,
balance: BalanceBuilder().substrate().tokens().accounts(),
destination: moonbaseAlpha,
destinationFee: {
amount: 0.04,
asset: dev,
balance: BalanceBuilder().substrate().tokens().accounts(),
},
extrinsic: ExtrinsicBuilder().xTokens().transferMultiCurrencies(),
fee: {
asset: dev,
balance: BalanceBuilder().substrate().system().account(),
},
}),
],
chain: peaqAlphanet,
});

0 comments on commit 7dda4ee

Please sign in to comment.