Skip to content

Commit 6df466d

Browse files
authored
Known types for Rococo (#2459)
* Known types for Rococo * Update rococo.ts
1 parent e2a2ac2 commit 6df466d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

packages/types-known/src/spec/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ import { OverrideVersionedType } from '@polkadot/types/types';
77
import centrifugeChain from './centrifuge-chain';
88
import kusama from './kusama';
99
import polkadot from './polkadot';
10+
import rococo from './rococo';
1011
import westend from './westend';
1112

1213
// Type overrides for specific spec types & versions as given in runtimeVersion
1314
const typesSpec: Record<string, OverrideVersionedType[]> = {
1415
'centrifuge-chain': centrifugeChain,
1516
kusama,
1617
polkadot,
18+
rococo,
1719
westend
1820
};
1921

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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;

0 commit comments

Comments
 (0)