fix: issue 9127. teleport reactivated (#9529)
* fix: issue 9127. teleport reactivated * fix: issue 9127. restricted xcm version to V1 and V2 * fix: issue 9127. using xcm V3 for asset teleport
This commit is contained in:
parent
fc2a452e90
commit
e4a5794b78
@ -817,7 +817,7 @@ export const prodParasKusamaCommon: EndpointOption[] = [
|
||||
'IBP-GeoDNS2': 'wss://sys.dotters.network/encointer-kusama',
|
||||
OnFinality: 'wss://encointer.api.onfinality.io/public-ws'
|
||||
},
|
||||
teleport: [-1],
|
||||
teleport: [], // teleport is temporarily disabled until xcm V3 is supported
|
||||
text: 'Encointer Network',
|
||||
ui: {
|
||||
color: '#0000cc',
|
||||
|
||||
@ -11,9 +11,7 @@ export default function create (t: TFunction): Route {
|
||||
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,
|
||||
isHidden: false,
|
||||
needsAccounts: true,
|
||||
needsApi: [
|
||||
[
|
||||
|
||||
@ -77,7 +77,7 @@ function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
|
||||
const params = useMemo(
|
||||
() => [
|
||||
{
|
||||
V1: isParaTeleport
|
||||
V3: isParaTeleport
|
||||
? {
|
||||
interior: 'Here',
|
||||
parents: 1
|
||||
@ -92,12 +92,12 @@ function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
|
||||
}
|
||||
},
|
||||
{
|
||||
V1: {
|
||||
V3: {
|
||||
interior: {
|
||||
X1: {
|
||||
AccountId32: {
|
||||
id: api.createType('AccountId32', recipientId).toHex(),
|
||||
network: 'Any'
|
||||
network: null
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -105,7 +105,7 @@ function Teleport ({ onClose }: Props): React.ReactElement<Props> | null {
|
||||
}
|
||||
},
|
||||
{
|
||||
V1: [{
|
||||
V3: [{
|
||||
fun: {
|
||||
Fungible: amount
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user