1 | import type { Data } from '@polkadot/types';
|
2 | import type { Enum, Option, Set, Struct, Vec, u32 } from '@polkadot/types-codec';
|
3 | import type { ITuple } from '@polkadot/types-codec/types';
|
4 | import type { AccountId, Balance, H160 } from '@polkadot/types/interfaces/runtime';
|
5 |
|
6 | export 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 |
|
17 | export 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 |
|
29 | export interface IdentityInfoAdditional extends ITuple<[Data, Data]> {
|
30 | }
|
31 |
|
32 | export 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 |
|
43 | export 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 |
|
55 | export interface RegistrarIndex extends u32 {
|
56 | }
|
57 |
|
58 | export interface RegistrarInfo extends Struct {
|
59 | readonly account: AccountId;
|
60 | readonly fee: Balance;
|
61 | readonly fields: IdentityFields;
|
62 | }
|
63 |
|
64 | export interface Registration extends Struct {
|
65 | readonly judgements: Vec<RegistrationJudgement>;
|
66 | readonly deposit: Balance;
|
67 | readonly info: IdentityInfo;
|
68 | }
|
69 |
|
70 | export interface RegistrationJudgement extends ITuple<[RegistrarIndex, IdentityJudgement]> {
|
71 | }
|
72 |
|
73 | export interface RegistrationTo198 extends Struct {
|
74 | readonly judgements: Vec<RegistrationJudgement>;
|
75 | readonly deposit: Balance;
|
76 | readonly info: IdentityInfoTo198;
|
77 | }
|
78 | export declare type PHANTOM_IDENTITY = 'identity';
|