-
Notifications
You must be signed in to change notification settings - Fork 1
/
sellerConfigInfo.model.ts
61 lines (46 loc) · 1.46 KB
/
sellerConfigInfo.model.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { Field, ObjectType } from 'type-graphql';
@ObjectType()
class Token {
@Field((type) => String, { nullable: true })
name!: string;
@Field((type) => Number, { nullable: true })
decimal!: number;
}
@ObjectType()
export class SellerConfigInfo {
@Field(() => Boolean, { nullable: false })
isServiceOperational!: boolean;
@Field(() => String, { nullable: false })
sellerChain!: string;
@Field(() => Number, { nullable: true })
sellerChainPrefix!: number | null;
@Field(() => String, { nullable: false })
sellerTreasuryAccount!: string;
@Field(() => String, {
nullable: false,
description:
'Seller Indexer Public key for signing Authentication Bearer token by client app'
})
sellerApiAuthTokenManager!: string;
@Field(() => Number, {
nullable: false,
description:
'Domain Registration Pending Order expiration time (milliseconds)'
})
dmnRegPendingOrderExpTime!: number;
@Field(() => String, { nullable: false })
domainHostChain!: string;
@Field(() => Number, { nullable: true })
domainHostChainPrefix!: number | null;
@Field(() => Token, { nullable: false })
sellerToken!: Token;
@Field(() => String, { nullable: false })
remarkProtName!: string;
@Field(() => String, { nullable: false })
remarkProtVersion!: string;
@Field(() => BigInt, { nullable: false })
domainRegistrationPriceFixed!: bigint;
constructor(props?: Partial<SellerConfigInfo>) {
Object.assign(this, props);
}
}