Update RewardDesitination enum (any payout) (#2474)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
## 1.31.0-beta.x
|
||||
|
||||
- **Important** Substrate changed the `RewardDestination` enum with an extra field for payout-to-any account. If on an older chain consider adding `RewardDestination: 'RewardDestinationTo257'` (Newer chains with this requirement met in their Substrate version should update the API for support)
|
||||
- Add `toBigInt()` (JS built-in `BigInt`) on `Int/Uint`, & `Compact<*>` types
|
||||
|
||||
## 1.30.1 Aug 24, 2020
|
||||
|
||||
@@ -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