Update centrifuge-chain types for updated substrate used in parachain (#3520)

This commit is contained in:
Branan Riley
2021-05-12 18:44:35 +02:00
committed by GitHub
parent 29c0ea9856
commit ca6a7819f6
@@ -6,12 +6,6 @@
import type { OverrideVersionedType } from '@polkadot/types/types';
const sharedTypes = {
// substrate
AccountInfo: 'AccountInfoWithRefCount',
Address: 'LookupSource',
LookupSource: 'IndicesLookupSource',
Multiplier: 'Fixed64',
// Anchor
AnchorData: {
anchoredBlock: 'u64',
@@ -77,11 +71,21 @@ const sharedTypes = {
const versioned: OverrideVersionedType[] = [
{
minmax: [240, undefined],
minmax: [240, 999],
types: {
...sharedTypes,
AccountInfo: 'AccountInfoWithRefCount',
Address: 'LookupSource',
LookupSource: 'IndicesLookupSource',
Multiplier: 'Fixed64',
RefCount: 'RefCountTo259'
}
},
{
minmax: [1000, undefined],
types: {
...sharedTypes
}
}
];