Skip to content

Commit

Permalink
change OTP name asset for NEURO and OriginTrail for NeuroWeb
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaurello committed Apr 22, 2024
1 parent 061f3ec commit cd46c31
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 23 deletions.
6 changes: 6 additions & 0 deletions packages/config/src/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ export const nodl = new Asset({
originSymbol: 'NODL',
});

export const neuro = new Asset({
key: 'neuro',
originSymbol: 'NEURO',
});

export const otp = new Asset({
key: 'otp',
originSymbol: 'OTP',
Expand Down Expand Up @@ -387,6 +392,7 @@ export const assetsList: Asset[] = [
mgx,
movr,
nodl,
neuro,
otp,
para,
paring,
Expand Down
15 changes: 8 additions & 7 deletions packages/config/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import {
manta,
mgx,
movr,
neuro,
nodl,
otp,
para,
Expand Down Expand Up @@ -910,7 +911,7 @@ export const moonbeam = new EvmParachain({
id: '309163521958167876851250718453738106865',
},
{
asset: otp,
asset: neuro,
id: '238111524681612888331172110363070489924',
},
{
Expand Down Expand Up @@ -1147,22 +1148,22 @@ export const nodle = new Parachain({
name: 'Nodle',
parachainId: 2026,
ss58Format: 37,
ws: 'wss://eden-rpc.dwellir.com',
ws: 'wss://nodle-rpc.dwellir.com',
});

export const originTrail = new Parachain({
export const neuroweb = new Parachain({
assetsData: [
{
asset: otp,
asset: neuro,
metadataId: 0,
palletInstance: 10,
},
],
ecosystem: Ecosystem.Polkadot,
genesisHash:
'0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174',
key: 'origin-trail',
name: 'OriginTrail',
key: 'neuroweb',
name: 'NeuroWeb',
parachainId: 2043,
ss58Format: 101,
ws: 'wss://origintrail-rpc.dwellir.com',
Expand Down Expand Up @@ -1561,8 +1562,8 @@ export const chainsList: AnyChain[] = [
moonbaseBeta,
moonbeam,
moonriver,
neuroweb,
nodle,
originTrail,
originTrailAlphanet,
parallel,
parallelHeiko,
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import { moonbaseAlphaConfig } from './moonbaseAlpha';
import { moonbaseBetaConfig } from './moonbaseBeta';
import { moonbeamConfig } from './moonbeam';
import { moonriverConfig } from './moonriver';
import { neurowebConfig } from './neuroweb';
import { nodleConfig } from './nodle';
import { originTrailConfig } from './originTrail';
import { originTrailAlphanetConfig } from './originTrailAlphanet';
import { parallelConfig } from './parallel';
import { parallelHeikoConfig } from './parallelHeiko';
Expand Down Expand Up @@ -75,8 +75,8 @@ export const chainsConfigList: ChainConfig[] = [
moonbaseBetaConfig,
moonbeamConfig,
moonriverConfig,
neurowebConfig,
nodleConfig,
originTrailConfig,
originTrailAlphanetConfig,
parallelConfig,
parallelHeikoConfig,
Expand Down
10 changes: 5 additions & 5 deletions packages/config/src/configs/moonbeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
intr,
ldot,
manta,
neuro,
nodl,
otp,
para,
pen,
pha,
Expand Down Expand Up @@ -50,8 +50,8 @@ import {
interlay,
mantaParachain,
moonbeam,
neuroweb,
nodle,
originTrail,
parallel,
pendulum,
phala,
Expand Down Expand Up @@ -382,13 +382,13 @@ export const moonbeamConfig = new ChainConfig({
},
}),
new AssetConfig({
asset: otp,
asset: neuro,
balance: BalanceBuilder().substrate().assets().account(),
contract: ContractBuilder().Xtokens().transfer(),
destination: originTrail,
destination: neuroweb,
destinationFee: {
amount: 0.004,
asset: otp,
asset: neuro,
balance: BalanceBuilder().substrate().assets().account(),
},
fee: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import {
ExtrinsicBuilder,
FeeBuilder,
} from '@moonbeam-network/xcm-builder';
import { otp } from '../assets';
import { moonbeam, originTrail } from '../chains';
import { neuro } from '../assets';
import { moonbeam, neuroweb } from '../chains';
import { AssetConfig } from '../types/AssetConfig';
import { ChainConfig } from '../types/ChainConfig';

export const originTrailConfig = new ChainConfig({
export const neurowebConfig = new ChainConfig({
assets: [
new AssetConfig({
asset: otp,
asset: neuro,
balance: BalanceBuilder().substrate().system().account(),
destination: moonbeam,
destinationFee: {
amount: FeeBuilder().assetManager().assetTypeUnitsPerSecond(),
asset: otp,
asset: neuro,
balance: BalanceBuilder().substrate().system().account(),
},
extrinsic: ExtrinsicBuilder()
Expand All @@ -25,5 +25,5 @@ export const originTrailConfig = new ChainConfig({
.X1(),
}),
],
chain: originTrail,
chain: neuroweb,
});
6 changes: 3 additions & 3 deletions packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ exports[`sdk getParachainBalances should get expected balances for Moonbeam 1`]
r {
"amount": 0n,
"decimals": 12,
"key": "otp",
"originSymbol": "OTP",
"symbol": "OTP",
"key": "neuro",
"originSymbol": "NEURO",
"symbol": "NEURO",
},
r {
"amount": 0n,
Expand Down

0 comments on commit cd46c31

Please sign in to comment.