Adjust Kulupu with spec-versioned types (#4291)

* Adjust Kulupu with spec-versioned types

* linting
This commit is contained in:
Jaco Greeff 2020-12-30 12:48:40 +01:00 committed by GitHub
parent 599452d4a4
commit edc978e949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 22 deletions

View File

@ -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,

View File

@ -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'
}
};

View File

@ -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,

View 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;