Repository navigation
Expand file tree
/
Copy pathaccount.ts
More file actions
202 lines (171 loc) · 4.06 KB
/
Copy pathaccount.ts
File metadata and controls
202 lines (171 loc) · 4.06 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
import type { Abi } from 'viem';
import type { AddressParam } from './addressParams';
export interface AddressTag {
address_hash: string;
address: AddressParam;
name: string;
id: number;
}
export type AddressTags = Array<AddressTag>;
export type AddressTagsResponse = {
items: AddressTags;
next_page_params: {
id: number;
items_count: number;
} | null;
};
export interface ApiKey {
api_key: string;
name: string;
}
export type ApiKeys = Array<ApiKey>;
export interface ModelError {
message: string;
}
export interface NotificationDirection {
incoming: boolean;
outcoming: boolean;
}
export interface NotificationSettings {
'native': NotificationDirection;
'ERC-20': NotificationDirection;
'ERC-721': NotificationDirection;
'ERC-404': NotificationDirection;
}
export interface NotificationMethods {
email: boolean;
}
export interface Transaction {
fromAddressHash?: string;
toAddressHash?: string;
createdContractAddressHash?: string;
}
export interface TransactionTag {
transaction_hash: string;
name: string;
id: number;
}
export type TransactionTags = Array<TransactionTag>;
export type TransactionTagsResponse = {
items: TransactionTags;
next_page_params: {
id: number;
items_count: number;
} | null;
};
export type Transactions = Array<Transaction>;
export interface UserInfo {
name?: string;
nickname?: string;
email: string | null;
address_hash: string | null;
avatar?: string;
}
export interface WatchlistAddress {
address_hash: string;
name: string;
address_balance: string;
exchange_rate: string;
notification_settings: NotificationSettings;
notification_methods: NotificationMethods;
id: number;
address: AddressParam;
tokens_count: number;
tokens_fiat_value: string;
tokens_overflow: boolean;
}
export interface WatchlistAddressNew {
addressName: string;
notificationSettings: NotificationSettings;
}
export type WatchlistAddresses = Array<WatchlistAddress>;
export type WatchlistResponse = {
items: WatchlistAddresses;
next_page_params: {
id: number;
items_count: number;
} | null;
};
export type CustomAbis = Array<CustomAbi>;
export interface CustomAbi {
name: string;
id: number;
contract_address_hash: string;
contract_address: AddressParam;
abi: Abi;
}
export type WatchlistErrors = {
address_hash?: Array<string>;
name?: Array<string>;
watchlist_id?: Array<string>;
};
export type CustomAbiErrors = {
address_hash?: Array<string>;
name?: Array<string>;
abi?: Array<string>;
identity_id?: Array<string>;
};
export type ApiKeyErrors = {
name?: Array<string>;
identity_id?: Array<string>;
};
export type AddressTagErrors = {
address_hash: Array<string>;
name: Array<string>;
identity_id?: Array<string>;
};
export type TransactionTagErrors = {
transaction_hash: Array<string>;
name: Array<string>;
identity_id?: Array<string>;
};
export interface VerifiedAddress {
userId: string;
chainId: string;
contractAddress: string;
verifiedDate: string;
metadata: {
tokenName: string | null;
tokenSymbol: string | null;
};
}
export interface VerifiedAddressResponse {
verifiedAddresses: Array<VerifiedAddress>;
}
export interface TokenInfoApplicationConfig {
projectSectors: Array<string>;
}
export interface TokenInfoApplication {
adminComments?: string;
coinGeckoTicker?: string;
coinMarketCapTicker?: string;
comment?: string;
defiLlamaTicker?: string;
discord?: string;
docs?: string;
facebook?: string;
github?: string;
iconUrl: string;
id: string;
linkedin?: string;
medium?: string;
openSea?: string;
projectDescription?: string;
projectEmail: string;
projectName?: string;
projectSector?: string;
projectWebsite: string;
reddit?: string;
requesterEmail: string;
requesterName: string;
slack?: string;
status: 'STATUS_UNKNOWN' | 'IN_PROCESS' | 'APPROVED' | 'REJECTED' | 'UPDATE_REQUIRED';
support?: string;
telegram?: string;
tokenAddress: string;
twitter?: string;
updatedAt: string;
}
export interface TokenInfoApplications {
submissions: Array<TokenInfoApplication>;
}