Add ReferendumInfo type overrides (#2433)

This commit is contained in:
Jaco Greeff 2020-03-22 12:05:03 +01:00 committed by GitHub
parent d726cf5929
commit 6ec479add2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 3 deletions

View File

@ -3,6 +3,8 @@
// of the Apache-2.0 license. See the LICENSE file for details.
export default {
// previous substrate versions
BalanceLock: 'BalanceLockTo212',
ReferendumInfo: 'ReferendumInfoTo239',
StakingLedger: 'StakingLedgerTo223'
};

View File

@ -4,7 +4,9 @@
export default {
Address: 'GenericAddress',
BalanceLock: 'BalanceLockTo212',
Keys: 'SessionKeys5',
// previous substrate versions
BalanceLock: 'BalanceLockTo212',
ReferendumInfo: 'ReferendumInfoTo239',
StakingLedger: 'StakingLedgerTo223'
};

View File

@ -24,5 +24,7 @@ export default {
},
// Overwrites to Substrate types
Address: 'AccountId',
LookupSource: 'AccountId'
LookupSource: 'AccountId',
// previous substrate versions
ReferendumInfo: 'ReferendumInfoTo239'
};

View File

@ -8,5 +8,7 @@ export default {
...EdgewareTypes,
Address: 'GenericAddress',
Keys: 'SessionKeys4',
// previous substrate versions
ReferendumInfo: 'ReferendumInfoTo239',
StakingLedger: 'StakingLedgerTo223'
};

View File

@ -4,17 +4,19 @@
export default {
Address: 'GenericAddress',
BalanceLock: 'BalanceLockTo212',
Difficulty: 'U256',
DifficultyAndTimestamp: {
difficulty: 'Difficulty',
timestamp: 'Moment'
},
// previous substrate versions
BalanceLock: 'BalanceLockTo212',
DispatchError: 'DispatchErrorTo198',
DispatchResult: 'DispatchResultTo198',
DispatchInfo: {
weight: 'Weight',
class: 'DispatchClass'
},
ReferendumInfo: 'ReferendumInfoTo239',
StakingLedger: 'StakingLedgerTo223'
};