@covalenthq/client-sdk 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -31
- package/dist/services/BalanceService.d.ts +390 -0
- package/dist/services/BalanceService.js +618 -0
- package/dist/services/BalanceService.js.map +1 -0
- package/dist/services/BaseService.d.ts +303 -0
- package/dist/services/BaseService.js +691 -0
- package/dist/services/BaseService.js.map +1 -0
- package/dist/services/Client.d.ts +22 -0
- package/dist/services/Client.js +26 -0
- package/dist/services/Client.js.map +1 -0
- package/dist/services/NftService.d.ts +428 -0
- package/dist/services/NftService.js +981 -0
- package/dist/services/NftService.js.map +1 -0
- package/dist/services/PricingService.d.ts +75 -0
- package/dist/services/PricingService.js +126 -0
- package/dist/services/PricingService.js.map +1 -0
- package/dist/services/SecurityService.d.ts +96 -0
- package/dist/services/SecurityService.js +122 -0
- package/dist/services/SecurityService.js.map +1 -0
- package/dist/services/TransactionService.d.ts +222 -0
- package/dist/services/TransactionService.js +433 -0
- package/dist/services/TransactionService.js.map +1 -0
- package/dist/services/XykService.d.ts +529 -0
- package/dist/services/XykService.js +1000 -0
- package/dist/services/XykService.js.map +1 -0
- package/dist/services/index.js.map +1 -0
- package/dist/util/ApiHelpers.d.ts +1 -0
- package/dist/util/ApiHelpers.js +15 -0
- package/dist/util/ApiHelpers.js.map +1 -0
- package/dist/util/backoff.d.ts +9 -0
- package/dist/util/backoff.js +25 -0
- package/dist/util/backoff.js.map +1 -0
- package/package.json +9 -1
- package/dist/ApprovalService.d.ts +0 -59
- package/dist/ApprovalService.js +0 -52
- package/dist/ApprovalService.js.map +0 -1
- package/dist/BalancesService.d.ts +0 -189
- package/dist/BalancesService.js +0 -231
- package/dist/BalancesService.js.map +0 -1
- package/dist/BaseService.d.ts +0 -169
- package/dist/BaseService.js +0 -276
- package/dist/BaseService.js.map +0 -1
- package/dist/Client.d.ts +0 -24
- package/dist/Client.js +0 -30
- package/dist/Client.js.map +0 -1
- package/dist/LogEventService.d.ts +0 -62
- package/dist/LogEventService.js +0 -75
- package/dist/LogEventService.js.map +0 -1
- package/dist/NameResolverService.d.ts +0 -33
- package/dist/NameResolverService.js +0 -52
- package/dist/NameResolverService.js.map +0 -1
- package/dist/NftService.d.ts +0 -271
- package/dist/NftService.js +0 -528
- package/dist/NftService.js.map +0 -1
- package/dist/PricingService.d.ts +0 -52
- package/dist/PricingService.js +0 -65
- package/dist/PricingService.js.map +0 -1
- package/dist/TransactionsService.d.ts +0 -126
- package/dist/TransactionsService.js +0 -230
- package/dist/TransactionsService.js.map +0 -1
- package/dist/XykService.d.ts +0 -383
- package/dist/XykService.js +0 -467
- package/dist/XykService.js.map +0 -1
- package/dist/index.js.map +0 -1
- /package/dist/{index.d.ts → services/index.d.ts} +0 -0
- /package/dist/{index.js → services/index.js} +0 -0
package/dist/XykService.js
DELETED
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XykService = void 0;
|
|
4
|
-
const baseDelayMs = 1000; // Base delay in milliseconds
|
|
5
|
-
class XykService {
|
|
6
|
-
constructor(apiKey) {
|
|
7
|
-
this.apiKey = apiKey;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
12
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
async getPools(chainName, dexName) {
|
|
16
|
-
let retryCount = 1;
|
|
17
|
-
let success = false;
|
|
18
|
-
const maxRetries = 5;
|
|
19
|
-
while (!success) {
|
|
20
|
-
try {
|
|
21
|
-
const urlParams = new URLSearchParams();
|
|
22
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/pools/?${urlParams}`, {
|
|
23
|
-
headers: {
|
|
24
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const data = await response.json();
|
|
28
|
-
if (data.error && data.error_code === 429) {
|
|
29
|
-
if (retryCount < maxRetries) {
|
|
30
|
-
retryCount++;
|
|
31
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
32
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
success = true;
|
|
36
|
-
return data;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
success = true;
|
|
41
|
-
return data;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
catch (error) {
|
|
45
|
-
success = true;
|
|
46
|
-
return error.message;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
53
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
54
|
-
* @param {string} poolAddress - The pool contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
async getPoolByAddress(chainName, dexName, poolAddress) {
|
|
58
|
-
let retryCount = 1;
|
|
59
|
-
let success = false;
|
|
60
|
-
const maxRetries = 5;
|
|
61
|
-
while (!success) {
|
|
62
|
-
try {
|
|
63
|
-
const urlParams = new URLSearchParams();
|
|
64
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/pools/address/${poolAddress}/?${urlParams}`, {
|
|
65
|
-
headers: {
|
|
66
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const data = await response.json();
|
|
70
|
-
if (data.error && data.error_code === 429) {
|
|
71
|
-
if (retryCount < maxRetries) {
|
|
72
|
-
retryCount++;
|
|
73
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
74
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
success = true;
|
|
78
|
-
return data;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
success = true;
|
|
83
|
-
return data;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
catch (error) {
|
|
87
|
-
success = true;
|
|
88
|
-
return error.message;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
95
|
-
* @param {string} dexName - The DEX name eg: `uniswap_v2`.
|
|
96
|
-
* @param {string} accountAddress - The account address.
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
async getAddressExchangeBalances(chainName, dexName, accountAddress) {
|
|
100
|
-
let retryCount = 1;
|
|
101
|
-
let success = false;
|
|
102
|
-
const maxRetries = 5;
|
|
103
|
-
while (!success) {
|
|
104
|
-
try {
|
|
105
|
-
const urlParams = new URLSearchParams();
|
|
106
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/address/${accountAddress}/balances/?${urlParams}`, {
|
|
107
|
-
headers: {
|
|
108
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
const data = await response.json();
|
|
112
|
-
if (data.error && data.error_code === 429) {
|
|
113
|
-
if (retryCount < maxRetries) {
|
|
114
|
-
retryCount++;
|
|
115
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
116
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
success = true;
|
|
120
|
-
return data;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
success = true;
|
|
125
|
-
return data;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
catch (error) {
|
|
129
|
-
success = true;
|
|
130
|
-
return error.message;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
137
|
-
* @param {string} dexName - The DEX name eg: `uniswap`.
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
async getNetworkExchangeTokens(chainName, dexName) {
|
|
141
|
-
let retryCount = 1;
|
|
142
|
-
let success = false;
|
|
143
|
-
const maxRetries = 5;
|
|
144
|
-
while (!success) {
|
|
145
|
-
try {
|
|
146
|
-
const urlParams = new URLSearchParams();
|
|
147
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/tokens/?${urlParams}`, {
|
|
148
|
-
headers: {
|
|
149
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
const data = await response.json();
|
|
153
|
-
if (data.error && data.error_code === 429) {
|
|
154
|
-
if (retryCount < maxRetries) {
|
|
155
|
-
retryCount++;
|
|
156
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
157
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
158
|
-
}
|
|
159
|
-
else {
|
|
160
|
-
success = true;
|
|
161
|
-
return data;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
success = true;
|
|
166
|
-
return data;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
catch (error) {
|
|
170
|
-
success = true;
|
|
171
|
-
return error.message;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
177
|
-
|
|
178
|
-
*
|
|
179
|
-
*/
|
|
180
|
-
async getSupportedDEXes() {
|
|
181
|
-
let retryCount = 1;
|
|
182
|
-
let success = false;
|
|
183
|
-
const maxRetries = 5;
|
|
184
|
-
while (!success) {
|
|
185
|
-
try {
|
|
186
|
-
const urlParams = new URLSearchParams();
|
|
187
|
-
const response = await fetch(`https://api.covalenthq.com/v1/xyk/supported_dexes/?${urlParams}`, {
|
|
188
|
-
headers: {
|
|
189
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
const data = await response.json();
|
|
193
|
-
if (data.error && data.error_code === 429) {
|
|
194
|
-
if (retryCount < maxRetries) {
|
|
195
|
-
retryCount++;
|
|
196
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
197
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
success = true;
|
|
201
|
-
return data;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
success = true;
|
|
206
|
-
return data;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
catch (error) {
|
|
210
|
-
success = true;
|
|
211
|
-
return error.message;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
*
|
|
217
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
218
|
-
* @param {string} dexName - The DEX name eg: `uniswap`.
|
|
219
|
-
* @param {string} tokenAddress - The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
220
|
-
*
|
|
221
|
-
*/
|
|
222
|
-
async getSingleNetworkExchangeToken(chainName, dexName, tokenAddress) {
|
|
223
|
-
let retryCount = 1;
|
|
224
|
-
let success = false;
|
|
225
|
-
const maxRetries = 5;
|
|
226
|
-
while (!success) {
|
|
227
|
-
try {
|
|
228
|
-
const urlParams = new URLSearchParams();
|
|
229
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/tokens/address/${tokenAddress}/?${urlParams}`, {
|
|
230
|
-
headers: {
|
|
231
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
const data = await response.json();
|
|
235
|
-
if (data.error && data.error_code === 429) {
|
|
236
|
-
if (retryCount < maxRetries) {
|
|
237
|
-
retryCount++;
|
|
238
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
239
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
success = true;
|
|
243
|
-
return data;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
else {
|
|
247
|
-
success = true;
|
|
248
|
-
return data;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
catch (error) {
|
|
252
|
-
success = true;
|
|
253
|
-
return error.message;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
*
|
|
259
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
260
|
-
* @param {string} dexName - The DEX name eg: `uniswap`.
|
|
261
|
-
* @param {string} accountAddress - The account address. Passing in an `ENS` or `RNS` resolves automatically.
|
|
262
|
-
*
|
|
263
|
-
*/
|
|
264
|
-
async getTransactionsForAccountAddress(chainName, dexName, accountAddress) {
|
|
265
|
-
let retryCount = 1;
|
|
266
|
-
let success = false;
|
|
267
|
-
const maxRetries = 5;
|
|
268
|
-
while (!success) {
|
|
269
|
-
try {
|
|
270
|
-
const urlParams = new URLSearchParams();
|
|
271
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/address/${accountAddress}/transactions/?${urlParams}`, {
|
|
272
|
-
headers: {
|
|
273
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
const data = await response.json();
|
|
277
|
-
if (data.error && data.error_code === 429) {
|
|
278
|
-
if (retryCount < maxRetries) {
|
|
279
|
-
retryCount++;
|
|
280
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
281
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
success = true;
|
|
285
|
-
return data;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
success = true;
|
|
290
|
-
return data;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
catch (error) {
|
|
294
|
-
success = true;
|
|
295
|
-
return error.message;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
*
|
|
301
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
302
|
-
* @param {string} dexName - The DEX name eg: `uniswap`.
|
|
303
|
-
* @param {string} tokenAddress - The token contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
304
|
-
*
|
|
305
|
-
*/
|
|
306
|
-
async getTransactionsForTokenAddress(chainName, dexName, tokenAddress) {
|
|
307
|
-
let retryCount = 1;
|
|
308
|
-
let success = false;
|
|
309
|
-
const maxRetries = 5;
|
|
310
|
-
while (!success) {
|
|
311
|
-
try {
|
|
312
|
-
const urlParams = new URLSearchParams();
|
|
313
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/tokens/address/${tokenAddress}/transactions/?${urlParams}`, {
|
|
314
|
-
headers: {
|
|
315
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
const data = await response.json();
|
|
319
|
-
if (data.error && data.error_code === 429) {
|
|
320
|
-
if (retryCount < maxRetries) {
|
|
321
|
-
retryCount++;
|
|
322
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
323
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
success = true;
|
|
327
|
-
return data;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
success = true;
|
|
332
|
-
return data;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
catch (error) {
|
|
336
|
-
success = true;
|
|
337
|
-
return error.message;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
/**
|
|
342
|
-
*
|
|
343
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
344
|
-
* @param {string} dexName - The DEX name eg: `uniswap`.
|
|
345
|
-
* @param {string} poolAddress - The pool contract address. Passing in an `ENS`, `RNS`, `Lens Handle`, or an `Unstoppable Domain` resolves automatically.
|
|
346
|
-
*
|
|
347
|
-
*/
|
|
348
|
-
async getTransactionsForExchange(chainName, dexName, poolAddress) {
|
|
349
|
-
let retryCount = 1;
|
|
350
|
-
let success = false;
|
|
351
|
-
const maxRetries = 5;
|
|
352
|
-
while (!success) {
|
|
353
|
-
try {
|
|
354
|
-
const urlParams = new URLSearchParams();
|
|
355
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/pools/address/${poolAddress}/transactions/?${urlParams}`, {
|
|
356
|
-
headers: {
|
|
357
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
const data = await response.json();
|
|
361
|
-
if (data.error && data.error_code === 429) {
|
|
362
|
-
if (retryCount < maxRetries) {
|
|
363
|
-
retryCount++;
|
|
364
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
365
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
success = true;
|
|
369
|
-
return data;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
success = true;
|
|
374
|
-
return data;
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
catch (error) {
|
|
378
|
-
success = true;
|
|
379
|
-
return error.message;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
*
|
|
385
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
386
|
-
* @param {string} dexName - The DEX name eg: `uniswap`.
|
|
387
|
-
*
|
|
388
|
-
*/
|
|
389
|
-
async getEcosystemChartData(chainName, dexName) {
|
|
390
|
-
let retryCount = 1;
|
|
391
|
-
let success = false;
|
|
392
|
-
const maxRetries = 5;
|
|
393
|
-
while (!success) {
|
|
394
|
-
try {
|
|
395
|
-
const urlParams = new URLSearchParams();
|
|
396
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/ecosystem/?${urlParams}`, {
|
|
397
|
-
headers: {
|
|
398
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
const data = await response.json();
|
|
402
|
-
if (data.error && data.error_code === 429) {
|
|
403
|
-
if (retryCount < maxRetries) {
|
|
404
|
-
retryCount++;
|
|
405
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
406
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
success = true;
|
|
410
|
-
return data;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
else {
|
|
414
|
-
success = true;
|
|
415
|
-
return data;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
catch (error) {
|
|
419
|
-
success = true;
|
|
420
|
-
return error.message;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
*
|
|
426
|
-
* @param {string} chainName - The chain name eg: `eth-mainnet`.
|
|
427
|
-
* @param {string} dexName - The DEX name eg: `uniswap`.
|
|
428
|
-
*
|
|
429
|
-
*/
|
|
430
|
-
async getHealthData(chainName, dexName) {
|
|
431
|
-
let retryCount = 1;
|
|
432
|
-
let success = false;
|
|
433
|
-
const maxRetries = 5;
|
|
434
|
-
while (!success) {
|
|
435
|
-
try {
|
|
436
|
-
const urlParams = new URLSearchParams();
|
|
437
|
-
const response = await fetch(`https://api.covalenthq.com/v1/${chainName}/xyk/${dexName}/health/?${urlParams}`, {
|
|
438
|
-
headers: {
|
|
439
|
-
"Authorization": `Bearer ${this.apiKey}`
|
|
440
|
-
}
|
|
441
|
-
});
|
|
442
|
-
const data = await response.json();
|
|
443
|
-
if (data.error && data.error_code === 429) {
|
|
444
|
-
if (retryCount < maxRetries) {
|
|
445
|
-
retryCount++;
|
|
446
|
-
const delayMs = Math.pow(2, retryCount) * baseDelayMs; // Exponential delay calculation
|
|
447
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
success = true;
|
|
451
|
-
return data;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
else {
|
|
455
|
-
success = true;
|
|
456
|
-
return data;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
catch (error) {
|
|
460
|
-
success = true;
|
|
461
|
-
return error.message;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
exports.XykService = XykService;
|
|
467
|
-
//# sourceMappingURL=XykService.js.map
|
package/dist/XykService.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"XykService.js","sourceRoot":"","sources":["../src/services/XykService.ts"],"names":[],"mappings":";;;AA2SA,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC,6BAA6B;AAIvD,MAAa,UAAU;IACnB,YAAoB,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;IAClC,CAAC;IAGD;;;;;OAKG;IACI,K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AAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;qBAChE;yBAAM;wBACH,OAAO,GAAG,IAAI,CAAC;wBACf,OAAO,IAAI,CAAC;qBACf;iBACJ;qBAAM;oBACH,OAAO,GAAG,IAAI,CAAC;oBACf,OAAO,IAAI,CAAC;iBACf;aACJ;YAAC,OAAO,KAAK,EAAE;gBACZ,OAAO,GAAG,IAAI,CAAC;gBACf,OAAO,KAAK,CAAC,OAAO,CAAC;aACxB;SACJ;IACL,CAAC;CAGJ;AA9cD,gCA8cC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/services/index.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
File without changes
|
|
File without changes
|