diff --git a/packages/types-known/src/spec/centrifuge-chain.ts b/packages/types-known/src/spec/centrifuge-chain.ts index b229b2eb68..a523d7fb82 100644 --- a/packages/types-known/src/spec/centrifuge-chain.ts +++ b/packages/types-known/src/spec/centrifuge-chain.ts @@ -4,17 +4,29 @@ import { OverrideVersionedType } from '@polkadot/types/types'; +const sharedTypes = { + Address: 'GenericAddress', + LookupSource: 'GenericAddress', + Multiplier: 'Fixed64', + ReferendumInfo: 'ReferendumInfoTo239', + StakingLedger: 'StakingLedgerTo240', + Weight: 'u32' +}; + const versioned: OverrideVersionedType[] = [ { // most chains started at 1000 (Fulvous at 224) - minmax: [1, undefined], + minmax: [1, 228], types: { + ...sharedTypes, Address: 'AccountId', - LookupSource: 'AccountId', - Multiplier: 'Fixed64', - ReferendumInfo: 'ReferendumInfoTo239', - StakingLedger: 'StakingLedgerTo240', - Weight: 'u32' + LookupSource: 'AccountId' + } + }, + { + minmax: [229, undefined], + types: { + ...sharedTypes } } ];