@defisaver/positions-sdk 2.1.151-midnight-3-dev → 2.1.152
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/cjs/markets/aaveV4/index.d.ts +2 -0
- package/cjs/markets/aaveV4/index.js +13 -1
- package/cjs/types/aaveV4.d.ts +1 -0
- package/cjs/types/aaveV4.js +1 -0
- package/esm/markets/aaveV4/index.d.ts +2 -0
- package/esm/markets/aaveV4/index.js +11 -0
- package/esm/types/aaveV4.d.ts +1 -0
- package/esm/types/aaveV4.js +1 -0
- package/package.json +2 -2
- package/src/markets/aaveV4/index.ts +12 -0
- package/src/types/aaveV4.ts +1 -0
|
@@ -21,6 +21,7 @@ export declare const AAVE_V4_KELP_SPOKE: (networkId: NetworkNumber) => AaveV4Spo
|
|
|
21
21
|
export declare const AAVE_V4_LIDO_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
22
22
|
export declare const AAVE_V4_LOMBARD_BTC_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
23
23
|
export declare const AAVE_V4_MAIN_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
24
|
+
export declare const AAVE_V4_PAXG_GOLD_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
24
25
|
export declare const AAVE_V4_USDG_PENDLE_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
25
26
|
export declare const AAVE_V4_USDG_MAPLE_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
26
27
|
export declare const AaveV4Spokes: (networkId: NetworkNumber) => {
|
|
@@ -34,6 +35,7 @@ export declare const AaveV4Spokes: (networkId: NetworkNumber) => {
|
|
|
34
35
|
readonly aave_v4_lido_spoke: AaveV4SpokeInfo;
|
|
35
36
|
readonly aave_v4_lombard_btc_spoke: AaveV4SpokeInfo;
|
|
36
37
|
readonly aave_v4_main_spoke: AaveV4SpokeInfo;
|
|
38
|
+
readonly aave_v4_paxg_gold_spoke: AaveV4SpokeInfo;
|
|
37
39
|
readonly aave_v4_usdg_pendle_spoke: AaveV4SpokeInfo;
|
|
38
40
|
readonly aave_v4_usdg_maple_spoke: AaveV4SpokeInfo;
|
|
39
41
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findAaveV4SpokeByAddress = exports.getAaveV4SpokeTypeInfo = exports.AaveV4Spokes = exports.AAVE_V4_USDG_MAPLE_SPOKE = exports.AAVE_V4_USDG_PENDLE_SPOKE = exports.AAVE_V4_MAIN_SPOKE = exports.AAVE_V4_LOMBARD_BTC_SPOKE = exports.AAVE_V4_LIDO_SPOKE = exports.AAVE_V4_KELP_SPOKE = exports.AAVE_V4_GOLD_SPOKE = exports.AAVE_V4_FOREX_SPOKE = exports.AAVE_V4_ETHERFI_SPOKE = exports.AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = exports.AAVE_V4_ETHENA_CORRELATED_SPOKE = exports.AAVE_V4_BLUECHIP_SPOKE = exports.getAaveV4HubByAddress = exports.getAaveV4HubTypeInfo = exports.AaveV4Hubs = exports.AAVE_V4_PAXOS_HUB = exports.AAVE_V4_PRIME_HUB = exports.AAVE_V4_PLUS_HUB = exports.AAVE_V4_CORE_HUB = void 0;
|
|
3
|
+
exports.findAaveV4SpokeByAddress = exports.getAaveV4SpokeTypeInfo = exports.AaveV4Spokes = exports.AAVE_V4_USDG_MAPLE_SPOKE = exports.AAVE_V4_USDG_PENDLE_SPOKE = exports.AAVE_V4_PAXG_GOLD_SPOKE = exports.AAVE_V4_MAIN_SPOKE = exports.AAVE_V4_LOMBARD_BTC_SPOKE = exports.AAVE_V4_LIDO_SPOKE = exports.AAVE_V4_KELP_SPOKE = exports.AAVE_V4_GOLD_SPOKE = exports.AAVE_V4_FOREX_SPOKE = exports.AAVE_V4_ETHERFI_SPOKE = exports.AAVE_V4_ETHENA_ECOSYSTEM_SPOKE = exports.AAVE_V4_ETHENA_CORRELATED_SPOKE = exports.AAVE_V4_BLUECHIP_SPOKE = exports.getAaveV4HubByAddress = exports.getAaveV4HubTypeInfo = exports.AaveV4Hubs = exports.AAVE_V4_PAXOS_HUB = exports.AAVE_V4_PRIME_HUB = exports.AAVE_V4_PLUS_HUB = exports.AAVE_V4_CORE_HUB = void 0;
|
|
4
4
|
const types_1 = require("../../types");
|
|
5
5
|
// HUBS
|
|
6
6
|
const AAVE_V4_CORE_HUB = (networkId) => ({
|
|
@@ -173,6 +173,17 @@ const AAVE_V4_MAIN_SPOKE = (networkId) => ({
|
|
|
173
173
|
],
|
|
174
174
|
});
|
|
175
175
|
exports.AAVE_V4_MAIN_SPOKE = AAVE_V4_MAIN_SPOKE;
|
|
176
|
+
const AAVE_V4_PAXG_GOLD_SPOKE = (networkId) => ({
|
|
177
|
+
chainIds: [types_1.NetworkNumber.Eth],
|
|
178
|
+
label: 'PAXG Gold',
|
|
179
|
+
value: types_1.AaveV4SpokesType.AaveV4PaxgGoldSpoke,
|
|
180
|
+
url: 'paxg-gold',
|
|
181
|
+
address: '0xAD75cE6354f87F3135cE10621d385d8D1e2562C2',
|
|
182
|
+
hubs: [
|
|
183
|
+
(0, exports.AAVE_V4_PAXOS_HUB)(types_1.NetworkNumber.Eth).address,
|
|
184
|
+
],
|
|
185
|
+
});
|
|
186
|
+
exports.AAVE_V4_PAXG_GOLD_SPOKE = AAVE_V4_PAXG_GOLD_SPOKE;
|
|
176
187
|
const AAVE_V4_USDG_PENDLE_SPOKE = (networkId) => ({
|
|
177
188
|
chainIds: [types_1.NetworkNumber.Eth],
|
|
178
189
|
label: 'USDG Pendle',
|
|
@@ -208,6 +219,7 @@ const AaveV4Spokes = (networkId) => ({
|
|
|
208
219
|
[types_1.AaveV4SpokesType.AaveV4LidoSpoke]: (0, exports.AAVE_V4_LIDO_SPOKE)(networkId),
|
|
209
220
|
[types_1.AaveV4SpokesType.AaveV4LombardBtcSpoke]: (0, exports.AAVE_V4_LOMBARD_BTC_SPOKE)(networkId),
|
|
210
221
|
[types_1.AaveV4SpokesType.AaveV4MainSpoke]: (0, exports.AAVE_V4_MAIN_SPOKE)(networkId),
|
|
222
|
+
[types_1.AaveV4SpokesType.AaveV4PaxgGoldSpoke]: (0, exports.AAVE_V4_PAXG_GOLD_SPOKE)(networkId),
|
|
211
223
|
[types_1.AaveV4SpokesType.AaveV4USDGPendleSpoke]: (0, exports.AAVE_V4_USDG_PENDLE_SPOKE)(networkId),
|
|
212
224
|
[types_1.AaveV4SpokesType.AaveV4USDGMapleSpoke]: (0, exports.AAVE_V4_USDG_MAPLE_SPOKE)(networkId),
|
|
213
225
|
});
|
package/cjs/types/aaveV4.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare enum AaveV4SpokesType {
|
|
|
16
16
|
AaveV4LidoSpoke = "aave_v4_lido_spoke",
|
|
17
17
|
AaveV4LombardBtcSpoke = "aave_v4_lombard_btc_spoke",
|
|
18
18
|
AaveV4MainSpoke = "aave_v4_main_spoke",
|
|
19
|
+
AaveV4PaxgGoldSpoke = "aave_v4_paxg_gold_spoke",
|
|
19
20
|
AaveV4USDGPendleSpoke = "aave_v4_usdg_pendle_spoke",
|
|
20
21
|
AaveV4USDGMapleSpoke = "aave_v4_usdg_maple_spoke"
|
|
21
22
|
}
|
package/cjs/types/aaveV4.js
CHANGED
|
@@ -20,6 +20,7 @@ var AaveV4SpokesType;
|
|
|
20
20
|
AaveV4SpokesType["AaveV4LidoSpoke"] = "aave_v4_lido_spoke";
|
|
21
21
|
AaveV4SpokesType["AaveV4LombardBtcSpoke"] = "aave_v4_lombard_btc_spoke";
|
|
22
22
|
AaveV4SpokesType["AaveV4MainSpoke"] = "aave_v4_main_spoke";
|
|
23
|
+
AaveV4SpokesType["AaveV4PaxgGoldSpoke"] = "aave_v4_paxg_gold_spoke";
|
|
23
24
|
AaveV4SpokesType["AaveV4USDGPendleSpoke"] = "aave_v4_usdg_pendle_spoke";
|
|
24
25
|
AaveV4SpokesType["AaveV4USDGMapleSpoke"] = "aave_v4_usdg_maple_spoke";
|
|
25
26
|
})(AaveV4SpokesType || (exports.AaveV4SpokesType = AaveV4SpokesType = {}));
|
|
@@ -21,6 +21,7 @@ export declare const AAVE_V4_KELP_SPOKE: (networkId: NetworkNumber) => AaveV4Spo
|
|
|
21
21
|
export declare const AAVE_V4_LIDO_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
22
22
|
export declare const AAVE_V4_LOMBARD_BTC_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
23
23
|
export declare const AAVE_V4_MAIN_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
24
|
+
export declare const AAVE_V4_PAXG_GOLD_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
24
25
|
export declare const AAVE_V4_USDG_PENDLE_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
25
26
|
export declare const AAVE_V4_USDG_MAPLE_SPOKE: (networkId: NetworkNumber) => AaveV4SpokeInfo;
|
|
26
27
|
export declare const AaveV4Spokes: (networkId: NetworkNumber) => {
|
|
@@ -34,6 +35,7 @@ export declare const AaveV4Spokes: (networkId: NetworkNumber) => {
|
|
|
34
35
|
readonly aave_v4_lido_spoke: AaveV4SpokeInfo;
|
|
35
36
|
readonly aave_v4_lombard_btc_spoke: AaveV4SpokeInfo;
|
|
36
37
|
readonly aave_v4_main_spoke: AaveV4SpokeInfo;
|
|
38
|
+
readonly aave_v4_paxg_gold_spoke: AaveV4SpokeInfo;
|
|
37
39
|
readonly aave_v4_usdg_pendle_spoke: AaveV4SpokeInfo;
|
|
38
40
|
readonly aave_v4_usdg_maple_spoke: AaveV4SpokeInfo;
|
|
39
41
|
};
|
|
@@ -153,6 +153,16 @@ export const AAVE_V4_MAIN_SPOKE = (networkId) => ({
|
|
|
153
153
|
AAVE_V4_PRIME_HUB(NetworkNumber.Eth).address,
|
|
154
154
|
],
|
|
155
155
|
});
|
|
156
|
+
export const AAVE_V4_PAXG_GOLD_SPOKE = (networkId) => ({
|
|
157
|
+
chainIds: [NetworkNumber.Eth],
|
|
158
|
+
label: 'PAXG Gold',
|
|
159
|
+
value: AaveV4SpokesType.AaveV4PaxgGoldSpoke,
|
|
160
|
+
url: 'paxg-gold',
|
|
161
|
+
address: '0xAD75cE6354f87F3135cE10621d385d8D1e2562C2',
|
|
162
|
+
hubs: [
|
|
163
|
+
AAVE_V4_PAXOS_HUB(NetworkNumber.Eth).address,
|
|
164
|
+
],
|
|
165
|
+
});
|
|
156
166
|
export const AAVE_V4_USDG_PENDLE_SPOKE = (networkId) => ({
|
|
157
167
|
chainIds: [NetworkNumber.Eth],
|
|
158
168
|
label: 'USDG Pendle',
|
|
@@ -186,6 +196,7 @@ export const AaveV4Spokes = (networkId) => ({
|
|
|
186
196
|
[AaveV4SpokesType.AaveV4LidoSpoke]: AAVE_V4_LIDO_SPOKE(networkId),
|
|
187
197
|
[AaveV4SpokesType.AaveV4LombardBtcSpoke]: AAVE_V4_LOMBARD_BTC_SPOKE(networkId),
|
|
188
198
|
[AaveV4SpokesType.AaveV4MainSpoke]: AAVE_V4_MAIN_SPOKE(networkId),
|
|
199
|
+
[AaveV4SpokesType.AaveV4PaxgGoldSpoke]: AAVE_V4_PAXG_GOLD_SPOKE(networkId),
|
|
189
200
|
[AaveV4SpokesType.AaveV4USDGPendleSpoke]: AAVE_V4_USDG_PENDLE_SPOKE(networkId),
|
|
190
201
|
[AaveV4SpokesType.AaveV4USDGMapleSpoke]: AAVE_V4_USDG_MAPLE_SPOKE(networkId),
|
|
191
202
|
});
|
package/esm/types/aaveV4.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare enum AaveV4SpokesType {
|
|
|
16
16
|
AaveV4LidoSpoke = "aave_v4_lido_spoke",
|
|
17
17
|
AaveV4LombardBtcSpoke = "aave_v4_lombard_btc_spoke",
|
|
18
18
|
AaveV4MainSpoke = "aave_v4_main_spoke",
|
|
19
|
+
AaveV4PaxgGoldSpoke = "aave_v4_paxg_gold_spoke",
|
|
19
20
|
AaveV4USDGPendleSpoke = "aave_v4_usdg_pendle_spoke",
|
|
20
21
|
AaveV4USDGMapleSpoke = "aave_v4_usdg_maple_spoke"
|
|
21
22
|
}
|
package/esm/types/aaveV4.js
CHANGED
|
@@ -17,6 +17,7 @@ export var AaveV4SpokesType;
|
|
|
17
17
|
AaveV4SpokesType["AaveV4LidoSpoke"] = "aave_v4_lido_spoke";
|
|
18
18
|
AaveV4SpokesType["AaveV4LombardBtcSpoke"] = "aave_v4_lombard_btc_spoke";
|
|
19
19
|
AaveV4SpokesType["AaveV4MainSpoke"] = "aave_v4_main_spoke";
|
|
20
|
+
AaveV4SpokesType["AaveV4PaxgGoldSpoke"] = "aave_v4_paxg_gold_spoke";
|
|
20
21
|
AaveV4SpokesType["AaveV4USDGPendleSpoke"] = "aave_v4_usdg_pendle_spoke";
|
|
21
22
|
AaveV4SpokesType["AaveV4USDGMapleSpoke"] = "aave_v4_usdg_maple_spoke";
|
|
22
23
|
})(AaveV4SpokesType || (AaveV4SpokesType = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/positions-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.152",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@defisaver/tokens": "^1.7.
|
|
24
|
+
"@defisaver/tokens": "^1.7.45",
|
|
25
25
|
"@types/lodash": "^4.17.15",
|
|
26
26
|
"@types/memoizee": "^0.4.12",
|
|
27
27
|
"decimal.js": "^10.6.0",
|
|
@@ -181,6 +181,17 @@ export const AAVE_V4_MAIN_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo =>
|
|
|
181
181
|
],
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
+
export const AAVE_V4_PAXG_GOLD_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo => ({
|
|
185
|
+
chainIds: [NetworkNumber.Eth],
|
|
186
|
+
label: 'PAXG Gold',
|
|
187
|
+
value: AaveV4SpokesType.AaveV4PaxgGoldSpoke,
|
|
188
|
+
url: 'paxg-gold',
|
|
189
|
+
address: '0xAD75cE6354f87F3135cE10621d385d8D1e2562C2',
|
|
190
|
+
hubs: [
|
|
191
|
+
AAVE_V4_PAXOS_HUB(NetworkNumber.Eth).address,
|
|
192
|
+
],
|
|
193
|
+
});
|
|
194
|
+
|
|
184
195
|
export const AAVE_V4_USDG_PENDLE_SPOKE = (networkId: NetworkNumber): AaveV4SpokeInfo => ({
|
|
185
196
|
chainIds: [NetworkNumber.Eth],
|
|
186
197
|
label: 'USDG Pendle',
|
|
@@ -216,6 +227,7 @@ export const AaveV4Spokes = (networkId: NetworkNumber) => ({
|
|
|
216
227
|
[AaveV4SpokesType.AaveV4LidoSpoke]: AAVE_V4_LIDO_SPOKE(networkId),
|
|
217
228
|
[AaveV4SpokesType.AaveV4LombardBtcSpoke]: AAVE_V4_LOMBARD_BTC_SPOKE(networkId),
|
|
218
229
|
[AaveV4SpokesType.AaveV4MainSpoke]: AAVE_V4_MAIN_SPOKE(networkId),
|
|
230
|
+
[AaveV4SpokesType.AaveV4PaxgGoldSpoke]: AAVE_V4_PAXG_GOLD_SPOKE(networkId),
|
|
219
231
|
[AaveV4SpokesType.AaveV4USDGPendleSpoke]: AAVE_V4_USDG_PENDLE_SPOKE(networkId),
|
|
220
232
|
[AaveV4SpokesType.AaveV4USDGMapleSpoke]: AAVE_V4_USDG_MAPLE_SPOKE(networkId),
|
|
221
233
|
}) as const;
|
package/src/types/aaveV4.ts
CHANGED
|
@@ -20,6 +20,7 @@ export enum AaveV4SpokesType {
|
|
|
20
20
|
AaveV4LidoSpoke = 'aave_v4_lido_spoke',
|
|
21
21
|
AaveV4LombardBtcSpoke = 'aave_v4_lombard_btc_spoke',
|
|
22
22
|
AaveV4MainSpoke = 'aave_v4_main_spoke',
|
|
23
|
+
AaveV4PaxgGoldSpoke = 'aave_v4_paxg_gold_spoke',
|
|
23
24
|
AaveV4USDGPendleSpoke = 'aave_v4_usdg_pendle_spoke',
|
|
24
25
|
AaveV4USDGMapleSpoke = 'aave_v4_usdg_maple_spoke',
|
|
25
26
|
}
|