-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathtoken.account.ts
More file actions
41 lines (38 loc) · 916 Bytes
/
token.account.ts
File metadata and controls
41 lines (38 loc) · 916 Bytes
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
import { registerEnumType } from "@nestjs/graphql";
import { ElasticSortable } from "./elastic.sortable";
export interface TokenAccount extends ElasticSortable {
identifier: string;
address: string;
balance: string;
balanceNum: number;
token: string;
timestamp: number;
type: TokenType;
data: any;
nft_scamInfoType: string;
nft_scamInfoDescription: string;
}
export enum TokenType {
FungibleESDT = 'FungibleESDT',
NonFungibleESDT = 'NonFungibleESDT',
SemiFungibleESDT = 'SemiFungibleESDT',
MetaESDT = 'MetaESDT',
}
registerEnumType(TokenType, {
name: 'TokenType',
description: 'Token Type object.',
valuesMap: {
FungibleESDT: {
description: 'FungibleESDT.',
},
NonFungibleESDT: {
description: 'NonFungibleESDT.',
},
SemiFungibleESDT: {
description: 'SemiFungibleESDT.',
},
MetaESDT: {
description: 'MetaESDT.',
},
},
});