@1delta/margin-fetcher 0.0.302 → 0.0.2889
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.
|
@@ -2,14 +2,9 @@ import { GenericTokenList } from '../../types';
|
|
|
2
2
|
import { EulerEarnVaults } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* True when the Goldsky subgraph at `subgraphUrl` lags chain head by more
|
|
5
|
-
* than `MAX_LAG_SECONDS`.
|
|
6
|
-
* (RPC/meta unavailable)
|
|
7
|
-
*
|
|
8
|
-
* Goldsky subgraphs are deprecated and have been observed weeks behind chain
|
|
9
|
-
* head; the probe's own RPC (`getEvmClientUniversal`) uses default endpoints
|
|
10
|
-
* that can't be overridden by the caller, so an unreachable head must not be
|
|
11
|
-
* read as "fresh". If the API is also down, the dispatcher still falls back to
|
|
12
|
-
* whatever the subgraph returned, so this never loses data.
|
|
5
|
+
* than `MAX_LAG_SECONDS`. Returns `false` when staleness can't be determined
|
|
6
|
+
* (RPC/meta unavailable) so a transient hiccup never needlessly abandons the
|
|
7
|
+
* richer subgraph source — the data-fetch error path covers hard failures.
|
|
13
8
|
*/
|
|
14
9
|
export declare function isEulerEarnSubgraphStale(chainId: string, subgraphUrl: string): Promise<boolean>;
|
|
15
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchFromApi.d.ts","sourceRoot":"","sources":["../../../src/vaults/euler-earn/fetchFromApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAI9C,OAAO,EAAkB,eAAe,EAAE,MAAM,SAAS,CAAA;AAyEzD
|
|
1
|
+
{"version":3,"file":"fetchFromApi.d.ts","sourceRoot":"","sources":["../../../src/vaults/euler-earn/fetchFromApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAI9C,OAAO,EAAkB,eAAe,EAAE,MAAM,SAAS,CAAA;AAyEzD;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,OAAO,CAAC,CAgBlB;AAiKD;;;;GAIG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,MAAM,EACf,MAAM,GAAE;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAO,EACxC,SAAS,GAAE,gBAAqB,GAC/B,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAqBtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1delta/margin-fetcher",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2889",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"async-retry": "^1.3.3",
|
|
24
24
|
"lodash": "^4.17.23",
|
|
25
25
|
"@1delta/abis": "0.0.20",
|
|
26
|
-
"@1delta/dex-registry": "0.0.101",
|
|
27
26
|
"@1delta/calldata-sdk": "0.0.154",
|
|
28
27
|
"@1delta/lender-registry": "0.0.32",
|
|
28
|
+
"@1delta/dex-registry": "0.0.101",
|
|
29
29
|
"@1delta/data-sdk": "0.0.28",
|
|
30
30
|
"@1delta/providers": "0.0.59",
|
|
31
31
|
"@1delta/proxy-fetch": "0.0.1"
|