ghost-portal/packages/apps-routing/src/teleport.ts
Jaco 7148e7e6b6
Allow xcm asset teleport (#5413)
* Allow xcm asset teleport

* Should be operational...

* lock cron

* Teleport from parachain to relay

* Only enable on relay

* Disable para teleport
2021-06-02 15:11:11 +02:00

31 lines
750 B
TypeScript

// Copyright 2017-2021 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { Route } from './types';
import Modal from '@polkadot/app-parachains/Teleport';
export default function create (t: TFunction): Route {
return {
Component: Modal,
Modal,
display: {
isHidden: false,
needsAccounts: true,
needsApi: [
[
'tx.xcm.teleportAssets',
'tx.xcmPallet.teleportAssets',
'tx.polkadotXcm.teleportAssets'
]
],
needsTeleport: true
},
group: 'accounts',
icon: 'share-square',
name: 'teleport',
text: t('nav.teleport', 'Teleport', { ns: 'apps-routing' })
};
}