Update RewardDesitination enum (any payout) (#2474)
This commit is contained in:
@@ -10,7 +10,8 @@ const sharedTypes = {
|
||||
LookupSource: 'AccountId',
|
||||
ProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'IdentityJudgement']
|
||||
}
|
||||
},
|
||||
RewardDestination: 'RewardDestinationTo257'
|
||||
};
|
||||
|
||||
const versioned: OverrideVersionedType[] = [
|
||||
|
||||
@@ -9,8 +9,10 @@ const sharedTypes = {
|
||||
Keys: 'SessionKeys5',
|
||||
LookupSource: 'AccountId',
|
||||
ProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'SudoBalances', 'IdentityJudgement']
|
||||
}
|
||||
// was: SudoBalances
|
||||
_enum: ['Any', 'NonTransfer', 'Governance', 'Staking', 'Unused', 'IdentityJudgement']
|
||||
},
|
||||
RewardDestination: 'RewardDestinationTo257'
|
||||
};
|
||||
|
||||
// these are override types for Polkadot
|
||||
|
||||
@@ -7,7 +7,8 @@ import { OverrideVersionedType } from '@polkadot/types/types';
|
||||
const sharedTypes = {
|
||||
Address: 'AccountId',
|
||||
Keys: 'SessionKeys5',
|
||||
LookupSource: 'AccountId'
|
||||
LookupSource: 'AccountId',
|
||||
RewardDestination: 'RewardDestinationTo257'
|
||||
};
|
||||
|
||||
const versioned: OverrideVersionedType[] = [
|
||||
|
||||
@@ -9,8 +9,10 @@ const sharedTypes = {
|
||||
Keys: 'SessionKeys5',
|
||||
LookupSource: 'AccountId',
|
||||
ProxyType: {
|
||||
_enum: ['Any', 'NonTransfer', 'Staking', 'SudoBalances', 'IdentityJudgement']
|
||||
}
|
||||
// was: SudoBalances
|
||||
_enum: ['Any', 'NonTransfer', 'Staking', 'Unused', 'IdentityJudgement']
|
||||
},
|
||||
RewardDestination: 'RewardDestinationTo257'
|
||||
};
|
||||
|
||||
const versioned: OverrideVersionedType[] = [
|
||||
|
||||
@@ -121,6 +121,14 @@ export default {
|
||||
PhragmenScore: '[u128; 3]',
|
||||
Points: 'u32',
|
||||
RewardDestination: {
|
||||
_enum: {
|
||||
Staked: 'Null',
|
||||
Stash: 'Null',
|
||||
Controller: 'Null',
|
||||
Account: 'AccountId'
|
||||
}
|
||||
},
|
||||
RewardDestinationTo257: {
|
||||
_enum: [
|
||||
'Staked',
|
||||
'Stash',
|
||||
|
||||
Reference in New Issue
Block a user