@across-protocol/sdk 3.1.10 → 3.1.12

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.
Files changed (55) hide show
  1. package/dist/cjs/coingecko/Coingecko.d.ts +1 -0
  2. package/dist/cjs/coingecko/Coingecko.js +25 -0
  3. package/dist/cjs/coingecko/Coingecko.js.map +1 -1
  4. package/dist/cjs/constants.d.ts +2 -1
  5. package/dist/cjs/constants.js +3 -1
  6. package/dist/cjs/constants.js.map +1 -1
  7. package/dist/cjs/relayFeeCalculator/chain-queries/factory.d.ts +21 -0
  8. package/dist/cjs/relayFeeCalculator/chain-queries/polygon.d.ts +21 -0
  9. package/dist/cjs/relayFeeCalculator/relayFeeCalculator.d.ts +21 -0
  10. package/dist/cjs/utils/BlockUtils.js +12 -12
  11. package/dist/cjs/utils/BlockUtils.js.map +1 -1
  12. package/dist/cjs/utils/NetworkUtils.d.ts +1 -0
  13. package/dist/cjs/utils/NetworkUtils.js +7 -11
  14. package/dist/cjs/utils/NetworkUtils.js.map +1 -1
  15. package/dist/cjs/utils/TokenUtils.d.ts +44 -0
  16. package/dist/cjs/utils/TokenUtils.js +13 -1
  17. package/dist/cjs/utils/TokenUtils.js.map +1 -1
  18. package/dist/esm/coingecko/Coingecko.d.ts +9 -0
  19. package/dist/esm/coingecko/Coingecko.js +34 -1
  20. package/dist/esm/coingecko/Coingecko.js.map +1 -1
  21. package/dist/esm/constants.d.ts +2 -1
  22. package/dist/esm/constants.js +2 -1
  23. package/dist/esm/constants.js.map +1 -1
  24. package/dist/esm/relayFeeCalculator/chain-queries/factory.d.ts +21 -0
  25. package/dist/esm/relayFeeCalculator/chain-queries/polygon.d.ts +21 -0
  26. package/dist/esm/relayFeeCalculator/relayFeeCalculator.d.ts +21 -0
  27. package/dist/esm/utils/BlockUtils.js +13 -13
  28. package/dist/esm/utils/BlockUtils.js.map +1 -1
  29. package/dist/esm/utils/NetworkUtils.d.ts +6 -0
  30. package/dist/esm/utils/NetworkUtils.js +11 -11
  31. package/dist/esm/utils/NetworkUtils.js.map +1 -1
  32. package/dist/esm/utils/TokenUtils.d.ts +58 -0
  33. package/dist/esm/utils/TokenUtils.js +10 -0
  34. package/dist/esm/utils/TokenUtils.js.map +1 -1
  35. package/dist/types/coingecko/Coingecko.d.ts +9 -0
  36. package/dist/types/coingecko/Coingecko.d.ts.map +1 -1
  37. package/dist/types/constants.d.ts +2 -1
  38. package/dist/types/constants.d.ts.map +1 -1
  39. package/dist/types/relayFeeCalculator/chain-queries/factory.d.ts +21 -0
  40. package/dist/types/relayFeeCalculator/chain-queries/factory.d.ts.map +1 -1
  41. package/dist/types/relayFeeCalculator/chain-queries/polygon.d.ts +21 -0
  42. package/dist/types/relayFeeCalculator/chain-queries/polygon.d.ts.map +1 -1
  43. package/dist/types/relayFeeCalculator/relayFeeCalculator.d.ts +21 -0
  44. package/dist/types/relayFeeCalculator/relayFeeCalculator.d.ts.map +1 -1
  45. package/dist/types/utils/BlockUtils.d.ts.map +1 -1
  46. package/dist/types/utils/NetworkUtils.d.ts +6 -0
  47. package/dist/types/utils/NetworkUtils.d.ts.map +1 -1
  48. package/dist/types/utils/TokenUtils.d.ts +58 -0
  49. package/dist/types/utils/TokenUtils.d.ts.map +1 -1
  50. package/package.json +3 -3
  51. package/src/coingecko/Coingecko.ts +27 -1
  52. package/src/constants.ts +3 -1
  53. package/src/utils/BlockUtils.ts +9 -6
  54. package/src/utils/NetworkUtils.ts +11 -11
  55. package/src/utils/TokenUtils.ts +14 -0
