Types for Substrate node (MultiAddress) (#2875)

This commit is contained in:
Jaco Greeff
2020-11-26 11:02:31 +01:00
committed by GitHub
parent a58be22764
commit 4847988a94
2 changed files with 28 additions and 0 deletions
+2
View File
@@ -5,6 +5,7 @@ import { OverrideVersionedType } from '@polkadot/types/types';
import centrifugeChain from './centrifuge-chain';
import kusama from './kusama';
import node from './node';
import nodeTemplate from './node-template';
import polkadot from './polkadot';
import rococo from './rococo';
@@ -14,6 +15,7 @@ import westend from './westend';
const typesSpec: Record<string, OverrideVersionedType[]> = {
'centrifuge-chain': centrifugeChain,
kusama,
node,
'node-template': nodeTemplate,
polkadot,
rococo,
+26
View File
@@ -0,0 +1,26 @@
// Copyright 2017-2020 @polkadot/types-known authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
import { OverrideVersionedType } from '@polkadot/types/types';
// these are override types for Polkadot
const versioned: OverrideVersionedType[] = [
{
minmax: [0, 259],
types: {
Address: 'AccountId',
LookupSource: 'AccountId'
}
},
{
minmax: [260, undefined],
types: {
Address: 'MultiAddress',
LookupSource: 'MultiAddress'
}
}
];
export default versioned;