File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
packages/types-known/src/spec Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,15 @@ import { OverrideVersionedType } from '@polkadot/types/types';
77import centrifugeChain from './centrifuge-chain' ;
88import kusama from './kusama' ;
99import polkadot from './polkadot' ;
10+ import rococo from './rococo' ;
1011import westend from './westend' ;
1112
1213// Type overrides for specific spec types & versions as given in runtimeVersion
1314const typesSpec : Record < string , OverrideVersionedType [ ] > = {
1415 'centrifuge-chain' : centrifugeChain ,
1516 kusama,
1617 polkadot,
18+ rococo,
1719 westend
1820} ;
1921
Original file line number Diff line number Diff line change 1+ // Copyright 2017-2020 @polkadot/types-known authors & contributors
2+ // This software may be modified and distributed under the terms
3+ // of the Apache-2.0 license. See the LICENSE file for details.
4+
5+ import { OverrideVersionedType } from '@polkadot/types/types' ;
6+
7+ const sharedTypes = {
8+ Address : 'AccountId' ,
9+ Keys : 'SessionKeys5' ,
10+ LookupSource : 'AccountId'
11+ } ;
12+
13+ const versioned : OverrideVersionedType [ ] = [
14+ {
15+ minmax : [ 0 , undefined ] ,
16+ types : {
17+ ...sharedTypes
18+ }
19+ }
20+ ] ;
21+
22+ export default versioned ;
You can’t perform that action at this time.
0 commit comments