Add StatementKind & PrevalidateAttests for Polkadot claims (#2273)
* Add StatementKind for Polkadot claims * PrevalidateAttests extension
This commit is contained in:
@@ -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<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>;
|
||||
|
||||
@@ -13,6 +13,10 @@ export default {
|
||||
extra: {},
|
||||
types: {}
|
||||
},
|
||||
PrevalidateAttests: {
|
||||
extra: {},
|
||||
types: {}
|
||||
},
|
||||
RestrictFunctionality: {
|
||||
extra: {},
|
||||
types: {}
|
||||
|
||||
@@ -10,6 +10,9 @@ import { Definitions } from '../../types';
|
||||
export default {
|
||||
rpc: {},
|
||||
types: {
|
||||
EthereumAddress: 'H160'
|
||||
EthereumAddress: 'H160',
|
||||
StatementKind: {
|
||||
_enum: ['Default', 'Alternative']
|
||||
}
|
||||
}
|
||||
} as Definitions;
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user