Khala para2 & update typedefs (#6073)

* Update Phala typedefs

* Replace Khala Para1 with Para2 testnet
This commit is contained in:
Jun Jiang 2021-09-06 05:14:13 +08:00 committed by GitHub
parent f5053d040b
commit c0559fbc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 25 additions and 61 deletions

View File

@ -20,7 +20,7 @@
"@kiltprotocol/type-definitions": "0.1.14",
"@laminar/type-definitions": "0.3.1",
"@parallel-finance/type-definitions": "1.1.2",
"@phala/typedefs": "0.2.14",
"@phala/typedefs": "0.2.20",
"@polkadot/networks": "^7.3.1",
"@polymathnetwork/polymesh-types": "0.0.2",
"@snowfork/snowbridge-types": "0.2.5",

View File

@ -48,6 +48,7 @@ import interbtc from './interbtc';
import ipse from './ipse';
import jupiter from './jupiter';
import jupiterRococo from './jupiter-rococo';
import khala from './khala';
import kilt from './kilt';
import konomi from './konomi';
import kpron from './kpron';
@ -67,8 +68,6 @@ import origintrail from './origintrail';
import pangolin from './pangolin';
import parallel from './parallel';
import parami from './parami';
import phala from './phala';
import phalaParachain from './phala-parachain';
import phoenix from './phoenix';
import plasm from './plasm';
import plasmParachain from './plasm-parachain';
@ -160,7 +159,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
'ipse-node': ipse,
'jupiter-prep': jupiter,
'jupiter-rococo': jupiterRococo,
khala: phalaParachain,
khala,
'kilt-parachain': kilt,
'kilt-spiritnet': kilt,
kintsugi: interbtc,
@ -188,9 +187,6 @@ const spec: Record<string, OverrideBundleDefinition> = {
opportunity,
'origintrail-parachain': origintrail,
parami,
'phala-collator': phalaParachain,
'phala-node': phala,
'phale-node': phala,
'phoenix-node': phoenix,
'phoenix-parachain': phoenix,
plasm,

View File

@ -0,0 +1,8 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import { versionedKhala } from '@phala/typedefs';
export default versionedKhala as OverrideBundleDefinition;

View File

@ -1,21 +0,0 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import { poc4 } from '@phala/typedefs';
// structs need to be in order
/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: poc4
}
]
};
export default definitions;

View File

@ -1,21 +0,0 @@
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import { poc4 } from '@phala/typedefs';
// structs need to be in order
/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, undefined],
types: poc4
}
]
};
export default definitions;

View File

@ -67,13 +67,6 @@ export function createTesting (t: TFunction, firstOnly: boolean, withSort: boole
Parity: 'wss://canvas-rpc.parity.io'
}
},
{
info: 'phala',
text: t('rpc.test.phala', 'Chala (Para1)', { ns: 'apps-config' }),
providers: {
'Phala Network': 'wss://chala-api.phala.network/ws/'
}
},
{
info: 'clover',
isDisabled: true, // Cannot construct unknown type BridgeNetworks
@ -218,6 +211,13 @@ export function createTesting (t: TFunction, firstOnly: boolean, withSort: boole
Patract: 'wss://ws.jupiter-poa.patract.cn'
}
},
{
info: 'phala',
text: t('rpc.test.phala', 'Khala (Para2)', { ns: 'apps-config' }),
providers: {
'Phala Network': 'wss://para2-api.phala.network/ws/'
}
},
{
info: 'kilt',
text: t('rpc.test.kilt', 'KILT Mashnet', { ns: 'apps-config' }),

View File

@ -2491,10 +2491,12 @@ __metadata:
languageName: node
linkType: hard
"@phala/typedefs@npm:0.2.14":
version: 0.2.14
resolution: "@phala/typedefs@npm:0.2.14"
checksum: 32a3064aba8e09ea07fa1ace6eba62efcca53b694f1c99e6b28a3aa7bf0dfc377388fc462a2be74f6a19fc89b43141e913ee63cd22b5f2bc8584d2ac7c58ee44
"@phala/typedefs@npm:0.2.20":
version: 0.2.20
resolution: "@phala/typedefs@npm:0.2.20"
dependencies:
"@polkadot/types": ^5.7.1
checksum: d83cbe8f1db3f1f2a82e1924a7e9036e300c14b3e65ec0e912f4daec8ad1409bb474f19d50d0b47bad7a4c82a6e3a4b6c0701c1faaa6005764c59f9e675cd545
languageName: node
linkType: hard
@ -2824,7 +2826,7 @@ __metadata:
"@kiltprotocol/type-definitions": 0.1.14
"@laminar/type-definitions": 0.3.1
"@parallel-finance/type-definitions": 1.1.2
"@phala/typedefs": 0.2.14
"@phala/typedefs": 0.2.20
"@polkadot/networks": ^7.3.1
"@polymathnetwork/polymesh-types": 0.0.2
"@snowfork/snowbridge-types": 0.2.5