From 820dd3d0fb4b810ea095915fe797306914ba16ed Mon Sep 17 00:00:00 2001 From: Miguel Hervas Date: Tue, 22 Sep 2020 13:57:59 -0700 Subject: [PATCH] Centrifuge update RC6 (#2637) * update to rc6 types * prep rc6 * fix lint --- .../types-known/src/spec/centrifuge-chain.ts | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/packages/types-known/src/spec/centrifuge-chain.ts b/packages/types-known/src/spec/centrifuge-chain.ts index 6a15c03800..f1995ad25c 100644 --- a/packages/types-known/src/spec/centrifuge-chain.ts +++ b/packages/types-known/src/spec/centrifuge-chain.ts @@ -10,6 +10,8 @@ const sharedTypes = { docRoot: 'H256', id: 'H256' }, + ChainId: 'u8', + DepositNonce: 'u64', Fee: { key: 'Hash', price: 'Balance' @@ -30,20 +32,25 @@ const sharedTypes = { leafHash: 'H256', sortedHashes: 'H256' }, - ReferendumInfo: 'ReferendumInfoTo239', - StakingLedger: 'StakingLedgerTo240', - Weight: 'u32' + ResourceId: '[u8; 32]', + 'chainbridge::ChainId': 'u8' }; const versioned: OverrideVersionedType[] = [ { - minmax: [229, undefined], + minmax: [229, 334], types: { ...sharedTypes, - ChainId: 'u8', - DepositNonce: 'u64', - ResourceId: '[u8; 32]', - 'chainbridge::ChainId': 'u8' + ReferendumInfo: 'ReferendumInfoTo239', + StakingLedger: 'StakingLedgerTo240', + Weight: 'u32' + } + }, + { + minmax: [235, undefined], + types: { + ...sharedTypes, + Weight: 'u64' } } ];