@@ -29,6 +29,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
29
29
  addresses: {
30
30
  [x: number]: string;
31
31
  };
32
+ coingeckoId: string;
32
33
  };
33
34
  ARB: {
34
35
  name: string;
@@ -37,6 +38,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
37
38
  addresses: {
38
39
  [x: number]: string;
39
40
  };
41
+ coingeckoId: string;
40
42
  };
41
43
  BAL: {
42
44
  name: string;
@@ -45,6 +47,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
45
47
  addresses: {
46
48
  [x: number]: string;
47
49
  };
50
+ coingeckoId: string;
48
51
  };
49
52
  BADGER: {
50
53
  name: string;
@@ -53,6 +56,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
53
56
  addresses: {
54
57
  [x: number]: string;
55
58
  };
59
+ coingeckoId: string;
56
60
  };
57
61
  BOBA: {
58
62
  name: string;
@@ -61,6 +65,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
61
65
  addresses: {
62
66
  [x: number]: string;
63
67
  };
68
+ coingeckoId: string;
64
69
  };
65
70
  DAI: {
66
71
  name: string;
@@ -69,6 +74,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
69
74
  addresses: {
70
75
  [x: number]: string;
71
76
  };
77
+ coingeckoId: string;
72
78
  };
73
79
  ETH: {
74
80
  name: string;
@@ -77,6 +83,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
77
83
  addresses: {
78
84
  [x: number]: string;
79
85
  };
86
+ coingeckoId: string;
80
87
  };
81
88
  LSK: {
82
89
  name: string;
@@ -85,6 +92,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
85
92
  addresses: {
86
93
  [x: number]: string;
87
94
  };
95
+ coingeckoId: string;
88
96
  };
89
97
  MATIC: {
90
98
  name: string;
@@ -93,6 +101,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
93
101
  addresses: {
94
102
  [x: number]: string;
95
103
  };
104
+ coingeckoId: string;
96
105
  };
97
106
  OP: {
98
107
  name: string;
@@ -101,14 +110,23 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
101
110
  addresses: {
102
111
  [x: number]: string;
103
112
  };
113
+ coingeckoId: string;
104
114
  };
105
115
  POOL: {
106
116
  name: string;
107
117
  symbol: string;
108
118
  decimals: number;
119
+ /**
120
+ * Returns the contract address for a given token symbol and chainId.
121
+ * @param symbol A case-insensitive token symbol.
122
+ * @param chainId The chainId to resolve the contract address for.
123
+ * @param tokenMapping A parameter to determine where to source token information. Defaults to the constants variant.
124
+ * @returns The contract address for the given token symbol and chainId, or undefined if the token symbol is not supported.
125
+ */
109
126
  addresses: {
110
127
  [x: number]: string;
111
128
  };
129
+ coingeckoId: string;
112
130
  };
113
131
  SNX: {
114
132
  name: string;
@@ -117,6 +135,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
117
135
  addresses: {
118
136
  [x: number]: string;
119
137
  };
138
+ coingeckoId: string;
120
139
  };
121
140
  UMA: {
122
141
  name: string;
@@ -125,6 +144,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
125
144
  addresses: {
126
145
  [x: number]: string;
127
146
  };
147
+ coingeckoId: string;
128
148
  };
129
149
  USDB: {
130
150
  name: string;
@@ -133,6 +153,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
133
153
  addresses: {
134
154
  [x: number]: string;
135
155
  };
156
+ coingeckoId: string;
136
157
  };
137
158
  USDC: {
138
159
  name: string;
@@ -141,6 +162,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
141
162
  addresses: {
142
163
  [x: number]: string;
143
164
  };
165
+ coingeckoId: string;
144
166
  };
145
167
  "USDC.e": {
146
168
  name: string;
@@ -149,6 +171,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
149
171
  addresses: {
150
172
  [x: number]: string;
151
173
  };
174
+ coingeckoId: string;
152
175
  };
153
176
  USDbC: {
154
177
  name: string;
@@ -157,6 +180,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
157
180
  addresses: {
158
181
  [x: number]: string;
159
182
  };
183
+ coingeckoId: string;
160
184
  };
