Base centrifuge types (#2125)

This commit is contained in:
Jaco Greeff
2020-04-02 11:15:28 +02:00
committed by GitHub
parent 6b07a9c2a5
commit e392dd745e
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,18 @@
// Copyright 2017-2020 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import { OverrideVersionedType } from '@polkadot/types/types';
const versioned: OverrideVersionedType[] = [
{
minmax: [1000, undefined],
types: {
Address: 'AccountId',
LookupSource: 'AccountId',
ReferendumInfo: 'ReferendumInfoTo239'
}
}
];
export default versioned;
+2
View File
@@ -4,11 +4,13 @@
import { OverrideVersionedType } from '@polkadot/types/types';
import centrifugeChain from './centrifuge-chain';
import kusama from './kusama';
import polkadot from './polkadot';
// Type overrides for specific spec types & versions as given in runtimeVersion
const typesSpec: Record<string, OverrideVersionedType[]> = {
'centrifuge-chain': centrifugeChain,
kusama,
polkadot
};