diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c2e5904e02f..507b87602c91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ - Expand testing around `ExtrinsicEra` construction - Expand `Registry` to direct access to available signed extensions (in addition to types) - Cater for new `CheckSpecVersion` and `CheckTxVersion` signed extensions (with `SignerPayload` adjustments) +- Cater for new `PrevalidateAttests` signed extensions (Polkadot claims) +- Support for both old/new Tuples in `democracy.depositOf` in derives +- Fix democracy `ProxyState` types +- Extends types for Polkadot claims # 1.13.1 May 6, 2020 diff --git a/packages/types/src/augment/registry.ts b/packages/types/src/augment/registry.ts index aefb177be713..039ef091693e 100644 --- a/packages/types/src/augment/registry.ts +++ b/packages/types/src/augment/registry.ts @@ -11,7 +11,7 @@ import { BabeAuthorityWeight, BabeBlockWeight, BabeWeight, EpochAuthorship, Mayb import { AccountData, BalanceLock, BalanceLockTo212, Reasons, ReleasesBalances, VestingSchedule, WithdrawReasons } from '@polkadot/types/interfaces/balances'; import { BlockHash } from '@polkadot/types/interfaces/chain'; import { PrefixedStorageKey } from '@polkadot/types/interfaces/childstate'; -import { EthereumAddress } from '@polkadot/types/interfaces/claims'; +import { EthereumAddress, StatementKind } from '@polkadot/types/interfaces/claims'; import { MemberCount, ProposalIndex, Votes, VotesTo230 } from '@polkadot/types/interfaces/collective'; import { AuthorityId, RawVRFOutput } from '@polkadot/types/interfaces/consensus'; import { AliveContractInfo, CodeHash, ContractCallRequest, ContractExecResult, ContractExecResultSuccess, ContractInfo, ContractStorageKey, Gas, PrefabWasmModule, PrefabWasmModuleReserved, Schedule, ScheduleTo212, SeedOf, TombstoneContractInfo, TrieId } from '@polkadot/types/interfaces/contracts'; @@ -1084,6 +1084,9 @@ declare module '@polkadot/types/types/registry' { EthereumAddress: EthereumAddress; 'Option': Option; 'Vec': Vec; + StatementKind: StatementKind; + 'Option': Option; + 'Vec': Vec; AttestedCandidate: AttestedCandidate; 'Option': Option; 'Vec': Vec; diff --git a/packages/types/src/extrinsic/signedExtensions/polkadot.ts b/packages/types/src/extrinsic/signedExtensions/polkadot.ts index 01d143da90f4..05c98073800c 100644 --- a/packages/types/src/extrinsic/signedExtensions/polkadot.ts +++ b/packages/types/src/extrinsic/signedExtensions/polkadot.ts @@ -13,6 +13,10 @@ export default { extra: {}, types: {} }, + PrevalidateAttests: { + extra: {}, + types: {} + }, RestrictFunctionality: { extra: {}, types: {} diff --git a/packages/types/src/interfaces/claims/definitions.ts b/packages/types/src/interfaces/claims/definitions.ts index 4332ab43b488..cb4960d85134 100644 --- a/packages/types/src/interfaces/claims/definitions.ts +++ b/packages/types/src/interfaces/claims/definitions.ts @@ -10,6 +10,9 @@ import { Definitions } from '../../types'; export default { rpc: {}, types: { - EthereumAddress: 'H160' + EthereumAddress: 'H160', + StatementKind: { + _enum: ['Default', 'Alternative'] + } } } as Definitions; diff --git a/packages/types/src/interfaces/claims/types.ts b/packages/types/src/interfaces/claims/types.ts index ce0f4ac0501e..934fdffd50f9 100644 --- a/packages/types/src/interfaces/claims/types.ts +++ b/packages/types/src/interfaces/claims/types.ts @@ -1,9 +1,16 @@ // Auto-generated via `yarn polkadot-types-from-defs`, do not edit /* eslint-disable */ +import { Enum } from '@polkadot/types/codec'; import { H160 } from '@polkadot/types/interfaces/runtime'; /** @name EthereumAddress */ export interface EthereumAddress extends H160 {} +/** @name StatementKind */ +export interface StatementKind extends Enum { + readonly isDefault: boolean; + readonly isAlternative: boolean; +} + export type PHANTOM_CLAIMS = 'claims';