From 5b1823f7eb93fff5b655eb6d13970aaff62ff7b6 Mon Sep 17 00:00:00 2001 From: Branan Riley Date: Sat, 11 Sep 2021 02:42:44 -0700 Subject: [PATCH] Add proxy type for Centrifuge (#3940) --- .../types-known/src/spec/centrifuge-chain.ts | 43 ++++++++++++++++--- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/packages/types-known/src/spec/centrifuge-chain.ts b/packages/types-known/src/spec/centrifuge-chain.ts index 96fada9123..b21f944cb8 100644 --- a/packages/types-known/src/spec/centrifuge-chain.ts +++ b/packages/types-known/src/spec/centrifuge-chain.ts @@ -66,19 +66,48 @@ const sharedTypes = { RegistryInfo: { fields: 'Vec', ownerCanBurn: 'bool' + }, + + ProxyType: { + _enum: [ + 'Any', + 'NonTransfer', + 'Governance', + 'Staking', + 'NonProxy' + ] } }; +const standaloneTypes = { + ...sharedTypes, + AccountInfo: 'AccountInfoWithRefCount', + Address: 'LookupSource', + LookupSource: 'IndicesLookupSource', + Multiplier: 'Fixed64', + RefCount: 'RefCountTo259' +}; + const versioned: OverrideVersionedType[] = [ { - minmax: [240, 999], + minmax: [240, 243], types: { - ...sharedTypes, - AccountInfo: 'AccountInfoWithRefCount', - Address: 'LookupSource', - LookupSource: 'IndicesLookupSource', - Multiplier: 'Fixed64', - RefCount: 'RefCountTo259' + ...standaloneTypes, + ProxyType: { + _enum: [ + 'Any', + 'NonTransfer', + 'Governance', + 'Staking', + 'Vesting' + ] + } + } + }, + { + minmax: [244, 999], + types: { + ...standaloneTypes } }, {