Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PEAQ Prod chains #255

Merged
merged 17 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/unlucky-vans-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@moonbeam-network/xcm-config': patch
'@moonbeam-network/xcm-sdk': patch
---

Add peaq prod chains
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"AUSD",
"Darwinia",
"Derivated",
"ftmwh",
"Heiko",
"IBTC",
"Integritee",
Expand All @@ -23,6 +24,7 @@
"nodle",
"parachain",
"parachains",
"peaq",
"Phala",
"Polkadot",
"Precompile",
Expand Down
6 changes: 6 additions & 0 deletions packages/config/src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ export const paring = new Asset({
originSymbol: 'PARING',
});

export const peaq = new Asset({
key: 'peaq',
originSymbol: 'PEAQ',
});

export const pen = new Asset({
key: 'pen',
originSymbol: 'PEN',
Expand Down Expand Up @@ -402,6 +407,7 @@ export const assetsList: Asset[] = [
otp,
para,
paring,
peaq,
pen,
pha,
pica,
Expand Down
126 changes: 126 additions & 0 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import {
otp,
para,
paring,
peaq,
pen,
pha,
pica,
Expand Down Expand Up @@ -1264,6 +1265,61 @@ export const peaqAlphanet = new Parachain({
ws: 'wss://moonbeam.peaq.network',
});

export const peaqChain = new Parachain({
assetsData: [
{
asset: peaq,
id: 0,
},
{
asset: dot,
id: 10,
},
{
asset: glmr,
decimals: 18,
id: 1000,
},
{
asset: usdcwh,
decimals: 6,
id: 1001,
},
{
asset: weth,
decimals: 18,
id: 1002,
},
{
asset: wbtc,
decimals: 8,
id: 1003,
metadataId: 0,
},
{
asset: dai,
decimals: 18,
id: 1004,
metadataId: 0,
},
{
asset: usdtwh,
decimals: 6,
id: 1005,
metadataId: 0,
},
],
ecosystem: Ecosystem.Polkadot,
genesisHash:
'0xd2a5d385932d1f650dae03ef8e2748983779ee342c614f80854d32b8cd8fa48c',
isTestChain: false,
key: 'peaq',
name: 'Peaq',
parachainId: 3338,
ss58Format: 42,
ws: 'wss://peaq-rpc.dwellir.com',
});

export const peaqEvmAlphanet = new EvmParachain({
assetsData: [
{
Expand All @@ -1275,12 +1331,14 @@ export const peaqEvmAlphanet = new EvmParachain({
decimals: 18,
id: '0xFfFfFffF000000000000000000000000000003e8',
metadataId: 0,
minId: 1000,
},
{
asset: ftmwh,
decimals: 18,
id: '0xFffFffFF000000000000000000000000000003E9',
metadataId: 0,
minId: 1001,
},
],
contracts: {
Expand All @@ -1305,6 +1363,72 @@ export const peaqEvmAlphanet = new EvmParachain({
ws: 'wss://moonbeam.peaq.network',
});

export const peaqEvm = new EvmParachain({
assetsData: [
{
asset: peaq,
decimals: 18,
},
{
asset: glmr,
decimals: 18,
id: '0xFfFfFffF000000000000000000000000000003e8',
metadataId: 0,
minId: 1000,
},
{
asset: usdcwh,
id: '0xFffFffFF000000000000000000000000000003E9',
metadataId: 1001,
minId: 1001,
},
{
asset: weth,
id: '0xFFFfFfFf000000000000000000000000000003ea',
metadataId: 1002,
minId: 1002,
},
{
asset: wbtc,
id: '0xfffFFFFF000000000000000000000000000003eb',
metadataId: 1003,
minId: 1003,
},
{
asset: dai,
id: '0xfFffFFFF000000000000000000000000000003Ec',
metadataId: 1004,
minId: 1004,
},
{
asset: usdtwh,
id: '0xfFffffFF000000000000000000000000000003Ed',
metadataId: 1005,
minId: 1005,
},
],
contracts: {
Xtokens: '0x0000000000000000000000000000000000000803',
},
ecosystem: Ecosystem.Polkadot,
genesisHash:
'0xd2a5d385932d1f650dae03ef8e2748983779ee342c614f80854d32b8cd8fa48c',
id: 3338,
isEvmSigner: true,
isTestChain: false,
key: 'peaq-evm',
name: 'Peaq EVM',
nativeCurrency: {
decimals: 18,
name: peaq.originSymbol,
symbol: peaq.originSymbol,
},
parachainId: 3338,
rpc: 'https://peaq-rpc.dwellir.com',
ss58Format: 42,
ws: 'wss://peaq-rpc.dwellir.com',
});

export const pendulum = new Parachain({
assetsData: [
{
Expand Down Expand Up @@ -1640,6 +1764,8 @@ export const chainsList: AnyChain[] = [
originTrailAlphanet,
parallel,
parallelHeiko,
peaqChain,
peaqEvm,
peaqAlphanet,
peaqEvmAlphanet,
pendulum,
Expand Down
4 changes: 4 additions & 0 deletions packages/config/src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ import { nodleConfig } from './nodle';
import { originTrailAlphanetConfig } from './originTrailAlphanet';
import { parallelConfig } from './parallel';
import { parallelHeikoConfig } from './parallelHeiko';
import { peaqConfig } from './peaq';
import { peaqAlphanetConfig } from './peaqAlphanet';
import { peaqEvmConfig } from './peaqEvm';
import { peaqEvmAlphanetConfig } from './peaqEvmAlphanet';
import { pendulumConfig } from './pendulum';
import { pendulumAlphanetConfig } from './pendulumAlphanet';
Expand Down Expand Up @@ -82,6 +84,8 @@ export const chainsConfigList: ChainConfig[] = [
originTrailAlphanetConfig,
parallelConfig,
parallelHeikoConfig,
peaqConfig,
peaqEvmConfig,
peaqAlphanetConfig,
peaqEvmAlphanetConfig,
pendulumConfig,
Expand Down
Loading
Loading