From a93063c6fb8ebc306a75b9764c76bcae300338a9 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 28 Oct 2020 10:31:32 +0100 Subject: [PATCH] Know-types for Rococo v1 (#2795) --- packages/types-known/src/spec/rococo.ts | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/packages/types-known/src/spec/rococo.ts b/packages/types-known/src/spec/rococo.ts index f819939573..f6f9848d53 100644 --- a/packages/types-known/src/spec/rococo.ts +++ b/packages/types-known/src/spec/rococo.ts @@ -3,20 +3,34 @@ import { OverrideVersionedType } from '@polkadot/types/types'; +// structs need to be in order +/* eslint-disable sort-keys */ + const sharedTypes = { Address: 'AccountId', Keys: 'SessionKeys5', - LookupSource: 'AccountId', - RewardDestination: 'RewardDestinationTo257' + LookupSource: 'AccountId' }; const versioned: OverrideVersionedType[] = [ { - minmax: [0, undefined], + minmax: [0, 9], types: { ...sharedTypes, CompactAssignments: 'CompactAssignmentsTo257', - RefCount: 'RefCountTo259' + RefCount: 'RefCountTo259', + RewardDestination: 'RewardDestinationTo257' + } + }, + { + minmax: [10, undefined], + types: { + ...sharedTypes, + ParaGenesisArgs: { + genesisHead: 'Bytes', + validationCode: 'Bytes', + parachain: 'bool' + } } } ];