Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion packages/types/src/augment/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -1084,6 +1084,9 @@ declare module '@polkadot/types/types/registry' {
EthereumAddress: EthereumAddress;
'Option<EthereumAddress>': Option<EthereumAddress>;
'Vec<EthereumAddress>': Vec<EthereumAddress>;
StatementKind: StatementKind;
'Option<StatementKind>': Option<StatementKind>;
'Vec<StatementKind>': Vec<StatementKind>;
AttestedCandidate: AttestedCandidate;
'Option<AttestedCandidate>': Option<AttestedCandidate>;
'Vec<AttestedCandidate>': Vec<AttestedCandidate>;
Expand Down
4 changes: 4 additions & 0 deletions packages/types/src/extrinsic/signedExtensions/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export default {
extra: {},
types: {}
},
PrevalidateAttests: {
extra: {},
types: {}
},
RestrictFunctionality: {
extra: {},
types: {}
Expand Down
5 changes: 4 additions & 1 deletion packages/types/src/interfaces/claims/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { Definitions } from '../../types';
export default {
rpc: {},
types: {
EthereumAddress: 'H160'
EthereumAddress: 'H160',
StatementKind: {
_enum: ['Default', 'Alternative']
}
}
} as Definitions;
7 changes: 7 additions & 0 deletions packages/types/src/interfaces/claims/types.ts
Original file line number Diff line number Diff line change
@@ -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';