-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.types.ts
84 lines (77 loc) · 1.77 KB
/
bot.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
type Token = {
mintAuthority: string;
supply: number;
decimals: number;
isInitialized: boolean;
freezeAuthority?: any; // optional and uncertain type
};
type TokenMeta = {
name: string;
symbol: string;
uri: string;
mutable: boolean;
updateAuthority: string;
};
type Holder = {
address: string;
amount: number;
decimals: number;
pct: number;
uiAmount: number;
uiAmountString: string;
owner: string;
};
type Risk = {
name: string;
value: string;
description: string;
score: number;
level: string;
};
type FileMeta = {
description: string;
name: string;
symbol: string;
image: string;
};
type TransferFee = {
pct: number;
maxAmount: number;
authority: string;
};
type Market = {
pubkey: string;
marketType: string;
mintA: string;
mintB: string;
mintLP: string;
liquidityA: string;
liquidityB: string;
mintAAccount?: Token; // Optional because it's not in all objects
mintBAccount?: Token; // Optional because it's not in all objects
mintLPAccount?: Token; // Optional because it's not in all objects
liquidityAAccount?: any; // Optional because it's not in all objects
liquidityBAccount?: any; // Optional because it's not in all objects
lp?: any; // Optional because it's not in all objects
};
export type RugcheckXyzReport = {
mint: string;
tokenProgram: string;
token: Token | null;
token_extensions: any | null;
tokenMeta: TokenMeta | null;
topHolders: Holder[] | null;
freezeAuthority: any | null;
mintAuthority: any | null;
risks: Risk[] | null;
score: number;
fileMeta: FileMeta | null;
lockerOwners: any | null;
lockers: any | null;
lpLockers: any | null;
markets: Market[] | null;
rugged: boolean;
tokenType: string;
transferFee: TransferFee;
knownAccounts: any | null;
};