@1delta/data-sdk 0.0.5 → 0.0.6
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/dist/index.js +15 -0
- package/dist/index.mjs +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// src/chains.ts
|
|
4
4
|
var GLOBAL_CHAIN_DATA_KEY = "__1delta_chain_registry__";
|
|
5
|
+
globalThis[GLOBAL_CHAIN_DATA_KEY] = {};
|
|
5
6
|
function getGlobalData() {
|
|
6
7
|
return globalThis[GLOBAL_CHAIN_DATA_KEY];
|
|
7
8
|
}
|
|
@@ -12,6 +13,20 @@ var chains = () => getGlobalData();
|
|
|
12
13
|
|
|
13
14
|
// src/lending.ts
|
|
14
15
|
var GLOBAL_LENDER_DATA_KEY = "__1delta_lender_registry__";
|
|
16
|
+
globalThis[GLOBAL_LENDER_DATA_KEY] = {
|
|
17
|
+
aaveTokens: {},
|
|
18
|
+
aavePools: {},
|
|
19
|
+
compoundV3Pools: {},
|
|
20
|
+
morphoPools: {},
|
|
21
|
+
compoundV3BaseData: {},
|
|
22
|
+
compoundV2Pools: {},
|
|
23
|
+
compoundV2Tokens: {},
|
|
24
|
+
initConfig: {},
|
|
25
|
+
aaveReserves: {},
|
|
26
|
+
compoundV2Reserves: {},
|
|
27
|
+
compoundV3Reserves: {},
|
|
28
|
+
aaveOracles: {}
|
|
29
|
+
};
|
|
15
30
|
function getGlobalData2() {
|
|
16
31
|
return globalThis[GLOBAL_LENDER_DATA_KEY];
|
|
17
32
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/chains.ts
|
|
2
2
|
var GLOBAL_CHAIN_DATA_KEY = "__1delta_chain_registry__";
|
|
3
|
+
globalThis[GLOBAL_CHAIN_DATA_KEY] = {};
|
|
3
4
|
function getGlobalData() {
|
|
4
5
|
return globalThis[GLOBAL_CHAIN_DATA_KEY];
|
|
5
6
|
}
|
|
@@ -10,6 +11,20 @@ var chains = () => getGlobalData();
|
|
|
10
11
|
|
|
11
12
|
// src/lending.ts
|
|
12
13
|
var GLOBAL_LENDER_DATA_KEY = "__1delta_lender_registry__";
|
|
14
|
+
globalThis[GLOBAL_LENDER_DATA_KEY] = {
|
|
15
|
+
aaveTokens: {},
|
|
16
|
+
aavePools: {},
|
|
17
|
+
compoundV3Pools: {},
|
|
18
|
+
morphoPools: {},
|
|
19
|
+
compoundV3BaseData: {},
|
|
20
|
+
compoundV2Pools: {},
|
|
21
|
+
compoundV2Tokens: {},
|
|
22
|
+
initConfig: {},
|
|
23
|
+
aaveReserves: {},
|
|
24
|
+
compoundV2Reserves: {},
|
|
25
|
+
compoundV3Reserves: {},
|
|
26
|
+
aaveOracles: {}
|
|
27
|
+
};
|
|
13
28
|
function getGlobalData2() {
|
|
14
29
|
return globalThis[GLOBAL_LENDER_DATA_KEY];
|
|
15
30
|
}
|