Adjust Kulupu with spec-versioned types (#4291)
* Adjust Kulupu with spec-versioned types * linting
This commit is contained in:
parent
599452d4a4
commit
edc978e949
@ -18,7 +18,6 @@ import equilibrium from './equilibrium';
|
||||
import galois from './galois';
|
||||
import hanonycash from './hanonycash';
|
||||
import kilt from './kilt';
|
||||
import kulupu from './kulupu';
|
||||
import nodle from './nodle';
|
||||
import phala from './phala';
|
||||
import plasm from './plasm';
|
||||
@ -48,7 +47,6 @@ export default {
|
||||
'encointer-node-teeproxy': encointerNodeTeeproxy,
|
||||
galois: galois,
|
||||
hanonycash,
|
||||
kulupu,
|
||||
'mashnet-node': kilt,
|
||||
'nodle-chain': nodle,
|
||||
'phala-node': phala,
|
||||
|
||||
@ -1,20 +0,0 @@
|
||||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
Difficulty: 'U256',
|
||||
DifficultyAndTimestamp: {
|
||||
difficulty: 'Difficulty',
|
||||
timestamp: 'Moment'
|
||||
},
|
||||
Era: {
|
||||
genesisBlockHash: 'H256',
|
||||
finalBlockHash: 'H256',
|
||||
finalStateRoot: 'H256'
|
||||
}
|
||||
};
|
||||
@ -3,6 +3,7 @@
|
||||
|
||||
import acala from './acala';
|
||||
import equilibrium from './equilibrium';
|
||||
import kulupu from './kulupu';
|
||||
import laminar from './laminar';
|
||||
import moonbeam from './moonbeam';
|
||||
import polkabtc from './polkabtc';
|
||||
@ -12,6 +13,7 @@ export default {
|
||||
Equilibrium: equilibrium,
|
||||
acala,
|
||||
'btc-parachain': polkabtc,
|
||||
kulupu,
|
||||
laminar,
|
||||
mandala: acala,
|
||||
'moonbase-alphanet': moonbeam,
|
||||
|
||||
43
packages/apps-config/src/api/specVersioned/kulupu.ts
Normal file
43
packages/apps-config/src/api/specVersioned/kulupu.ts
Normal file
@ -0,0 +1,43 @@
|
||||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
const definitions: OverrideBundleDefinition = {
|
||||
types: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
CurvePoint: {
|
||||
start: 'BlockNumber',
|
||||
reward: 'Balance',
|
||||
taxation: 'Perbill'
|
||||
},
|
||||
Difficulty: 'U256',
|
||||
DifficultyAndTimestamp: {
|
||||
difficulty: 'Difficulty',
|
||||
timestamp: 'Moment'
|
||||
},
|
||||
Era: {
|
||||
genesisBlockHash: 'H256',
|
||||
finalBlockHash: 'H256',
|
||||
finalStateRoot: 'H256'
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
// swap to MultiAddress in runtime 13
|
||||
minmax: [13, undefined],
|
||||
types: {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
Loading…
Reference in New Issue
Block a user