161
185
  USDT: {
162
186
  name: string;
@@ -165,6 +189,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
165
189
  addresses: {
166
190
  [x: number]: string;
167
191
  };
192
+ coingeckoId: string;
168
193
  };
169
194
  WBTC: {
170
195
  name: string;
@@ -173,6 +198,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
173
198
  addresses: {
174
199
  [x: number]: string;
175
200
  };
201
+ coingeckoId: string;
176
202
  };
177
203
  WETH: {
178
204
  name: string;
@@ -181,6 +207,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
181
207
  addresses: {
182
208
  [x: number]: string;
183
209
  };
210
+ coingeckoId: string;
184
211
  };
185
212
  WMATIC: {
186
213
  name: string;
@@ -189,6 +216,7 @@ export declare const resolveContractFromSymbol: (symbol: string, chainId: string
189
216
  addresses: {
190
217
  [x: number]: string;
191
218
  };
219
+ coingeckoId: string;
192
220
  };
193
221
  }) => string | undefined;
194
222
  export declare function getTokenInformationFromAddress(address: string, tokenMapping?: {
@@ -199,6 +227,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
199
227
  addresses: {
200
228
  [x: number]: string;
201
229
  };
230
+ coingeckoId: string;
202
231
  };
203
232
  ARB: {
204
233
  name: string;
@@ -207,6 +236,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
207
236
  addresses: {
208
237
  [x: number]: string;
209
238
  };
239
+ coingeckoId: string;
210
240
  };
211
241
  BAL: {
212
242
  name: string;
@@ -215,6 +245,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
215
245
  addresses: {
216
246
  [x: number]: string;
217
247
  };
248
+ coingeckoId: string;
218
249
  };
219
250
  BADGER: {
220
251
  name: string;
@@ -223,6 +254,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
223
254
  addresses: {
224
255
  [x: number]: string;
225
256
  };
257
+ coingeckoId: string;
226
258
  };
227
259
  BOBA: {
228
260
  name: string;
@@ -231,6 +263,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
231
263
  addresses: {
232
264
  [x: number]: string;
233
265
  };
266
+ coingeckoId: string;
234
267
  };
235
268
  DAI: {
236
269
  name: string;
@@ -239,6 +272,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
239
272
  addresses: {
240
273
  [x: number]: string;
241
274
  };
275
+ coingeckoId: string;
242
276
  };
243
277
  ETH: {
244
278
  name: string;
@@ -247,6 +281,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
247
281
  addresses: {
248
282
  [x: number]: string;
249
283
  };
284
+ coingeckoId: string;
250
285
  };
251
286
  LSK: {
252
287
  name: string;
@@ -255,6 +290,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
255
290
  addresses: {
256
291
  [x: number]: string;
257
292
  };
293
+ coingeckoId: string;
258
294
  };
259
295
  MATIC: {
260
296
  name: string;
@@ -263,6 +299,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
263
299
  addresses: {
264
300
  [x: number]: string;
265
301
  };
302
+ coingeckoId: string;
266
303
  };
267
304
  OP: {
268
305
  name: string;
@@ -271,14 +308,23 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
271
308
  addresses: {
272
309
  [x: number]: string;
273
310
  };
311
+ coingeckoId: string;
274
312
  };
275
313
  POOL: {
276
314
  name: string;
277
315
  symbol: string;
278
316
  decimals: number;
317
+ /**
318
+ * Returns the contract address for a given token symbol and chainId.
319
+ * @param symbol A case-insensitive token symbol.
320
+ * @param chainId The chainId to resolve the contract address for.
321
+ * @param tokenMapping A parameter to determine where to source token information. Defaults to the constants variant.
322
+ * @returns The contract address for the given token symbol and chainId, or undefined if the token symbol is not supported.
323
+ */
279
324
  addresses: {
280
325
  [x: number]: string;
281
326
  };
327
+ coingeckoId: string;
282
328
  };
283
329
  SNX: {
284
330
  name: string;
@@ -287,6 +333,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
287
333
  addresses: {
288
334
  [x: number]: string;
289
335
  };
336
+ coingeckoId: string;
290
337
  };
291
338
  UMA: {
292
339
  name: string;
@@ -295,6 +342,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
295
342
  addresses: {
296
343
  [x: number]: string;
297
344
  };
345
+ coingeckoId: string;
298
346
  };
299
347
  USDB: {
300
348
  name: string;
@@ -303,6 +351,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
303
351
  addresses: {
304
352
  [x: number]: string;
305
353
  };
354
+ coingeckoId: string;
306
355
  };
307
356
  USDC: {
308
357
  name: string;
@@ -311,6 +360,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
311
360
  addresses: {
312
361
  [x: number]: string;
313
362
  };
363
+ coingeckoId: string;
314
364
  };
315
365
  "USDC.e": {
316
366
  name: string;
@@ -319,6 +369,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
319
369
  addresses: {
320
370
  [x: number]: string;
321
371
  };
372
+ coingeckoId: string;
322
373
  };
323
374
  USDbC: {
324
375
  name: string;
@@ -327,6 +378,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
327
378
  addresses: {
328
379
  [x: number]: string;
329
380
  };
381
+ coingeckoId: string;
330
382
  };
331
383
  USDT: {
332
384
  name: string;
@@ -335,6 +387,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
335
387
  addresses: {
336
388
  [x: number]: string;
337
389
  };
390
+ coingeckoId: string;
338
391
  };
339
392
  WBTC: {
340
393
  name: string;
@@ -343,6 +396,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
343
396
  addresses: {
344
397
  [x: number]: string;
345
398
  };
399
+ coingeckoId: string;
346
400
  };
347
401
  WETH: {
348
402
  name: string;
@@ -351,6 +405,7 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
351
405
  addresses: {
352
406
  [x: number]: string;
353
407
  };
408
+ coingeckoId: string;
354
409
  };
355
410
  WMATIC: {
356
411
  name: string;
@@ -359,8 +414,10 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
359
414
  addresses: {
360
415
  [x: number]: string;
361
416
  };
417
+ coingeckoId: string;
362
418
  };
363
419
  }): L1Token | undefined;
