UNPKG

2.71 kBTypeScriptView Raw
1import type { Data } from '@polkadot/types';
2import type { Enum, Option, Set, Struct, Vec, u32 } from '@polkadot/types-codec';
3import type { ITuple } from '@polkadot/types-codec/types';
4import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime';
5/** @name IdentityFields */
6export interface IdentityFields extends Set {
7 readonly isDisplay: boolean;
8 readonly isLegal: boolean;
9 readonly isWeb: boolean;
10 readonly isRiot: boolean;
11 readonly isEmail: boolean;
12 readonly isPgpFingerprint: boolean;
13 readonly isImage: boolean;
14 readonly isTwitter: boolean;
15}
16/** @name IdentityInfo */
17export interface IdentityInfo extends Struct {
18 readonly additional: Vec<IdentityInfoAdditional>;
19 readonly display: Data;
20 readonly legal: Data;
21 readonly web: Data;
22 readonly riot: Data;
23 readonly email: Data;
24 readonly pgpFingerprint: Option<H160>;
25 readonly image: Data;
26 readonly twitter: Data;
27}
28/** @name IdentityInfoAdditional */
29export interface IdentityInfoAdditional extends ITuple<[Data, Data]> {
30}
31/** @name IdentityInfoTo198 */
32export interface IdentityInfoTo198 extends Struct {
33 readonly additional: Vec<IdentityInfoAdditional>;
34 readonly display: Data;
35 readonly legal: Data;
36 readonly web: Data;
37 readonly riot: Data;
38 readonly email: Data;
39 readonly pgpFingerprint: Option<H160>;
40 readonly image: Data;
41}
42/** @name IdentityJudgement */
43export interface IdentityJudgement extends Enum {
44 readonly isUnknown: boolean;
45 readonly isFeePaid: boolean;
46 readonly asFeePaid: Balance;
47 readonly isReasonable: boolean;
48 readonly isKnownGood: boolean;
49 readonly isOutOfDate: boolean;
50 readonly isLowQuality: boolean;
51 readonly isErroneous: boolean;
52 readonly type: 'Unknown' | 'FeePaid' | 'Reasonable' | 'KnownGood' | 'OutOfDate' | 'LowQuality' | 'Erroneous';
53}
54/** @name RegistrarIndex */
55export interface RegistrarIndex extends u32 {
56}
57/** @name RegistrarInfo */
58export interface RegistrarInfo extends Struct {
59 readonly account: AccountId;
60 readonly fee: Balance;
61 readonly fields: IdentityFields;
62}
63/** @name Registration */
64export interface Registration extends Struct {
65 readonly judgements: Vec<RegistrationJudgement>;
66 readonly deposit: Balance;
67 readonly info: IdentityInfo;
68}
69/** @name RegistrationJudgement */
70export interface RegistrationJudgement extends ITuple<[RegistrarIndex, IdentityJudgement]> {
71}
72/** @name RegistrationTo198 */
73export interface RegistrationTo198 extends Struct {
74 readonly judgements: Vec<RegistrationJudgement>;
75 readonly deposit: Balance;
76 readonly info: IdentityInfoTo198;
77}
78export declare type PHANTOM_IDENTITY = 'identity';