@sonarwatch/portfolio-plugins 0.11.154 → 0.11.156
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +2 -2
- package/src/index.js +8 -0
- package/src/index.js.map +1 -1
- package/src/plugins/meteora/index.js +2 -1
- package/src/plugins/meteora/index.js.map +1 -1
- package/src/plugins/meteora/multiTokenPools.json +139 -0
- package/src/plugins/meteora/multiTokenPoolsJob.d.ts +3 -0
- package/src/plugins/meteora/multiTokenPoolsJob.js +76 -0
- package/src/plugins/meteora/multiTokenPoolsJob.js.map +1 -0
- package/src/plugins/meteora/poolsJob.js +8 -86
- package/src/plugins/meteora/poolsJob.js.map +1 -1
- package/src/plugins/meteora/vaultsJob.js +7 -8
- package/src/plugins/meteora/vaultsJob.js.map +1 -1
- package/src/plugins/tulip/constants.d.ts +10 -0
- package/src/plugins/tulip/constants.js +20 -0
- package/src/plugins/tulip/constants.js.map +1 -0
- package/src/plugins/tulip/depositsFetcher.d.ts +3 -0
- package/src/plugins/tulip/depositsFetcher.js +73 -0
- package/src/plugins/tulip/depositsFetcher.js.map +1 -0
- package/src/plugins/tulip/filters.d.ts +13 -0
- package/src/plugins/tulip/filters.js +18 -0
- package/src/plugins/tulip/filters.js.map +1 -0
- package/src/plugins/tulip/index.d.ts +6 -0
- package/src/plugins/tulip/index.js +14 -0
- package/src/plugins/tulip/index.js.map +1 -0
- package/src/plugins/tulip/lendingTokensJob.d.ts +3 -0
- package/src/plugins/tulip/lendingTokensJob.js +90 -0
- package/src/plugins/tulip/lendingTokensJob.js.map +1 -0
- package/src/plugins/tulip/strategyTokensJob.d.ts +3 -0
- package/src/plugins/tulip/strategyTokensJob.js +75 -0
- package/src/plugins/tulip/strategyTokensJob.js.map +1 -0
- package/src/plugins/tulip/structs.d.ts +178 -0
- package/src/plugins/tulip/structs.js +174 -0
- package/src/plugins/tulip/structs.js.map +1 -0
- package/src/plugins/uxd/constants.d.ts +9 -0
- package/src/plugins/uxd/constants.js +22 -0
- package/src/plugins/uxd/constants.js.map +1 -0
- package/src/plugins/uxd/filters.d.ts +6 -0
- package/src/plugins/uxd/filters.js +13 -0
- package/src/plugins/uxd/filters.js.map +1 -0
- package/src/plugins/uxd/index.d.ts +6 -0
- package/src/plugins/uxd/index.js +12 -0
- package/src/plugins/uxd/index.js.map +1 -0
- package/src/plugins/uxd/stakingFetcher.d.ts +3 -0
- package/src/plugins/uxd/stakingFetcher.js +60 -0
- package/src/plugins/uxd/stakingFetcher.js.map +1 -0
- package/src/plugins/uxd/structs.d.ts +16 -0
- package/src/plugins/uxd/structs.js +17 -0
- package/src/plugins/uxd/structs.js.map +1 -0
- package/src/plugins/meteora/pools.d.ts +0 -5
- package/src/plugins/meteora/pools.js +0 -143
- package/src/plugins/meteora/pools.js.map +0 -1
@@ -0,0 +1,174 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.lendingObligationStruct = exports.obligationLiquityStruct = exports.userFarmStruct = exports.obligationStruct = exports.lendingReserveStruct = exports.liquidityStruct = exports.lastUpdateSlotStruct = exports.depositTrackingV1Struct = exports.multiDepositOptimizerV1Struct = exports.standaloneVaultCacheV1Struct = exports.ProgramType = exports.vaultBaseV1Struct = exports.feesV1Struct = exports.realizedYieldStruct = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
exports.realizedYieldStruct = new beet_1.BeetStruct([
|
8
|
+
['gainPerSecond', solana_1.u128],
|
9
|
+
['apr', solana_1.u128],
|
10
|
+
['buffer', (0, beet_1.uniformFixedSizeArray)((0, solana_1.blob)(8), 4)],
|
11
|
+
], (args) => args);
|
12
|
+
exports.feesV1Struct = new beet_1.BeetStruct([
|
13
|
+
['feeMultiplier', solana_1.u64],
|
14
|
+
['controllerFee', solana_1.u64],
|
15
|
+
['platformFee', solana_1.u64],
|
16
|
+
['withdrawFee', solana_1.u64],
|
17
|
+
['depositFee', solana_1.u64],
|
18
|
+
['feeWallet', beet_solana_1.publicKey],
|
19
|
+
['totalCollectedA', solana_1.u64],
|
20
|
+
['totalCollectedB', solana_1.u64],
|
21
|
+
['buffer', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 6)],
|
22
|
+
], (args) => args);
|
23
|
+
exports.vaultBaseV1Struct = new beet_1.BeetStruct([
|
24
|
+
['nonce', beet_1.u8],
|
25
|
+
['tag', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 32)],
|
26
|
+
['pda', beet_solana_1.publicKey],
|
27
|
+
['pdaNonce', beet_1.u8],
|
28
|
+
['pdaAlignment', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
|
29
|
+
['totalDepositedBalance', solana_1.u64],
|
30
|
+
['totalShares', solana_1.u64],
|
31
|
+
['underlyingMint', beet_solana_1.publicKey],
|
32
|
+
['underlyingWithdrawQueue', beet_solana_1.publicKey],
|
33
|
+
['underlyingDepositQueue', beet_solana_1.publicKey],
|
34
|
+
['underlyingCompoundQueue', beet_solana_1.publicKey],
|
35
|
+
['sharesMint', beet_solana_1.publicKey],
|
36
|
+
['withdrawsPaused', beet_1.u8],
|
37
|
+
['depositsPaused', beet_1.u8],
|
38
|
+
['compoundPaused', beet_1.u8],
|
39
|
+
['supportsCompound', beet_1.u8],
|
40
|
+
['rebasePaused', beet_1.u8],
|
41
|
+
['rebalancePaused', beet_1.u8],
|
42
|
+
['stateAlignment', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 2)],
|
43
|
+
['precisionFactor', solana_1.u64],
|
44
|
+
['lastCompoundTime', solana_1.i64],
|
45
|
+
['compoundInterval', solana_1.i64],
|
46
|
+
['slippageTolerance', beet_1.u8],
|
47
|
+
['slipAlignment', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
48
|
+
['fees', exports.feesV1Struct],
|
49
|
+
['farm', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 2)],
|
50
|
+
['configured', beet_1.u8],
|
51
|
+
['configuredAlignment', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
52
|
+
['pendingFees', solana_1.u64],
|
53
|
+
['totalDepositedBalanceCap', solana_1.u64],
|
54
|
+
['realizedYield', exports.realizedYieldStruct],
|
55
|
+
['buffer', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 4)],
|
56
|
+
], (args) => args);
|
57
|
+
var ProgramType;
|
58
|
+
(function (ProgramType) {
|
59
|
+
ProgramType[ProgramType["SplUnmodified"] = 0] = "SplUnmodified";
|
60
|
+
ProgramType[ProgramType["SplModifiedSolend"] = 1] = "SplModifiedSolend";
|
61
|
+
ProgramType[ProgramType["MangoV3"] = 2] = "MangoV3";
|
62
|
+
ProgramType[ProgramType["Unknown"] = 3] = "Unknown";
|
63
|
+
})(ProgramType || (exports.ProgramType = ProgramType = {}));
|
64
|
+
exports.standaloneVaultCacheV1Struct = new beet_1.BeetStruct([
|
65
|
+
['vaultAddress', beet_solana_1.publicKey],
|
66
|
+
['depositedBalance', solana_1.u64],
|
67
|
+
['programType', beet_1.u8],
|
68
|
+
['programAddress', beet_solana_1.publicKey],
|
69
|
+
['sharesMint', beet_solana_1.publicKey],
|
70
|
+
['sharesAccount', beet_solana_1.publicKey],
|
71
|
+
['alignment', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 7)],
|
72
|
+
['buffer', (0, beet_1.uniformFixedSizeArray)(solana_1.u64, 6)],
|
73
|
+
], (args) => args);
|
74
|
+
exports.multiDepositOptimizerV1Struct = new beet_1.BeetStruct([
|
75
|
+
['buffer', (0, solana_1.blob)(8)],
|
76
|
+
['base', exports.vaultBaseV1Struct],
|
77
|
+
['lastRebaseSlot', solana_1.u64],
|
78
|
+
[
|
79
|
+
'standaloneVaults',
|
80
|
+
(0, beet_1.uniformFixedSizeArray)(exports.standaloneVaultCacheV1Struct, 6),
|
81
|
+
],
|
82
|
+
['targetVault', beet_solana_1.publicKey],
|
83
|
+
['stateTransitionAccount', beet_solana_1.publicKey],
|
84
|
+
['minimumRebalanceAmount', solana_1.u64],
|
85
|
+
['pading', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 272)],
|
86
|
+
], (args) => args);
|
87
|
+
exports.depositTrackingV1Struct = new beet_1.BeetStruct([
|
88
|
+
['buffer', (0, solana_1.blob)(8)],
|
89
|
+
['owner', beet_solana_1.publicKey],
|
90
|
+
['vault', beet_solana_1.publicKey],
|
91
|
+
['pdaNonce', beet_1.u8],
|
92
|
+
['queueNonce', beet_1.u8],
|
93
|
+
['alignment', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 6)],
|
94
|
+
['shares', solana_1.u64],
|
95
|
+
['depositedBalance', solana_1.u64],
|
96
|
+
['lastDepositTime', solana_1.i64],
|
97
|
+
['pendingWithdrawAmount', solana_1.u64],
|
98
|
+
['totalDepositedUnderlying', solana_1.u64],
|
99
|
+
['totalWithdrawnUnderlying', solana_1.u64],
|
100
|
+
['lastPendingReward', solana_1.u64],
|
101
|
+
['rewardPerSharePaid', solana_1.u128],
|
102
|
+
['extraDataAccount', beet_solana_1.publicKey],
|
103
|
+
['padding', (0, beet_1.uniformFixedSizeArray)(beet_1.u8, 256)],
|
104
|
+
], (args) => args);
|
105
|
+
exports.lastUpdateSlotStruct = new beet_1.BeetStruct([
|
106
|
+
['slot', solana_1.u64],
|
107
|
+
['stale', beet_1.u8],
|
108
|
+
], (args) => args);
|
109
|
+
exports.liquidityStruct = new beet_1.BeetStruct([
|
110
|
+
['mintPubKey', beet_solana_1.publicKey],
|
111
|
+
['mintDecimals', beet_1.u8],
|
112
|
+
['supplyPubKey', beet_solana_1.publicKey],
|
113
|
+
['feeReceiver', beet_solana_1.publicKey],
|
114
|
+
['oraclePubKey', beet_solana_1.publicKey],
|
115
|
+
['availableAmount', solana_1.u64],
|
116
|
+
['borrowedAmountWads', solana_1.u128],
|
117
|
+
['cumulativeBorrowRate', solana_1.u128],
|
118
|
+
['marketPrice', solana_1.u128],
|
119
|
+
['platformAmountWads', solana_1.u128],
|
120
|
+
['platformFees', beet_1.u8],
|
121
|
+
['collateralMint', beet_solana_1.publicKey],
|
122
|
+
], (args) => args);
|
123
|
+
exports.lendingReserveStruct = new beet_1.BeetStruct([
|
124
|
+
['version', beet_1.u8],
|
125
|
+
['lastUpdateSlot', exports.lastUpdateSlotStruct],
|
126
|
+
['lendingMarket', beet_solana_1.publicKey],
|
127
|
+
['borrowAuthorizer', beet_solana_1.publicKey],
|
128
|
+
['liquidity', exports.liquidityStruct],
|
129
|
+
], (args) => args);
|
130
|
+
exports.obligationStruct = new beet_1.BeetStruct([
|
131
|
+
['obligationAccount', beet_solana_1.publicKey],
|
132
|
+
['coinAmount', solana_1.u64],
|
133
|
+
['pcAmount', solana_1.u64],
|
134
|
+
['depositedLpTokens', solana_1.u64],
|
135
|
+
['positionState', beet_1.u8],
|
136
|
+
], (args) => args);
|
137
|
+
exports.userFarmStruct = new beet_1.BeetStruct([
|
138
|
+
['buffer', (0, solana_1.blob)(8)],
|
139
|
+
['authority', beet_solana_1.publicKey],
|
140
|
+
['leveragedFarm', beet_solana_1.publicKey],
|
141
|
+
['userFarmNumber', beet_1.u8],
|
142
|
+
['numberOfObligations', beet_1.u8],
|
143
|
+
['numberOfUserFarms', beet_1.u8],
|
144
|
+
['nonce', beet_1.u8],
|
145
|
+
['obligations', (0, beet_1.uniformFixedSizeArray)(exports.obligationStruct, 3)],
|
146
|
+
], (args) => args);
|
147
|
+
exports.obligationLiquityStruct = new beet_1.BeetStruct([
|
148
|
+
['borrowReserve', beet_solana_1.publicKey],
|
149
|
+
['cumulativeBorrowRateWads', solana_1.u128],
|
150
|
+
['borrowedAmountWads', solana_1.u128],
|
151
|
+
['marketValue', solana_1.u128],
|
152
|
+
], (args) => args);
|
153
|
+
exports.lendingObligationStruct = new beet_1.BeetStruct([
|
154
|
+
['version', beet_1.u8],
|
155
|
+
['lastUpdateSlot', exports.lastUpdateSlotStruct],
|
156
|
+
['lendingMarket', beet_solana_1.publicKey],
|
157
|
+
['owner', beet_solana_1.publicKey],
|
158
|
+
['borrowedValue', solana_1.u128],
|
159
|
+
['vaultShares', solana_1.u64],
|
160
|
+
['lpTokens', solana_1.u64],
|
161
|
+
['coinDeposits', solana_1.u64],
|
162
|
+
['pcDeposits', solana_1.u64],
|
163
|
+
['depositsMarketValue', solana_1.u128],
|
164
|
+
['lpDecimals', beet_1.u8],
|
165
|
+
['coinDecimals', beet_1.u8],
|
166
|
+
['pcDecimals', beet_1.u8],
|
167
|
+
['depositsLen', beet_1.u8],
|
168
|
+
['borrowsLen', beet_1.u8],
|
169
|
+
[
|
170
|
+
'obligationLiquidities',
|
171
|
+
(0, beet_1.uniformFixedSizeArray)(exports.obligationLiquityStruct, 2),
|
172
|
+
],
|
173
|
+
], (args) => args);
|
174
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/tulip/structs.ts"],"names":[],"mappings":";;;AAAA,oDAImC;AAGnC,kEAA6D;AAC7D,+CAA0D;AAQ7C,QAAA,mBAAmB,GAAG,IAAI,iBAAU,CAC/C;IACE,CAAC,eAAe,EAAE,aAAI,CAAC;IACvB,CAAC,KAAK,EAAE,aAAI,CAAC;IACb,CAAC,QAAQ,EAAE,IAAA,4BAAqB,EAAC,IAAA,aAAI,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC9C,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAqB,CAChC,CAAC;AAcW,QAAA,YAAY,GAAG,IAAI,iBAAU,CACxC;IACE,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,eAAe,EAAE,YAAG,CAAC;IACtB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,aAAa,EAAE,YAAG,CAAC;IACpB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,WAAW,EAAE,uBAA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AAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,qBAAqB,EAAE,aAAI,CAAC;IAC7B,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,cAAc,EAAE,SAAE,CAAC;IACpB,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB,CAAC,aAAa,EAAE,SAAE,CAAC;IACnB,CAAC,YAAY,EAAE,SAAE,CAAC;IAClB;QACE,uBAAuB;QACvB,IAAA,4BAAqB,EAAC,+BAAuB,EAAE,CAAC,CAAC;KAClD;CACF,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAyB,CACpC,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { PublicKey } from '@solana/web3.js';
|
2
|
+
import { Platform } from '@sonarwatch/portfolio-core';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
export declare const platformId = "uxd";
|
5
|
+
export declare const platform: Platform;
|
6
|
+
export declare const stakingProgramId: PublicKey;
|
7
|
+
export declare const uxpMint = "UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M";
|
8
|
+
export declare const uxpDecimal = 9;
|
9
|
+
export declare const uxpFactor: BigNumber;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.uxpFactor = exports.uxpDecimal = exports.uxpMint = exports.stakingProgramId = exports.platform = exports.platformId = void 0;
|
7
|
+
const web3_js_1 = require("@solana/web3.js");
|
8
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
9
|
+
exports.platformId = 'uxd';
|
10
|
+
exports.platform = {
|
11
|
+
id: exports.platformId,
|
12
|
+
name: 'UXD',
|
13
|
+
image: 'https://sonar.watch/img/platforms/uxd.webp',
|
14
|
+
defiLlamaId: 'uxd', // from https://defillama.com/docs/api
|
15
|
+
website: 'https://uxd.fi/',
|
16
|
+
twitter: 'https://twitter.com/UXDProtocol',
|
17
|
+
};
|
18
|
+
exports.stakingProgramId = new web3_js_1.PublicKey('UXDSkps5NR8Lu1HB5uPLFfuB34hZ6DCk7RhYZZtGzbF');
|
19
|
+
exports.uxpMint = 'UXPhBoR3qG4UCiGNJfV7MqhHyFqKN68g45GoYvAeL2M';
|
20
|
+
exports.uxpDecimal = 9;
|
21
|
+
exports.uxpFactor = new bignumber_js_1.default(Math.pow(10, exports.uxpDecimal));
|
22
|
+
//# sourceMappingURL=constants.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/constants.ts"],"names":[],"mappings":";;;;;;AAAA,6CAA4C;AAE5C,gEAAqC;AAExB,QAAA,UAAU,GAAG,KAAK,CAAC;AACnB,QAAA,QAAQ,GAAa;IAChC,EAAE,EAAE,kBAAU;IACd,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,4CAA4C;IACnD,WAAW,EAAE,KAAK,EAAE,sCAAsC;IAC1D,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iCAAiC;CAC3C,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAI,mBAAS,CAC3C,6CAA6C,CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,UAAU,GAAG,CAAC,CAAC;AACf,QAAA,SAAS,GAAG,IAAI,sBAAS,CAAC,SAAA,EAAE,EAAI,kBAAU,CAAA,CAAC,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.stakingAccountFilters = void 0;
|
4
|
+
const stakingAccountFilters = (address) => [
|
5
|
+
{
|
6
|
+
memcmp: {
|
7
|
+
offset: 10,
|
8
|
+
bytes: address,
|
9
|
+
},
|
10
|
+
},
|
11
|
+
];
|
12
|
+
exports.stakingAccountFilters = stakingAccountFilters;
|
13
|
+
//# sourceMappingURL=filters.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/filters.ts"],"names":[],"mappings":";;;AAAO,MAAM,qBAAqB,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC;IACxD;QACE,MAAM,EAAE;YACN,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,OAAO;SACf;KACF;CACF,CAAC;AAPW,QAAA,qBAAqB,yBAOhC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.fetchers = exports.jobs = exports.platforms = void 0;
|
7
|
+
const constants_1 = require("./constants");
|
8
|
+
const stakingFetcher_1 = __importDefault(require("./stakingFetcher"));
|
9
|
+
exports.platforms = [constants_1.platform];
|
10
|
+
exports.jobs = [];
|
11
|
+
exports.fetchers = [stakingFetcher_1.default];
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/index.ts"],"names":[],"mappings":";;;;;;AAGA,2CAAuC;AAEvC,sEAA8C;AAEjC,QAAA,SAAS,GAAe,CAAC,oBAAQ,CAAC,CAAC;AACnC,QAAA,IAAI,GAAU,EAAE,CAAC;AACjB,QAAA,QAAQ,GAAc,CAAC,wBAAc,CAAC,CAAC"}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
+
});
|
10
|
+
};
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
const portfolio_core_1 = require("@sonarwatch/portfolio-core");
|
16
|
+
const constants_1 = require("./constants");
|
17
|
+
const clients_1 = require("../../utils/clients");
|
18
|
+
const structs_1 = require("./structs");
|
19
|
+
const filters_1 = require("./filters");
|
20
|
+
const solana_1 = require("../../utils/solana");
|
21
|
+
const tokenPriceToAssetToken_1 = __importDefault(require("../../utils/misc/tokenPriceToAssetToken"));
|
22
|
+
const networkId = portfolio_core_1.NetworkId.solana;
|
23
|
+
const executor = (owner, cache) => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
+
const client = (0, clients_1.getClientSolana)();
|
25
|
+
const stakingAccounts = yield (0, solana_1.getParsedProgramAccounts)(client, structs_1.stakingAccountStruct, constants_1.stakingProgramId, (0, filters_1.stakingAccountFilters)(owner));
|
26
|
+
if (stakingAccounts.length === 0)
|
27
|
+
return [];
|
28
|
+
const tokenPrice = yield cache.getTokenPrice(constants_1.uxpMint, networkId);
|
29
|
+
const assets = [];
|
30
|
+
stakingAccounts.forEach((stakingAccount) => {
|
31
|
+
const amount = stakingAccount.stakedAmount
|
32
|
+
.plus(stakingAccount.rewardAmount)
|
33
|
+
.div(constants_1.uxpFactor);
|
34
|
+
if (!amount.isZero())
|
35
|
+
return;
|
36
|
+
const lockedUntil = stakingAccount.stakeEndTs.times(1000).toNumber();
|
37
|
+
assets.push(Object.assign({}, (0, tokenPriceToAssetToken_1.default)(constants_1.uxpMint, amount.toNumber(), networkId, tokenPrice, tokenPrice === null || tokenPrice === void 0 ? void 0 : tokenPrice.price, {
|
38
|
+
lockedUntil,
|
39
|
+
})));
|
40
|
+
});
|
41
|
+
if (assets.length === 0)
|
42
|
+
return [];
|
43
|
+
return [
|
44
|
+
{
|
45
|
+
type: portfolio_core_1.PortfolioElementType.multiple,
|
46
|
+
label: 'Staked',
|
47
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
48
|
+
platformId: constants_1.platformId,
|
49
|
+
data: { assets },
|
50
|
+
value: (0, portfolio_core_1.getUsdValueSum)(assets.map((asset) => asset.value)),
|
51
|
+
},
|
52
|
+
];
|
53
|
+
});
|
54
|
+
const fetcher = {
|
55
|
+
id: `${constants_1.platformId}-staking`,
|
56
|
+
networkId: portfolio_core_1.NetworkId.solana,
|
57
|
+
executor,
|
58
|
+
};
|
59
|
+
exports.default = fetcher;
|
60
|
+
//# sourceMappingURL=stakingFetcher.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"stakingFetcher.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/stakingFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAKoC;AAGpC,2CAA+E;AAC/E,iDAAsD;AACtD,uCAAiD;AACjD,uCAAkD;AAClD,+CAA8D;AAC9D,qGAA6E;AAE7E,MAAM,SAAS,GAAG,0BAAS,CAAC,MAAM,CAAC;AAEnC,MAAM,QAAQ,GAAoB,CAAO,KAAa,EAAE,KAAY,EAAE,EAAE;IACtE,MAAM,MAAM,GAAG,IAAA,yBAAe,GAAE,CAAC;IACjC,MAAM,eAAe,GAAG,MAAM,IAAA,iCAAwB,EACpD,MAAM,EACN,8BAAoB,EACpB,4BAAgB,EAChB,IAAA,+BAAqB,EAAC,KAAK,CAAC,CAC7B,CAAC;IACF,IAAI,eAAe,C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3B,QAAQ;CACT,CAAC;AAEF,kBAAe,OAAO,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/// <reference types="node" />
|
2
|
+
import { PublicKey } from '@solana/web3.js';
|
3
|
+
import BigNumber from 'bignumber.js';
|
4
|
+
import { BeetStruct } from '@metaplex-foundation/beet';
|
5
|
+
type StakingAccount = {
|
6
|
+
padding: Buffer;
|
7
|
+
bump: number;
|
8
|
+
isInitialized: boolean;
|
9
|
+
user: PublicKey;
|
10
|
+
stakingOptionIdentifier: number;
|
11
|
+
stakeEndTs: BigNumber;
|
12
|
+
stakedAmount: BigNumber;
|
13
|
+
rewardAmount: BigNumber;
|
14
|
+
};
|
15
|
+
export declare const stakingAccountStruct: BeetStruct<StakingAccount, Partial<StakingAccount>>;
|
16
|
+
export {};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.stakingAccountStruct = void 0;
|
4
|
+
const beet_1 = require("@metaplex-foundation/beet");
|
5
|
+
const beet_solana_1 = require("@metaplex-foundation/beet-solana");
|
6
|
+
const solana_1 = require("../../utils/solana");
|
7
|
+
exports.stakingAccountStruct = new beet_1.BeetStruct([
|
8
|
+
['padding', (0, solana_1.blob)(8)],
|
9
|
+
['bump', beet_1.u8],
|
10
|
+
['isInitialized', beet_1.bool],
|
11
|
+
['user', beet_solana_1.publicKey],
|
12
|
+
['stakingOptionIdentifier', beet_1.u8],
|
13
|
+
['stakeEndTs', solana_1.u64],
|
14
|
+
['stakedAmount', solana_1.u64],
|
15
|
+
['rewardAmount', solana_1.u64],
|
16
|
+
], (args) => args, 'UXD staking');
|
17
|
+
//# sourceMappingURL=structs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"structs.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/uxd/structs.ts"],"names":[],"mappings":";;;AAEA,oDAAiE;AACjE,kEAA6D;AAC7D,+CAA+C;AAalC,QAAA,oBAAoB,GAAG,IAAI,iBAAU,CAChD;IACE,CAAC,SAAS,EAAE,IAAA,aAAI,EAAC,CAAC,CAAC,CAAC;IACpB,CAAC,MAAM,EAAE,SAAE,CAAC;IACZ,CAAC,eAAe,EAAE,WAAI,CAAC;IACvB,CAAC,MAAM,EAAE,uBAAS,CAAC;IACnB,CAAC,yBAAyB,EAAE,SAAE,CAAC;IAC/B,CAAC,YAAY,EAAE,YAAG,CAAC;IACnB,CAAC,cAAc,EAAE,YAAG,CAAC;IACrB,CAAC,cAAc,EAAE,YAAG,CAAC;CACtB,EACD,CAAC,IAAI,EAAE,EAAE,CAAC,IAAsB,EAChC,aAAa,CACd,CAAC"}
|
@@ -1,143 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.pools = void 0;
|
4
|
-
exports.pools = [
|
5
|
-
{
|
6
|
-
symbol: 'PAI-3Pool',
|
7
|
-
address: '9s6dXtMgV5E6v3rHqBF2LejHcA2GWoZb7xNUkgXgsBqt',
|
8
|
-
reserveAccounts: [
|
9
|
-
'J7xkQZ4eCsyHR7XDMcGbHeiFZo6vXPmQC2Va8aqo8jLx',
|
10
|
-
'bqPxs71QGXNW2SXEvjAaBgLzjhSZfQpmhcVBYoisBo6',
|
11
|
-
'EpehbDhGq8xEc3Yy5nJ2dgY2zWRHaRsbUiMTgh36N8J7',
|
12
|
-
],
|
13
|
-
},
|
14
|
-
{
|
15
|
-
symbol: 'UST-3Pool', // Not active anymore
|
16
|
-
address: '57h4LEnBooHrKbacYWGCFghmrTzYPVn8PwZkzTzRLvHa',
|
17
|
-
reserveAccounts: [
|
18
|
-
'Go93HBNLMK6QnSHyZTViAoti9GCmSRhkeZMiVoJmcrud',
|
19
|
-
'2uZVPMdS8VFwMEZjZNzP1f78m1zaqvT3R2JwMs1w9fU3',
|
20
|
-
'5nazSj6MfaEeuAoQezMG3raWuZiyFjE7fmURUgDeP8cF',
|
21
|
-
],
|
22
|
-
},
|
23
|
-
{
|
24
|
-
symbol: 'pSOL-SOL',
|
25
|
-
address: 'GHhDU9Y7HM37v6cQyaie1A3aZdfpCDp6ScJ5zZn2c3uk',
|
26
|
-
reserveAccounts: [
|
27
|
-
'9odMAiRbk5aDEbFWeYrsLZAS54C7XdBUv63t4oMRcWkM',
|
28
|
-
'9AnyD3bAeTsFvFPjYj12FMaDERBHX3vNKuuHJqZsKH6D',
|
29
|
-
],
|
30
|
-
},
|
31
|
-
{
|
32
|
-
symbol: 'wUSD-4Pool',
|
33
|
-
address: 'DSmqf5Je3FEUmZntxBzG7c7EYJN3WK3feBV5Zgidukjj',
|
34
|
-
reserveAccounts: [
|
35
|
-
'54q2ct7kTknGvADuHSXjtnKqMbmNQ4xpDVK2xgcnh1xv',
|
36
|
-
'5cvqiPREvEYmhvBt3cZ7fmrCE6tbYvwkAiuvf1pHUPBq',
|
37
|
-
'9gVstb8HkuYX8PqjLSc9b9zLMhFZwWX7k3ofLcWy7wyS',
|
38
|
-
'HLdcfovcXkHKm4iQWNQZhJypySmuGa1PGoTuB6L68hhZ',
|
39
|
-
],
|
40
|
-
},
|
41
|
-
{
|
42
|
-
symbol: 'stSOL-2Pool',
|
43
|
-
address: '4q19vhpG6y4ZeMPLQiUNNaJStb8XivCFQy4m4mdnVnQZ',
|
44
|
-
reserveAccounts: [
|
45
|
-
'9gizzFG33czvcTzn5N4V23uunV6YR55UNW8ow6qNPoX3',
|
46
|
-
'FqLtqRJvoVNYU5Xpcgp5FNPv8cXCZw7CiNddjQ4nqkRo',
|
47
|
-
],
|
48
|
-
},
|
49
|
-
{
|
50
|
-
symbol: 'mSOL-2Pool',
|
51
|
-
address: '7HqhfUqig7kekN8FbJCtQ36VgdXKriZWQ62rTve9ZmQ',
|
52
|
-
reserveAccounts: [
|
53
|
-
'EWy2hPdVT4uGrYokx65nAyn2GFBv7bUYA2pFPY96pw7Y',
|
54
|
-
'GM48qFn8rnqhyNMrBHyPJgUVwXQ1JvMbcu3b9zkThW9L',
|
55
|
-
],
|
56
|
-
},
|
57
|
-
{
|
58
|
-
symbol: 'wbBUSD-4Pool',
|
59
|
-
address: 'FcjViE1oVbXFza5ry9Q7WZ9XNd95zu1LqEiSUdeJMPTP',
|
60
|
-
reserveAccounts: [
|
61
|
-
'2FRWh8BZfpeuh8Pmg7ezHvBezW8yiEGG6Fy8pCnHVyq1',
|
62
|
-
'8m5D8rtDdP67qZyZTXwLozVCsXJMcSiXnroWoRn9GZga',
|
63
|
-
'3CF2cmVJxnWKt4J4u5tzsNSYVcSvmWqbbb4iJMEmzSRr',
|
64
|
-
'5Nn1Fm15FqjD5DbMFBQ93Rrwppzei5GghENMmJt5qRpR',
|
65
|
-
],
|
66
|
-
},
|
67
|
-
{
|
68
|
-
symbol: 'UXD-3Pool',
|
69
|
-
address: 'HG2UzJS8rbgsd16tZorT1mNiPJBjE7Xq4ifqsfZNK6h6',
|
70
|
-
reserveAccounts: [
|
71
|
-
'BLcaKjTnX3ggFMxhUeiZz32mpgiLeKYV2QWQ72JxgjdV',
|
72
|
-
'GgstY3wF2avMfPd7pAgVWUXaHaPFDkvyjMkTTsPNqmwE',
|
73
|
-
'BZRKweQTuVGWKZAL6Qrtgi1HPkuqzKxnJWLLJrqSm8Xs',
|
74
|
-
],
|
75
|
-
},
|
76
|
-
{
|
77
|
-
symbol: 'USTv2-3Pool', // Not active anymore
|
78
|
-
address: 'DJjevoCBomzgNe76pNDd8stAcMS4x7Y99giuNpqGLa2f',
|
79
|
-
reserveAccounts: [
|
80
|
-
'65sR8agQm768HYCjktunDJG3bbQszi7U8VD4pAKEYiXW',
|
81
|
-
'G5Q7dTUPYw5pEXbfzZbAFSaPstP9bdFmEJ7XXcyrkxVJ',
|
82
|
-
'EZd87x1Fu1ufV7pVRuXAEcL9y6aEMWWqtpcr7AHdU8ms',
|
83
|
-
],
|
84
|
-
},
|
85
|
-
{
|
86
|
-
symbol: 'USDH-3Pool',
|
87
|
-
address: 'HcpqAC3QTAZ1h3BuRCXtRfaUwFxjMCneuoqwAni4c2qm',
|
88
|
-
reserveAccounts: [
|
89
|
-
'3bFWy2hz9yGxvbgoRmzjUqkoYbCTWUDu7sZPHUYV39Pf',
|
90
|
-
'49gyyvxzf61PknHoTg2cFGYQCJRnUrC7Web8h8go7ceM',
|
91
|
-
'92P9U8L43ZCAKfdZxJaBAwmbb3MazdoVgrCm7R3xRnhn',
|
92
|
-
],
|
93
|
-
},
|
94
|
-
{
|
95
|
-
symbol: 'aUSDC-4Pool',
|
96
|
-
address: '5ZDQYA8LN5tooABpPFCrDwx5wcaTgXMragLwFim27mar',
|
97
|
-
reserveAccounts: [
|
98
|
-
'66guLcMF3qXkrMyLqDfuNKcHc7B6B36id9ZDDww4hiMv',
|
99
|
-
'8KX8TLQHfq9UyqNvzUrUCLiECNBdMspMmU8mghdM2SAM',
|
100
|
-
'2vhaJumb3hbRLUSDDy3Qk8KGGfzqThdwo8ai4tAvztGh',
|
101
|
-
'CC3FtDKTueNP1pmgtNWvKHZwbznyigSaiGhKsQYAfufD',
|
102
|
-
],
|
103
|
-
},
|
104
|
-
{
|
105
|
-
symbol: 'fUSD-3Pool', // Not active anymore
|
106
|
-
address: 'ALkfYpjMp1Bzn1JHCJkAKm4sU1EQt8RiFfX1ufVawuLV',
|
107
|
-
reserveAccounts: [
|
108
|
-
'3tu1Pac9N8sP8R9zHwmFvU258CPhbRSweVjdb2K2SVjt',
|
109
|
-
'9SbaPafChbA5aCm2ZB52viFVTEb6Mf9VeHxGeJetdHCf',
|
110
|
-
'9AWmAX6AgzVBWYHLRbjbHH5g9XJuoHM1vvaa3HfHxDx3',
|
111
|
-
],
|
112
|
-
},
|
113
|
-
{
|
114
|
-
symbol: 'abBUSD-4Pool',
|
115
|
-
address: 'JAQai7Pd6TP2ca3qowQoRw2Qygrhh7PpoLPAf9jvvgMQ',
|
116
|
-
reserveAccounts: [
|
117
|
-
'FEPtjpdDrEMfUTjCkimXH2e3h8KJTjsZYMLC6FtviTUW',
|
118
|
-
'CRj4DCzp7hDXyNgVhagNJmTmKjtsVLBtPDzjk6JeE2CL',
|
119
|
-
'2hHSmtBb7WzCaNFVun7CCmNq445dyQ9e1Tf66GCQGtjV',
|
120
|
-
'4ZYrDMtLE3HGWjeE9W2L3psZP7SMASnez9rzqmpfnTxa',
|
121
|
-
],
|
122
|
-
},
|
123
|
-
{
|
124
|
-
symbol: 'avaxUSD-3Pool',
|
125
|
-
address: '2jDEKWC4LYcyhxtQ6ZGZzK1Q9NYDrmZcR2EPRoHyx6Vy',
|
126
|
-
reserveAccounts: [
|
127
|
-
'CJNW2xGWHzyfZ2y2up9i11p7ZUm1ARvgfQ9Smzzj9arb',
|
128
|
-
'FaqLJMJNLs1cFULzHFzhmoJd4FJukq9f1HHTHJnvbEyx',
|
129
|
-
'V1pdBYfXxCx1sidPpQ3HoQfoEiHBCnPZe3iPEBSDJBr',
|
130
|
-
],
|
131
|
-
},
|
132
|
-
{
|
133
|
-
symbol: 'aaUSDT-4Pool',
|
134
|
-
address: 'FFM9rneg7pFbedUbuJdrwzje9WfKzJzv7jqcpeUQuGCy',
|
135
|
-
reserveAccounts: [
|
136
|
-
'7AiubbXXefRK3Tw83Y2XGovBwZ691pcdkts2S7zNE43Q',
|
137
|
-
'9UMESFcuCBj8bUw6kGDx8zut1g495Y6TcyATm3ht2kqP',
|
138
|
-
'FznWTeu44sR9WvqVtekzGQn82z7BxErkcpDDDSmvncYY',
|
139
|
-
'Ez1dYUW8FGhrJGHe4e84JTmyZYFwpjwM7GuhSaBth5Xh',
|
140
|
-
],
|
141
|
-
},
|
142
|
-
];
|
143
|
-
//# sourceMappingURL=pools.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../../../packages/plugins/src/plugins/meteora/pools.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG;IACnB;QACE,MAAM,EAAE,WAAW;QACnB,OAAO,EAAE,8CAA8C;QACvD,eAAe,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