420
+ export declare function getCoingeckoTokenIdByAddress(contractAddress: string): string;
364
421
  /**
365
422
  * Retrieves the ERC20 balance for a given address and token address.
366
423
  * @param address The address to retrieve the balance for.
@@ -370,4 +427,5 @@ export declare function getTokenInformationFromAddress(address: string, tokenMap
370
427
  * @returns The balance of the given address for the given token address.
371
428
  */
372
429
  export declare function getTokenBalance(address: string, tokenAddress: string, signerOrProvider: SignerOrProvider, blockTag?: BlockTag): Promise<BigNumber>;
430
+ export declare function isBridgedUsdc(tokenSymbol: string): boolean;
373
431
  export {};
@@ -72,6 +72,13 @@ export function getTokenInformationFromAddress(address, tokenMapping) {
72
72
  }
73
73
  : undefined;
74
74
  }
75
+ export function getCoingeckoTokenIdByAddress(contractAddress) {
76
+ var token = getTokenInformationFromAddress(contractAddress);
77
+ if (!token) {
78
+ throw new Error("Token with address ".concat(contractAddress, " not found in token mapping"));
79
+ }
80
+ return TOKEN_SYMBOLS_MAP[token.symbol].coingeckoId;
81
+ }
75
82
  /**
76
83
  * Retrieves the ERC20 balance for a given address and token address.
77
84
  * @param address The address to retrieve the balance for.
@@ -85,4 +92,7 @@ export function getTokenBalance(address, tokenAddress, signerOrProvider, blockTa
85
92
  var token = ERC20__factory.connect(tokenAddress, signerOrProvider);
86
93
  return token.balanceOf(address, { blockTag: blockTag });
87
94
  }
95
+ export function isBridgedUsdc(tokenSymbol) {
96
+ return !!constants.BRIDGED_USDC_SYMBOLS.find(function (bridgedUsdcSymbol) { return bridgedUsdcSymbol.toLowerCase() === tokenSymbol.toLowerCase(); });
97
+ }
88
98
  //# sourceMappingURL=TokenUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenUtils.js","sourceRoot":"","sources":["../../../src/utils/TokenUtils.ts"],"names":[],"mappings":";AACA,OAAO,EAAa,QAAQ,EAAqB,MAAM,QAAQ,CAAC;AAChE,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,c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C,WAAW,EAAE,KAAK,WAAW,CAAC,WAAW,EAAE,EAA7D,CAA6D,CACrF,CAAC;AACJ,CAAC"}
@@ -27,6 +27,15 @@ export declare class Coingecko {
27
27
  set maxPriceAge(age: number);
28
28
  protected constructor(host: string, proHost: string, logger: Logger, apiKey?: string | undefined);
29
29
  getHistoricContractPrices(contract: string, from: number, to: number, currency?: string): Promise<any>;
30
+ /**
31
+ * Get the current price of a token denominated in `currency`.
32
+ * @param contractAddress The L1 token address to fetch the price for.
33
+ * @param date A datestring in the format "dd-mm-yyyy" to fetch the price for.
34
+ * @param currency The currency to fetch the price in. Defaults to "usd".
35
+ * @returns The price of the token at the given date.
36
+ * @throws If today is selected and it is before 3am UTC or if the price is not found.
37
+ */
38
+ getContractHistoricDayPrice(contractAddress: string, date: string, currency?: string): Promise<number>;
30
39
  getContractDetails(contract_address: string, platform_id?: string): Promise<any>;
