Centrifuge update RC6 (#2637)

* update to rc6 types

* prep rc6

* fix lint
This commit is contained in:
Miguel Hervas
2020-09-22 22:57:59 +02:00
committed by GitHub
parent 004f9153ab
commit 820dd3d0fb
@@ -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'
}
}
];