Swap Edgeware to specVersioned (#4353)
This commit is contained in:
parent
1cd4efe930
commit
74f929c48c
@ -11,7 +11,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@acala-network/type-definitions": "^0.6.1",
|
"@acala-network/type-definitions": "^0.6.1",
|
||||||
"@babel/runtime": "^7.12.5",
|
"@babel/runtime": "^7.12.5",
|
||||||
"@edgeware/node-types": "^3.0.11",
|
"@edgeware/node-types": "^3.2.0",
|
||||||
"@interlay/polkabtc-types": "^0.2.9",
|
"@interlay/polkabtc-types": "^0.2.9",
|
||||||
"@laminar/type-definitions": "^0.2.0-beta.141",
|
"@laminar/type-definitions": "^0.2.0-beta.141",
|
||||||
"@polkadot/networks": "^5.2.3",
|
"@polkadot/networks": "^5.2.3",
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// structs need to be in order
|
|
||||||
/* eslint-disable sort-keys */
|
|
||||||
|
|
||||||
import { Beresheet } from '@edgeware/node-types';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
...Beresheet.types,
|
|
||||||
// Substrate overrides
|
|
||||||
RefCount: 'u32'
|
|
||||||
};
|
|
||||||
@ -1,11 +1,9 @@
|
|||||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import Beresheet from './beresheet';
|
|
||||||
import Phala from './phala';
|
import Phala from './phala';
|
||||||
|
|
||||||
// alphabetical, based on the actual displayed name
|
// alphabetical, based on the actual displayed name
|
||||||
export default {
|
export default {
|
||||||
Beresheet,
|
|
||||||
'Phala PoC-3': Phala
|
'Phala PoC-3': Phala
|
||||||
};
|
};
|
||||||
|
|||||||
@ -10,8 +10,8 @@ export * from './params';
|
|||||||
|
|
||||||
export function getChainTypes (specName: string, chainName: string): Record<string, string | Record<string, unknown>> {
|
export function getChainTypes (specName: string, chainName: string): Record<string, string | Record<string, unknown>> {
|
||||||
return {
|
return {
|
||||||
...(typesSpec[specName as 'edgeware'] || {}),
|
...(typesSpec[specName as keyof typeof typesSpec] || {}),
|
||||||
...(typesChain[chainName as 'Beresheet'] || {})
|
...(typesChain[chainName as keyof typeof typesChain] || {})
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
// structs need to be in order
|
|
||||||
/* eslint-disable sort-keys */
|
|
||||||
|
|
||||||
import { Beresheet } from '@edgeware/node-types';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
...Beresheet.types,
|
|
||||||
// chain-specific overrides
|
|
||||||
RefCount: 'u32'
|
|
||||||
};
|
|
||||||
@ -11,7 +11,6 @@ import darwinia from './darwinia';
|
|||||||
import darwiniaParachain from './darwinia-parachain';
|
import darwiniaParachain from './darwinia-parachain';
|
||||||
import dock from './dock';
|
import dock from './dock';
|
||||||
import dusty from './dusty';
|
import dusty from './dusty';
|
||||||
import edgeware from './edgeware';
|
|
||||||
import encointerNodeNotee from './encointer-node-notee';
|
import encointerNodeNotee from './encointer-node-notee';
|
||||||
import encointerNodeTeeproxy from './encointer-node-teeproxy';
|
import encointerNodeTeeproxy from './encointer-node-teeproxy';
|
||||||
import equilibrium from './equilibrium';
|
import equilibrium from './equilibrium';
|
||||||
@ -43,7 +42,6 @@ export default {
|
|||||||
'dock-main-runtime': dock,
|
'dock-main-runtime': dock,
|
||||||
'dock-testnet': dock,
|
'dock-testnet': dock,
|
||||||
dusty3: dusty,
|
dusty3: dusty,
|
||||||
edgeware,
|
|
||||||
'encointer-node': encointerNodeNotee,
|
'encointer-node': encointerNodeNotee,
|
||||||
'encointer-node-notee': encointerNodeNotee,
|
'encointer-node-notee': encointerNodeNotee,
|
||||||
'encointer-node-teeproxy': encointerNodeTeeproxy,
|
'encointer-node-teeproxy': encointerNodeTeeproxy,
|
||||||
|
|||||||
10
packages/apps-config/src/api/specVersioned/edgeware.ts
Normal file
10
packages/apps-config/src/api/specVersioned/edgeware.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||||
|
|
||||||
|
import { spec } from '@edgeware/node-types';
|
||||||
|
|
||||||
|
const edgeware = spec.typesBundle.spec?.edgeware as OverrideBundleDefinition;
|
||||||
|
|
||||||
|
export default edgeware;
|
||||||
@ -2,6 +2,7 @@
|
|||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
import acala from './acala';
|
import acala from './acala';
|
||||||
|
import edgeware from './edgeware';
|
||||||
import equilibrium from './equilibrium';
|
import equilibrium from './equilibrium';
|
||||||
import kulupu from './kulupu';
|
import kulupu from './kulupu';
|
||||||
import laminar from './laminar';
|
import laminar from './laminar';
|
||||||
@ -13,6 +14,7 @@ export default {
|
|||||||
Equilibrium: equilibrium,
|
Equilibrium: equilibrium,
|
||||||
acala,
|
acala,
|
||||||
'btc-parachain': polkabtc,
|
'btc-parachain': polkabtc,
|
||||||
|
edgeware,
|
||||||
kulupu,
|
kulupu,
|
||||||
laminar,
|
laminar,
|
||||||
mandala: acala,
|
mandala: acala,
|
||||||
|
|||||||
10
yarn.lock
10
yarn.lock
@ -1391,10 +1391,10 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@edgeware/node-types@npm:^3.0.11":
|
"@edgeware/node-types@npm:^3.2.0":
|
||||||
version: 3.0.11
|
version: 3.2.0
|
||||||
resolution: "@edgeware/node-types@npm:3.0.11"
|
resolution: "@edgeware/node-types@npm:3.2.0"
|
||||||
checksum: a98552a63dd138748c5c68ee34401e2b46b326cd5897eb001d74b1ebb4a0817a074be60cde10fd1ee0368f5923554c56476fedc96cffe3764bdc87675a7e4790
|
checksum: a5c0ff07269fd67f0d3c468426fecf00d66ba651cc77f285082945b5c894f47d50ab10488614ec0a6cf633143e7987ca1061a52657770f10cb8401e94ebb7215
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
@ -2185,7 +2185,7 @@ __metadata:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@acala-network/type-definitions": ^0.6.1
|
"@acala-network/type-definitions": ^0.6.1
|
||||||
"@babel/runtime": ^7.12.5
|
"@babel/runtime": ^7.12.5
|
||||||
"@edgeware/node-types": ^3.0.11
|
"@edgeware/node-types": ^3.2.0
|
||||||
"@interlay/polkabtc-types": ^0.2.9
|
"@interlay/polkabtc-types": ^0.2.9
|
||||||
"@laminar/type-definitions": ^0.2.0-beta.141
|
"@laminar/type-definitions": ^0.2.0-beta.141
|
||||||
"@polkadot/networks": ^5.2.3
|
"@polkadot/networks": ^5.2.3
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user