31
40
  getCurrentPriceByContract(contract_address: string, currency?: string, platform_id?: string): Promise<[string, number]>;
32
41
  getContractPrices(addresses: Array<string>, currency?: string, platform_id?: string): Promise<CoinGeckoPrice[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"Coingecko.d.ts","sourceRoot":"","sources":["../../../src/coingecko/Coingecko.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,UAE/B;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,gBAAgB,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAWF,qBAAa,SAAS;IAmClB,OAAO,CAAC,QAAQ,CAAC,IAAI;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,EAAE,EAAE,MAAM,EAAE,QAAQ,SAAQ;IAe5F;;;;;;;OAOG;IACG,2BAA2B,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,SAAQ,GAAG,OAAO,CAAC,MAAM,CAAC;IAiB3G,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,EAAE,WAAW,SAAa;IAG/D,yBAAyB,CAC7B,gBAAgB,EAAE,MAAM,EACxB,QAAQ,SAAQ,EAChB,WAAW,SAAa,GACvB,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IA8BtB,iBAAiB,CACrB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EACxB,QAAQ,SAAQ,EAChB,WAAW,SAAa,GACvB,OAAO,CAAC,cAAc,EAAE,CAAC;IAmF5B,YAAY,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC;IAIjD,IAAI,CAAC,IAAI,EAAE,MAAM;IA0BjB,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE;YAMpF,UAAU;YAaV,QAAQ;CAYvB"}
@@ -1,5 +1,5 @@
1
1
  import { BigNumber } from "ethers";
2
- export { CHAIN_IDs, MAINNET_CHAIN_IDs, PUBLIC_NETWORKS, TESTNET_CHAIN_IDs, TOKEN_SYMBOLS_MAP, } from "@across-protocol/constants";
2
+ export { ChainFamily, CHAIN_IDs, MAINNET_CHAIN_IDs, PUBLIC_NETWORKS, TESTNET_CHAIN_IDs, TOKEN_SYMBOLS_MAP, } from "@across-protocol/constants";
3
3
  export declare const ZERO_ADDRESS: string;
4
4
  export declare const MAX_SAFE_ALLOWANCE = "79228162514264337593543950335";
5
5
  export declare const SECONDS_PER_YEAR = 31557600;
@@ -27,4 +27,5 @@ export declare const DEFAULT_SIMULATED_RELAYER_ADDRESS = "0x428AB2BA90Eba0a4Be7a
27
27
  export declare const DEFAULT_SIMULATED_RELAYER_ADDRESS_TEST = "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D";
28
28
  export declare const DEFAULT_ARWEAVE_STORAGE_ADDRESS = "Z6hjBM8FHu90lYWB8o5jR1dfX92FlV2WBaND9xgp8Lg";
29
29
  export declare const EMPTY_MESSAGE = "0x";
30
+ export declare const BRIDGED_USDC_SYMBOLS: string[];
30
31
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,SAAS,EAAS,MAAM,QAAQ,CAAC;AAExE,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAqB,YAAY,QAAoB,CAAC;AAG7D,eAAO,MAAM,kBAAkB,kCAAkC,CAAC;AAElE,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAGlC,eAAO,MAAM,2CAA2C,IAAI,CAAC;AAG7D,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAGtD,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,UAA2B,CAAC;AAE1E,eAAO,MAAM,mBAAmB,QAAuB,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAU,CAAC;AAEhD,eAAO,MAAM,oBAAoB,WAA+E,CAAC;AACjH,eAAO,MAAM,oBAAoB,WAA+B,CAAC;AAEjE,eAAO,MAAM,iCAAiC,+CAA+C,CAAC;AAC9F,eAAO,MAAM,sCAAsC,+CAA+C,CAAC;AAEnG,eAAO,MAAM,+BAA+B,gDAAgD,CAAC;AAE7F,eAAO,MAAM,aAAa,OAAO,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,SAAS,EAAS,MAAM,QAAQ,CAAC;AACxE,OAAO,EACL,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAqB,YAAY,QAAoB,CAAC;AAG7D,eAAO,MAAM,kBAAkB,kCAAkC,CAAC;AAElE,eAAO,MAAM,gBAAgB,WAAW,CAAC;AAEzC;;GAEG;AACH,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAGlC,eAAO,MAAM,2CAA2C,IAAI,CAAC;AAG7D,eAAO,MAAM,oBAAoB,oBAAoB,CAAC;AAGtD,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;;;;GAOG;AACH,eAAO,MAAM,iCAAiC,UAA2B,CAAC;AAE1E,eAAO,MAAM,mBAAmB,QAAuB,CAAC;AACxD,eAAO,MAAM,wBAAwB,QAAU,CAAC;AAEhD,eAAO,MAAM,oBAAoB,WAA+E,CAAC;AACjH,eAAO,MAAM,oBAAoB,WAA+B,CAAC;AAEjE,eAAO,MAAM,iCAAiC,+CAA+C,CAAC;AAC9F,eAAO,MAAM,sCAAsC,+CAA+C,CAAC;AAEnG,eAAO,MAAM,+BAA+B,gDAAgD,CAAC;AAE7F,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,eAAO,MAAM,oBAAoB,UAAsB,CAAC"}
@@ -10,6 +10,7 @@ export declare class QueryBase__factory {
10
10
  addresses: {
11
11
  [x: number]: string;
12
12
  };
13
+ coingeckoId: string;
13
14
  };
14
15
  ARB: {
15
16
  name: string;
@@ -18,6 +19,7 @@ export declare class QueryBase__factory {
18
19
  addresses: {
19
20
  [x: number]: string;
20
21
  };
22
+ coingeckoId: string;
21
23
  };
22
24
  BAL: {
23
25
  name: string;
@@ -26,6 +28,7 @@ export declare class QueryBase__factory {
26
28
  addresses: {
27
29
  [x: number]: string;
28
30
  };
31
+ coingeckoId: string;
29
32
  };
30
33
  BADGER: {
31
34
  name: string;
@@ -34,6 +37,7 @@ export declare class QueryBase__factory {
34
37
  addresses: {
35
38
  [x: number]: string;
36
39
  };
40
+ coingeckoId: string;
37
41
  };
38
42
  BOBA: {
39
43
  name: string;
@@ -42,6 +46,7 @@ export declare class QueryBase__factory {
42
46
  addresses: {
43
47
  [x: number]: string;
44
48
  };
49
+ coingeckoId: string;
45
50
  };
46
51
  DAI: {
47
52
  name: string;
@@ -50,6 +55,7 @@ export declare class QueryBase__factory {
50
55
  addresses: {
51
56
  [x: number]: string;
52
57
  };
58
+ coingeckoId: string;
53
59
  };
54
60
  ETH: {
55
61
  name: string;
@@ -58,6 +64,7 @@ export declare class QueryBase__factory {
58
64
  addresses: {
59
65
  [x: number]: string;
60
66
  };
67
+ coingeckoId: string;
61
68
  };
62
69
  LSK: {
63
70
  name: string;
@@ -66,6 +73,7 @@ export declare class QueryBase__factory {
66
73
  addresses: {
67
74
  [x: number]: string;
68
75
  };
76
+ coingeckoId: string;
69
77
  };
70
78
  MATIC: {
71
79
  name: string;
@@ -74,6 +82,7 @@ export declare class QueryBase__factory {
74
82
  addresses: {
75
83
  [x: number]: string;
76
84
  };
85
+ coingeckoId: string;
77
86
  };
78
87
  OP: {
79
88
  name: string;
@@ -82,6 +91,7 @@ export declare class QueryBase__factory {
82
91
  addresses: {
83
92
  [x: number]: string;
84
93
  };
94
+ coingeckoId: string;
85
95
  };
86
96
  POOL: {
87
97
  name: string;
@@ -90,6 +100,7 @@ export declare class QueryBase__factory {
90
100
  addresses: {
91
101
  [x: number]: string;
92
102
  };
103
+ coingeckoId: string;
93
104
  };
94
105
  SNX: {
95
106
  name: string;
@@ -98,6 +109,7 @@ export declare class QueryBase__factory {
98
109
  addresses: {
99
110
  [x: number]: string;
100
111
  };
112
+ coingeckoId: string;
101
113
  };
102
114
  UMA: {
103
115
  name: string;
@@ -106,6 +118,7 @@ export declare class QueryBase__factory {
106
118
  addresses: {
107
119
  [x: number]: string;
108
120
  };
121
+ coingeckoId: string;
109
122
  };
110
123
  USDB: {
111
124
  name: string;
@@ -114,6 +127,7 @@ export declare class QueryBase__factory {
114
127
  addresses: {
115
128
  [x: number]: string;
116
129
  };
130
+ coingeckoId: string;
117
131
  };
118
132
  USDC: {
119
133
  name: string;
@@ -122,6 +136,7 @@ export declare class QueryBase__factory {
122
136
  addresses: {
123
137
  [x: number]: string;
124
138
  };
139
+ coingeckoId: string;
125
140
  };
126
141
  "USDC.e": {
127
142
  name: string;
@@ -130,6 +145,7 @@ export declare class QueryBase__factory {
130
145
  addresses: {
131
146
  [x: number]: string;
132
147
  };
148
+ coingeckoId: string;
133
149
  };
134
150
  USDbC: {
135
151
  name: string;
@@ -138,6 +154,7 @@ export declare class QueryBase__factory {
138
154
  addresses: {
139
155
  [x: number]: string;
140
156
  };
157
+ coingeckoId: string;
141
158
  };
142
159
  USDT: {
143
160
  name: string;
@@ -146,6 +163,7 @@ export declare class QueryBase__factory {
146
163
  addresses: {
147
164
  [x: number]: string;
148
165
  };
166
+ coingeckoId: string;
149
167
  };
150
168
  WBTC: {
151
169
  name: string;
@@ -154,6 +172,7 @@ export declare class QueryBase__factory {
154
172
  addresses: {
155
173
  [x: number]: string;
156
174
  };
175
+ coingeckoId: string;
157
176
  };
158
177
  WETH: {
159
178
  name: string;
@@ -162,6 +181,7 @@ export declare class QueryBase__factory {
162
181
  addresses: {
163
182
  [x: number]: string;
164
183
  };
184
+ coingeckoId: string;
165
185
  };
166
186
  WMATIC: {
167
187
  name: string;
@@ -170,6 +190,7 @@ export declare class QueryBase__factory {
170
190
  addresses: {
171
191
  [x: number]: string;
172
192
  };
193
+ coingeckoId: string;
173
194
  };
174
195
  }, spokePoolAddress?: string, simulatedRelayerAddress?: string, coingeckoProApiKey?: string, logger?: Logger, gasMarkup?: number, coingeckoBaseCurrency?: string): QueryBase;
175
196
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/relayFeeCalculator/chain-queries/factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAkB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAU/D,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,MAAM,CACX,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAC5B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAAoB,EACjC,gBAAgB,SAA2C,EAC3D,uBAAuB,SAAoC,EAC3D,kBAAkB,CAAC,EAAE,MAAM,EAC3B,MAAM,GAAE,MAAuB,EAC/B,SAAS,SAAI,EACb,qBAAqB,SAAQ,GAC5B,SAAS;CA4Bb"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../src/relayFeeCalculator/chain-queries/factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAkB,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAU/D,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,MAAM,CACX,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,SAAS,CAAC,QAAQ,EAC5B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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