ghost-portal/packages/apps-routing/src/teleport.ts
Jaco eacf028ba6
Use .js imports in src (#9132)
* Use .js imports in src

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Additional

* Add WP extension aliases

* Bump dev

* Additional

* Additional

* Adjust extensionAlias order
2023-03-09 12:11:03 +02:00

36 lines
1.0 KiB
TypeScript

// Copyright 2017-2023 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { TFunction } from 'i18next';
import type { Route } from './types.js';
import Modal from '@polkadot/app-parachains/Teleport';
export default function create (t: TFunction): Route {
return {
Component: Modal,
Modal,
display: {
// TODO We need to move to XCM v3 at some point, until such time we disable
// this functionality (we really should have kept it until later versions)
isHidden: true,
needsAccounts: true,
needsApi: [
[
'tx.xcm.teleportAssets',
'tx.xcmPallet.teleportAssets',
'tx.polkadotXcm.teleportAssets',
'tx.xcm.limitedTeleportAssets',
'tx.xcmPallet.limitedTeleportAssets',
'tx.polkadotXcm.limitedTeleportAssets'
]
],
needsTeleport: true
},
group: 'accounts',
icon: 'share-square',
name: 'teleport',
text: t<string>('nav.teleport', 'Teleport', { ns: 'apps-routing' })
};
}