Add support for CheckMortality extension (#2383)

This commit is contained in:
Jaco Greeff
2020-06-23 14:08:40 +02:00
committed by GitHub
parent e5c2c6a228
commit e3d13107a9
4 changed files with 34 additions and 48 deletions
+1
View File
@@ -2,6 +2,7 @@
## 1.21.0-beta.x
- Add support for `CheckMortality` signed extension (old `CheckEra` is now an alias)
- Fix subscriptions never unsubscribing after the id type swap in 1.18.1
- Promise API will default to using `getStorage` on non-subscription calls, reducing RPC overhead
- Optimize derive BN allocations, using in-place operators as applicable
@@ -0,0 +1,8 @@
// Copyright 2017-2020 @polkadot/types authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
export default {
extra: {},
types: {}
};
@@ -4,29 +4,13 @@
import { ExtDef } from './types';
import EmptyCheck from './emptyCheck';
export default {
LimitParathreadCommits: {
extra: {},
types: {}
},
OnlyStakingAndClaims: {
extra: {},
types: {}
},
PrevalidateAttests: {
extra: {},
types: {}
},
RestrictFunctionality: {
extra: {},
types: {}
},
TransactionCallFilter: {
extra: {},
types: {}
},
ValidateDoubleVoteReports: {
extra: {},
types: {}
}
LimitParathreadCommits: EmptyCheck,
OnlyStakingAndClaims: EmptyCheck,
PrevalidateAttests: EmptyCheck,
RestrictFunctionality: EmptyCheck,
TransactionCallFilter: EmptyCheck,
ValidateDoubleVoteReports: EmptyCheck
} as ExtDef;
@@ -4,6 +4,17 @@
import { ExtDef } from './types';
import EmptyCheck from './emptyCheck';
const CheckMortality = {
extra: {
blockHash: 'Hash'
},
types: {
era: 'ExtrinsicEra'
}
};
export default {
ChargeTransactionPayment: {
extra: {},
@@ -11,24 +22,15 @@ export default {
tip: 'Compact<Balance>'
}
},
CheckBlockGasLimit: {
extra: {},
types: {}
},
CheckEra: {
extra: {
blockHash: 'Hash'
},
types: {
era: 'ExtrinsicEra'
}
},
CheckBlockGasLimit: EmptyCheck,
CheckEra: CheckMortality,
CheckGenesis: {
extra: {
genesisHash: 'Hash'
},
types: {}
},
CheckMortality,
CheckNonce: {
extra: {},
types: {
@@ -53,16 +55,7 @@ export default {
},
types: {}
},
CheckWeight: {
extra: {},
types: {}
},
LockStakingStatus: {
extra: {},
types: {}
},
ValidateEquivocationReport: {
extra: {},
types: {}
}
CheckWeight: EmptyCheck,
LockStakingStatus: EmptyCheck,
ValidateEquivocationReport: EmptyCheck
} as ExtDef;