/
types.ts
44 lines (37 loc) · 1.58 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Auto-generated via `yarn polkadot-types-from-defs`, do not edit
/* eslint-disable */
import type { Enum, Option, Struct, Text, Vec } from '@polkadot/types-codec';
import type { AccountId32, Hash, Perquintill } from '@polkadot/types/interfaces/runtime';
// FIXME: manually added as they are not automatically imported
import type { DidServiceEndpointsDidEndpoint, DidDidDetails, PalletDidLookupLinkableAccountLinkableAccountId } from '@polkadot/types/lookup'
/** @name DidApiAccountId */
export interface DidApiAccountId extends PalletDidLookupLinkableAccountLinkableAccountId {}
/** @name PublicCredentialError */
export interface PublicCredentialError extends Enum {
readonly isInvalidSubjectId: boolean;
readonly type: 'InvalidSubjectId';
}
/** @name PublicCredentialFilter */
export interface PublicCredentialFilter extends Enum {
readonly isCtypeHash: boolean;
readonly asCtypeHash: Hash;
readonly isAttester: boolean;
readonly asAttester: AccountId32;
readonly type: 'CtypeHash' | 'Attester';
}
/** @name RawDidLinkedInfo */
export interface RawDidLinkedInfo extends Struct {
readonly identifier: AccountId32;
readonly accounts: Vec<DidApiAccountId>;
readonly w3n: Option<Text>;
readonly serviceEndpoints: Vec<DidServiceEndpointsDidEndpoint>;
readonly details: DidDidDetails;
}
/** @name StakingRates */
export interface StakingRates extends Struct {
readonly collatorStakingRate: Perquintill;
readonly collatorRewardRate: Perquintill;
readonly delegatorStakingRate: Perquintill;
readonly delegatorRewardRate: Perquintill;
}
export type PHANTOM_EXTRADEFS = 'extraDefs';