Skip to content

Commit

Permalink
rename peaq (#270)
Browse files Browse the repository at this point in the history
* rename peaq

* update tests, add changeset
  • Loading branch information
Rihyx authored Jun 13, 2024
1 parent c0fdc40 commit f7bb225
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/heavy-hairs-buy.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
---

Rename Peaq to peaq
8 changes: 4 additions & 4 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ export const peaqAlphanet = new Parachain({
'0x2dfcd5c560f6db1667cbc2bc3791dfd337f88f400af6de39b1b8638ee7af6ed4',
isTestChain: true,
key: 'peaq-Alphanet',
name: 'Peaq Alphanet',
name: 'peaq Alphanet',
parachainId: 3013,
ss58Format: 42,
ws: 'wss://moonbeam.peaq.network',
Expand Down Expand Up @@ -1327,7 +1327,7 @@ export const peaqChain = new Parachain({
'0xd2a5d385932d1f650dae03ef8e2748983779ee342c614f80854d32b8cd8fa48c',
isTestChain: false,
key: 'peaq',
name: 'Peaq',
name: 'peaq',
parachainId: 3338,
ss58Format: 42,
ws: 'wss://peaq.api.onfinality.io/public-ws',
Expand Down Expand Up @@ -1364,7 +1364,7 @@ export const peaqEvmAlphanet = new EvmParachain({
isEvmSigner: true,
isTestChain: true,
key: 'peaq-evm-Alphanet',
name: 'Peaq EVM Alphanet',
name: 'peaq EVM Alphanet',
nativeCurrency: {
decimals: 18,
name: agng.originSymbol,
Expand Down Expand Up @@ -1430,7 +1430,7 @@ export const peaqEvm = new EvmParachain({
isEvmSigner: true,
isTestChain: false,
key: 'peaq-evm',
name: 'Peaq EVM',
name: 'peaq EVM',
nativeCurrency: {
decimals: 18,
name: peaq.originSymbol,
Expand Down
27 changes: 24 additions & 3 deletions packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ exports[`sdk getParachainBalances should get expected balances for HydraDX for s

exports[`sdk getParachainBalances should get expected balances for Moonbase Alpha 1`] = `
[
e {
"amount": 0n,
"decimals": 18,
"key": "agng",
"originSymbol": "AGNG",
"symbol": "AGNG",
},
e {
"amount": 0n,
"decimals": 12,
Expand Down Expand Up @@ -322,6 +329,13 @@ exports[`sdk getParachainBalances should get expected balances for Moonbase Beta

exports[`sdk getParachainBalances should get expected balances for Moonbeam 1`] = `
[
e {
"amount": 0n,
"decimals": 18,
"key": "peaq",
"originSymbol": "PEAQ",
"symbol": "PEAQ",
},
e {
"amount": 0n,
"decimals": 12,
Expand Down Expand Up @@ -591,7 +605,7 @@ exports[`sdk getParachainBalances should get expected balances for Moonbeam 1`]
]
`;

exports[`sdk getParachainBalances should get expected balances for Peaq 1`] = `
exports[`sdk getParachainBalances should get expected balances for peaq 1`] = `
[
e {
"amount": 0n,
Expand Down Expand Up @@ -635,10 +649,17 @@ exports[`sdk getParachainBalances should get expected balances for Peaq 1`] = `
"originSymbol": "GLMR",
"symbol": "GLMR",
},
e {
"amount": 0n,
"decimals": 18,
"key": "peaq",
"originSymbol": "PEAQ",
"symbol": "PEAQ",
},
]
`;

exports[`sdk getParachainBalances should get expected balances for Peaq EVM 1`] = `
exports[`sdk getParachainBalances should get expected balances for peaq EVM 1`] = `
[
e {
"amount": 0n,
Expand Down Expand Up @@ -685,7 +706,7 @@ exports[`sdk getParachainBalances should get expected balances for Peaq EVM 1`]
]
`;

exports[`sdk getParachainBalances should get expected balances for Peaq EVM Alphanet 1`] = `
exports[`sdk getParachainBalances should get expected balances for peaq EVM Alphanet 1`] = `
[
e {
"amount": 330000000000000000n,
Expand Down

0 comments on commit f7bb225

Please sign in to comment.