Update types for centrifuge chain v1.2.0 (#2424)

* Update types for centrifuge chain v1.2.0

* Make linter happy
This commit is contained in:
philipstanislaus
2020-07-13 20:41:15 +02:00
committed by GitHub
parent 8c73cd7d6e
commit 1a96ca5c0e
@@ -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
}
}
];